gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SubscriptionLinking;
class DeleteReaderResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteReaderResponse::class, 'Google_Service_SubscriptionLinking_DeleteReaderResponse');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SubscriptionLinking;
class Entitlement extends \Google\Model
{
/**
* The detail field can carry a description of the SKU that corresponds to
* what the user has been granted access to. This description, which is opaque
* to Google, can be displayed in the Google user subscription console for
* users who linked the subscription to a Google Account. Max 80 character
* limit.
*
* @var string
*/
public $detail;
/**
* Required. Expiration time of the entitlement. Entitlements that have
* expired over 30 days will be purged. The max expire_time is 398 days from
* now().
*
* @var string
*/
public $expireTime;
/**
* Required. The publication's product ID that the user has access to. This is
* the same product ID as can be found in Schema.org markup
* (http://schema.org/productID). E.g. "dailybugle.com:basic"
*
* @var string
*/
public $productId;
/**
* A source-specific subscription token. This is an opaque string that the
* publisher provides to Google. This token is opaque and has no meaning to
* Google.
*
* @var string
*/
public $subscriptionToken;
/**
* The detail field can carry a description of the SKU that corresponds to
* what the user has been granted access to. This description, which is opaque
* to Google, can be displayed in the Google user subscription console for
* users who linked the subscription to a Google Account. Max 80 character
* limit.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Required. Expiration time of the entitlement. Entitlements that have
* expired over 30 days will be purged. The max expire_time is 398 days from
* now().
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Required. The publication's product ID that the user has access to. This is
* the same product ID as can be found in Schema.org markup
* (http://schema.org/productID). E.g. "dailybugle.com:basic"
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* A source-specific subscription token. This is an opaque string that the
* publisher provides to Google. This token is opaque and has no meaning to
* Google.
*
* @param string $subscriptionToken
*/
public function setSubscriptionToken($subscriptionToken)
{
$this->subscriptionToken = $subscriptionToken;
}
/**
* @return string
*/
public function getSubscriptionToken()
{
return $this->subscriptionToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entitlement::class, 'Google_Service_SubscriptionLinking_Entitlement');
@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SubscriptionLinking;
class Reader extends \Google\Model
{
/**
* Output only. Time the publication reader was created and associated with a
* Google user.
*
* @var string
*/
public $createTime;
/**
* Output only. The resource name of the reader. The last part of ppid in the
* resource name is the publisher provided id.
*
* @var string
*/
public $name;
/**
* Output only. The SwG publication id that the reader's subscription linking
* was originating from.
*
* @var string
*/
public $originatingPublicationId;
/**
* Output only. The publisher provided id of the reader.
*
* @var string
*/
public $ppid;
/**
* Output only. The SwG publication id that the reader has linked their
* subscription to.
*
* @var string
*/
public $publicationId;
/**
* Output only. Time the publication reader was created and associated with a
* Google user.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The resource name of the reader. The last part of ppid in the
* resource name is the publisher provided id.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The SwG publication id that the reader's subscription linking
* was originating from.
*
* @param string $originatingPublicationId
*/
public function setOriginatingPublicationId($originatingPublicationId)
{
$this->originatingPublicationId = $originatingPublicationId;
}
/**
* @return string
*/
public function getOriginatingPublicationId()
{
return $this->originatingPublicationId;
}
/**
* Output only. The publisher provided id of the reader.
*
* @param string $ppid
*/
public function setPpid($ppid)
{
$this->ppid = $ppid;
}
/**
* @return string
*/
public function getPpid()
{
return $this->ppid;
}
/**
* Output only. The SwG publication id that the reader has linked their
* subscription to.
*
* @param string $publicationId
*/
public function setPublicationId($publicationId)
{
$this->publicationId = $publicationId;
}
/**
* @return string
*/
public function getPublicationId()
{
return $this->publicationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Reader::class, 'Google_Service_SubscriptionLinking_Reader');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SubscriptionLinking;
class ReaderEntitlements extends \Google\Collection
{
protected $collection_key = 'entitlements';
protected $entitlementsType = Entitlement::class;
protected $entitlementsDataType = 'array';
/**
* Output only. The resource name of the singleton.
*
* @var string
*/
public $name;
/**
* All of the entitlements for a publication reader.
*
* @param Entitlement[] $entitlements
*/
public function setEntitlements($entitlements)
{
$this->entitlements = $entitlements;
}
/**
* @return Entitlement[]
*/
public function getEntitlements()
{
return $this->entitlements;
}
/**
* Output only. The resource name of the singleton.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReaderEntitlements::class, 'Google_Service_SubscriptionLinking_ReaderEntitlements');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SubscriptionLinking\Resource;
/**
* The "publications" collection of methods.
* Typical usage is:
* <code>
* $readerrevenuesubscriptionlinkingService = new Google\Service\SubscriptionLinking(...);
* $publications = $readerrevenuesubscriptionlinkingService->publications;
* </code>
*/
class Publications extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Publications::class, 'Google_Service_SubscriptionLinking_Resource_Publications');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SubscriptionLinking\Resource;
use Google\Service\SubscriptionLinking\DeleteReaderResponse;
use Google\Service\SubscriptionLinking\Reader;
use Google\Service\SubscriptionLinking\ReaderEntitlements;
/**
* The "readers" collection of methods.
* Typical usage is:
* <code>
* $readerrevenuesubscriptionlinkingService = new Google\Service\SubscriptionLinking(...);
* $readers = $readerrevenuesubscriptionlinkingService->publications_readers;
* </code>
*/
class PublicationsReaders extends \Google\Service\Resource
{
/**
* Removes a publication reader, effectively severing the association with a
* Google user. If `force` is set to true, any entitlements for this reader will
* also be deleted. (Otherwise, the request will only work if the reader has no
* entitlements.) - If the reader does not exist, return NOT_FOUND. - Return
* FAILED_PRECONDITION if the force field is false (or unset) and entitlements
* are present. (readers.delete)
*
* @param string $name Required. The resource name of the reader. Format:
* publications/{publication_id}/readers/{ppid}
* @param array $optParams Optional parameters.
*
* @opt_param bool force If set to true, any entitlements under the reader will
* also be purged.
* @return DeleteReaderResponse
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], DeleteReaderResponse::class);
}
/**
* Gets a reader of a publication. Returns NOT_FOUND if the reader does not
* exist. (readers.get)
*
* @param string $name Required. The resource name of the reader. Format:
* publications/{publication_id}/readers/{ppid}
* @param array $optParams Optional parameters.
* @return Reader
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Reader::class);
}
/**
* Gets the reader entitlements for a publication reader. - Returns
* PERMISSION_DENIED if the caller does not have access. - Returns NOT_FOUND if
* the reader does not exist. (readers.getEntitlements)
*
* @param string $name Required. The name of the reader entitlements to
* retrieve. Format:
* publications/{publication_id}/readers/{reader_id}/entitlements
* @param array $optParams Optional parameters.
* @return ReaderEntitlements
* @throws \Google\Service\Exception
*/
public function getEntitlements($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getEntitlements', [$params], ReaderEntitlements::class);
}
/**
* Updates the reader entitlements for a publication reader. The entire reader
* entitlements will be overwritten by the new reader entitlements in the
* payload, like a PUT. - Returns PERMISSION_DENIED if the caller does not have
* access. - Returns NOT_FOUND if the reader does not exist.
* (readers.updateEntitlements)
*
* @param string $name Output only. The resource name of the singleton.
* @param ReaderEntitlements $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The list of fields to update. Defaults
* to all fields.
* @return ReaderEntitlements
* @throws \Google\Service\Exception
*/
public function updateEntitlements($name, ReaderEntitlements $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateEntitlements', [$params], ReaderEntitlements::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublicationsReaders::class, 'Google_Service_SubscriptionLinking_Resource_PublicationsReaders');