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,112 @@
<?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\Chromewebstore\Resource;
use Google\Service\Chromewebstore\Item;
use Google\Service\Chromewebstore\Item2;
use Google\Service\Chromewebstore\PublishRequest;
/**
* The "items" collection of methods.
* Typical usage is:
* <code>
* $chromewebstoreService = new Google\Service\Chromewebstore(...);
* $items = $chromewebstoreService->items;
* </code>
*/
class Items extends \Google\Service\Resource
{
/**
* Gets your own Chrome Web Store item. (items.get)
*
* @param string $itemId Unique identifier representing the Chrome App, Chrome
* Extension, or the Chrome Theme.
* @param array $optParams Optional parameters.
*
* @opt_param string projection Determines which subset of the item information
* to return.
* @return Item
* @throws \Google\Service\Exception
*/
public function get($itemId, $optParams = [])
{
$params = ['itemId' => $itemId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Item::class);
}
/**
* Inserts a new item. (items.insert)
*
* @param array $optParams Optional parameters.
*
* @opt_param string publisherEmail The email of the publisher who owns the
* items. Defaults to the caller's email address.
* @return Item
* @throws \Google\Service\Exception
*/
public function insert($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Item::class);
}
/**
* Publishes an item. (items.publish)
*
* @param string $itemId The ID of the item to publish.
* @param PublishRequest $postBody
* @param array $optParams Optional parameters.
*
* @opt_param int deployPercentage The deploy percentage you want to set for
* your item. Valid values are [0, 100]. If set to any number less than 100,
* only that many percentage of users will be allowed to get the update.
* @opt_param string publishTarget Provide defined publishTarget in URL (case
* sensitive): publishTarget="trustedTesters" or publishTarget="default".
* Defaults to publishTarget="default".
* @opt_param bool reviewExemption Optional. The caller request to exempt the
* review and directly publish because the update is within the list that we can
* automatically validate. The API will check if the exemption can be granted
* using real time data.
* @return Item2
* @throws \Google\Service\Exception
*/
public function publish($itemId, PublishRequest $postBody, $optParams = [])
{
$params = ['itemId' => $itemId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], Item2::class);
}
/**
* Updates an existing item. (items.update)
*
* @param string $itemId The ID of the item to upload.
* @param Item $postBody
* @param array $optParams Optional parameters.
* @return Item
* @throws \Google\Service\Exception
*/
public function update($itemId, Item $postBody, $optParams = [])
{
$params = ['itemId' => $itemId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Item::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Items::class, 'Google_Service_Chromewebstore_Resource_Items');
@@ -0,0 +1,52 @@
<?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\Chromewebstore\Resource;
use Google\Service\Chromewebstore\UploadItemPackageRequest;
use Google\Service\Chromewebstore\UploadItemPackageResponse;
/**
* The "media" collection of methods.
* Typical usage is:
* <code>
* $chromewebstoreService = new Google\Service\Chromewebstore(...);
* $media = $chromewebstoreService->media;
* </code>
*/
class Media extends \Google\Service\Resource
{
/**
* Upload a new package to an existing item. (media.upload)
*
* @param string $name Required. Name of the item to upload the new package to
* in the form `publishers/{publisherId}/items/{itemId}`
* @param UploadItemPackageRequest $postBody
* @param array $optParams Optional parameters.
* @return UploadItemPackageResponse
* @throws \Google\Service\Exception
*/
public function upload($name, UploadItemPackageRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], UploadItemPackageResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_Chromewebstore_Resource_Media');
@@ -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\Chromewebstore\Resource;
/**
* The "publishers" collection of methods.
* Typical usage is:
* <code>
* $chromewebstoreService = new Google\Service\Chromewebstore(...);
* $publishers = $chromewebstoreService->publishers;
* </code>
*/
class Publishers extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Publishers::class, 'Google_Service_Chromewebstore_Resource_Publishers');
@@ -0,0 +1,111 @@
<?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\Chromewebstore\Resource;
use Google\Service\Chromewebstore\CancelSubmissionRequest;
use Google\Service\Chromewebstore\CancelSubmissionResponse;
use Google\Service\Chromewebstore\FetchItemStatusResponse;
use Google\Service\Chromewebstore\PublishItemRequest;
use Google\Service\Chromewebstore\PublishItemResponse;
use Google\Service\Chromewebstore\SetPublishedDeployPercentageRequest;
use Google\Service\Chromewebstore\SetPublishedDeployPercentageResponse;
/**
* The "items" collection of methods.
* Typical usage is:
* <code>
* $chromewebstoreService = new Google\Service\Chromewebstore(...);
* $items = $chromewebstoreService->publishers_items;
* </code>
*/
class PublishersItems extends \Google\Service\Resource
{
/**
* Cancel the current active submission of an item if present. This can be used
* to cancel the review of a pending submission. (items.cancelSubmission)
*
* @param string $name Required. Name of the item to cancel the submission of in
* the form `publishers/{publisherId}/items/{itemId}`
* @param CancelSubmissionRequest $postBody
* @param array $optParams Optional parameters.
* @return CancelSubmissionResponse
* @throws \Google\Service\Exception
*/
public function cancelSubmission($name, CancelSubmissionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancelSubmission', [$params], CancelSubmissionResponse::class);
}
/**
* Fetch the status of an item. (items.fetchStatus)
*
* @param string $name Required. Name of the item to retrieve the status of in
* the form `publishers/{publisherId}/items/{itemId}`
* @param array $optParams Optional parameters.
* @return FetchItemStatusResponse
* @throws \Google\Service\Exception
*/
public function fetchStatus($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('fetchStatus', [$params], FetchItemStatusResponse::class);
}
/**
* Submit the item to be published in the store. The item will be submitted for
* review unless `skip_review` is set to true, or the item is staged from a
* previous submission with `publish_type` set to `STAGED_PUBLISH`.
* (items.publish)
*
* @param string $name Required. Name of the item in the form
* `publishers/{publisherId}/items/{itemId}`
* @param PublishItemRequest $postBody
* @param array $optParams Optional parameters.
* @return PublishItemResponse
* @throws \Google\Service\Exception
*/
public function publish($name, PublishItemRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], PublishItemResponse::class);
}
/**
* Set a higher target deploy percentage for the item's published revision. This
* will be updated without the item being submitted for review. This is only
* available to items with over 10,000 seven-day active users.
* (items.setPublishedDeployPercentage)
*
* @param string $name Required. Name of the item to update the published
* revision of in the form `publishers/{publisherId}/items/{itemId}`
* @param SetPublishedDeployPercentageRequest $postBody
* @param array $optParams Optional parameters.
* @return SetPublishedDeployPercentageResponse
* @throws \Google\Service\Exception
*/
public function setPublishedDeployPercentage($name, SetPublishedDeployPercentageRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setPublishedDeployPercentage', [$params], SetPublishedDeployPercentageResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublishersItems::class, 'Google_Service_Chromewebstore_Resource_PublishersItems');