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,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\Chromewebstore;
class Blobstore2Info extends \Google\Model
{
/**
* @var string
*/
public $blobGeneration;
/**
* @var string
*/
public $blobId;
/**
* @var string
*/
public $downloadReadHandle;
/**
* @var string
*/
public $readToken;
/**
* @var string
*/
public $uploadMetadataContainer;
/**
* @param string
*/
public function setBlobGeneration($blobGeneration)
{
$this->blobGeneration = $blobGeneration;
}
/**
* @return string
*/
public function getBlobGeneration()
{
return $this->blobGeneration;
}
/**
* @param string
*/
public function setBlobId($blobId)
{
$this->blobId = $blobId;
}
/**
* @return string
*/
public function getBlobId()
{
return $this->blobId;
}
/**
* @param string
*/
public function setDownloadReadHandle($downloadReadHandle)
{
$this->downloadReadHandle = $downloadReadHandle;
}
/**
* @return string
*/
public function getDownloadReadHandle()
{
return $this->downloadReadHandle;
}
/**
* @param string
*/
public function setReadToken($readToken)
{
$this->readToken = $readToken;
}
/**
* @return string
*/
public function getReadToken()
{
return $this->readToken;
}
/**
* @param string
*/
public function setUploadMetadataContainer($uploadMetadataContainer)
{
$this->uploadMetadataContainer = $uploadMetadataContainer;
}
/**
* @return string
*/
public function getUploadMetadataContainer()
{
return $this->uploadMetadataContainer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Blobstore2Info::class, 'Google_Service_Chromewebstore_Blobstore2Info');
@@ -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\Chromewebstore;
class CancelSubmissionRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelSubmissionRequest::class, 'Google_Service_Chromewebstore_CancelSubmissionRequest');
@@ -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\Chromewebstore;
class CancelSubmissionResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelSubmissionResponse::class, 'Google_Service_Chromewebstore_CancelSubmissionResponse');
@@ -0,0 +1,220 @@
<?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;
class CompositeMedia extends \Google\Model
{
/**
* @var string
*/
public $blobRef;
protected $blobstore2InfoType = Blobstore2Info::class;
protected $blobstore2InfoDataType = '';
/**
* @var string
*/
public $cosmoBinaryReference;
/**
* @var string
*/
public $crc32cHash;
/**
* @var string
*/
public $inline;
/**
* @var string
*/
public $length;
/**
* @var string
*/
public $md5Hash;
protected $objectIdType = ObjectId::class;
protected $objectIdDataType = '';
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $referenceType;
/**
* @var string
*/
public $sha1Hash;
/**
* @param string
*/
public function setBlobRef($blobRef)
{
$this->blobRef = $blobRef;
}
/**
* @return string
*/
public function getBlobRef()
{
return $this->blobRef;
}
/**
* @param Blobstore2Info
*/
public function setBlobstore2Info(Blobstore2Info $blobstore2Info)
{
$this->blobstore2Info = $blobstore2Info;
}
/**
* @return Blobstore2Info
*/
public function getBlobstore2Info()
{
return $this->blobstore2Info;
}
/**
* @param string
*/
public function setCosmoBinaryReference($cosmoBinaryReference)
{
$this->cosmoBinaryReference = $cosmoBinaryReference;
}
/**
* @return string
*/
public function getCosmoBinaryReference()
{
return $this->cosmoBinaryReference;
}
/**
* @param string
*/
public function setCrc32cHash($crc32cHash)
{
$this->crc32cHash = $crc32cHash;
}
/**
* @return string
*/
public function getCrc32cHash()
{
return $this->crc32cHash;
}
/**
* @param string
*/
public function setInline($inline)
{
$this->inline = $inline;
}
/**
* @return string
*/
public function getInline()
{
return $this->inline;
}
/**
* @param string
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return string
*/
public function getLength()
{
return $this->length;
}
/**
* @param string
*/
public function setMd5Hash($md5Hash)
{
$this->md5Hash = $md5Hash;
}
/**
* @return string
*/
public function getMd5Hash()
{
return $this->md5Hash;
}
/**
* @param ObjectId
*/
public function setObjectId(ObjectId $objectId)
{
$this->objectId = $objectId;
}
/**
* @return ObjectId
*/
public function getObjectId()
{
return $this->objectId;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setReferenceType($referenceType)
{
$this->referenceType = $referenceType;
}
/**
* @return string
*/
public function getReferenceType()
{
return $this->referenceType;
}
/**
* @param string
*/
public function setSha1Hash($sha1Hash)
{
$this->sha1Hash = $sha1Hash;
}
/**
* @return string
*/
public function getSha1Hash()
{
return $this->sha1Hash;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompositeMedia::class, 'Google_Service_Chromewebstore_CompositeMedia');
@@ -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\Chromewebstore;
class ContentTypeInfo extends \Google\Model
{
/**
* @var string
*/
public $bestGuess;
/**
* @var string
*/
public $fromBytes;
/**
* @var string
*/
public $fromFileName;
/**
* @var string
*/
public $fromHeader;
/**
* @var string
*/
public $fromUrlPath;
/**
* @param string
*/
public function setBestGuess($bestGuess)
{
$this->bestGuess = $bestGuess;
}
/**
* @return string
*/
public function getBestGuess()
{
return $this->bestGuess;
}
/**
* @param string
*/
public function setFromBytes($fromBytes)
{
$this->fromBytes = $fromBytes;
}
/**
* @return string
*/
public function getFromBytes()
{
return $this->fromBytes;
}
/**
* @param string
*/
public function setFromFileName($fromFileName)
{
$this->fromFileName = $fromFileName;
}
/**
* @return string
*/
public function getFromFileName()
{
return $this->fromFileName;
}
/**
* @param string
*/
public function setFromHeader($fromHeader)
{
$this->fromHeader = $fromHeader;
}
/**
* @return string
*/
public function getFromHeader()
{
return $this->fromHeader;
}
/**
* @param string
*/
public function setFromUrlPath($fromUrlPath)
{
$this->fromUrlPath = $fromUrlPath;
}
/**
* @return string
*/
public function getFromUrlPath()
{
return $this->fromUrlPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContentTypeInfo::class, 'Google_Service_Chromewebstore_ContentTypeInfo');
@@ -0,0 +1,50 @@
<?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;
class DeployInfo extends \Google\Model
{
/**
* Required. The current deploy percentage for the release channel
* (nonnegative number between 0 and 100).
*
* @var int
*/
public $deployPercentage;
/**
* Required. The current deploy percentage for the release channel
* (nonnegative number between 0 and 100).
*
* @param int $deployPercentage
*/
public function setDeployPercentage($deployPercentage)
{
$this->deployPercentage = $deployPercentage;
}
/**
* @return int
*/
public function getDeployPercentage()
{
return $this->deployPercentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployInfo::class, 'Google_Service_Chromewebstore_DeployInfo');
@@ -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;
class DiffChecksumsResponse extends \Google\Model
{
protected $checksumsLocationType = CompositeMedia::class;
protected $checksumsLocationDataType = '';
/**
* @var string
*/
public $chunkSizeBytes;
protected $objectLocationType = CompositeMedia::class;
protected $objectLocationDataType = '';
/**
* @var string
*/
public $objectSizeBytes;
/**
* @var string
*/
public $objectVersion;
/**
* @param CompositeMedia
*/
public function setChecksumsLocation(CompositeMedia $checksumsLocation)
{
$this->checksumsLocation = $checksumsLocation;
}
/**
* @return CompositeMedia
*/
public function getChecksumsLocation()
{
return $this->checksumsLocation;
}
/**
* @param string
*/
public function setChunkSizeBytes($chunkSizeBytes)
{
$this->chunkSizeBytes = $chunkSizeBytes;
}
/**
* @return string
*/
public function getChunkSizeBytes()
{
return $this->chunkSizeBytes;
}
/**
* @param CompositeMedia
*/
public function setObjectLocation(CompositeMedia $objectLocation)
{
$this->objectLocation = $objectLocation;
}
/**
* @return CompositeMedia
*/
public function getObjectLocation()
{
return $this->objectLocation;
}
/**
* @param string
*/
public function setObjectSizeBytes($objectSizeBytes)
{
$this->objectSizeBytes = $objectSizeBytes;
}
/**
* @return string
*/
public function getObjectSizeBytes()
{
return $this->objectSizeBytes;
}
/**
* @param string
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffChecksumsResponse::class, 'Google_Service_Chromewebstore_DiffChecksumsResponse');
@@ -0,0 +1,42 @@
<?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;
class DiffDownloadResponse extends \Google\Model
{
protected $objectLocationType = CompositeMedia::class;
protected $objectLocationDataType = '';
/**
* @param CompositeMedia
*/
public function setObjectLocation(CompositeMedia $objectLocation)
{
$this->objectLocation = $objectLocation;
}
/**
* @return CompositeMedia
*/
public function getObjectLocation()
{
return $this->objectLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffDownloadResponse::class, 'Google_Service_Chromewebstore_DiffDownloadResponse');
@@ -0,0 +1,76 @@
<?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;
class DiffUploadRequest extends \Google\Model
{
protected $checksumsInfoType = CompositeMedia::class;
protected $checksumsInfoDataType = '';
protected $objectInfoType = CompositeMedia::class;
protected $objectInfoDataType = '';
/**
* @var string
*/
public $objectVersion;
/**
* @param CompositeMedia
*/
public function setChecksumsInfo(CompositeMedia $checksumsInfo)
{
$this->checksumsInfo = $checksumsInfo;
}
/**
* @return CompositeMedia
*/
public function getChecksumsInfo()
{
return $this->checksumsInfo;
}
/**
* @param CompositeMedia
*/
public function setObjectInfo(CompositeMedia $objectInfo)
{
$this->objectInfo = $objectInfo;
}
/**
* @return CompositeMedia
*/
public function getObjectInfo()
{
return $this->objectInfo;
}
/**
* @param string
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffUploadRequest::class, 'Google_Service_Chromewebstore_DiffUploadRequest');
@@ -0,0 +1,60 @@
<?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;
class DiffUploadResponse extends \Google\Model
{
/**
* @var string
*/
public $objectVersion;
protected $originalObjectType = CompositeMedia::class;
protected $originalObjectDataType = '';
/**
* @param string
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
/**
* @param CompositeMedia
*/
public function setOriginalObject(CompositeMedia $originalObject)
{
$this->originalObject = $originalObject;
}
/**
* @return CompositeMedia
*/
public function getOriginalObject()
{
return $this->originalObject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffUploadResponse::class, 'Google_Service_Chromewebstore_DiffUploadResponse');
@@ -0,0 +1,62 @@
<?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;
class DiffVersionResponse extends \Google\Model
{
/**
* @var string
*/
public $objectSizeBytes;
/**
* @var string
*/
public $objectVersion;
/**
* @param string
*/
public function setObjectSizeBytes($objectSizeBytes)
{
$this->objectSizeBytes = $objectSizeBytes;
}
/**
* @return string
*/
public function getObjectSizeBytes()
{
return $this->objectSizeBytes;
}
/**
* @param string
*/
public function setObjectVersion($objectVersion)
{
$this->objectVersion = $objectVersion;
}
/**
* @return string
*/
public function getObjectVersion()
{
return $this->objectVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiffVersionResponse::class, 'Google_Service_Chromewebstore_DiffVersionResponse');
@@ -0,0 +1,72 @@
<?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;
class DistributionChannel extends \Google\Model
{
/**
* The extension version provided in the manifest of the uploaded package.
*
* @var string
*/
public $crxVersion;
/**
* The current deploy percentage for the release channel (nonnegative number
* between 0 and 100).
*
* @var int
*/
public $deployPercentage;
/**
* The extension version provided in the manifest of the uploaded package.
*
* @param string $crxVersion
*/
public function setCrxVersion($crxVersion)
{
$this->crxVersion = $crxVersion;
}
/**
* @return string
*/
public function getCrxVersion()
{
return $this->crxVersion;
}
/**
* The current deploy percentage for the release channel (nonnegative number
* between 0 and 100).
*
* @param int $deployPercentage
*/
public function setDeployPercentage($deployPercentage)
{
$this->deployPercentage = $deployPercentage;
}
/**
* @return int
*/
public function getDeployPercentage()
{
return $this->deployPercentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DistributionChannel::class, 'Google_Service_Chromewebstore_DistributionChannel');
@@ -0,0 +1,62 @@
<?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;
class DownloadParameters extends \Google\Model
{
/**
* @var bool
*/
public $allowGzipCompression;
/**
* @var bool
*/
public $ignoreRange;
/**
* @param bool
*/
public function setAllowGzipCompression($allowGzipCompression)
{
$this->allowGzipCompression = $allowGzipCompression;
}
/**
* @return bool
*/
public function getAllowGzipCompression()
{
return $this->allowGzipCompression;
}
/**
* @param bool
*/
public function setIgnoreRange($ignoreRange)
{
$this->ignoreRange = $ignoreRange;
}
/**
* @return bool
*/
public function getIgnoreRange()
{
return $this->ignoreRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DownloadParameters::class, 'Google_Service_Chromewebstore_DownloadParameters');
@@ -0,0 +1,227 @@
<?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;
class FetchItemStatusResponse extends \Google\Model
{
/**
* The default value.
*/
public const LAST_ASYNC_UPLOAD_STATE_UPLOAD_STATE_UNSPECIFIED = 'UPLOAD_STATE_UNSPECIFIED';
/**
* The upload succeeded.
*/
public const LAST_ASYNC_UPLOAD_STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The upload is currently being processed.
*/
public const LAST_ASYNC_UPLOAD_STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The upload failed.
*/
public const LAST_ASYNC_UPLOAD_STATE_FAILED = 'FAILED';
/**
* Used as the value of `lastAsyncUploadState` in a `fetchStatus` response
* indicating that an upload attempt was not found.
*/
public const LAST_ASYNC_UPLOAD_STATE_NOT_FOUND = 'NOT_FOUND';
/**
* Output only. The ID of the item.
*
* @var string
*/
public $itemId;
/**
* Output only. The state of the last async upload for an item. Only set when
* there has been an async upload for the item in the past 24 hours.
*
* @var string
*/
public $lastAsyncUploadState;
/**
* The name of the requested item.
*
* @var string
*/
public $name;
/**
* The public key of the item, which may be generated by the store.
*
* @var string
*/
public $publicKey;
protected $publishedItemRevisionStatusType = ItemRevisionStatus::class;
protected $publishedItemRevisionStatusDataType = '';
protected $submittedItemRevisionStatusType = ItemRevisionStatus::class;
protected $submittedItemRevisionStatusDataType = '';
/**
* If true, the item has been taken down for a policy violation. Check the
* developer dashboard for details.
*
* @var bool
*/
public $takenDown;
/**
* If true, the item has been warned for a policy violation and will be taken
* down if not resolved. Check the developer dashboard for details.
*
* @var bool
*/
public $warned;
/**
* Output only. The ID of the item.
*
* @param string $itemId
*/
public function setItemId($itemId)
{
$this->itemId = $itemId;
}
/**
* @return string
*/
public function getItemId()
{
return $this->itemId;
}
/**
* Output only. The state of the last async upload for an item. Only set when
* there has been an async upload for the item in the past 24 hours.
*
* Accepted values: UPLOAD_STATE_UNSPECIFIED, SUCCEEDED, IN_PROGRESS, FAILED,
* NOT_FOUND
*
* @param self::LAST_ASYNC_UPLOAD_STATE_* $lastAsyncUploadState
*/
public function setLastAsyncUploadState($lastAsyncUploadState)
{
$this->lastAsyncUploadState = $lastAsyncUploadState;
}
/**
* @return self::LAST_ASYNC_UPLOAD_STATE_*
*/
public function getLastAsyncUploadState()
{
return $this->lastAsyncUploadState;
}
/**
* The name of the requested item.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The public key of the item, which may be generated by the store.
*
* @param string $publicKey
*/
public function setPublicKey($publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return string
*/
public function getPublicKey()
{
return $this->publicKey;
}
/**
* Output only. Status of the current published revision of the item. Will be
* unset if the item is not published.
*
* @param ItemRevisionStatus $publishedItemRevisionStatus
*/
public function setPublishedItemRevisionStatus(ItemRevisionStatus $publishedItemRevisionStatus)
{
$this->publishedItemRevisionStatus = $publishedItemRevisionStatus;
}
/**
* @return ItemRevisionStatus
*/
public function getPublishedItemRevisionStatus()
{
return $this->publishedItemRevisionStatus;
}
/**
* Status of the item revision submitted to be published. Will be unset if the
* item has not been submitted for publishing since the last successful
* publish.
*
* @param ItemRevisionStatus $submittedItemRevisionStatus
*/
public function setSubmittedItemRevisionStatus(ItemRevisionStatus $submittedItemRevisionStatus)
{
$this->submittedItemRevisionStatus = $submittedItemRevisionStatus;
}
/**
* @return ItemRevisionStatus
*/
public function getSubmittedItemRevisionStatus()
{
return $this->submittedItemRevisionStatus;
}
/**
* If true, the item has been taken down for a policy violation. Check the
* developer dashboard for details.
*
* @param bool $takenDown
*/
public function setTakenDown($takenDown)
{
$this->takenDown = $takenDown;
}
/**
* @return bool
*/
public function getTakenDown()
{
return $this->takenDown;
}
/**
* If true, the item has been warned for a policy violation and will be taken
* down if not resolved. Check the developer dashboard for details.
*
* @param bool $warned
*/
public function setWarned($warned)
{
$this->warned = $warned;
}
/**
* @return bool
*/
public function getWarned()
{
return $this->warned;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchItemStatusResponse::class, 'Google_Service_Chromewebstore_FetchItemStatusResponse');
@@ -0,0 +1,133 @@
<?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;
class Item extends \Google\Collection
{
protected $collection_key = 'itemError';
/**
* @var string
*/
public $crxVersion;
/**
* @var string
*/
public $id;
protected $itemErrorType = ItemError::class;
protected $itemErrorDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $publicKey;
/**
* @var string
*/
public $uploadState;
/**
* @param string
*/
public function setCrxVersion($crxVersion)
{
$this->crxVersion = $crxVersion;
}
/**
* @return string
*/
public function getCrxVersion()
{
return $this->crxVersion;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param ItemError[]
*/
public function setItemError($itemError)
{
$this->itemError = $itemError;
}
/**
* @return ItemError[]
*/
public function getItemError()
{
return $this->itemError;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPublicKey($publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return string
*/
public function getPublicKey()
{
return $this->publicKey;
}
/**
* @param string
*/
public function setUploadState($uploadState)
{
$this->uploadState = $uploadState;
}
/**
* @return string
*/
public function getUploadState()
{
return $this->uploadState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Item::class, 'Google_Service_Chromewebstore_Item');
@@ -0,0 +1,102 @@
<?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;
class Item2 extends \Google\Collection
{
protected $collection_key = 'statusDetail';
protected $internal_gapi_mappings = [
"itemId" => "item_id",
];
/**
* @var string
*/
public $itemId;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $status;
/**
* @var string[]
*/
public $statusDetail;
/**
* @param string
*/
public function setItemId($itemId)
{
$this->itemId = $itemId;
}
/**
* @return string
*/
public function getItemId()
{
return $this->itemId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string[]
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string[]
*/
public function setStatusDetail($statusDetail)
{
$this->statusDetail = $statusDetail;
}
/**
* @return string[]
*/
public function getStatusDetail()
{
return $this->statusDetail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Item2::class, 'Google_Service_Chromewebstore_Item2');
@@ -0,0 +1,66 @@
<?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;
class ItemError extends \Google\Model
{
protected $internal_gapi_mappings = [
"errorCode" => "error_code",
"errorDetail" => "error_detail",
];
/**
* @var string
*/
public $errorCode;
/**
* @var string
*/
public $errorDetail;
/**
* @param string
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return string
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* @param string
*/
public function setErrorDetail($errorDetail)
{
$this->errorDetail = $errorDetail;
}
/**
* @return string
*/
public function getErrorDetail()
{
return $this->errorDetail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ItemError::class, 'Google_Service_Chromewebstore_ItemError');
@@ -0,0 +1,98 @@
<?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;
class ItemRevisionStatus extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const STATE_ITEM_STATE_UNSPECIFIED = 'ITEM_STATE_UNSPECIFIED';
/**
* The item is pending review.
*/
public const STATE_PENDING_REVIEW = 'PENDING_REVIEW';
/**
* The item has been approved and is ready to be published.
*/
public const STATE_STAGED = 'STAGED';
/**
* The item is published publicly.
*/
public const STATE_PUBLISHED = 'PUBLISHED';
/**
* The item is published to trusted testers.
*/
public const STATE_PUBLISHED_TO_TESTERS = 'PUBLISHED_TO_TESTERS';
/**
* The item has been rejected for publishing.
*/
public const STATE_REJECTED = 'REJECTED';
/**
* The item submission has been cancelled.
*/
public const STATE_CANCELLED = 'CANCELLED';
protected $collection_key = 'distributionChannels';
protected $distributionChannelsType = DistributionChannel::class;
protected $distributionChannelsDataType = 'array';
/**
* Output only. Current state of the item
*
* @var string
*/
public $state;
/**
* Details on the package of the item
*
* @param DistributionChannel[] $distributionChannels
*/
public function setDistributionChannels($distributionChannels)
{
$this->distributionChannels = $distributionChannels;
}
/**
* @return DistributionChannel[]
*/
public function getDistributionChannels()
{
return $this->distributionChannels;
}
/**
* Output only. Current state of the item
*
* Accepted values: ITEM_STATE_UNSPECIFIED, PENDING_REVIEW, STAGED, PUBLISHED,
* PUBLISHED_TO_TESTERS, REJECTED, CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ItemRevisionStatus::class, 'Google_Service_Chromewebstore_ItemRevisionStatus');
@@ -0,0 +1,547 @@
<?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;
class Media extends \Google\Collection
{
protected $collection_key = 'compositeMedia';
/**
* @var string
*/
public $algorithm;
/**
* @var string
*/
public $bigstoreObjectRef;
/**
* @var string
*/
public $blobRef;
protected $blobstore2InfoType = Blobstore2Info::class;
protected $blobstore2InfoDataType = '';
protected $compositeMediaType = CompositeMedia::class;
protected $compositeMediaDataType = 'array';
/**
* @var string
*/
public $contentType;
protected $contentTypeInfoType = ContentTypeInfo::class;
protected $contentTypeInfoDataType = '';
/**
* @var string
*/
public $cosmoBinaryReference;
/**
* @var string
*/
public $crc32cHash;
protected $diffChecksumsResponseType = DiffChecksumsResponse::class;
protected $diffChecksumsResponseDataType = '';
protected $diffDownloadResponseType = DiffDownloadResponse::class;
protected $diffDownloadResponseDataType = '';
protected $diffUploadRequestType = DiffUploadRequest::class;
protected $diffUploadRequestDataType = '';
protected $diffUploadResponseType = DiffUploadResponse::class;
protected $diffUploadResponseDataType = '';
protected $diffVersionResponseType = DiffVersionResponse::class;
protected $diffVersionResponseDataType = '';
protected $downloadParametersType = DownloadParameters::class;
protected $downloadParametersDataType = '';
/**
* @var string
*/
public $filename;
/**
* @var string
*/
public $hash;
/**
* @var bool
*/
public $hashVerified;
/**
* @var string
*/
public $inline;
/**
* @var bool
*/
public $isPotentialRetry;
/**
* @var string
*/
public $length;
/**
* @var string
*/
public $md5Hash;
/**
* @var string
*/
public $mediaId;
protected $objectIdType = ObjectId::class;
protected $objectIdDataType = '';
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $referenceType;
/**
* @var string
*/
public $sha1Hash;
/**
* @var string
*/
public $sha256Hash;
/**
* @var string
*/
public $timestamp;
/**
* @var string
*/
public $token;
/**
* @param string
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return string
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* @param string
*/
public function setBigstoreObjectRef($bigstoreObjectRef)
{
$this->bigstoreObjectRef = $bigstoreObjectRef;
}
/**
* @return string
*/
public function getBigstoreObjectRef()
{
return $this->bigstoreObjectRef;
}
/**
* @param string
*/
public function setBlobRef($blobRef)
{
$this->blobRef = $blobRef;
}
/**
* @return string
*/
public function getBlobRef()
{
return $this->blobRef;
}
/**
* @param Blobstore2Info
*/
public function setBlobstore2Info(Blobstore2Info $blobstore2Info)
{
$this->blobstore2Info = $blobstore2Info;
}
/**
* @return Blobstore2Info
*/
public function getBlobstore2Info()
{
return $this->blobstore2Info;
}
/**
* @param CompositeMedia[]
*/
public function setCompositeMedia($compositeMedia)
{
$this->compositeMedia = $compositeMedia;
}
/**
* @return CompositeMedia[]
*/
public function getCompositeMedia()
{
return $this->compositeMedia;
}
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param ContentTypeInfo
*/
public function setContentTypeInfo(ContentTypeInfo $contentTypeInfo)
{
$this->contentTypeInfo = $contentTypeInfo;
}
/**
* @return ContentTypeInfo
*/
public function getContentTypeInfo()
{
return $this->contentTypeInfo;
}
/**
* @param string
*/
public function setCosmoBinaryReference($cosmoBinaryReference)
{
$this->cosmoBinaryReference = $cosmoBinaryReference;
}
/**
* @return string
*/
public function getCosmoBinaryReference()
{
return $this->cosmoBinaryReference;
}
/**
* @param string
*/
public function setCrc32cHash($crc32cHash)
{
$this->crc32cHash = $crc32cHash;
}
/**
* @return string
*/
public function getCrc32cHash()
{
return $this->crc32cHash;
}
/**
* @param DiffChecksumsResponse
*/
public function setDiffChecksumsResponse(DiffChecksumsResponse $diffChecksumsResponse)
{
$this->diffChecksumsResponse = $diffChecksumsResponse;
}
/**
* @return DiffChecksumsResponse
*/
public function getDiffChecksumsResponse()
{
return $this->diffChecksumsResponse;
}
/**
* @param DiffDownloadResponse
*/
public function setDiffDownloadResponse(DiffDownloadResponse $diffDownloadResponse)
{
$this->diffDownloadResponse = $diffDownloadResponse;
}
/**
* @return DiffDownloadResponse
*/
public function getDiffDownloadResponse()
{
return $this->diffDownloadResponse;
}
/**
* @param DiffUploadRequest
*/
public function setDiffUploadRequest(DiffUploadRequest $diffUploadRequest)
{
$this->diffUploadRequest = $diffUploadRequest;
}
/**
* @return DiffUploadRequest
*/
public function getDiffUploadRequest()
{
return $this->diffUploadRequest;
}
/**
* @param DiffUploadResponse
*/
public function setDiffUploadResponse(DiffUploadResponse $diffUploadResponse)
{
$this->diffUploadResponse = $diffUploadResponse;
}
/**
* @return DiffUploadResponse
*/
public function getDiffUploadResponse()
{
return $this->diffUploadResponse;
}
/**
* @param DiffVersionResponse
*/
public function setDiffVersionResponse(DiffVersionResponse $diffVersionResponse)
{
$this->diffVersionResponse = $diffVersionResponse;
}
/**
* @return DiffVersionResponse
*/
public function getDiffVersionResponse()
{
return $this->diffVersionResponse;
}
/**
* @param DownloadParameters
*/
public function setDownloadParameters(DownloadParameters $downloadParameters)
{
$this->downloadParameters = $downloadParameters;
}
/**
* @return DownloadParameters
*/
public function getDownloadParameters()
{
return $this->downloadParameters;
}
/**
* @param string
*/
public function setFilename($filename)
{
$this->filename = $filename;
}
/**
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* @param string
*/
public function setHash($hash)
{
$this->hash = $hash;
}
/**
* @return string
*/
public function getHash()
{
return $this->hash;
}
/**
* @param bool
*/
public function setHashVerified($hashVerified)
{
$this->hashVerified = $hashVerified;
}
/**
* @return bool
*/
public function getHashVerified()
{
return $this->hashVerified;
}
/**
* @param string
*/
public function setInline($inline)
{
$this->inline = $inline;
}
/**
* @return string
*/
public function getInline()
{
return $this->inline;
}
/**
* @param bool
*/
public function setIsPotentialRetry($isPotentialRetry)
{
$this->isPotentialRetry = $isPotentialRetry;
}
/**
* @return bool
*/
public function getIsPotentialRetry()
{
return $this->isPotentialRetry;
}
/**
* @param string
*/
public function setLength($length)
{
$this->length = $length;
}
/**
* @return string
*/
public function getLength()
{
return $this->length;
}
/**
* @param string
*/
public function setMd5Hash($md5Hash)
{
$this->md5Hash = $md5Hash;
}
/**
* @return string
*/
public function getMd5Hash()
{
return $this->md5Hash;
}
/**
* @param string
*/
public function setMediaId($mediaId)
{
$this->mediaId = $mediaId;
}
/**
* @return string
*/
public function getMediaId()
{
return $this->mediaId;
}
/**
* @param ObjectId
*/
public function setObjectId(ObjectId $objectId)
{
$this->objectId = $objectId;
}
/**
* @return ObjectId
*/
public function getObjectId()
{
return $this->objectId;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setReferenceType($referenceType)
{
$this->referenceType = $referenceType;
}
/**
* @return string
*/
public function getReferenceType()
{
return $this->referenceType;
}
/**
* @param string
*/
public function setSha1Hash($sha1Hash)
{
$this->sha1Hash = $sha1Hash;
}
/**
* @return string
*/
public function getSha1Hash()
{
return $this->sha1Hash;
}
/**
* @param string
*/
public function setSha256Hash($sha256Hash)
{
$this->sha256Hash = $sha256Hash;
}
/**
* @return string
*/
public function getSha256Hash()
{
return $this->sha256Hash;
}
/**
* @param string
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_Chromewebstore_Media');
@@ -0,0 +1,206 @@
<?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;
class MediaRequestInfo extends \Google\Model
{
/**
* @var string
*/
public $currentBytes;
/**
* @var string
*/
public $customData;
/**
* @var string
*/
public $diffObjectVersion;
/**
* @var int
*/
public $finalStatus;
/**
* @var string
*/
public $notificationType;
/**
* @var string
*/
public $physicalHeaders;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $requestReceivedParamsServingInfo;
/**
* @var string
*/
public $totalBytes;
/**
* @var bool
*/
public $totalBytesIsEstimated;
/**
* @param string
*/
public function setCurrentBytes($currentBytes)
{
$this->currentBytes = $currentBytes;
}
/**
* @return string
*/
public function getCurrentBytes()
{
return $this->currentBytes;
}
/**
* @param string
*/
public function setCustomData($customData)
{
$this->customData = $customData;
}
/**
* @return string
*/
public function getCustomData()
{
return $this->customData;
}
/**
* @param string
*/
public function setDiffObjectVersion($diffObjectVersion)
{
$this->diffObjectVersion = $diffObjectVersion;
}
/**
* @return string
*/
public function getDiffObjectVersion()
{
return $this->diffObjectVersion;
}
/**
* @param int
*/
public function setFinalStatus($finalStatus)
{
$this->finalStatus = $finalStatus;
}
/**
* @return int
*/
public function getFinalStatus()
{
return $this->finalStatus;
}
/**
* @param string
*/
public function setNotificationType($notificationType)
{
$this->notificationType = $notificationType;
}
/**
* @return string
*/
public function getNotificationType()
{
return $this->notificationType;
}
/**
* @param string
*/
public function setPhysicalHeaders($physicalHeaders)
{
$this->physicalHeaders = $physicalHeaders;
}
/**
* @return string
*/
public function getPhysicalHeaders()
{
return $this->physicalHeaders;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param string
*/
public function setRequestReceivedParamsServingInfo($requestReceivedParamsServingInfo)
{
$this->requestReceivedParamsServingInfo = $requestReceivedParamsServingInfo;
}
/**
* @return string
*/
public function getRequestReceivedParamsServingInfo()
{
return $this->requestReceivedParamsServingInfo;
}
/**
* @param string
*/
public function setTotalBytes($totalBytes)
{
$this->totalBytes = $totalBytes;
}
/**
* @return string
*/
public function getTotalBytes()
{
return $this->totalBytes;
}
/**
* @param bool
*/
public function setTotalBytesIsEstimated($totalBytesIsEstimated)
{
$this->totalBytesIsEstimated = $totalBytesIsEstimated;
}
/**
* @return bool
*/
public function getTotalBytesIsEstimated()
{
return $this->totalBytesIsEstimated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MediaRequestInfo::class, 'Google_Service_Chromewebstore_MediaRequestInfo');
@@ -0,0 +1,80 @@
<?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;
class ObjectId extends \Google\Model
{
/**
* @var string
*/
public $bucketName;
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $objectName;
/**
* @param string
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param string
*/
public function setObjectName($objectName)
{
$this->objectName = $objectName;
}
/**
* @return string
*/
public function getObjectName()
{
return $this->objectName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectId::class, 'Google_Service_Chromewebstore_ObjectId');
@@ -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\Chromewebstore;
class PublishItemRequest extends \Google\Collection
{
/**
* Default value. This is the same as DEFAULT_PUBLISH.
*/
public const PUBLISH_TYPE_PUBLISH_TYPE_UNSPECIFIED = 'PUBLISH_TYPE_UNSPECIFIED';
/**
* The submission will be published immediately after being approved.
*/
public const PUBLISH_TYPE_DEFAULT_PUBLISH = 'DEFAULT_PUBLISH';
/**
* After approval the submission will be staged and can then be published by
* the developer.
*/
public const PUBLISH_TYPE_STAGED_PUBLISH = 'STAGED_PUBLISH';
protected $collection_key = 'deployInfos';
/**
* Optional. When set to true the request will fail if there are any warnings
* during validation and the details will be included in the error_details.
* Otherwise warnings are treated as non-blocking and will be ignored for
* validation but will be included in the response for inspection. Defaults to
* `false` if unset.
*
* @var bool
*/
public $blockOnWarnings;
protected $deployInfosType = DeployInfo::class;
protected $deployInfosDataType = 'array';
/**
* Optional. Use this to control if the item is published immediately on
* approval or staged for publishing in the future. Defaults to
* `DEFAULT_PUBLISH` if unset.
*
* @var string
*/
public $publishType;
/**
* Optional. Whether to attempt to skip item review. The API will validate if
* the item qualifies and return a validation error if the item requires
* review. Defaults to `false` if unset.
*
* @var bool
*/
public $skipReview;
/**
* Optional. When set to true the request will fail if there are any warnings
* during validation and the details will be included in the error_details.
* Otherwise warnings are treated as non-blocking and will be ignored for
* validation but will be included in the response for inspection. Defaults to
* `false` if unset.
*
* @param bool $blockOnWarnings
*/
public function setBlockOnWarnings($blockOnWarnings)
{
$this->blockOnWarnings = $blockOnWarnings;
}
/**
* @return bool
*/
public function getBlockOnWarnings()
{
return $this->blockOnWarnings;
}
/**
* Optional. Additional deploy information including the desired initial
* percentage rollout. Defaults to the current value saved in the developer
* dashboard if unset.
*
* @param DeployInfo[] $deployInfos
*/
public function setDeployInfos($deployInfos)
{
$this->deployInfos = $deployInfos;
}
/**
* @return DeployInfo[]
*/
public function getDeployInfos()
{
return $this->deployInfos;
}
/**
* Optional. Use this to control if the item is published immediately on
* approval or staged for publishing in the future. Defaults to
* `DEFAULT_PUBLISH` if unset.
*
* Accepted values: PUBLISH_TYPE_UNSPECIFIED, DEFAULT_PUBLISH, STAGED_PUBLISH
*
* @param self::PUBLISH_TYPE_* $publishType
*/
public function setPublishType($publishType)
{
$this->publishType = $publishType;
}
/**
* @return self::PUBLISH_TYPE_*
*/
public function getPublishType()
{
return $this->publishType;
}
/**
* Optional. Whether to attempt to skip item review. The API will validate if
* the item qualifies and return a validation error if the item requires
* review. Defaults to `false` if unset.
*
* @param bool $skipReview
*/
public function setSkipReview($skipReview)
{
$this->skipReview = $skipReview;
}
/**
* @return bool
*/
public function getSkipReview()
{
return $this->skipReview;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublishItemRequest::class, 'Google_Service_Chromewebstore_PublishItemRequest');
@@ -0,0 +1,141 @@
<?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;
class PublishItemResponse extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const STATE_ITEM_STATE_UNSPECIFIED = 'ITEM_STATE_UNSPECIFIED';
/**
* The item is pending review.
*/
public const STATE_PENDING_REVIEW = 'PENDING_REVIEW';
/**
* The item has been approved and is ready to be published.
*/
public const STATE_STAGED = 'STAGED';
/**
* The item is published publicly.
*/
public const STATE_PUBLISHED = 'PUBLISHED';
/**
* The item is published to trusted testers.
*/
public const STATE_PUBLISHED_TO_TESTERS = 'PUBLISHED_TO_TESTERS';
/**
* The item has been rejected for publishing.
*/
public const STATE_REJECTED = 'REJECTED';
/**
* The item submission has been cancelled.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* Output only. The ID of the item.
*
* @var string
*/
public $itemId;
/**
* The name of the item that was submitted
*
* @var string
*/
public $name;
/**
* Output only. The current state of the submission.
*
* @var string
*/
public $state;
protected $warningInfoType = WarningsInfo::class;
protected $warningInfoDataType = '';
/**
* Output only. The ID of the item.
*
* @param string $itemId
*/
public function setItemId($itemId)
{
$this->itemId = $itemId;
}
/**
* @return string
*/
public function getItemId()
{
return $this->itemId;
}
/**
* The name of the item that was submitted
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The current state of the submission.
*
* Accepted values: ITEM_STATE_UNSPECIFIED, PENDING_REVIEW, STAGED, PUBLISHED,
* PUBLISHED_TO_TESTERS, REJECTED, CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Non-blocking warnings encountered during the request.
*
* @param WarningsInfo $warningInfo
*/
public function setWarningInfo(WarningsInfo $warningInfo)
{
$this->warningInfo = $warningInfo;
}
/**
* @return WarningsInfo
*/
public function getWarningInfo()
{
return $this->warningInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublishItemResponse::class, 'Google_Service_Chromewebstore_PublishItemResponse');
@@ -0,0 +1,80 @@
<?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;
class PublishRequest extends \Google\Model
{
/**
* @var int
*/
public $deployPercentage;
/**
* @var bool
*/
public $reviewExemption;
/**
* @var string
*/
public $target;
/**
* @param int
*/
public function setDeployPercentage($deployPercentage)
{
$this->deployPercentage = $deployPercentage;
}
/**
* @return int
*/
public function getDeployPercentage()
{
return $this->deployPercentage;
}
/**
* @param bool
*/
public function setReviewExemption($reviewExemption)
{
$this->reviewExemption = $reviewExemption;
}
/**
* @return bool
*/
public function getReviewExemption()
{
return $this->reviewExemption;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublishRequest::class, 'Google_Service_Chromewebstore_PublishRequest');
@@ -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');
@@ -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;
class SetPublishedDeployPercentageRequest extends \Google\Model
{
/**
* Required. Unscaled percentage value for the publised revision (nonnegative
* number between 0 and 100). It must be larger than the existing target
* percentage.
*
* @var int
*/
public $deployPercentage;
/**
* Required. Unscaled percentage value for the publised revision (nonnegative
* number between 0 and 100). It must be larger than the existing target
* percentage.
*
* @param int $deployPercentage
*/
public function setDeployPercentage($deployPercentage)
{
$this->deployPercentage = $deployPercentage;
}
/**
* @return int
*/
public function getDeployPercentage()
{
return $this->deployPercentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetPublishedDeployPercentageRequest::class, 'Google_Service_Chromewebstore_SetPublishedDeployPercentageRequest');
@@ -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\Chromewebstore;
class SetPublishedDeployPercentageResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetPublishedDeployPercentageResponse::class, 'Google_Service_Chromewebstore_SetPublishedDeployPercentageResponse');
@@ -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\Chromewebstore;
class UploadItemPackageRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UploadItemPackageRequest::class, 'Google_Service_Chromewebstore_UploadItemPackageRequest');
@@ -0,0 +1,146 @@
<?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;
class UploadItemPackageResponse extends \Google\Model
{
/**
* The default value.
*/
public const UPLOAD_STATE_UPLOAD_STATE_UNSPECIFIED = 'UPLOAD_STATE_UNSPECIFIED';
/**
* The upload succeeded.
*/
public const UPLOAD_STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The upload is currently being processed.
*/
public const UPLOAD_STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The upload failed.
*/
public const UPLOAD_STATE_FAILED = 'FAILED';
/**
* Used as the value of `lastAsyncUploadState` in a `fetchStatus` response
* indicating that an upload attempt was not found.
*/
public const UPLOAD_STATE_NOT_FOUND = 'NOT_FOUND';
/**
* The extension version provided in the manifest of the uploaded package.
* This will not be set if the upload is still in progress (`upload_state` is
* `UPLOAD_IN_PROGRESS`).
*
* @var string
*/
public $crxVersion;
/**
* Output only. The ID of the item the package was uploaded to.
*
* @var string
*/
public $itemId;
/**
* The name of the item the package was uploaded to.
*
* @var string
*/
public $name;
/**
* Output only. The state of the upload. If `upload_state` is
* `UPLOAD_IN_PROGRESS`, you can poll for updates using the fetchStatus
* method.
*
* @var string
*/
public $uploadState;
/**
* The extension version provided in the manifest of the uploaded package.
* This will not be set if the upload is still in progress (`upload_state` is
* `UPLOAD_IN_PROGRESS`).
*
* @param string $crxVersion
*/
public function setCrxVersion($crxVersion)
{
$this->crxVersion = $crxVersion;
}
/**
* @return string
*/
public function getCrxVersion()
{
return $this->crxVersion;
}
/**
* Output only. The ID of the item the package was uploaded to.
*
* @param string $itemId
*/
public function setItemId($itemId)
{
$this->itemId = $itemId;
}
/**
* @return string
*/
public function getItemId()
{
return $this->itemId;
}
/**
* The name of the item the package was uploaded to.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The state of the upload. If `upload_state` is
* `UPLOAD_IN_PROGRESS`, you can poll for updates using the fetchStatus
* method.
*
* Accepted values: UPLOAD_STATE_UNSPECIFIED, SUCCEEDED, IN_PROGRESS, FAILED,
* NOT_FOUND
*
* @param self::UPLOAD_STATE_* $uploadState
*/
public function setUploadState($uploadState)
{
$this->uploadState = $uploadState;
}
/**
* @return self::UPLOAD_STATE_*
*/
public function getUploadState()
{
return $this->uploadState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UploadItemPackageResponse::class, 'Google_Service_Chromewebstore_UploadItemPackageResponse');
@@ -0,0 +1,78 @@
<?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;
class Warning extends \Google\Model
{
/**
* A description of the warning. Developers should use this message to
* understand the warning and take appropriate action to resolve the issue.
*
* @var string
*/
public $description;
/**
* The reason for the warning. This is a constant value that identifies the
* proximate cause of the warning. This should be at most 63 characters and
* match a regular expression of `A-Z+[A-Z0-9]`, which represents
* UPPER_SNAKE_CASE.
*
* @var string
*/
public $reason;
/**
* A description of the warning. Developers should use this message to
* understand the warning and take appropriate action to resolve the issue.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The reason for the warning. This is a constant value that identifies the
* proximate cause of the warning. This should be at most 63 characters and
* match a regular expression of `A-Z+[A-Z0-9]`, which represents
* UPPER_SNAKE_CASE.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Warning::class, 'Google_Service_Chromewebstore_Warning');
@@ -0,0 +1,45 @@
<?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;
class WarningsInfo extends \Google\Collection
{
protected $collection_key = 'warnings';
protected $warningsType = Warning::class;
protected $warningsDataType = 'array';
/**
* All warnings encountered during the request.
*
* @param Warning[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return Warning[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WarningsInfo::class, 'Google_Service_Chromewebstore_WarningsInfo');