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,216 @@
<?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\Licensing;
class LicenseAssignment extends \Google\Model
{
/**
* ETag of the resource.
*
* @var string
*/
public $etags;
/**
* Identifies the resource as a LicenseAssignment, which is
* `licensing#licenseAssignment`.
*
* @var string
*/
public $kind;
/**
* A product's unique identifier. For more information about products in this
* version of the API, see Product and SKU IDs.
*
* @var string
*/
public $productId;
/**
* Display Name of the product.
*
* @var string
*/
public $productName;
/**
* Link to this page.
*
* @var string
*/
public $selfLink;
/**
* A product SKU's unique identifier. For more information about available
* SKUs in this version of the API, see Products and SKUs.
*
* @var string
*/
public $skuId;
/**
* Display Name of the sku of the product.
*
* @var string
*/
public $skuName;
/**
* The user's current primary email address. If the user's email address
* changes, use the new email address in your API requests. Since a `userId`
* is subject to change, do not use a `userId` value as a key for persistent
* data. This key could break if the current user's email address changes. If
* the `userId` is suspended, the license status changes.
*
* @var string
*/
public $userId;
/**
* ETag of the resource.
*
* @param string $etags
*/
public function setEtags($etags)
{
$this->etags = $etags;
}
/**
* @return string
*/
public function getEtags()
{
return $this->etags;
}
/**
* Identifies the resource as a LicenseAssignment, which is
* `licensing#licenseAssignment`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* A product's unique identifier. For more information about products in this
* version of the API, see Product and SKU IDs.
*
* @param string $productId
*/
public function setProductId($productId)
{
$this->productId = $productId;
}
/**
* @return string
*/
public function getProductId()
{
return $this->productId;
}
/**
* Display Name of the product.
*
* @param string $productName
*/
public function setProductName($productName)
{
$this->productName = $productName;
}
/**
* @return string
*/
public function getProductName()
{
return $this->productName;
}
/**
* Link to this page.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* A product SKU's unique identifier. For more information about available
* SKUs in this version of the API, see Products and SKUs.
*
* @param string $skuId
*/
public function setSkuId($skuId)
{
$this->skuId = $skuId;
}
/**
* @return string
*/
public function getSkuId()
{
return $this->skuId;
}
/**
* Display Name of the sku of the product.
*
* @param string $skuName
*/
public function setSkuName($skuName)
{
$this->skuName = $skuName;
}
/**
* @return string
*/
public function getSkuName()
{
return $this->skuName;
}
/**
* The user's current primary email address. If the user's email address
* changes, use the new email address in your API requests. Since a `userId`
* is subject to change, do not use a `userId` value as a key for persistent
* data. This key could break if the current user's email address changes. If
* the `userId` is suspended, the license status changes.
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LicenseAssignment::class, 'Google_Service_Licensing_LicenseAssignment');
@@ -0,0 +1,48 @@
<?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\Licensing;
class LicenseAssignmentInsert extends \Google\Model
{
/**
* Email id of the user
*
* @var string
*/
public $userId;
/**
* Email id of the user
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LicenseAssignmentInsert::class, 'Google_Service_Licensing_LicenseAssignmentInsert');
@@ -0,0 +1,117 @@
<?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\Licensing;
class LicenseAssignmentList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
protected $itemsType = LicenseAssignment::class;
protected $itemsDataType = 'array';
/**
* Identifies the resource as a collection of LicenseAssignments.
*
* @var string
*/
public $kind;
/**
* The token that you must submit in a subsequent request to retrieve
* additional license results matching your query parameters. The `maxResults`
* query string is related to the `nextPageToken` since `maxResults`
* determines how many entries are returned on each next page.
*
* @var string
*/
public $nextPageToken;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The LicenseAssignments in this page of results.
*
* @param LicenseAssignment[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return LicenseAssignment[]
*/
public function getItems()
{
return $this->items;
}
/**
* Identifies the resource as a collection of LicenseAssignments.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The token that you must submit in a subsequent request to retrieve
* additional license results matching your query parameters. The `maxResults`
* query string is related to the `nextPageToken` since `maxResults`
* determines how many entries are returned on each next page.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LicenseAssignmentList::class, 'Google_Service_Licensing_LicenseAssignmentList');
@@ -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\Licensing;
class LicensingEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LicensingEmpty::class, 'Google_Service_Licensing_LicensingEmpty');
@@ -0,0 +1,204 @@
<?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\Licensing\Resource;
use Google\Service\Licensing\LicenseAssignment;
use Google\Service\Licensing\LicenseAssignmentInsert;
use Google\Service\Licensing\LicenseAssignmentList;
use Google\Service\Licensing\LicensingEmpty;
/**
* The "licenseAssignments" collection of methods.
* Typical usage is:
* <code>
* $licensingService = new Google\Service\Licensing(...);
* $licenseAssignments = $licensingService->licenseAssignments;
* </code>
*/
class LicenseAssignments extends \Google\Service\Resource
{
/**
* Revoke a license. (licenseAssignments.delete)
*
* @param string $productId A product's unique identifier. For more information
* about products in this version of the API, see Products and SKUs.
* @param string $skuId A product SKU's unique identifier. For more information
* about available SKUs in this version of the API, see Products and SKUs.
* @param string $userId The user's current primary email address. If the user's
* email address changes, use the new email address in your API requests. Since
* a `userId` is subject to change, do not use a `userId` value as a key for
* persistent data. This key could break if the current user's email address
* changes. If the `userId` is suspended, the license status changes.
* @param array $optParams Optional parameters.
* @return LicensingEmpty
* @throws \Google\Service\Exception
*/
public function delete($productId, $skuId, $userId, $optParams = [])
{
$params = ['productId' => $productId, 'skuId' => $skuId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LicensingEmpty::class);
}
/**
* Get a specific user's license by product SKU. (licenseAssignments.get)
*
* @param string $productId A product's unique identifier. For more information
* about products in this version of the API, see Products and SKUs.
* @param string $skuId A product SKU's unique identifier. For more information
* about available SKUs in this version of the API, see Products and SKUs.
* @param string $userId The user's current primary email address. If the user's
* email address changes, use the new email address in your API requests. Since
* a `userId` is subject to change, do not use a `userId` value as a key for
* persistent data. This key could break if the current user's email address
* changes. If the `userId` is suspended, the license status changes.
* @param array $optParams Optional parameters.
* @return LicenseAssignment
* @throws \Google\Service\Exception
*/
public function get($productId, $skuId, $userId, $optParams = [])
{
$params = ['productId' => $productId, 'skuId' => $skuId, 'userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LicenseAssignment::class);
}
/**
* Assign a license. (licenseAssignments.insert)
*
* @param string $productId A product's unique identifier. For more information
* about products in this version of the API, see Products and SKUs.
* @param string $skuId A product SKU's unique identifier. For more information
* about available SKUs in this version of the API, see Products and SKUs.
* @param LicenseAssignmentInsert $postBody
* @param array $optParams Optional parameters.
* @return LicenseAssignment
* @throws \Google\Service\Exception
*/
public function insert($productId, $skuId, LicenseAssignmentInsert $postBody, $optParams = [])
{
$params = ['productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], LicenseAssignment::class);
}
/**
* List all users assigned licenses for a specific product SKU.
* (licenseAssignments.listForProduct)
*
* @param string $productId A product's unique identifier. For more information
* about products in this version of the API, see Products and SKUs.
* @param string $customerId The customer's unique ID as defined in the Admin
* console, such as `C00000000`. If the customer is suspended, the server
* returns an error.
* @param array $optParams Optional parameters.
*
* @opt_param string maxResults The `maxResults` query string determines how
* many entries are returned on each page of a large response. This is an
* optional parameter. The value must be a positive number.
* @opt_param string pageToken Token to fetch the next page of data. The
* `maxResults` query string is related to the `pageToken` since `maxResults`
* determines how many entries are returned on each page. This is an optional
* query string. If not specified, the server returns the first page.
* @return LicenseAssignmentList
* @throws \Google\Service\Exception
*/
public function listForProduct($productId, $customerId, $optParams = [])
{
$params = ['productId' => $productId, 'customerId' => $customerId];
$params = array_merge($params, $optParams);
return $this->call('listForProduct', [$params], LicenseAssignmentList::class);
}
/**
* List all users assigned licenses for a specific product SKU.
* (licenseAssignments.listForProductAndSku)
*
* @param string $productId A product's unique identifier. For more information
* about products in this version of the API, see Products and SKUs.
* @param string $skuId A product SKU's unique identifier. For more information
* about available SKUs in this version of the API, see Products and SKUs.
* @param string $customerId The customer's unique ID as defined in the Admin
* console, such as `C00000000`. If the customer is suspended, the server
* returns an error.
* @param array $optParams Optional parameters.
*
* @opt_param string maxResults The `maxResults` query string determines how
* many entries are returned on each page of a large response. This is an
* optional parameter. The value must be a positive number.
* @opt_param string pageToken Token to fetch the next page of data. The
* `maxResults` query string is related to the `pageToken` since `maxResults`
* determines how many entries are returned on each page. This is an optional
* query string. If not specified, the server returns the first page.
* @return LicenseAssignmentList
* @throws \Google\Service\Exception
*/
public function listForProductAndSku($productId, $skuId, $customerId, $optParams = [])
{
$params = ['productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId];
$params = array_merge($params, $optParams);
return $this->call('listForProductAndSku', [$params], LicenseAssignmentList::class);
}
/**
* Reassign a user's product SKU with a different SKU in the same product. This
* method supports patch semantics. (licenseAssignments.patch)
*
* @param string $productId A product's unique identifier. For more information
* about products in this version of the API, see Products and SKUs.
* @param string $skuId A product SKU's unique identifier. For more information
* about available SKUs in this version of the API, see Products and SKUs.
* @param string $userId The user's current primary email address. If the user's
* email address changes, use the new email address in your API requests. Since
* a `userId` is subject to change, do not use a `userId` value as a key for
* persistent data. This key could break if the current user's email address
* changes. If the `userId` is suspended, the license status changes.
* @param LicenseAssignment $postBody
* @param array $optParams Optional parameters.
* @return LicenseAssignment
* @throws \Google\Service\Exception
*/
public function patch($productId, $skuId, $userId, LicenseAssignment $postBody, $optParams = [])
{
$params = ['productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LicenseAssignment::class);
}
/**
* Reassign a user's product SKU with a different SKU in the same product.
* (licenseAssignments.update)
*
* @param string $productId A product's unique identifier. For more information
* about products in this version of the API, see Products and SKUs.
* @param string $skuId A product SKU's unique identifier. For more information
* about available SKUs in this version of the API, see Products and SKUs.
* @param string $userId The user's current primary email address. If the user's
* email address changes, use the new email address in your API requests. Since
* a `userId` is subject to change, do not use a `userId` value as a key for
* persistent data. This key could break if the current user's email address
* changes. If the `userId` is suspended, the license status changes.
* @param LicenseAssignment $postBody
* @param array $optParams Optional parameters.
* @return LicenseAssignment
* @throws \Google\Service\Exception
*/
public function update($productId, $skuId, $userId, LicenseAssignment $postBody, $optParams = [])
{
$params = ['productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], LicenseAssignment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LicenseAssignments::class, 'Google_Service_Licensing_Resource_LicenseAssignments');