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,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\Storage;
class AdvanceRelocateBucketOperationRequest extends \Google\Model
{
/**
* Specifies the time when the relocation will revert to the sync stage if the
* relocation hasn't succeeded.
*
* @var string
*/
public $expireTime;
/**
* Specifies the duration after which the relocation will revert to the sync
* stage if the relocation hasn't succeeded. Optional, if not supplied, a
* default value of 12h will be used.
*
* @var string
*/
public $ttl;
/**
* Specifies the time when the relocation will revert to the sync stage if the
* relocation hasn't succeeded.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Specifies the duration after which the relocation will revert to the sync
* stage if the relocation hasn't succeeded. Optional, if not supplied, a
* default value of 12h will be used.
*
* @param string $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvanceRelocateBucketOperationRequest::class, 'Google_Service_Storage_AdvanceRelocateBucketOperationRequest');
@@ -0,0 +1,318 @@
<?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\Storage;
class AnywhereCache extends \Google\Model
{
/**
* The cache-level entry admission policy.
*
* @var string
*/
public $admissionPolicy;
/**
* The ID of the Anywhere cache instance.
*
* @var string
*/
public $anywhereCacheId;
/**
* The name of the bucket containing this cache instance.
*
* @var string
*/
public $bucket;
/**
* The creation time of the cache instance in RFC 3339 format.
*
* @var string
*/
public $createTime;
/**
* The ID of the resource, including the project number, bucket name and
* anywhere cache ID.
*
* @var string
*/
public $id;
/**
* Specifies whether objects are ingested into the cache upon write.
*
* @var bool
*/
public $ingestOnWrite;
/**
* The kind of item this is. For Anywhere Cache, this is always
* storage#anywhereCache.
*
* @var string
*/
public $kind;
/**
* True if the cache instance has an active Update long-running operation.
*
* @var bool
*/
public $pendingUpdate;
/**
* The link to this cache instance.
*
* @var string
*/
public $selfLink;
/**
* The current state of the cache instance.
*
* @var string
*/
public $state;
/**
* The TTL of all cache entries in whole seconds. e.g., "7200s".
*
* @var string
*/
public $ttl;
/**
* The modification time of the cache instance metadata in RFC 3339 format.
*
* @var string
*/
public $updateTime;
/**
* The zone in which the cache instance is running. For example, us-
* central1-a.
*
* @var string
*/
public $zone;
/**
* The cache-level entry admission policy.
*
* @param string $admissionPolicy
*/
public function setAdmissionPolicy($admissionPolicy)
{
$this->admissionPolicy = $admissionPolicy;
}
/**
* @return string
*/
public function getAdmissionPolicy()
{
return $this->admissionPolicy;
}
/**
* The ID of the Anywhere cache instance.
*
* @param string $anywhereCacheId
*/
public function setAnywhereCacheId($anywhereCacheId)
{
$this->anywhereCacheId = $anywhereCacheId;
}
/**
* @return string
*/
public function getAnywhereCacheId()
{
return $this->anywhereCacheId;
}
/**
* The name of the bucket containing this cache instance.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* The creation time of the cache instance in RFC 3339 format.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The ID of the resource, including the project number, bucket name and
* anywhere cache ID.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Specifies whether objects are ingested into the cache upon write.
*
* @param bool $ingestOnWrite
*/
public function setIngestOnWrite($ingestOnWrite)
{
$this->ingestOnWrite = $ingestOnWrite;
}
/**
* @return bool
*/
public function getIngestOnWrite()
{
return $this->ingestOnWrite;
}
/**
* The kind of item this is. For Anywhere Cache, this is always
* storage#anywhereCache.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* True if the cache instance has an active Update long-running operation.
*
* @param bool $pendingUpdate
*/
public function setPendingUpdate($pendingUpdate)
{
$this->pendingUpdate = $pendingUpdate;
}
/**
* @return bool
*/
public function getPendingUpdate()
{
return $this->pendingUpdate;
}
/**
* The link to this cache instance.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The current state of the cache instance.
*
* @param string $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* The TTL of all cache entries in whole seconds. e.g., "7200s".
*
* @param string $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
/**
* The modification time of the cache instance metadata in RFC 3339 format.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* The zone in which the cache instance is running. For example, us-
* central1-a.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnywhereCache::class, 'Google_Service_Storage_AnywhereCache');
@@ -0,0 +1,93 @@
<?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\Storage;
class AnywhereCaches extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = AnywhereCache::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of Anywhere Caches, this is always
* storage#anywhereCaches.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of items.
*
* @param AnywhereCache[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AnywhereCache[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of Anywhere Caches, this is always
* storage#anywhereCaches.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @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(AnywhereCaches::class, 'Google_Service_Storage_AnywhereCaches');
+850
View File
@@ -0,0 +1,850 @@
<?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\Storage;
class Bucket extends \Google\Collection
{
protected $collection_key = 'defaultObjectAcl';
protected $aclType = BucketAccessControl::class;
protected $aclDataType = 'array';
protected $autoclassType = BucketAutoclass::class;
protected $autoclassDataType = '';
protected $billingType = BucketBilling::class;
protected $billingDataType = '';
protected $corsType = BucketCors::class;
protected $corsDataType = 'array';
protected $customPlacementConfigType = BucketCustomPlacementConfig::class;
protected $customPlacementConfigDataType = '';
/**
* The default value for event-based hold on newly created objects in this
* bucket. Event-based hold is a way to retain objects indefinitely until an
* event occurs, signified by the hold's release. After being released, such
* objects will be subject to bucket-level retention (if any). One sample use
* case of this flag is for banks to hold loan documents for at least 3 years
* after loan is paid in full. Here, bucket-level retention is 3 years and the
* event is loan being paid in full. In this example, these objects will be
* held intact for any number of years until the event has occurred (event-
* based hold on the object is released) and then 3 more years after that.
* That means retention duration of the objects begins from the moment event-
* based hold transitioned from true to false. Objects under event-based hold
* cannot be deleted, overwritten or archived until the hold is removed.
*
* @var bool
*/
public $defaultEventBasedHold;
protected $defaultObjectAclType = ObjectAccessControl::class;
protected $defaultObjectAclDataType = 'array';
protected $encryptionType = BucketEncryption::class;
protected $encryptionDataType = '';
/**
* HTTP 1.1 Entity tag for the bucket.
*
* @var string
*/
public $etag;
/**
* The generation of this bucket.
*
* @var string
*/
public $generation;
/**
* The hard delete time of the bucket in RFC 3339 format.
*
* @var string
*/
public $hardDeleteTime;
protected $hierarchicalNamespaceType = BucketHierarchicalNamespace::class;
protected $hierarchicalNamespaceDataType = '';
protected $iamConfigurationType = BucketIamConfiguration::class;
protected $iamConfigurationDataType = '';
/**
* The ID of the bucket. For buckets, the id and name properties are the same.
*
* @var string
*/
public $id;
protected $ipFilterType = BucketIpFilter::class;
protected $ipFilterDataType = '';
/**
* The kind of item this is. For buckets, this is always storage#bucket.
*
* @var string
*/
public $kind;
/**
* User-provided labels, in key/value pairs.
*
* @var string[]
*/
public $labels;
protected $lifecycleType = BucketLifecycle::class;
protected $lifecycleDataType = '';
/**
* The location of the bucket. Object data for objects in the bucket resides
* in physical storage within this region. Defaults to US. See the
* [Developer's Guide](https://cloud.google.com/storage/docs/locations) for
* the authoritative list.
*
* @var string
*/
public $location;
/**
* The type of the bucket location.
*
* @var string
*/
public $locationType;
protected $loggingType = BucketLogging::class;
protected $loggingDataType = '';
/**
* The metadata generation of this bucket.
*
* @var string
*/
public $metageneration;
/**
* The name of the bucket.
*
* @var string
*/
public $name;
protected $objectRetentionType = BucketObjectRetention::class;
protected $objectRetentionDataType = '';
protected $ownerType = BucketOwner::class;
protected $ownerDataType = '';
/**
* The project number of the project the bucket belongs to.
*
* @var string
*/
public $projectNumber;
protected $retentionPolicyType = BucketRetentionPolicy::class;
protected $retentionPolicyDataType = '';
/**
* The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to
* turn on Turbo Replication on a bucket.
*
* @var string
*/
public $rpo;
/**
* Reserved for future use.
*
* @var bool
*/
public $satisfiesPZI;
/**
* Reserved for future use.
*
* @var bool
*/
public $satisfiesPZS;
/**
* The URI of this bucket.
*
* @var string
*/
public $selfLink;
protected $softDeletePolicyType = BucketSoftDeletePolicy::class;
protected $softDeletePolicyDataType = '';
/**
* The soft delete time of the bucket in RFC 3339 format.
*
* @var string
*/
public $softDeleteTime;
/**
* The bucket's default storage class, used whenever no storageClass is
* specified for a newly-created object. This defines how objects in the
* bucket are stored and determines the SLA and the cost of storage. Values
* include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE,
* and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the
* bucket is created, it will default to STANDARD. For more information, see
* [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
*
* @var string
*/
public $storageClass;
/**
* The creation time of the bucket in RFC 3339 format.
*
* @var string
*/
public $timeCreated;
/**
* The modification time of the bucket in RFC 3339 format.
*
* @var string
*/
public $updated;
protected $versioningType = BucketVersioning::class;
protected $versioningDataType = '';
protected $websiteType = BucketWebsite::class;
protected $websiteDataType = '';
/**
* Access controls on the bucket.
*
* @param BucketAccessControl[] $acl
*/
public function setAcl($acl)
{
$this->acl = $acl;
}
/**
* @return BucketAccessControl[]
*/
public function getAcl()
{
return $this->acl;
}
/**
* The bucket's Autoclass configuration.
*
* @param BucketAutoclass $autoclass
*/
public function setAutoclass(BucketAutoclass $autoclass)
{
$this->autoclass = $autoclass;
}
/**
* @return BucketAutoclass
*/
public function getAutoclass()
{
return $this->autoclass;
}
/**
* The bucket's billing configuration.
*
* @param BucketBilling $billing
*/
public function setBilling(BucketBilling $billing)
{
$this->billing = $billing;
}
/**
* @return BucketBilling
*/
public function getBilling()
{
return $this->billing;
}
/**
* The bucket's Cross-Origin Resource Sharing (CORS) configuration.
*
* @param BucketCors[] $cors
*/
public function setCors($cors)
{
$this->cors = $cors;
}
/**
* @return BucketCors[]
*/
public function getCors()
{
return $this->cors;
}
/**
* The bucket's custom placement configuration for Custom Dual Regions.
*
* @param BucketCustomPlacementConfig $customPlacementConfig
*/
public function setCustomPlacementConfig(BucketCustomPlacementConfig $customPlacementConfig)
{
$this->customPlacementConfig = $customPlacementConfig;
}
/**
* @return BucketCustomPlacementConfig
*/
public function getCustomPlacementConfig()
{
return $this->customPlacementConfig;
}
/**
* The default value for event-based hold on newly created objects in this
* bucket. Event-based hold is a way to retain objects indefinitely until an
* event occurs, signified by the hold's release. After being released, such
* objects will be subject to bucket-level retention (if any). One sample use
* case of this flag is for banks to hold loan documents for at least 3 years
* after loan is paid in full. Here, bucket-level retention is 3 years and the
* event is loan being paid in full. In this example, these objects will be
* held intact for any number of years until the event has occurred (event-
* based hold on the object is released) and then 3 more years after that.
* That means retention duration of the objects begins from the moment event-
* based hold transitioned from true to false. Objects under event-based hold
* cannot be deleted, overwritten or archived until the hold is removed.
*
* @param bool $defaultEventBasedHold
*/
public function setDefaultEventBasedHold($defaultEventBasedHold)
{
$this->defaultEventBasedHold = $defaultEventBasedHold;
}
/**
* @return bool
*/
public function getDefaultEventBasedHold()
{
return $this->defaultEventBasedHold;
}
/**
* Default access controls to apply to new objects when no ACL is provided.
*
* @param ObjectAccessControl[] $defaultObjectAcl
*/
public function setDefaultObjectAcl($defaultObjectAcl)
{
$this->defaultObjectAcl = $defaultObjectAcl;
}
/**
* @return ObjectAccessControl[]
*/
public function getDefaultObjectAcl()
{
return $this->defaultObjectAcl;
}
/**
* Encryption configuration for a bucket.
*
* @param BucketEncryption $encryption
*/
public function setEncryption(BucketEncryption $encryption)
{
$this->encryption = $encryption;
}
/**
* @return BucketEncryption
*/
public function getEncryption()
{
return $this->encryption;
}
/**
* HTTP 1.1 Entity tag for the bucket.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The generation of this bucket.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* The hard delete time of the bucket in RFC 3339 format.
*
* @param string $hardDeleteTime
*/
public function setHardDeleteTime($hardDeleteTime)
{
$this->hardDeleteTime = $hardDeleteTime;
}
/**
* @return string
*/
public function getHardDeleteTime()
{
return $this->hardDeleteTime;
}
/**
* The bucket's hierarchical namespace configuration.
*
* @param BucketHierarchicalNamespace $hierarchicalNamespace
*/
public function setHierarchicalNamespace(BucketHierarchicalNamespace $hierarchicalNamespace)
{
$this->hierarchicalNamespace = $hierarchicalNamespace;
}
/**
* @return BucketHierarchicalNamespace
*/
public function getHierarchicalNamespace()
{
return $this->hierarchicalNamespace;
}
/**
* The bucket's IAM configuration.
*
* @param BucketIamConfiguration $iamConfiguration
*/
public function setIamConfiguration(BucketIamConfiguration $iamConfiguration)
{
$this->iamConfiguration = $iamConfiguration;
}
/**
* @return BucketIamConfiguration
*/
public function getIamConfiguration()
{
return $this->iamConfiguration;
}
/**
* The ID of the bucket. For buckets, the id and name properties are the same.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The bucket's IP filter configuration. Specifies the network sources that
* are allowed to access the operations on the bucket, as well as its
* underlying objects. Only enforced when the mode is set to 'Enabled'.
*
* @param BucketIpFilter $ipFilter
*/
public function setIpFilter(BucketIpFilter $ipFilter)
{
$this->ipFilter = $ipFilter;
}
/**
* @return BucketIpFilter
*/
public function getIpFilter()
{
return $this->ipFilter;
}
/**
* The kind of item this is. For buckets, this is always storage#bucket.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* User-provided labels, in key/value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The bucket's lifecycle configuration. See [Lifecycle
* Management](https://cloud.google.com/storage/docs/lifecycle) for more
* information.
*
* @param BucketLifecycle $lifecycle
*/
public function setLifecycle(BucketLifecycle $lifecycle)
{
$this->lifecycle = $lifecycle;
}
/**
* @return BucketLifecycle
*/
public function getLifecycle()
{
return $this->lifecycle;
}
/**
* The location of the bucket. Object data for objects in the bucket resides
* in physical storage within this region. Defaults to US. See the
* [Developer's Guide](https://cloud.google.com/storage/docs/locations) for
* the authoritative list.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* The type of the bucket location.
*
* @param string $locationType
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
/**
* The bucket's logging configuration, which defines the destination bucket
* and optional name prefix for the current bucket's logs.
*
* @param BucketLogging $logging
*/
public function setLogging(BucketLogging $logging)
{
$this->logging = $logging;
}
/**
* @return BucketLogging
*/
public function getLogging()
{
return $this->logging;
}
/**
* The metadata generation of this bucket.
*
* @param string $metageneration
*/
public function setMetageneration($metageneration)
{
$this->metageneration = $metageneration;
}
/**
* @return string
*/
public function getMetageneration()
{
return $this->metageneration;
}
/**
* The name of the bucket.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The bucket's object retention config.
*
* @param BucketObjectRetention $objectRetention
*/
public function setObjectRetention(BucketObjectRetention $objectRetention)
{
$this->objectRetention = $objectRetention;
}
/**
* @return BucketObjectRetention
*/
public function getObjectRetention()
{
return $this->objectRetention;
}
/**
* The owner of the bucket. This is always the project team's owner group.
*
* @param BucketOwner $owner
*/
public function setOwner(BucketOwner $owner)
{
$this->owner = $owner;
}
/**
* @return BucketOwner
*/
public function getOwner()
{
return $this->owner;
}
/**
* The project number of the project the bucket belongs to.
*
* @param string $projectNumber
*/
public function setProjectNumber($projectNumber)
{
$this->projectNumber = $projectNumber;
}
/**
* @return string
*/
public function getProjectNumber()
{
return $this->projectNumber;
}
/**
* The bucket's retention policy. The retention policy enforces a minimum
* retention time for all objects contained in the bucket, based on their
* creation time. Any attempt to overwrite or delete objects younger than the
* retention period will result in a PERMISSION_DENIED error. An unlocked
* retention policy can be modified or removed from the bucket via a
* storage.buckets.update operation. A locked retention policy cannot be
* removed or shortened in duration for the lifetime of the bucket. Attempting
* to remove or decrease period of a locked retention policy will result in a
* PERMISSION_DENIED error.
*
* @param BucketRetentionPolicy $retentionPolicy
*/
public function setRetentionPolicy(BucketRetentionPolicy $retentionPolicy)
{
$this->retentionPolicy = $retentionPolicy;
}
/**
* @return BucketRetentionPolicy
*/
public function getRetentionPolicy()
{
return $this->retentionPolicy;
}
/**
* The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to
* turn on Turbo Replication on a bucket.
*
* @param string $rpo
*/
public function setRpo($rpo)
{
$this->rpo = $rpo;
}
/**
* @return string
*/
public function getRpo()
{
return $this->rpo;
}
/**
* Reserved for future use.
*
* @param bool $satisfiesPZI
*/
public function setSatisfiesPZI($satisfiesPZI)
{
$this->satisfiesPZI = $satisfiesPZI;
}
/**
* @return bool
*/
public function getSatisfiesPZI()
{
return $this->satisfiesPZI;
}
/**
* Reserved for future use.
*
* @param bool $satisfiesPZS
*/
public function setSatisfiesPZS($satisfiesPZS)
{
$this->satisfiesPZS = $satisfiesPZS;
}
/**
* @return bool
*/
public function getSatisfiesPZS()
{
return $this->satisfiesPZS;
}
/**
* The URI of this bucket.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The bucket's soft delete policy, which defines the period of time that
* soft-deleted objects will be retained, and cannot be permanently deleted.
*
* @param BucketSoftDeletePolicy $softDeletePolicy
*/
public function setSoftDeletePolicy(BucketSoftDeletePolicy $softDeletePolicy)
{
$this->softDeletePolicy = $softDeletePolicy;
}
/**
* @return BucketSoftDeletePolicy
*/
public function getSoftDeletePolicy()
{
return $this->softDeletePolicy;
}
/**
* The soft delete time of the bucket in RFC 3339 format.
*
* @param string $softDeleteTime
*/
public function setSoftDeleteTime($softDeleteTime)
{
$this->softDeleteTime = $softDeleteTime;
}
/**
* @return string
*/
public function getSoftDeleteTime()
{
return $this->softDeleteTime;
}
/**
* The bucket's default storage class, used whenever no storageClass is
* specified for a newly-created object. This defines how objects in the
* bucket are stored and determines the SLA and the cost of storage. Values
* include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE,
* and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the
* bucket is created, it will default to STANDARD. For more information, see
* [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
*
* @param string $storageClass
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
/**
* The creation time of the bucket in RFC 3339 format.
*
* @param string $timeCreated
*/
public function setTimeCreated($timeCreated)
{
$this->timeCreated = $timeCreated;
}
/**
* @return string
*/
public function getTimeCreated()
{
return $this->timeCreated;
}
/**
* The modification time of the bucket in RFC 3339 format.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* The bucket's versioning configuration.
*
* @param BucketVersioning $versioning
*/
public function setVersioning(BucketVersioning $versioning)
{
$this->versioning = $versioning;
}
/**
* @return BucketVersioning
*/
public function getVersioning()
{
return $this->versioning;
}
/**
* The bucket's website configuration, controlling how the service behaves
* when accessing bucket contents as a web site. See the [Static Website
* Examples](https://cloud.google.com/storage/docs/static-website) for more
* information.
*
* @param BucketWebsite $website
*/
public function setWebsite(BucketWebsite $website)
{
$this->website = $website;
}
/**
* @return BucketWebsite
*/
public function getWebsite()
{
return $this->website;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bucket::class, 'Google_Service_Storage_Bucket');
@@ -0,0 +1,278 @@
<?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\Storage;
class BucketAccessControl extends \Google\Model
{
/**
* The name of the bucket.
*
* @var string
*/
public $bucket;
/**
* The domain associated with the entity, if any.
*
* @var string
*/
public $domain;
/**
* The email address associated with the entity, if any.
*
* @var string
*/
public $email;
/**
* The entity holding the permission, in one of the following forms: - user-
* userId - user-email - group-groupId - group-email - domain-domain -
* project-team-projectId - allUsers - allAuthenticatedUsers Examples: -
* The user liz@example.com would be user-liz@example.com. - The group
* example@googlegroups.com would be group-example@googlegroups.com. - To
* refer to all members of the Google Apps for Business domain example.com,
* the entity would be domain-example.com.
*
* @var string
*/
public $entity;
/**
* The ID for the entity, if any.
*
* @var string
*/
public $entityId;
/**
* HTTP 1.1 Entity tag for the access-control entry.
*
* @var string
*/
public $etag;
/**
* The ID of the access-control entry.
*
* @var string
*/
public $id;
/**
* The kind of item this is. For bucket access control entries, this is always
* storage#bucketAccessControl.
*
* @var string
*/
public $kind;
protected $projectTeamType = BucketAccessControlProjectTeam::class;
protected $projectTeamDataType = '';
/**
* The access permission for the entity.
*
* @var string
*/
public $role;
/**
* The link to this access-control entry.
*
* @var string
*/
public $selfLink;
/**
* The name of the bucket.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* The domain associated with the entity, if any.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* The email address associated with the entity, if any.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The entity holding the permission, in one of the following forms: - user-
* userId - user-email - group-groupId - group-email - domain-domain -
* project-team-projectId - allUsers - allAuthenticatedUsers Examples: -
* The user liz@example.com would be user-liz@example.com. - The group
* example@googlegroups.com would be group-example@googlegroups.com. - To
* refer to all members of the Google Apps for Business domain example.com,
* the entity would be domain-example.com.
*
* @param string $entity
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* The ID for the entity, if any.
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* HTTP 1.1 Entity tag for the access-control entry.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The ID of the access-control entry.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of item this is. For bucket access control entries, this is always
* storage#bucketAccessControl.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The project team associated with the entity, if any.
*
* @param BucketAccessControlProjectTeam $projectTeam
*/
public function setProjectTeam(BucketAccessControlProjectTeam $projectTeam)
{
$this->projectTeam = $projectTeam;
}
/**
* @return BucketAccessControlProjectTeam
*/
public function getProjectTeam()
{
return $this->projectTeam;
}
/**
* The access permission for the entity.
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* The link to this access-control entry.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketAccessControl::class, 'Google_Service_Storage_BucketAccessControl');
@@ -0,0 +1,70 @@
<?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\Storage;
class BucketAccessControlProjectTeam extends \Google\Model
{
/**
* The project number.
*
* @var string
*/
public $projectNumber;
/**
* The team.
*
* @var string
*/
public $team;
/**
* The project number.
*
* @param string $projectNumber
*/
public function setProjectNumber($projectNumber)
{
$this->projectNumber = $projectNumber;
}
/**
* @return string
*/
public function getProjectNumber()
{
return $this->projectNumber;
}
/**
* The team.
*
* @param string $team
*/
public function setTeam($team)
{
$this->team = $team;
}
/**
* @return string
*/
public function getTeam()
{
return $this->team;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketAccessControlProjectTeam::class, 'Google_Service_Storage_BucketAccessControlProjectTeam');
@@ -0,0 +1,69 @@
<?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\Storage;
class BucketAccessControls extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = BucketAccessControl::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of bucket access control entries, this
* is always storage#bucketAccessControls.
*
* @var string
*/
public $kind;
/**
* The list of items.
*
* @param BucketAccessControl[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BucketAccessControl[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of bucket access control entries, this
* is always storage#bucketAccessControls.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketAccessControls::class, 'Google_Service_Storage_BucketAccessControls');
@@ -0,0 +1,122 @@
<?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\Storage;
class BucketAutoclass extends \Google\Model
{
/**
* Whether or not Autoclass is enabled on this bucket
*
* @var bool
*/
public $enabled;
/**
* The storage class that objects in the bucket eventually transition to if
* they are not read for a certain length of time. Valid values are NEARLINE
* and ARCHIVE.
*
* @var string
*/
public $terminalStorageClass;
/**
* A date and time in RFC 3339 format representing the time of the most recent
* update to "terminalStorageClass".
*
* @var string
*/
public $terminalStorageClassUpdateTime;
/**
* A date and time in RFC 3339 format representing the instant at which
* "enabled" was last toggled.
*
* @var string
*/
public $toggleTime;
/**
* Whether or not Autoclass is enabled on this bucket
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* The storage class that objects in the bucket eventually transition to if
* they are not read for a certain length of time. Valid values are NEARLINE
* and ARCHIVE.
*
* @param string $terminalStorageClass
*/
public function setTerminalStorageClass($terminalStorageClass)
{
$this->terminalStorageClass = $terminalStorageClass;
}
/**
* @return string
*/
public function getTerminalStorageClass()
{
return $this->terminalStorageClass;
}
/**
* A date and time in RFC 3339 format representing the time of the most recent
* update to "terminalStorageClass".
*
* @param string $terminalStorageClassUpdateTime
*/
public function setTerminalStorageClassUpdateTime($terminalStorageClassUpdateTime)
{
$this->terminalStorageClassUpdateTime = $terminalStorageClassUpdateTime;
}
/**
* @return string
*/
public function getTerminalStorageClassUpdateTime()
{
return $this->terminalStorageClassUpdateTime;
}
/**
* A date and time in RFC 3339 format representing the instant at which
* "enabled" was last toggled.
*
* @param string $toggleTime
*/
public function setToggleTime($toggleTime)
{
$this->toggleTime = $toggleTime;
}
/**
* @return string
*/
public function getToggleTime()
{
return $this->toggleTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketAutoclass::class, 'Google_Service_Storage_BucketAutoclass');
@@ -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\Storage;
class BucketBilling extends \Google\Model
{
/**
* When set to true, Requester Pays is enabled for this bucket.
*
* @var bool
*/
public $requesterPays;
/**
* When set to true, Requester Pays is enabled for this bucket.
*
* @param bool $requesterPays
*/
public function setRequesterPays($requesterPays)
{
$this->requesterPays = $requesterPays;
}
/**
* @return bool
*/
public function getRequesterPays()
{
return $this->requesterPays;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketBilling::class, 'Google_Service_Storage_BucketBilling');
@@ -0,0 +1,125 @@
<?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\Storage;
class BucketCors extends \Google\Collection
{
protected $collection_key = 'responseHeader';
/**
* The value, in seconds, to return in the Access-Control-Max-Age header used
* in preflight responses.
*
* @var int
*/
public $maxAgeSeconds;
/**
* The list of HTTP methods on which to include CORS response headers, (GET,
* OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and
* means "any method".
*
* @var string[]
*/
public $method;
/**
* The list of Origins eligible to receive CORS response headers. Note: "*" is
* permitted in the list of origins, and means "any Origin".
*
* @var string[]
*/
public $origin;
/**
* The list of HTTP headers other than the simple response headers to give
* permission for the user-agent to share across domains.
*
* @var string[]
*/
public $responseHeader;
/**
* The value, in seconds, to return in the Access-Control-Max-Age header used
* in preflight responses.
*
* @param int $maxAgeSeconds
*/
public function setMaxAgeSeconds($maxAgeSeconds)
{
$this->maxAgeSeconds = $maxAgeSeconds;
}
/**
* @return int
*/
public function getMaxAgeSeconds()
{
return $this->maxAgeSeconds;
}
/**
* The list of HTTP methods on which to include CORS response headers, (GET,
* OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and
* means "any method".
*
* @param string[] $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string[]
*/
public function getMethod()
{
return $this->method;
}
/**
* The list of Origins eligible to receive CORS response headers. Note: "*" is
* permitted in the list of origins, and means "any Origin".
*
* @param string[] $origin
*/
public function setOrigin($origin)
{
$this->origin = $origin;
}
/**
* @return string[]
*/
public function getOrigin()
{
return $this->origin;
}
/**
* The list of HTTP headers other than the simple response headers to give
* permission for the user-agent to share across domains.
*
* @param string[] $responseHeader
*/
public function setResponseHeader($responseHeader)
{
$this->responseHeader = $responseHeader;
}
/**
* @return string[]
*/
public function getResponseHeader()
{
return $this->responseHeader;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketCors::class, 'Google_Service_Storage_BucketCors');
@@ -0,0 +1,49 @@
<?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\Storage;
class BucketCustomPlacementConfig extends \Google\Collection
{
protected $collection_key = 'dataLocations';
/**
* The list of regional locations in which data is placed.
*
* @var string[]
*/
public $dataLocations;
/**
* The list of regional locations in which data is placed.
*
* @param string[] $dataLocations
*/
public function setDataLocations($dataLocations)
{
$this->dataLocations = $dataLocations;
}
/**
* @return string[]
*/
public function getDataLocations()
{
return $this->dataLocations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketCustomPlacementConfig::class, 'Google_Service_Storage_BucketCustomPlacementConfig');
@@ -0,0 +1,113 @@
<?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\Storage;
class BucketEncryption extends \Google\Model
{
protected $customerManagedEncryptionEnforcementConfigType = BucketEncryptionCustomerManagedEncryptionEnforcementConfig::class;
protected $customerManagedEncryptionEnforcementConfigDataType = '';
protected $customerSuppliedEncryptionEnforcementConfigType = BucketEncryptionCustomerSuppliedEncryptionEnforcementConfig::class;
protected $customerSuppliedEncryptionEnforcementConfigDataType = '';
/**
* A Cloud KMS key that will be used to encrypt objects inserted into this
* bucket, if no encryption method is specified.
*
* @var string
*/
public $defaultKmsKeyName;
protected $googleManagedEncryptionEnforcementConfigType = BucketEncryptionGoogleManagedEncryptionEnforcementConfig::class;
protected $googleManagedEncryptionEnforcementConfigDataType = '';
/**
* If set, the new objects created in this bucket must comply with this
* enforcement config. Changing this has no effect on existing objects; it
* applies to new objects only. If omitted, the new objects are allowed to be
* encrypted with Customer Managed Encryption type by default.
*
* @param BucketEncryptionCustomerManagedEncryptionEnforcementConfig $customerManagedEncryptionEnforcementConfig
*/
public function setCustomerManagedEncryptionEnforcementConfig(BucketEncryptionCustomerManagedEncryptionEnforcementConfig $customerManagedEncryptionEnforcementConfig)
{
$this->customerManagedEncryptionEnforcementConfig = $customerManagedEncryptionEnforcementConfig;
}
/**
* @return BucketEncryptionCustomerManagedEncryptionEnforcementConfig
*/
public function getCustomerManagedEncryptionEnforcementConfig()
{
return $this->customerManagedEncryptionEnforcementConfig;
}
/**
* If set, the new objects created in this bucket must comply with this
* enforcement config. Changing this has no effect on existing objects; it
* applies to new objects only. If omitted, the new objects are allowed to be
* encrypted with Customer Supplied Encryption type by default.
*
* @param BucketEncryptionCustomerSuppliedEncryptionEnforcementConfig $customerSuppliedEncryptionEnforcementConfig
*/
public function setCustomerSuppliedEncryptionEnforcementConfig(BucketEncryptionCustomerSuppliedEncryptionEnforcementConfig $customerSuppliedEncryptionEnforcementConfig)
{
$this->customerSuppliedEncryptionEnforcementConfig = $customerSuppliedEncryptionEnforcementConfig;
}
/**
* @return BucketEncryptionCustomerSuppliedEncryptionEnforcementConfig
*/
public function getCustomerSuppliedEncryptionEnforcementConfig()
{
return $this->customerSuppliedEncryptionEnforcementConfig;
}
/**
* A Cloud KMS key that will be used to encrypt objects inserted into this
* bucket, if no encryption method is specified.
*
* @param string $defaultKmsKeyName
*/
public function setDefaultKmsKeyName($defaultKmsKeyName)
{
$this->defaultKmsKeyName = $defaultKmsKeyName;
}
/**
* @return string
*/
public function getDefaultKmsKeyName()
{
return $this->defaultKmsKeyName;
}
/**
* If set, the new objects created in this bucket must comply with this
* enforcement config. Changing this has no effect on existing objects; it
* applies to new objects only. If omitted, the new objects are allowed to be
* encrypted with Google Managed Encryption type by default.
*
* @param BucketEncryptionGoogleManagedEncryptionEnforcementConfig $googleManagedEncryptionEnforcementConfig
*/
public function setGoogleManagedEncryptionEnforcementConfig(BucketEncryptionGoogleManagedEncryptionEnforcementConfig $googleManagedEncryptionEnforcementConfig)
{
$this->googleManagedEncryptionEnforcementConfig = $googleManagedEncryptionEnforcementConfig;
}
/**
* @return BucketEncryptionGoogleManagedEncryptionEnforcementConfig
*/
public function getGoogleManagedEncryptionEnforcementConfig()
{
return $this->googleManagedEncryptionEnforcementConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketEncryption::class, 'Google_Service_Storage_BucketEncryption');
@@ -0,0 +1,85 @@
<?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\Storage;
class BucketEncryptionCustomerManagedEncryptionEnforcementConfig extends \Google\Model
{
/**
* Creation of new objects with Customer-Managed Encryption is not restricted.
*/
public const RESTRICTION_MODE_NotRestricted = 'NotRestricted';
/**
* Creation of new objects with Customer-Managed Encryption is fully
* restricted.
*/
public const RESTRICTION_MODE_FullyRestricted = 'FullyRestricted';
/**
* Server-determined value that indicates the time from which configuration
* was enforced and effective. This value is in RFC 3339 format.
*
* @var string
*/
public $effectiveTime;
/**
* Restriction mode for Customer-Managed Encryption Keys. Defaults to
* NotRestricted.
*
* @var string
*/
public $restrictionMode;
/**
* Server-determined value that indicates the time from which configuration
* was enforced and effective. This value is in RFC 3339 format.
*
* @param string $effectiveTime
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* Restriction mode for Customer-Managed Encryption Keys. Defaults to
* NotRestricted.
*
* Accepted values: NotRestricted, FullyRestricted
*
* @param self::RESTRICTION_MODE_* $restrictionMode
*/
public function setRestrictionMode($restrictionMode)
{
$this->restrictionMode = $restrictionMode;
}
/**
* @return self::RESTRICTION_MODE_*
*/
public function getRestrictionMode()
{
return $this->restrictionMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketEncryptionCustomerManagedEncryptionEnforcementConfig::class, 'Google_Service_Storage_BucketEncryptionCustomerManagedEncryptionEnforcementConfig');
@@ -0,0 +1,86 @@
<?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\Storage;
class BucketEncryptionCustomerSuppliedEncryptionEnforcementConfig extends \Google\Model
{
/**
* Creation of new objects with Customer-Supplied Encryption is not
* restricted.
*/
public const RESTRICTION_MODE_NotRestricted = 'NotRestricted';
/**
* Creation of new objects with Customer-Supplied Encryption is fully
* restricted.
*/
public const RESTRICTION_MODE_FullyRestricted = 'FullyRestricted';
/**
* Server-determined value that indicates the time from which configuration
* was enforced and effective. This value is in RFC 3339 format.
*
* @var string
*/
public $effectiveTime;
/**
* Restriction mode for Customer-Supplied Encryption Keys. Defaults to
* NotRestricted.
*
* @var string
*/
public $restrictionMode;
/**
* Server-determined value that indicates the time from which configuration
* was enforced and effective. This value is in RFC 3339 format.
*
* @param string $effectiveTime
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* Restriction mode for Customer-Supplied Encryption Keys. Defaults to
* NotRestricted.
*
* Accepted values: NotRestricted, FullyRestricted
*
* @param self::RESTRICTION_MODE_* $restrictionMode
*/
public function setRestrictionMode($restrictionMode)
{
$this->restrictionMode = $restrictionMode;
}
/**
* @return self::RESTRICTION_MODE_*
*/
public function getRestrictionMode()
{
return $this->restrictionMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketEncryptionCustomerSuppliedEncryptionEnforcementConfig::class, 'Google_Service_Storage_BucketEncryptionCustomerSuppliedEncryptionEnforcementConfig');
@@ -0,0 +1,84 @@
<?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\Storage;
class BucketEncryptionGoogleManagedEncryptionEnforcementConfig extends \Google\Model
{
/**
* Creation of new objects with Google Managed Encryption is not restricted.
*/
public const RESTRICTION_MODE_NotRestricted = 'NotRestricted';
/**
* Creation of new objects with Google Managed Encryption is fully restricted.
*/
public const RESTRICTION_MODE_FullyRestricted = 'FullyRestricted';
/**
* Server-determined value that indicates the time from which configuration
* was enforced and effective. This value is in RFC 3339 format.
*
* @var string
*/
public $effectiveTime;
/**
* Restriction mode for Google-Managed Encryption Keys. Defaults to
* NotRestricted.
*
* @var string
*/
public $restrictionMode;
/**
* Server-determined value that indicates the time from which configuration
* was enforced and effective. This value is in RFC 3339 format.
*
* @param string $effectiveTime
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* Restriction mode for Google-Managed Encryption Keys. Defaults to
* NotRestricted.
*
* Accepted values: NotRestricted, FullyRestricted
*
* @param self::RESTRICTION_MODE_* $restrictionMode
*/
public function setRestrictionMode($restrictionMode)
{
$this->restrictionMode = $restrictionMode;
}
/**
* @return self::RESTRICTION_MODE_*
*/
public function getRestrictionMode()
{
return $this->restrictionMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketEncryptionGoogleManagedEncryptionEnforcementConfig::class, 'Google_Service_Storage_BucketEncryptionGoogleManagedEncryptionEnforcementConfig');
@@ -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\Storage;
class BucketHierarchicalNamespace extends \Google\Model
{
/**
* When set to true, hierarchical namespace is enabled for this bucket.
*
* @var bool
*/
public $enabled;
/**
* When set to true, hierarchical namespace is enabled for this bucket.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketHierarchicalNamespace::class, 'Google_Service_Storage_BucketHierarchicalNamespace');
@@ -0,0 +1,90 @@
<?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\Storage;
class BucketIamConfiguration extends \Google\Model
{
protected $bucketPolicyOnlyType = BucketIamConfigurationBucketPolicyOnly::class;
protected $bucketPolicyOnlyDataType = '';
/**
* The bucket's Public Access Prevention configuration. Currently, 'inherited'
* and 'enforced' are supported.
*
* @var string
*/
public $publicAccessPrevention;
protected $uniformBucketLevelAccessType = BucketIamConfigurationUniformBucketLevelAccess::class;
protected $uniformBucketLevelAccessDataType = '';
/**
* The bucket's uniform bucket-level access configuration. The feature was
* formerly known as Bucket Policy Only. For backward compatibility, this
* field will be populated with identical information as the
* uniformBucketLevelAccess field. We recommend using the
* uniformBucketLevelAccess field to enable and disable the feature.
*
* @param BucketIamConfigurationBucketPolicyOnly $bucketPolicyOnly
*/
public function setBucketPolicyOnly(BucketIamConfigurationBucketPolicyOnly $bucketPolicyOnly)
{
$this->bucketPolicyOnly = $bucketPolicyOnly;
}
/**
* @return BucketIamConfigurationBucketPolicyOnly
*/
public function getBucketPolicyOnly()
{
return $this->bucketPolicyOnly;
}
/**
* The bucket's Public Access Prevention configuration. Currently, 'inherited'
* and 'enforced' are supported.
*
* @param string $publicAccessPrevention
*/
public function setPublicAccessPrevention($publicAccessPrevention)
{
$this->publicAccessPrevention = $publicAccessPrevention;
}
/**
* @return string
*/
public function getPublicAccessPrevention()
{
return $this->publicAccessPrevention;
}
/**
* The bucket's uniform bucket-level access configuration.
*
* @param BucketIamConfigurationUniformBucketLevelAccess $uniformBucketLevelAccess
*/
public function setUniformBucketLevelAccess(BucketIamConfigurationUniformBucketLevelAccess $uniformBucketLevelAccess)
{
$this->uniformBucketLevelAccess = $uniformBucketLevelAccess;
}
/**
* @return BucketIamConfigurationUniformBucketLevelAccess
*/
public function getUniformBucketLevelAccess()
{
return $this->uniformBucketLevelAccess;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketIamConfiguration::class, 'Google_Service_Storage_BucketIamConfiguration');
@@ -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\Storage;
class BucketIamConfigurationBucketPolicyOnly extends \Google\Model
{
/**
* If set, access is controlled only by bucket-level or above IAM policies.
*
* @var bool
*/
public $enabled;
/**
* The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from
* true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled
* may be changed from true to false until the locked time, after which the
* field is immutable.
*
* @var string
*/
public $lockedTime;
/**
* If set, access is controlled only by bucket-level or above IAM policies.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from
* true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled
* may be changed from true to false until the locked time, after which the
* field is immutable.
*
* @param string $lockedTime
*/
public function setLockedTime($lockedTime)
{
$this->lockedTime = $lockedTime;
}
/**
* @return string
*/
public function getLockedTime()
{
return $this->lockedTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketIamConfigurationBucketPolicyOnly::class, 'Google_Service_Storage_BucketIamConfigurationBucketPolicyOnly');
@@ -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\Storage;
class BucketIamConfigurationUniformBucketLevelAccess extends \Google\Model
{
/**
* If set, access is controlled only by bucket-level or above IAM policies.
*
* @var bool
*/
public $enabled;
/**
* The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled
* from true to false in RFC 3339 format.
* iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true
* to false until the locked time, after which the field is immutable.
*
* @var string
*/
public $lockedTime;
/**
* If set, access is controlled only by bucket-level or above IAM policies.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled
* from true to false in RFC 3339 format.
* iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true
* to false until the locked time, after which the field is immutable.
*
* @param string $lockedTime
*/
public function setLockedTime($lockedTime)
{
$this->lockedTime = $lockedTime;
}
/**
* @return string
*/
public function getLockedTime()
{
return $this->lockedTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketIamConfigurationUniformBucketLevelAccess::class, 'Google_Service_Storage_BucketIamConfigurationUniformBucketLevelAccess');
@@ -0,0 +1,132 @@
<?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\Storage;
class BucketIpFilter extends \Google\Collection
{
protected $collection_key = 'vpcNetworkSources';
/**
* Whether to allow all service agents to access the bucket regardless of the
* IP filter configuration.
*
* @var bool
*/
public $allowAllServiceAgentAccess;
/**
* Whether to allow cross-org VPCs in the bucket's IP filter configuration.
*
* @var bool
*/
public $allowCrossOrgVpcs;
/**
* The mode of the IP filter. Valid values are 'Enabled' and 'Disabled'.
*
* @var string
*/
public $mode;
protected $publicNetworkSourceType = BucketIpFilterPublicNetworkSource::class;
protected $publicNetworkSourceDataType = '';
protected $vpcNetworkSourcesType = BucketIpFilterVpcNetworkSources::class;
protected $vpcNetworkSourcesDataType = 'array';
/**
* Whether to allow all service agents to access the bucket regardless of the
* IP filter configuration.
*
* @param bool $allowAllServiceAgentAccess
*/
public function setAllowAllServiceAgentAccess($allowAllServiceAgentAccess)
{
$this->allowAllServiceAgentAccess = $allowAllServiceAgentAccess;
}
/**
* @return bool
*/
public function getAllowAllServiceAgentAccess()
{
return $this->allowAllServiceAgentAccess;
}
/**
* Whether to allow cross-org VPCs in the bucket's IP filter configuration.
*
* @param bool $allowCrossOrgVpcs
*/
public function setAllowCrossOrgVpcs($allowCrossOrgVpcs)
{
$this->allowCrossOrgVpcs = $allowCrossOrgVpcs;
}
/**
* @return bool
*/
public function getAllowCrossOrgVpcs()
{
return $this->allowCrossOrgVpcs;
}
/**
* The mode of the IP filter. Valid values are 'Enabled' and 'Disabled'.
*
* @param string $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* The public network source of the bucket's IP filter.
*
* @param BucketIpFilterPublicNetworkSource $publicNetworkSource
*/
public function setPublicNetworkSource(BucketIpFilterPublicNetworkSource $publicNetworkSource)
{
$this->publicNetworkSource = $publicNetworkSource;
}
/**
* @return BucketIpFilterPublicNetworkSource
*/
public function getPublicNetworkSource()
{
return $this->publicNetworkSource;
}
/**
* The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of
* the bucket's IP filter.
*
* @param BucketIpFilterVpcNetworkSources[] $vpcNetworkSources
*/
public function setVpcNetworkSources($vpcNetworkSources)
{
$this->vpcNetworkSources = $vpcNetworkSources;
}
/**
* @return BucketIpFilterVpcNetworkSources[]
*/
public function getVpcNetworkSources()
{
return $this->vpcNetworkSources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketIpFilter::class, 'Google_Service_Storage_BucketIpFilter');
@@ -0,0 +1,51 @@
<?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\Storage;
class BucketIpFilterPublicNetworkSource extends \Google\Collection
{
protected $collection_key = 'allowedIpCidrRanges';
/**
* The list of public IPv4, IPv6 cidr ranges that are allowed to access the
* bucket.
*
* @var string[]
*/
public $allowedIpCidrRanges;
/**
* The list of public IPv4, IPv6 cidr ranges that are allowed to access the
* bucket.
*
* @param string[] $allowedIpCidrRanges
*/
public function setAllowedIpCidrRanges($allowedIpCidrRanges)
{
$this->allowedIpCidrRanges = $allowedIpCidrRanges;
}
/**
* @return string[]
*/
public function getAllowedIpCidrRanges()
{
return $this->allowedIpCidrRanges;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketIpFilterPublicNetworkSource::class, 'Google_Service_Storage_BucketIpFilterPublicNetworkSource');
@@ -0,0 +1,75 @@
<?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\Storage;
class BucketIpFilterVpcNetworkSources extends \Google\Collection
{
protected $collection_key = 'allowedIpCidrRanges';
/**
* The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access
* the bucket.
*
* @var string[]
*/
public $allowedIpCidrRanges;
/**
* Name of the network. Format:
* projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
*
* @var string
*/
public $network;
/**
* The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access
* the bucket.
*
* @param string[] $allowedIpCidrRanges
*/
public function setAllowedIpCidrRanges($allowedIpCidrRanges)
{
$this->allowedIpCidrRanges = $allowedIpCidrRanges;
}
/**
* @return string[]
*/
public function getAllowedIpCidrRanges()
{
return $this->allowedIpCidrRanges;
}
/**
* Name of the network. Format:
* projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketIpFilterVpcNetworkSources::class, 'Google_Service_Storage_BucketIpFilterVpcNetworkSources');
@@ -0,0 +1,46 @@
<?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\Storage;
class BucketLifecycle extends \Google\Collection
{
protected $collection_key = 'rule';
protected $ruleType = BucketLifecycleRule::class;
protected $ruleDataType = 'array';
/**
* A lifecycle management rule, which is made of an action to take and the
* condition(s) under which the action will be taken.
*
* @param BucketLifecycleRule[] $rule
*/
public function setRule($rule)
{
$this->rule = $rule;
}
/**
* @return BucketLifecycleRule[]
*/
public function getRule()
{
return $this->rule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketLifecycle::class, 'Google_Service_Storage_BucketLifecycle');
@@ -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\Storage;
class BucketLifecycleRule extends \Google\Model
{
protected $actionType = BucketLifecycleRuleAction::class;
protected $actionDataType = '';
protected $conditionType = BucketLifecycleRuleCondition::class;
protected $conditionDataType = '';
/**
* The action to take.
*
* @param BucketLifecycleRuleAction $action
*/
public function setAction(BucketLifecycleRuleAction $action)
{
$this->action = $action;
}
/**
* @return BucketLifecycleRuleAction
*/
public function getAction()
{
return $this->action;
}
/**
* The condition(s) under which the action will be taken.
*
* @param BucketLifecycleRuleCondition $condition
*/
public function setCondition(BucketLifecycleRuleCondition $condition)
{
$this->condition = $condition;
}
/**
* @return BucketLifecycleRuleCondition
*/
public function getCondition()
{
return $this->condition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketLifecycleRule::class, 'Google_Service_Storage_BucketLifecycleRule');
@@ -0,0 +1,74 @@
<?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\Storage;
class BucketLifecycleRuleAction extends \Google\Model
{
/**
* Target storage class. Required iff the type of the action is
* SetStorageClass.
*
* @var string
*/
public $storageClass;
/**
* Type of the action. Currently, only Delete, SetStorageClass, and
* AbortIncompleteMultipartUpload are supported.
*
* @var string
*/
public $type;
/**
* Target storage class. Required iff the type of the action is
* SetStorageClass.
*
* @param string $storageClass
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
/**
* Type of the action. Currently, only Delete, SetStorageClass, and
* AbortIncompleteMultipartUpload are supported.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketLifecycleRuleAction::class, 'Google_Service_Storage_BucketLifecycleRuleAction');
@@ -0,0 +1,345 @@
<?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\Storage;
class BucketLifecycleRuleCondition extends \Google\Collection
{
protected $collection_key = 'matchesSuffix';
/**
* Age of an object (in days). This condition is satisfied when an object
* reaches the specified age.
*
* @var int
*/
public $age;
/**
* A date in RFC 3339 format with only the date part (for instance,
* "2013-01-15"). This condition is satisfied when an object is created before
* midnight of the specified date in UTC.
*
* @var string
*/
public $createdBefore;
/**
* A date in RFC 3339 format with only the date part (for instance,
* "2013-01-15"). This condition is satisfied when the custom time on an
* object is before this date in UTC.
*
* @var string
*/
public $customTimeBefore;
/**
* Number of days elapsed since the user-specified timestamp set on an object.
* The condition is satisfied if the days elapsed is at least this number. If
* no custom timestamp is specified on an object, the condition does not
* apply.
*
* @var int
*/
public $daysSinceCustomTime;
/**
* Number of days elapsed since the noncurrent timestamp of an object. The
* condition is satisfied if the days elapsed is at least this number. This
* condition is relevant only for versioned objects. The value of the field
* must be a nonnegative integer. If it's zero, the object version will become
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
* @var int
*/
public $daysSinceNoncurrentTime;
/**
* Relevant only for versioned objects. If the value is true, this condition
* matches live objects; if the value is false, it matches archived objects.
*
* @var bool
*/
public $isLive;
/**
* A regular expression that satisfies the RE2 syntax. This condition is
* satisfied when the name of the object matches the RE2 pattern. Note: This
* feature is currently in the "Early Access" launch stage and is only
* available to a whitelisted set of users; that means that this feature may
* be changed in backward-incompatible ways and that it is not guaranteed to
* be released.
*
* @var string
*/
public $matchesPattern;
/**
* List of object name prefixes. This condition will be satisfied when at
* least one of the prefixes exactly matches the beginning of the object name.
*
* @var string[]
*/
public $matchesPrefix;
/**
* Objects having any of the storage classes specified by this condition will
* be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE,
* ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
*
* @var string[]
*/
public $matchesStorageClass;
/**
* List of object name suffixes. This condition will be satisfied when at
* least one of the suffixes exactly matches the end of the object name.
*
* @var string[]
*/
public $matchesSuffix;
/**
* A date in RFC 3339 format with only the date part (for instance,
* "2013-01-15"). This condition is satisfied when the noncurrent time on an
* object is before this date in UTC. This condition is relevant only for
* versioned objects.
*
* @var string
*/
public $noncurrentTimeBefore;
/**
* Relevant only for versioned objects. If the value is N, this condition is
* satisfied when there are at least N versions (including the live version)
* newer than this version of the object.
*
* @var int
*/
public $numNewerVersions;
/**
* Age of an object (in days). This condition is satisfied when an object
* reaches the specified age.
*
* @param int $age
*/
public function setAge($age)
{
$this->age = $age;
}
/**
* @return int
*/
public function getAge()
{
return $this->age;
}
/**
* A date in RFC 3339 format with only the date part (for instance,
* "2013-01-15"). This condition is satisfied when an object is created before
* midnight of the specified date in UTC.
*
* @param string $createdBefore
*/
public function setCreatedBefore($createdBefore)
{
$this->createdBefore = $createdBefore;
}
/**
* @return string
*/
public function getCreatedBefore()
{
return $this->createdBefore;
}
/**
* A date in RFC 3339 format with only the date part (for instance,
* "2013-01-15"). This condition is satisfied when the custom time on an
* object is before this date in UTC.
*
* @param string $customTimeBefore
*/
public function setCustomTimeBefore($customTimeBefore)
{
$this->customTimeBefore = $customTimeBefore;
}
/**
* @return string
*/
public function getCustomTimeBefore()
{
return $this->customTimeBefore;
}
/**
* Number of days elapsed since the user-specified timestamp set on an object.
* The condition is satisfied if the days elapsed is at least this number. If
* no custom timestamp is specified on an object, the condition does not
* apply.
*
* @param int $daysSinceCustomTime
*/
public function setDaysSinceCustomTime($daysSinceCustomTime)
{
$this->daysSinceCustomTime = $daysSinceCustomTime;
}
/**
* @return int
*/
public function getDaysSinceCustomTime()
{
return $this->daysSinceCustomTime;
}
/**
* Number of days elapsed since the noncurrent timestamp of an object. The
* condition is satisfied if the days elapsed is at least this number. This
* condition is relevant only for versioned objects. The value of the field
* must be a nonnegative integer. If it's zero, the object version will become
* eligible for Lifecycle action as soon as it becomes noncurrent.
*
* @param int $daysSinceNoncurrentTime
*/
public function setDaysSinceNoncurrentTime($daysSinceNoncurrentTime)
{
$this->daysSinceNoncurrentTime = $daysSinceNoncurrentTime;
}
/**
* @return int
*/
public function getDaysSinceNoncurrentTime()
{
return $this->daysSinceNoncurrentTime;
}
/**
* Relevant only for versioned objects. If the value is true, this condition
* matches live objects; if the value is false, it matches archived objects.
*
* @param bool $isLive
*/
public function setIsLive($isLive)
{
$this->isLive = $isLive;
}
/**
* @return bool
*/
public function getIsLive()
{
return $this->isLive;
}
/**
* A regular expression that satisfies the RE2 syntax. This condition is
* satisfied when the name of the object matches the RE2 pattern. Note: This
* feature is currently in the "Early Access" launch stage and is only
* available to a whitelisted set of users; that means that this feature may
* be changed in backward-incompatible ways and that it is not guaranteed to
* be released.
*
* @param string $matchesPattern
*/
public function setMatchesPattern($matchesPattern)
{
$this->matchesPattern = $matchesPattern;
}
/**
* @return string
*/
public function getMatchesPattern()
{
return $this->matchesPattern;
}
/**
* List of object name prefixes. This condition will be satisfied when at
* least one of the prefixes exactly matches the beginning of the object name.
*
* @param string[] $matchesPrefix
*/
public function setMatchesPrefix($matchesPrefix)
{
$this->matchesPrefix = $matchesPrefix;
}
/**
* @return string[]
*/
public function getMatchesPrefix()
{
return $this->matchesPrefix;
}
/**
* Objects having any of the storage classes specified by this condition will
* be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE,
* ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
*
* @param string[] $matchesStorageClass
*/
public function setMatchesStorageClass($matchesStorageClass)
{
$this->matchesStorageClass = $matchesStorageClass;
}
/**
* @return string[]
*/
public function getMatchesStorageClass()
{
return $this->matchesStorageClass;
}
/**
* List of object name suffixes. This condition will be satisfied when at
* least one of the suffixes exactly matches the end of the object name.
*
* @param string[] $matchesSuffix
*/
public function setMatchesSuffix($matchesSuffix)
{
$this->matchesSuffix = $matchesSuffix;
}
/**
* @return string[]
*/
public function getMatchesSuffix()
{
return $this->matchesSuffix;
}
/**
* A date in RFC 3339 format with only the date part (for instance,
* "2013-01-15"). This condition is satisfied when the noncurrent time on an
* object is before this date in UTC. This condition is relevant only for
* versioned objects.
*
* @param string $noncurrentTimeBefore
*/
public function setNoncurrentTimeBefore($noncurrentTimeBefore)
{
$this->noncurrentTimeBefore = $noncurrentTimeBefore;
}
/**
* @return string
*/
public function getNoncurrentTimeBefore()
{
return $this->noncurrentTimeBefore;
}
/**
* Relevant only for versioned objects. If the value is N, this condition is
* satisfied when there are at least N versions (including the live version)
* newer than this version of the object.
*
* @param int $numNewerVersions
*/
public function setNumNewerVersions($numNewerVersions)
{
$this->numNewerVersions = $numNewerVersions;
}
/**
* @return int
*/
public function getNumNewerVersions()
{
return $this->numNewerVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketLifecycleRuleCondition::class, 'Google_Service_Storage_BucketLifecycleRuleCondition');
@@ -0,0 +1,70 @@
<?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\Storage;
class BucketLogging extends \Google\Model
{
/**
* The destination bucket where the current bucket's logs should be placed.
*
* @var string
*/
public $logBucket;
/**
* A prefix for log object names.
*
* @var string
*/
public $logObjectPrefix;
/**
* The destination bucket where the current bucket's logs should be placed.
*
* @param string $logBucket
*/
public function setLogBucket($logBucket)
{
$this->logBucket = $logBucket;
}
/**
* @return string
*/
public function getLogBucket()
{
return $this->logBucket;
}
/**
* A prefix for log object names.
*
* @param string $logObjectPrefix
*/
public function setLogObjectPrefix($logObjectPrefix)
{
$this->logObjectPrefix = $logObjectPrefix;
}
/**
* @return string
*/
public function getLogObjectPrefix()
{
return $this->logObjectPrefix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketLogging::class, 'Google_Service_Storage_BucketLogging');
@@ -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\Storage;
class BucketObjectRetention extends \Google\Model
{
/**
* The bucket's object retention mode. Can be Enabled.
*
* @var string
*/
public $mode;
/**
* The bucket's object retention mode. Can be Enabled.
*
* @param string $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketObjectRetention::class, 'Google_Service_Storage_BucketObjectRetention');
@@ -0,0 +1,70 @@
<?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\Storage;
class BucketOwner extends \Google\Model
{
/**
* The entity, in the form project-owner-projectId.
*
* @var string
*/
public $entity;
/**
* The ID for the entity.
*
* @var string
*/
public $entityId;
/**
* The entity, in the form project-owner-projectId.
*
* @param string $entity
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* The ID for the entity.
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketOwner::class, 'Google_Service_Storage_BucketOwner');
@@ -0,0 +1,100 @@
<?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\Storage;
class BucketRetentionPolicy extends \Google\Model
{
/**
* Server-determined value that indicates the time from which policy was
* enforced and effective. This value is in RFC 3339 format.
*
* @var string
*/
public $effectiveTime;
/**
* Once locked, an object retention policy cannot be modified.
*
* @var bool
*/
public $isLocked;
/**
* The duration in seconds that objects need to be retained. Retention
* duration must be greater than zero and less than 100 years. Note that
* enforcement of retention periods less than a day is not guaranteed. Such
* periods should only be used for testing purposes.
*
* @var string
*/
public $retentionPeriod;
/**
* Server-determined value that indicates the time from which policy was
* enforced and effective. This value is in RFC 3339 format.
*
* @param string $effectiveTime
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* Once locked, an object retention policy cannot be modified.
*
* @param bool $isLocked
*/
public function setIsLocked($isLocked)
{
$this->isLocked = $isLocked;
}
/**
* @return bool
*/
public function getIsLocked()
{
return $this->isLocked;
}
/**
* The duration in seconds that objects need to be retained. Retention
* duration must be greater than zero and less than 100 years. Note that
* enforcement of retention periods less than a day is not guaranteed. Such
* periods should only be used for testing purposes.
*
* @param string $retentionPeriod
*/
public function setRetentionPeriod($retentionPeriod)
{
$this->retentionPeriod = $retentionPeriod;
}
/**
* @return string
*/
public function getRetentionPeriod()
{
return $this->retentionPeriod;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketRetentionPolicy::class, 'Google_Service_Storage_BucketRetentionPolicy');
@@ -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\Storage;
class BucketSoftDeletePolicy extends \Google\Model
{
/**
* Server-determined value that indicates the time from which the policy, or
* one with a greater retention, was effective. This value is in RFC 3339
* format.
*
* @var string
*/
public $effectiveTime;
/**
* The duration in seconds that soft-deleted objects in the bucket will be
* retained and cannot be permanently deleted.
*
* @var string
*/
public $retentionDurationSeconds;
/**
* Server-determined value that indicates the time from which the policy, or
* one with a greater retention, was effective. This value is in RFC 3339
* format.
*
* @param string $effectiveTime
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* The duration in seconds that soft-deleted objects in the bucket will be
* retained and cannot be permanently deleted.
*
* @param string $retentionDurationSeconds
*/
public function setRetentionDurationSeconds($retentionDurationSeconds)
{
$this->retentionDurationSeconds = $retentionDurationSeconds;
}
/**
* @return string
*/
public function getRetentionDurationSeconds()
{
return $this->retentionDurationSeconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketSoftDeletePolicy::class, 'Google_Service_Storage_BucketSoftDeletePolicy');
@@ -0,0 +1,152 @@
<?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\Storage;
class BucketStorageLayout extends \Google\Model
{
/**
* The name of the bucket.
*
* @var string
*/
public $bucket;
protected $customPlacementConfigType = BucketStorageLayoutCustomPlacementConfig::class;
protected $customPlacementConfigDataType = '';
protected $hierarchicalNamespaceType = BucketStorageLayoutHierarchicalNamespace::class;
protected $hierarchicalNamespaceDataType = '';
/**
* The kind of item this is. For storage layout, this is always
* storage#storageLayout.
*
* @var string
*/
public $kind;
/**
* The location of the bucket.
*
* @var string
*/
public $location;
/**
* The type of the bucket location.
*
* @var string
*/
public $locationType;
/**
* The name of the bucket.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* The bucket's custom placement configuration for Custom Dual Regions.
*
* @param BucketStorageLayoutCustomPlacementConfig $customPlacementConfig
*/
public function setCustomPlacementConfig(BucketStorageLayoutCustomPlacementConfig $customPlacementConfig)
{
$this->customPlacementConfig = $customPlacementConfig;
}
/**
* @return BucketStorageLayoutCustomPlacementConfig
*/
public function getCustomPlacementConfig()
{
return $this->customPlacementConfig;
}
/**
* The bucket's hierarchical namespace configuration.
*
* @param BucketStorageLayoutHierarchicalNamespace $hierarchicalNamespace
*/
public function setHierarchicalNamespace(BucketStorageLayoutHierarchicalNamespace $hierarchicalNamespace)
{
$this->hierarchicalNamespace = $hierarchicalNamespace;
}
/**
* @return BucketStorageLayoutHierarchicalNamespace
*/
public function getHierarchicalNamespace()
{
return $this->hierarchicalNamespace;
}
/**
* The kind of item this is. For storage layout, this is always
* storage#storageLayout.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The location of the bucket.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* The type of the bucket location.
*
* @param string $locationType
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketStorageLayout::class, 'Google_Service_Storage_BucketStorageLayout');
@@ -0,0 +1,49 @@
<?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\Storage;
class BucketStorageLayoutCustomPlacementConfig extends \Google\Collection
{
protected $collection_key = 'dataLocations';
/**
* The list of regional locations in which data is placed.
*
* @var string[]
*/
public $dataLocations;
/**
* The list of regional locations in which data is placed.
*
* @param string[] $dataLocations
*/
public function setDataLocations($dataLocations)
{
$this->dataLocations = $dataLocations;
}
/**
* @return string[]
*/
public function getDataLocations()
{
return $this->dataLocations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketStorageLayoutCustomPlacementConfig::class, 'Google_Service_Storage_BucketStorageLayoutCustomPlacementConfig');
@@ -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\Storage;
class BucketStorageLayoutHierarchicalNamespace extends \Google\Model
{
/**
* When set to true, hierarchical namespace is enabled for this bucket.
*
* @var bool
*/
public $enabled;
/**
* When set to true, hierarchical namespace is enabled for this bucket.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketStorageLayoutHierarchicalNamespace::class, 'Google_Service_Storage_BucketStorageLayoutHierarchicalNamespace');
@@ -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\Storage;
class BucketVersioning extends \Google\Model
{
/**
* While set to true, versioning is fully enabled for this bucket.
*
* @var bool
*/
public $enabled;
/**
* While set to true, versioning is fully enabled for this bucket.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketVersioning::class, 'Google_Service_Storage_BucketVersioning');
@@ -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\Storage;
class BucketWebsite extends \Google\Model
{
/**
* If the requested object path is missing, the service will ensure the path
* has a trailing '/', append this suffix, and attempt to retrieve the
* resulting object. This allows the creation of index.html objects to
* represent directory pages.
*
* @var string
*/
public $mainPageSuffix;
/**
* If the requested object path is missing, and any mainPageSuffix object is
* missing, if applicable, the service will return the named object from this
* bucket as the content for a 404 Not Found result.
*
* @var string
*/
public $notFoundPage;
/**
* If the requested object path is missing, the service will ensure the path
* has a trailing '/', append this suffix, and attempt to retrieve the
* resulting object. This allows the creation of index.html objects to
* represent directory pages.
*
* @param string $mainPageSuffix
*/
public function setMainPageSuffix($mainPageSuffix)
{
$this->mainPageSuffix = $mainPageSuffix;
}
/**
* @return string
*/
public function getMainPageSuffix()
{
return $this->mainPageSuffix;
}
/**
* If the requested object path is missing, and any mainPageSuffix object is
* missing, if applicable, the service will return the named object from this
* bucket as the content for a 404 Not Found result.
*
* @param string $notFoundPage
*/
public function setNotFoundPage($notFoundPage)
{
$this->notFoundPage = $notFoundPage;
}
/**
* @return string
*/
public function getNotFoundPage()
{
return $this->notFoundPage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketWebsite::class, 'Google_Service_Storage_BucketWebsite');
+117
View File
@@ -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\Storage;
class Buckets extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $itemsType = Bucket::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of buckets, this is always
* storage#buckets.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of bucket resource names that could not be reached during the
* listing operation.
*
* @var string[]
*/
public $unreachable;
/**
* The list of items.
*
* @param Bucket[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Bucket[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of buckets, this is always
* storage#buckets.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of bucket resource names that could not be reached during the
* listing operation.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Buckets::class, 'Google_Service_Storage_Buckets');
@@ -0,0 +1,199 @@
<?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\Storage;
class BulkRestoreObjectsRequest extends \Google\Collection
{
protected $collection_key = 'matchGlobs';
/**
* If false (default), the restore will not overwrite live objects with the
* same name at the destination. This means some deleted objects may be
* skipped. If true, live objects will be overwritten resulting in a
* noncurrent object (if versioning is enabled). If versioning is not enabled,
* overwriting the object will result in a soft-deleted object. In either
* case, if a noncurrent object already exists with the same name, a live
* version can be written without issue.
*
* @var bool
*/
public $allowOverwrite;
/**
* If true, copies the source object's ACL; otherwise, uses the bucket's
* default object ACL. The default is false.
*
* @var bool
*/
public $copySourceAcl;
/**
* Restores only the objects that were created after this time.
*
* @var string
*/
public $createdAfterTime;
/**
* Restores only the objects that were created before this time.
*
* @var string
*/
public $createdBeforeTime;
/**
* Restores only the objects matching any of the specified glob(s). If this
* parameter is not specified, all objects will be restored within the
* specified time range.
*
* @var string[]
*/
public $matchGlobs;
/**
* Restores only the objects that were soft-deleted after this time.
*
* @var string
*/
public $softDeletedAfterTime;
/**
* Restores only the objects that were soft-deleted before this time.
*
* @var string
*/
public $softDeletedBeforeTime;
/**
* If false (default), the restore will not overwrite live objects with the
* same name at the destination. This means some deleted objects may be
* skipped. If true, live objects will be overwritten resulting in a
* noncurrent object (if versioning is enabled). If versioning is not enabled,
* overwriting the object will result in a soft-deleted object. In either
* case, if a noncurrent object already exists with the same name, a live
* version can be written without issue.
*
* @param bool $allowOverwrite
*/
public function setAllowOverwrite($allowOverwrite)
{
$this->allowOverwrite = $allowOverwrite;
}
/**
* @return bool
*/
public function getAllowOverwrite()
{
return $this->allowOverwrite;
}
/**
* If true, copies the source object's ACL; otherwise, uses the bucket's
* default object ACL. The default is false.
*
* @param bool $copySourceAcl
*/
public function setCopySourceAcl($copySourceAcl)
{
$this->copySourceAcl = $copySourceAcl;
}
/**
* @return bool
*/
public function getCopySourceAcl()
{
return $this->copySourceAcl;
}
/**
* Restores only the objects that were created after this time.
*
* @param string $createdAfterTime
*/
public function setCreatedAfterTime($createdAfterTime)
{
$this->createdAfterTime = $createdAfterTime;
}
/**
* @return string
*/
public function getCreatedAfterTime()
{
return $this->createdAfterTime;
}
/**
* Restores only the objects that were created before this time.
*
* @param string $createdBeforeTime
*/
public function setCreatedBeforeTime($createdBeforeTime)
{
$this->createdBeforeTime = $createdBeforeTime;
}
/**
* @return string
*/
public function getCreatedBeforeTime()
{
return $this->createdBeforeTime;
}
/**
* Restores only the objects matching any of the specified glob(s). If this
* parameter is not specified, all objects will be restored within the
* specified time range.
*
* @param string[] $matchGlobs
*/
public function setMatchGlobs($matchGlobs)
{
$this->matchGlobs = $matchGlobs;
}
/**
* @return string[]
*/
public function getMatchGlobs()
{
return $this->matchGlobs;
}
/**
* Restores only the objects that were soft-deleted after this time.
*
* @param string $softDeletedAfterTime
*/
public function setSoftDeletedAfterTime($softDeletedAfterTime)
{
$this->softDeletedAfterTime = $softDeletedAfterTime;
}
/**
* @return string
*/
public function getSoftDeletedAfterTime()
{
return $this->softDeletedAfterTime;
}
/**
* Restores only the objects that were soft-deleted before this time.
*
* @param string $softDeletedBeforeTime
*/
public function setSoftDeletedBeforeTime($softDeletedBeforeTime)
{
$this->softDeletedBeforeTime = $softDeletedBeforeTime;
}
/**
* @return string
*/
public function getSoftDeletedBeforeTime()
{
return $this->softDeletedBeforeTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BulkRestoreObjectsRequest::class, 'Google_Service_Storage_BulkRestoreObjectsRequest');
+254
View File
@@ -0,0 +1,254 @@
<?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\Storage;
class Channel extends \Google\Model
{
/**
* The address where notifications are delivered for this channel.
*
* @var string
*/
public $address;
/**
* Date and time of notification channel expiration, expressed as a Unix
* timestamp, in milliseconds. Optional.
*
* @var string
*/
public $expiration;
/**
* A UUID or similar unique string that identifies this channel.
*
* @var string
*/
public $id;
/**
* Identifies this as a notification channel used to watch for changes to a
* resource, which is "api#channel".
*
* @var string
*/
public $kind;
/**
* Additional parameters controlling delivery channel behavior. Optional.
*
* @var string[]
*/
public $params;
/**
* A Boolean value to indicate whether payload is wanted. Optional.
*
* @var bool
*/
public $payload;
/**
* An opaque ID that identifies the resource being watched on this channel.
* Stable across different API versions.
*
* @var string
*/
public $resourceId;
/**
* A version-specific identifier for the watched resource.
*
* @var string
*/
public $resourceUri;
/**
* An arbitrary string delivered to the target address with each notification
* delivered over this channel. Optional.
*
* @var string
*/
public $token;
/**
* The type of delivery mechanism used for this channel.
*
* @var string
*/
public $type;
/**
* The address where notifications are delivered for this channel.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Date and time of notification channel expiration, expressed as a Unix
* timestamp, in milliseconds. Optional.
*
* @param string $expiration
*/
public function setExpiration($expiration)
{
$this->expiration = $expiration;
}
/**
* @return string
*/
public function getExpiration()
{
return $this->expiration;
}
/**
* A UUID or similar unique string that identifies this channel.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies this as a notification channel used to watch for changes to a
* resource, which is "api#channel".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Additional parameters controlling delivery channel behavior. Optional.
*
* @param string[] $params
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return string[]
*/
public function getParams()
{
return $this->params;
}
/**
* A Boolean value to indicate whether payload is wanted. Optional.
*
* @param bool $payload
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return bool
*/
public function getPayload()
{
return $this->payload;
}
/**
* An opaque ID that identifies the resource being watched on this channel.
* Stable across different API versions.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* A version-specific identifier for the watched resource.
*
* @param string $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* An arbitrary string delivered to the target address with each notification
* delivered over this channel. Optional.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* The type of delivery mechanism used for this channel.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channel::class, 'Google_Service_Storage_Channel');
@@ -0,0 +1,107 @@
<?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\Storage;
class ComposeRequest extends \Google\Collection
{
protected $collection_key = 'sourceObjects';
/**
* If true, the source objects will be deleted.
*
* @var bool
*/
public $deleteSourceObjects;
protected $destinationType = StorageObject::class;
protected $destinationDataType = '';
/**
* The kind of item this is.
*
* @var string
*/
public $kind;
protected $sourceObjectsType = ComposeRequestSourceObjects::class;
protected $sourceObjectsDataType = 'array';
/**
* If true, the source objects will be deleted.
*
* @param bool $deleteSourceObjects
*/
public function setDeleteSourceObjects($deleteSourceObjects)
{
$this->deleteSourceObjects = $deleteSourceObjects;
}
/**
* @return bool
*/
public function getDeleteSourceObjects()
{
return $this->deleteSourceObjects;
}
/**
* Properties of the resulting object.
*
* @param StorageObject $destination
*/
public function setDestination(StorageObject $destination)
{
$this->destination = $destination;
}
/**
* @return StorageObject
*/
public function getDestination()
{
return $this->destination;
}
/**
* The kind of item this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The list of source objects that will be concatenated into a single object.
*
* @param ComposeRequestSourceObjects[] $sourceObjects
*/
public function setSourceObjects($sourceObjects)
{
$this->sourceObjects = $sourceObjects;
}
/**
* @return ComposeRequestSourceObjects[]
*/
public function getSourceObjects()
{
return $this->sourceObjects;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComposeRequest::class, 'Google_Service_Storage_ComposeRequest');
@@ -0,0 +1,90 @@
<?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\Storage;
class ComposeRequestSourceObjects extends \Google\Model
{
/**
* The generation of this object to use as the source.
*
* @var string
*/
public $generation;
/**
* The source object's name. All source objects must reside in the same
* bucket.
*
* @var string
*/
public $name;
protected $objectPreconditionsType = ComposeRequestSourceObjectsObjectPreconditions::class;
protected $objectPreconditionsDataType = '';
/**
* The generation of this object to use as the source.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* The source object's name. All source objects must reside in the same
* bucket.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Conditions that must be met for this operation to execute.
*
* @param ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions
*/
public function setObjectPreconditions(ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions)
{
$this->objectPreconditions = $objectPreconditions;
}
/**
* @return ComposeRequestSourceObjectsObjectPreconditions
*/
public function getObjectPreconditions()
{
return $this->objectPreconditions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComposeRequestSourceObjects::class, 'Google_Service_Storage_ComposeRequestSourceObjects');
@@ -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\Storage;
class ComposeRequestSourceObjectsObjectPreconditions extends \Google\Model
{
/**
* Only perform the composition if the generation of the source object that
* would be used matches this value. If this value and a generation are both
* specified, they must be the same value or the call will fail.
*
* @var string
*/
public $ifGenerationMatch;
/**
* Only perform the composition if the generation of the source object that
* would be used matches this value. If this value and a generation are both
* specified, they must be the same value or the call will fail.
*
* @param string $ifGenerationMatch
*/
public function setIfGenerationMatch($ifGenerationMatch)
{
$this->ifGenerationMatch = $ifGenerationMatch;
}
/**
* @return string
*/
public function getIfGenerationMatch()
{
return $this->ifGenerationMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComposeRequestSourceObjectsObjectPreconditions::class, 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions');
+124
View File
@@ -0,0 +1,124 @@
<?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\Storage;
class Expr extends \Google\Model
{
/**
* An optional description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax. The application context of the containing message determines which
* well-known feature set of CEL is supported.
*
* @var string
*/
public $expression;
/**
* An optional string indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* An optional title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* An optional description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax. The application context of the containing message determines which
* well-known feature set of CEL is supported.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* An optional string indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* An optional title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Storage_Expr');
+223
View File
@@ -0,0 +1,223 @@
<?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\Storage;
class Folder extends \Google\Model
{
/**
* The name of the bucket containing this folder.
*
* @var string
*/
public $bucket;
/**
* The creation time of the folder in RFC 3339 format.
*
* @var string
*/
public $createTime;
/**
* The ID of the folder, including the bucket name, folder name.
*
* @var string
*/
public $id;
/**
* The kind of item this is. For folders, this is always storage#folder.
*
* @var string
*/
public $kind;
/**
* The version of the metadata for this folder. Used for preconditions and for
* detecting changes in metadata.
*
* @var string
*/
public $metageneration;
/**
* The name of the folder. Required if not specified by URL parameter.
*
* @var string
*/
public $name;
protected $pendingRenameInfoType = FolderPendingRenameInfo::class;
protected $pendingRenameInfoDataType = '';
/**
* The link to this folder.
*
* @var string
*/
public $selfLink;
/**
* The modification time of the folder metadata in RFC 3339 format.
*
* @var string
*/
public $updateTime;
/**
* The name of the bucket containing this folder.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* The creation time of the folder in RFC 3339 format.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The ID of the folder, including the bucket name, folder name.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of item this is. For folders, this is always storage#folder.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The version of the metadata for this folder. Used for preconditions and for
* detecting changes in metadata.
*
* @param string $metageneration
*/
public function setMetageneration($metageneration)
{
$this->metageneration = $metageneration;
}
/**
* @return string
*/
public function getMetageneration()
{
return $this->metageneration;
}
/**
* The name of the folder. Required if not specified by URL parameter.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Only present if the folder is part of an ongoing rename folder operation.
* Contains information which can be used to query the operation status.
*
* @param FolderPendingRenameInfo $pendingRenameInfo
*/
public function setPendingRenameInfo(FolderPendingRenameInfo $pendingRenameInfo)
{
$this->pendingRenameInfo = $pendingRenameInfo;
}
/**
* @return FolderPendingRenameInfo
*/
public function getPendingRenameInfo()
{
return $this->pendingRenameInfo;
}
/**
* The link to this folder.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The modification time of the folder metadata in RFC 3339 format.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folder::class, 'Google_Service_Storage_Folder');
@@ -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\Storage;
class FolderPendingRenameInfo extends \Google\Model
{
/**
* The ID of the rename folder operation.
*
* @var string
*/
public $operationId;
/**
* The ID of the rename folder operation.
*
* @param string $operationId
*/
public function setOperationId($operationId)
{
$this->operationId = $operationId;
}
/**
* @return string
*/
public function getOperationId()
{
return $this->operationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FolderPendingRenameInfo::class, 'Google_Service_Storage_FolderPendingRenameInfo');
@@ -0,0 +1,93 @@
<?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\Storage;
class Folders extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Folder::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of folders, this is always
* storage#folders.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of items.
*
* @param Folder[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Folder[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of folders, this is always
* storage#folders.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @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(Folders::class, 'Google_Service_Storage_Folders');
@@ -0,0 +1,93 @@
<?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\Storage;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* The kind of item this is. For lists of operations, this is always
* storage#operations.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* The kind of item this is. For lists of operations, this is always
* storage#operations.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param GoogleLongrunningOperation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningListOperationsResponse::class, 'Google_Service_Storage_GoogleLongrunningListOperationsResponse');
@@ -0,0 +1,202 @@
<?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\Storage;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* If the value is "false", it means the operation is still in progress. If
* "true", the operation is completed, and either "error" or "response" is
* available.
*
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* The kind of item this is. For operations, this is always storage#operation.
*
* @var string
*/
public $kind;
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the "name"
* should be a resource name ending with "operations/{operationId}".
*
* @var string
*/
public $name;
/**
* The normal response of the operation in case of success. If the original
* method returns no data on success, such as "Delete", the response is
* google.protobuf.Empty. If the original method is standard
* Get/Create/Update, the response should be the resource. For other methods,
* the response should have the type "XxxResponse", where "Xxx" is the
* original method name. For example, if the original method name is
* "TakeSnapshot()", the inferred response type is "TakeSnapshotResponse".
*
* @var array[]
*/
public $response;
/**
* The link to this long running operation.
*
* @var string
*/
public $selfLink;
/**
* If the value is "false", it means the operation is still in progress. If
* "true", the operation is completed, and either "error" or "response" is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* The kind of item this is. For operations, this is always storage#operation.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the "name"
* should be a resource name ending with "operations/{operationId}".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal response of the operation in case of success. If the original
* method returns no data on success, such as "Delete", the response is
* google.protobuf.Empty. If the original method is standard
* Get/Create/Update, the response should be the resource. For other methods,
* the response should have the type "XxxResponse", where "Xxx" is the
* original method name. For example, if the original method name is
* "TakeSnapshot()", the inferred response type is "TakeSnapshotResponse".
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
/**
* The link to this long running operation.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningOperation::class, 'Google_Service_Storage_GoogleLongrunningOperation');
@@ -0,0 +1,95 @@
<?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\Storage;
class GoogleRpcStatus extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcStatus::class, 'Google_Service_Storage_GoogleRpcStatus');
@@ -0,0 +1,88 @@
<?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\Storage;
class HmacKey extends \Google\Model
{
/**
* The kind of item this is. For HMAC keys, this is always storage#hmacKey.
*
* @var string
*/
public $kind;
protected $metadataType = HmacKeyMetadata::class;
protected $metadataDataType = '';
/**
* HMAC secret key material.
*
* @var string
*/
public $secret;
/**
* The kind of item this is. For HMAC keys, this is always storage#hmacKey.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Key metadata.
*
* @param HmacKeyMetadata $metadata
*/
public function setMetadata(HmacKeyMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return HmacKeyMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* HMAC secret key material.
*
* @param string $secret
*/
public function setSecret($secret)
{
$this->secret = $secret;
}
/**
* @return string
*/
public function getSecret()
{
return $this->secret;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HmacKey::class, 'Google_Service_Storage_HmacKey');
@@ -0,0 +1,248 @@
<?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\Storage;
class HmacKeyMetadata extends \Google\Model
{
/**
* The ID of the HMAC Key.
*
* @var string
*/
public $accessId;
/**
* HTTP 1.1 Entity tag for the HMAC key.
*
* @var string
*/
public $etag;
/**
* The ID of the HMAC key, including the Project ID and the Access ID.
*
* @var string
*/
public $id;
/**
* The kind of item this is. For HMAC Key metadata, this is always
* storage#hmacKeyMetadata.
*
* @var string
*/
public $kind;
/**
* Project ID owning the service account to which the key authenticates.
*
* @var string
*/
public $projectId;
/**
* The link to this resource.
*
* @var string
*/
public $selfLink;
/**
* The email address of the key's associated service account.
*
* @var string
*/
public $serviceAccountEmail;
/**
* The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
*
* @var string
*/
public $state;
/**
* The creation time of the HMAC key in RFC 3339 format.
*
* @var string
*/
public $timeCreated;
/**
* The last modification time of the HMAC key metadata in RFC 3339 format.
*
* @var string
*/
public $updated;
/**
* The ID of the HMAC Key.
*
* @param string $accessId
*/
public function setAccessId($accessId)
{
$this->accessId = $accessId;
}
/**
* @return string
*/
public function getAccessId()
{
return $this->accessId;
}
/**
* HTTP 1.1 Entity tag for the HMAC key.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The ID of the HMAC key, including the Project ID and the Access ID.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of item this is. For HMAC Key metadata, this is always
* storage#hmacKeyMetadata.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Project ID owning the service account to which the key authenticates.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* The link to this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The email address of the key's associated service account.
*
* @param string $serviceAccountEmail
*/
public function setServiceAccountEmail($serviceAccountEmail)
{
$this->serviceAccountEmail = $serviceAccountEmail;
}
/**
* @return string
*/
public function getServiceAccountEmail()
{
return $this->serviceAccountEmail;
}
/**
* The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
*
* @param string $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* The creation time of the HMAC key in RFC 3339 format.
*
* @param string $timeCreated
*/
public function setTimeCreated($timeCreated)
{
$this->timeCreated = $timeCreated;
}
/**
* @return string
*/
public function getTimeCreated()
{
return $this->timeCreated;
}
/**
* The last modification time of the HMAC key metadata in RFC 3339 format.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HmacKeyMetadata::class, 'Google_Service_Storage_HmacKeyMetadata');
@@ -0,0 +1,93 @@
<?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\Storage;
class HmacKeysMetadata extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = HmacKeyMetadata::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of hmacKeys, this is always
* storage#hmacKeysMetadata.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of items.
*
* @param HmacKeyMetadata[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return HmacKeyMetadata[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of hmacKeys, this is always
* storage#hmacKeysMetadata.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @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(HmacKeysMetadata::class, 'Google_Service_Storage_HmacKeysMetadata');
@@ -0,0 +1,208 @@
<?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\Storage;
class ManagedFolder extends \Google\Model
{
/**
* The name of the bucket containing this managed folder.
*
* @var string
*/
public $bucket;
/**
* The creation time of the managed folder in RFC 3339 format.
*
* @var string
*/
public $createTime;
/**
* The ID of the managed folder, including the bucket name and managed folder
* name.
*
* @var string
*/
public $id;
/**
* The kind of item this is. For managed folders, this is always
* storage#managedFolder.
*
* @var string
*/
public $kind;
/**
* The version of the metadata for this managed folder. Used for preconditions
* and for detecting changes in metadata.
*
* @var string
*/
public $metageneration;
/**
* The name of the managed folder. Required if not specified by URL parameter.
*
* @var string
*/
public $name;
/**
* The link to this managed folder.
*
* @var string
*/
public $selfLink;
/**
* The last update time of the managed folder metadata in RFC 3339 format.
*
* @var string
*/
public $updateTime;
/**
* The name of the bucket containing this managed folder.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* The creation time of the managed folder in RFC 3339 format.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The ID of the managed folder, including the bucket name and managed folder
* name.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of item this is. For managed folders, this is always
* storage#managedFolder.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The version of the metadata for this managed folder. Used for preconditions
* and for detecting changes in metadata.
*
* @param string $metageneration
*/
public function setMetageneration($metageneration)
{
$this->metageneration = $metageneration;
}
/**
* @return string
*/
public function getMetageneration()
{
return $this->metageneration;
}
/**
* The name of the managed folder. Required if not specified by URL parameter.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The link to this managed folder.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The last update time of the managed folder metadata in RFC 3339 format.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedFolder::class, 'Google_Service_Storage_ManagedFolder');
@@ -0,0 +1,93 @@
<?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\Storage;
class ManagedFolders extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = ManagedFolder::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of managed folders, this is always
* storage#managedFolders.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of items.
*
* @param ManagedFolder[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return ManagedFolder[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of managed folders, this is always
* storage#managedFolders.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @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(ManagedFolders::class, 'Google_Service_Storage_ManagedFolders');
@@ -0,0 +1,241 @@
<?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\Storage;
class Notification extends \Google\Collection
{
protected $collection_key = 'event_types';
protected $internal_gapi_mappings = [
"customAttributes" => "custom_attributes",
"eventTypes" => "event_types",
"objectNamePrefix" => "object_name_prefix",
"payloadFormat" => "payload_format",
];
/**
* An optional list of additional attributes to attach to each Cloud PubSub
* message published for this notification subscription.
*
* @var string[]
*/
public $customAttributes;
/**
* HTTP 1.1 Entity tag for this subscription notification.
*
* @var string
*/
public $etag;
/**
* If present, only send notifications about listed event types. If empty,
* sent notifications for all event types.
*
* @var string[]
*/
public $eventTypes;
/**
* The ID of the notification.
*
* @var string
*/
public $id;
/**
* The kind of item this is. For notifications, this is always
* storage#notification.
*
* @var string
*/
public $kind;
/**
* If present, only apply this notification configuration to object names that
* begin with this prefix.
*
* @var string
*/
public $objectNamePrefix;
/**
* The desired content of the Payload.
*
* @var string
*/
public $payloadFormat;
/**
* The canonical URL of this notification.
*
* @var string
*/
public $selfLink;
/**
* The Cloud PubSub topic to which this subscription publishes. Formatted as:
* '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'
*
* @var string
*/
public $topic;
/**
* An optional list of additional attributes to attach to each Cloud PubSub
* message published for this notification subscription.
*
* @param string[] $customAttributes
*/
public function setCustomAttributes($customAttributes)
{
$this->customAttributes = $customAttributes;
}
/**
* @return string[]
*/
public function getCustomAttributes()
{
return $this->customAttributes;
}
/**
* HTTP 1.1 Entity tag for this subscription notification.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* If present, only send notifications about listed event types. If empty,
* sent notifications for all event types.
*
* @param string[] $eventTypes
*/
public function setEventTypes($eventTypes)
{
$this->eventTypes = $eventTypes;
}
/**
* @return string[]
*/
public function getEventTypes()
{
return $this->eventTypes;
}
/**
* The ID of the notification.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of item this is. For notifications, this is always
* storage#notification.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* If present, only apply this notification configuration to object names that
* begin with this prefix.
*
* @param string $objectNamePrefix
*/
public function setObjectNamePrefix($objectNamePrefix)
{
$this->objectNamePrefix = $objectNamePrefix;
}
/**
* @return string
*/
public function getObjectNamePrefix()
{
return $this->objectNamePrefix;
}
/**
* The desired content of the Payload.
*
* @param string $payloadFormat
*/
public function setPayloadFormat($payloadFormat)
{
$this->payloadFormat = $payloadFormat;
}
/**
* @return string
*/
public function getPayloadFormat()
{
return $this->payloadFormat;
}
/**
* The canonical URL of this notification.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The Cloud PubSub topic to which this subscription publishes. Formatted as:
* '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'
*
* @param string $topic
*/
public function setTopic($topic)
{
$this->topic = $topic;
}
/**
* @return string
*/
public function getTopic()
{
return $this->topic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notification::class, 'Google_Service_Storage_Notification');
@@ -0,0 +1,69 @@
<?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\Storage;
class Notifications extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Notification::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of notifications, this is always
* storage#notifications.
*
* @var string
*/
public $kind;
/**
* The list of items.
*
* @param Notification[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Notification[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of notifications, this is always
* storage#notifications.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notifications::class, 'Google_Service_Storage_Notifications');
@@ -0,0 +1,322 @@
<?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\Storage;
class ObjectAccessControl extends \Google\Model
{
/**
* The name of the bucket.
*
* @var string
*/
public $bucket;
/**
* The domain associated with the entity, if any.
*
* @var string
*/
public $domain;
/**
* The email address associated with the entity, if any.
*
* @var string
*/
public $email;
/**
* The entity holding the permission, in one of the following forms: - user-
* userId - user-email - group-groupId - group-email - domain-domain -
* project-team-projectId - allUsers - allAuthenticatedUsers Examples: -
* The user liz@example.com would be user-liz@example.com. - The group
* example@googlegroups.com would be group-example@googlegroups.com. - To
* refer to all members of the Google Apps for Business domain example.com,
* the entity would be domain-example.com.
*
* @var string
*/
public $entity;
/**
* The ID for the entity, if any.
*
* @var string
*/
public $entityId;
/**
* HTTP 1.1 Entity tag for the access-control entry.
*
* @var string
*/
public $etag;
/**
* The content generation of the object, if applied to an object.
*
* @var string
*/
public $generation;
/**
* The ID of the access-control entry.
*
* @var string
*/
public $id;
/**
* The kind of item this is. For object access control entries, this is always
* storage#objectAccessControl.
*
* @var string
*/
public $kind;
/**
* The name of the object, if applied to an object.
*
* @var string
*/
public $object;
protected $projectTeamType = ObjectAccessControlProjectTeam::class;
protected $projectTeamDataType = '';
/**
* The access permission for the entity.
*
* @var string
*/
public $role;
/**
* The link to this access-control entry.
*
* @var string
*/
public $selfLink;
/**
* The name of the bucket.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* The domain associated with the entity, if any.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* The email address associated with the entity, if any.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The entity holding the permission, in one of the following forms: - user-
* userId - user-email - group-groupId - group-email - domain-domain -
* project-team-projectId - allUsers - allAuthenticatedUsers Examples: -
* The user liz@example.com would be user-liz@example.com. - The group
* example@googlegroups.com would be group-example@googlegroups.com. - To
* refer to all members of the Google Apps for Business domain example.com,
* the entity would be domain-example.com.
*
* @param string $entity
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* The ID for the entity, if any.
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* HTTP 1.1 Entity tag for the access-control entry.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The content generation of the object, if applied to an object.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* The ID of the access-control entry.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of item this is. For object access control entries, this is always
* storage#objectAccessControl.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The name of the object, if applied to an object.
*
* @param string $object
*/
public function setObject($object)
{
$this->object = $object;
}
/**
* @return string
*/
public function getObject()
{
return $this->object;
}
/**
* The project team associated with the entity, if any.
*
* @param ObjectAccessControlProjectTeam $projectTeam
*/
public function setProjectTeam(ObjectAccessControlProjectTeam $projectTeam)
{
$this->projectTeam = $projectTeam;
}
/**
* @return ObjectAccessControlProjectTeam
*/
public function getProjectTeam()
{
return $this->projectTeam;
}
/**
* The access permission for the entity.
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* The link to this access-control entry.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectAccessControl::class, 'Google_Service_Storage_ObjectAccessControl');
@@ -0,0 +1,70 @@
<?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\Storage;
class ObjectAccessControlProjectTeam extends \Google\Model
{
/**
* The project number.
*
* @var string
*/
public $projectNumber;
/**
* The team.
*
* @var string
*/
public $team;
/**
* The project number.
*
* @param string $projectNumber
*/
public function setProjectNumber($projectNumber)
{
$this->projectNumber = $projectNumber;
}
/**
* @return string
*/
public function getProjectNumber()
{
return $this->projectNumber;
}
/**
* The team.
*
* @param string $team
*/
public function setTeam($team)
{
$this->team = $team;
}
/**
* @return string
*/
public function getTeam()
{
return $this->team;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectAccessControlProjectTeam::class, 'Google_Service_Storage_ObjectAccessControlProjectTeam');
@@ -0,0 +1,69 @@
<?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\Storage;
class ObjectAccessControls extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = ObjectAccessControl::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of object access control entries, this
* is always storage#objectAccessControls.
*
* @var string
*/
public $kind;
/**
* The list of items.
*
* @param ObjectAccessControl[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return ObjectAccessControl[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of object access control entries, this
* is always storage#objectAccessControls.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectAccessControls::class, 'Google_Service_Storage_ObjectAccessControls');
@@ -0,0 +1,92 @@
<?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\Storage;
class ObjectCustomContextPayload extends \Google\Model
{
/**
* The time at which the object context was created in RFC 3339 format.
*
* @var string
*/
public $createTime;
/**
* The time at which the object context was last updated in RFC 3339 format.
*
* @var string
*/
public $updateTime;
/**
* The value of the object context.
*
* @var string
*/
public $value;
/**
* The time at which the object context was created in RFC 3339 format.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The time at which the object context was last updated in RFC 3339 format.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* The value of the object context.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectCustomContextPayload::class, 'Google_Service_Storage_ObjectCustomContextPayload');
+117
View File
@@ -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\Storage;
class Objects extends \Google\Collection
{
protected $collection_key = 'prefixes';
protected $itemsType = StorageObject::class;
protected $itemsDataType = 'array';
/**
* The kind of item this is. For lists of objects, this is always
* storage#objects.
*
* @var string
*/
public $kind;
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The list of prefixes of objects matching-but-not-listed up to and including
* the requested delimiter.
*
* @var string[]
*/
public $prefixes;
/**
* The list of items.
*
* @param StorageObject[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return StorageObject[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of item this is. For lists of objects, this is always
* storage#objects.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The continuation token, used to page through large result sets. Provide
* this value in a subsequent request to return the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of prefixes of objects matching-but-not-listed up to and including
* the requested delimiter.
*
* @param string[] $prefixes
*/
public function setPrefixes($prefixes)
{
$this->prefixes = $prefixes;
}
/**
* @return string[]
*/
public function getPrefixes()
{
return $this->prefixes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Objects::class, 'Google_Service_Storage_Objects');
+148
View File
@@ -0,0 +1,148 @@
<?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\Storage;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = PolicyBindings::class;
protected $bindingsDataType = 'array';
/**
* HTTP 1.1 Entity tag for the policy.
*
* @var string
*/
public $etag;
/**
* The kind of item this is. For policies, this is always storage#policy. This
* field is ignored on input.
*
* @var string
*/
public $kind;
/**
* The ID of the resource to which this policy belongs. Will be of the form
* projects/_/buckets/bucket for buckets,
* projects/_/buckets/bucket/objects/object for objects, and
* projects/_/buckets/bucket/managedFolders/managedFolder. A specific
* generation may be specified by appending #generationNumber to the end of
* the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The
* current generation can be denoted with #0. This field is ignored on input.
*
* @var string
*/
public $resourceId;
/**
* The IAM policy format version.
*
* @var int
*/
public $version;
/**
* An association between a role, which comes with a set of permissions, and
* members who may assume that role.
*
* @param PolicyBindings[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return PolicyBindings[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* HTTP 1.1 Entity tag for the policy.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The kind of item this is. For policies, this is always storage#policy. This
* field is ignored on input.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The ID of the resource to which this policy belongs. Will be of the form
* projects/_/buckets/bucket for buckets,
* projects/_/buckets/bucket/objects/object for objects, and
* projects/_/buckets/bucket/managedFolders/managedFolder. A specific
* generation may be specified by appending #generationNumber to the end of
* the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The
* current generation can be denoted with #0. This field is ignored on input.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* The IAM policy format version.
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_Storage_Policy');
@@ -0,0 +1,163 @@
<?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\Storage;
class PolicyBindings extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* A collection of identifiers for members who may assume the provided role.
* Recognized identifiers are as follows: - allUsers - A special identifier
* that represents anyone on the internet; with or without a Google account.
* - allAuthenticatedUsers - A special identifier that represents anyone who
* is authenticated with a Google account or a service account. -
* user:emailid - An email address that represents a specific account. For
* example, user:alice@gmail.com or user:joe@example.com. -
* serviceAccount:emailid - An email address that represents a service
* account. For example, serviceAccount:my-other-
* app@appspot.gserviceaccount.com . - group:emailid - An email address that
* represents a Google group. For example, group:admins@example.com. -
* domain:domain - A Google Apps domain name that represents all the users of
* that domain. For example, domain:google.com or domain:example.com. -
* projectOwner:projectid - Owners of the given project. For example,
* projectOwner:my-example-project - projectEditor:projectid - Editors of
* the given project. For example, projectEditor:my-example-project -
* projectViewer:projectid - Viewers of the given project. For example,
* projectViewer:my-example-project
*
* @var string[]
*/
public $members;
/**
* The role to which members belong. Two types of roles are supported: new IAM
* roles, which grant permissions that do not map directly to those provided
* by ACLs, and legacy IAM roles, which do map directly to ACL permissions.
* All roles are of the format roles/storage.specificRole. The new IAM roles
* are: - roles/storage.admin - Full control of Google Cloud Storage
* resources. - roles/storage.objectViewer - Read-Only access to Google
* Cloud Storage objects. - roles/storage.objectCreator - Access to create
* objects in Google Cloud Storage. - roles/storage.objectAdmin - Full
* control of Google Cloud Storage objects. The legacy IAM roles are: -
* roles/storage.legacyObjectReader - Read-only access to objects without
* listing. Equivalent to an ACL entry on an object with the READER role. -
* roles/storage.legacyObjectOwner - Read/write access to existing objects
* without listing. Equivalent to an ACL entry on an object with the OWNER
* role. - roles/storage.legacyBucketReader - Read access to buckets with
* object listing. Equivalent to an ACL entry on a bucket with the READER
* role. - roles/storage.legacyBucketWriter - Read access to buckets with
* object listing/creation/deletion. Equivalent to an ACL entry on a bucket
* with the WRITER role. - roles/storage.legacyBucketOwner - Read and write
* access to existing buckets with object listing/creation/deletion.
* Equivalent to an ACL entry on a bucket with the OWNER role.
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. NOTE: an unsatisfied
* condition will not allow user access via current binding. Different
* bindings, including their conditions, are examined independently.
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* A collection of identifiers for members who may assume the provided role.
* Recognized identifiers are as follows: - allUsers - A special identifier
* that represents anyone on the internet; with or without a Google account.
* - allAuthenticatedUsers - A special identifier that represents anyone who
* is authenticated with a Google account or a service account. -
* user:emailid - An email address that represents a specific account. For
* example, user:alice@gmail.com or user:joe@example.com. -
* serviceAccount:emailid - An email address that represents a service
* account. For example, serviceAccount:my-other-
* app@appspot.gserviceaccount.com . - group:emailid - An email address that
* represents a Google group. For example, group:admins@example.com. -
* domain:domain - A Google Apps domain name that represents all the users of
* that domain. For example, domain:google.com or domain:example.com. -
* projectOwner:projectid - Owners of the given project. For example,
* projectOwner:my-example-project - projectEditor:projectid - Editors of
* the given project. For example, projectEditor:my-example-project -
* projectViewer:projectid - Viewers of the given project. For example,
* projectViewer:my-example-project
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* The role to which members belong. Two types of roles are supported: new IAM
* roles, which grant permissions that do not map directly to those provided
* by ACLs, and legacy IAM roles, which do map directly to ACL permissions.
* All roles are of the format roles/storage.specificRole. The new IAM roles
* are: - roles/storage.admin - Full control of Google Cloud Storage
* resources. - roles/storage.objectViewer - Read-Only access to Google
* Cloud Storage objects. - roles/storage.objectCreator - Access to create
* objects in Google Cloud Storage. - roles/storage.objectAdmin - Full
* control of Google Cloud Storage objects. The legacy IAM roles are: -
* roles/storage.legacyObjectReader - Read-only access to objects without
* listing. Equivalent to an ACL entry on an object with the READER role. -
* roles/storage.legacyObjectOwner - Read/write access to existing objects
* without listing. Equivalent to an ACL entry on an object with the OWNER
* role. - roles/storage.legacyBucketReader - Read access to buckets with
* object listing. Equivalent to an ACL entry on a bucket with the READER
* role. - roles/storage.legacyBucketWriter - Read access to buckets with
* object listing/creation/deletion. Equivalent to an ACL entry on a bucket
* with the WRITER role. - roles/storage.legacyBucketOwner - Read and write
* access to existing buckets with object listing/creation/deletion.
* Equivalent to an ACL entry on a bucket with the OWNER role.
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolicyBindings::class, 'Google_Service_Storage_PolicyBindings');
@@ -0,0 +1,115 @@
<?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\Storage;
class RelocateBucketRequest extends \Google\Model
{
protected $destinationCustomPlacementConfigType = RelocateBucketRequestDestinationCustomPlacementConfig::class;
protected $destinationCustomPlacementConfigDataType = '';
/**
* Resource name of a Cloud KMS key, of the form projects/my-
* project/locations/global/keyRings/my-kr/cryptoKeys/my-key. If set, is used
* to encrypt all objects in the destination bucket.
*
* @var string
*/
public $destinationKmsKeyName;
/**
* The new location the bucket will be relocated to.
*
* @var string
*/
public $destinationLocation;
/**
* If true, validate the operation, but do not actually relocate the bucket.
*
* @var bool
*/
public $validateOnly;
/**
* The bucket's new custom placement configuration if relocating to a Custom
* Dual Region.
*
* @param RelocateBucketRequestDestinationCustomPlacementConfig $destinationCustomPlacementConfig
*/
public function setDestinationCustomPlacementConfig(RelocateBucketRequestDestinationCustomPlacementConfig $destinationCustomPlacementConfig)
{
$this->destinationCustomPlacementConfig = $destinationCustomPlacementConfig;
}
/**
* @return RelocateBucketRequestDestinationCustomPlacementConfig
*/
public function getDestinationCustomPlacementConfig()
{
return $this->destinationCustomPlacementConfig;
}
/**
* Resource name of a Cloud KMS key, of the form projects/my-
* project/locations/global/keyRings/my-kr/cryptoKeys/my-key. If set, is used
* to encrypt all objects in the destination bucket.
*
* @param string $destinationKmsKeyName
*/
public function setDestinationKmsKeyName($destinationKmsKeyName)
{
$this->destinationKmsKeyName = $destinationKmsKeyName;
}
/**
* @return string
*/
public function getDestinationKmsKeyName()
{
return $this->destinationKmsKeyName;
}
/**
* The new location the bucket will be relocated to.
*
* @param string $destinationLocation
*/
public function setDestinationLocation($destinationLocation)
{
$this->destinationLocation = $destinationLocation;
}
/**
* @return string
*/
public function getDestinationLocation()
{
return $this->destinationLocation;
}
/**
* If true, validate the operation, but do not actually relocate the bucket.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RelocateBucketRequest::class, 'Google_Service_Storage_RelocateBucketRequest');
@@ -0,0 +1,49 @@
<?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\Storage;
class RelocateBucketRequestDestinationCustomPlacementConfig extends \Google\Collection
{
protected $collection_key = 'dataLocations';
/**
* The list of regional locations in which data is placed.
*
* @var string[]
*/
public $dataLocations;
/**
* The list of regional locations in which data is placed.
*
* @param string[] $dataLocations
*/
public function setDataLocations($dataLocations)
{
$this->dataLocations = $dataLocations;
}
/**
* @return string[]
*/
public function getDataLocations()
{
return $this->dataLocations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RelocateBucketRequestDestinationCustomPlacementConfig::class, 'Google_Service_Storage_RelocateBucketRequestDestinationCustomPlacementConfig');
@@ -0,0 +1,142 @@
<?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\Storage\Resource;
use Google\Service\Storage\AnywhereCache as AnywhereCacheModel;
use Google\Service\Storage\AnywhereCaches;
use Google\Service\Storage\GoogleLongrunningOperation;
/**
* The "anywhereCache" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $anywhereCache = $storageService->anywhereCache;
* </code>
*/
class AnywhereCache extends \Google\Service\Resource
{
/**
* Disables an Anywhere Cache instance. (anywhereCache.disable)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param array $optParams Optional parameters.
* @return AnywhereCacheModel
*/
public function disable($bucket, $anywhereCacheId, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId];
$params = array_merge($params, $optParams);
return $this->call('disable', [$params], AnywhereCacheModel::class);
}
/**
* Returns the metadata of an Anywhere Cache instance. (anywhereCache.get)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param array $optParams Optional parameters.
* @return AnywhereCacheModel
*/
public function get($bucket, $anywhereCacheId, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AnywhereCacheModel::class);
}
/**
* Creates an Anywhere Cache instance. (anywhereCache.insert)
*
* @param string $bucket Name of the parent bucket.
* @param AnywhereCacheModel $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
*/
public function insert($bucket, AnywhereCacheModel $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], GoogleLongrunningOperation::class);
}
/**
* Returns a list of Anywhere Cache instances of the bucket matching the
* criteria. (anywhereCache.listAnywhereCache)
*
* @param string $bucket Name of the parent bucket.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of items return in a single page of
* responses. Maximum 1000.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @return AnywhereCaches
*/
public function listAnywhereCache($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AnywhereCaches::class);
}
/**
* Pauses an Anywhere Cache instance. (anywhereCache.pause)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param array $optParams Optional parameters.
* @return AnywhereCacheModel
*/
public function pause($bucket, $anywhereCacheId, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId];
$params = array_merge($params, $optParams);
return $this->call('pause', [$params], AnywhereCacheModel::class);
}
/**
* Resumes a paused or disabled Anywhere Cache instance. (anywhereCache.resume)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param array $optParams Optional parameters.
* @return AnywhereCacheModel
*/
public function resume($bucket, $anywhereCacheId, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId];
$params = array_merge($params, $optParams);
return $this->call('resume', [$params], AnywhereCacheModel::class);
}
/**
* Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
* (anywhereCache.update)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param AnywhereCacheModel $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
*/
public function update($bucket, $anywhereCacheId, AnywhereCacheModel $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnywhereCache::class, 'Google_Service_Storage_Resource_AnywhereCache');
@@ -0,0 +1,148 @@
<?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\Storage\Resource;
use Google\Service\Storage\AnywhereCache;
use Google\Service\Storage\AnywhereCaches as AnywhereCachesModel;
use Google\Service\Storage\GoogleLongrunningOperation;
/**
* The "anywhereCaches" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $anywhereCaches = $storageService->anywhereCaches;
* </code>
*/
class AnywhereCaches extends \Google\Service\Resource
{
/**
* Disables an Anywhere Cache instance. (anywhereCaches.disable)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param array $optParams Optional parameters.
* @return AnywhereCache
* @throws \Google\Service\Exception
*/
public function disable($bucket, $anywhereCacheId, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId];
$params = array_merge($params, $optParams);
return $this->call('disable', [$params], AnywhereCache::class);
}
/**
* Returns the metadata of an Anywhere Cache instance. (anywhereCaches.get)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param array $optParams Optional parameters.
* @return AnywhereCache
* @throws \Google\Service\Exception
*/
public function get($bucket, $anywhereCacheId, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AnywhereCache::class);
}
/**
* Creates an Anywhere Cache instance. (anywhereCaches.insert)
*
* @param string $bucket Name of the parent bucket.
* @param AnywhereCache $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function insert($bucket, AnywhereCache $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], GoogleLongrunningOperation::class);
}
/**
* Returns a list of Anywhere Cache instances of the bucket matching the
* criteria. (anywhereCaches.listAnywhereCaches)
*
* @param string $bucket Name of the parent bucket.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of items to return in a single page of
* responses. Maximum 1000.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @return AnywhereCachesModel
* @throws \Google\Service\Exception
*/
public function listAnywhereCaches($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AnywhereCachesModel::class);
}
/**
* Pauses an Anywhere Cache instance. (anywhereCaches.pause)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param array $optParams Optional parameters.
* @return AnywhereCache
* @throws \Google\Service\Exception
*/
public function pause($bucket, $anywhereCacheId, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId];
$params = array_merge($params, $optParams);
return $this->call('pause', [$params], AnywhereCache::class);
}
/**
* Resumes a paused or disabled Anywhere Cache instance. (anywhereCaches.resume)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param array $optParams Optional parameters.
* @return AnywhereCache
* @throws \Google\Service\Exception
*/
public function resume($bucket, $anywhereCacheId, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId];
$params = array_merge($params, $optParams);
return $this->call('resume', [$params], AnywhereCache::class);
}
/**
* Updates the config of an Anywhere Cache instance. (anywhereCaches.update)
*
* @param string $bucket Name of the parent bucket.
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.
* @param AnywhereCache $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function update($bucket, $anywhereCacheId, AnywhereCache $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'anywhereCacheId' => $anywhereCacheId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnywhereCaches::class, 'Google_Service_Storage_Resource_AnywhereCaches');
@@ -0,0 +1,156 @@
<?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\Storage\Resource;
use Google\Service\Storage\BucketAccessControl;
use Google\Service\Storage\BucketAccessControls as BucketAccessControlsModel;
/**
* The "bucketAccessControls" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $bucketAccessControls = $storageService->bucketAccessControls;
* </code>
*/
class BucketAccessControls extends \Google\Service\Resource
{
/**
* Permanently deletes the ACL entry for the specified entity on the specified
* bucket. (bucketAccessControls.delete)
*
* @param string $bucket Name of a bucket.
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @throws \Google\Service\Exception
*/
public function delete($bucket, $entity, $optParams = [])
{
$params = ['bucket' => $bucket, 'entity' => $entity];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns the ACL entry for the specified entity on the specified bucket.
* (bucketAccessControls.get)
*
* @param string $bucket Name of a bucket.
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return BucketAccessControl
* @throws \Google\Service\Exception
*/
public function get($bucket, $entity, $optParams = [])
{
$params = ['bucket' => $bucket, 'entity' => $entity];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BucketAccessControl::class);
}
/**
* Creates a new ACL entry on the specified bucket.
* (bucketAccessControls.insert)
*
* @param string $bucket Name of a bucket.
* @param BucketAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return BucketAccessControl
* @throws \Google\Service\Exception
*/
public function insert($bucket, BucketAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], BucketAccessControl::class);
}
/**
* Retrieves ACL entries on the specified bucket.
* (bucketAccessControls.listBucketAccessControls)
*
* @param string $bucket Name of a bucket.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return BucketAccessControlsModel
* @throws \Google\Service\Exception
*/
public function listBucketAccessControls($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], BucketAccessControlsModel::class);
}
/**
* Patches an ACL entry on the specified bucket. (bucketAccessControls.patch)
*
* @param string $bucket Name of a bucket.
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param BucketAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return BucketAccessControl
* @throws \Google\Service\Exception
*/
public function patch($bucket, $entity, BucketAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], BucketAccessControl::class);
}
/**
* Updates an ACL entry on the specified bucket. (bucketAccessControls.update)
*
* @param string $bucket Name of a bucket.
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param BucketAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return BucketAccessControl
* @throws \Google\Service\Exception
*/
public function update($bucket, $entity, BucketAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], BucketAccessControl::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketAccessControls::class, 'Google_Service_Storage_Resource_BucketAccessControls');
@@ -0,0 +1,339 @@
<?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\Storage\Resource;
use Google\Service\Storage\Bucket;
use Google\Service\Storage\BucketStorageLayout;
use Google\Service\Storage\Buckets as BucketsModel;
use Google\Service\Storage\GoogleLongrunningOperation;
use Google\Service\Storage\Policy;
use Google\Service\Storage\RelocateBucketRequest;
use Google\Service\Storage\TestIamPermissionsResponse;
/**
* The "buckets" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $buckets = $storageService->buckets;
* </code>
*/
class Buckets extends \Google\Service\Resource
{
/**
* Deletes an empty bucket. Deletions are permanent unless soft delete is
* enabled on the bucket. (buckets.delete)
*
* @param string $bucket Name of a bucket.
* @param array $optParams Optional parameters.
*
* @opt_param string ifMetagenerationMatch If set, only deletes the bucket if
* its metageneration matches this value.
* @opt_param string ifMetagenerationNotMatch If set, only deletes the bucket if
* its metageneration does not match this value.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @throws \Google\Service\Exception
*/
public function delete($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns metadata for the specified bucket. (buckets.get)
*
* @param string $bucket Name of a bucket.
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, specifies the generation of the
* bucket. This is required if softDeleted is true.
* @opt_param string ifMetagenerationMatch Makes the return of the bucket
* metadata conditional on whether the bucket's current metageneration matches
* the given value.
* @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
* metadata conditional on whether the bucket's current metageneration does not
* match the given value.
* @opt_param string projection Set of properties to return. Defaults to noAcl.
* @opt_param bool softDeleted If true, return the soft-deleted version of this
* bucket. The default is false. For more information, see [Soft
* Delete](https://cloud.google.com/storage/docs/soft-delete).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function get($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Bucket::class);
}
/**
* Returns an IAM policy for the specified bucket. (buckets.getIamPolicy)
*
* @param string $bucket Name of a bucket.
* @param array $optParams Optional parameters.
*
* @opt_param int optionsRequestedPolicyVersion The IAM policy format version to
* be returned. If the optionsRequestedPolicyVersion is for an older version
* that doesn't support part of the requested IAM policy, the request fails.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Returns the storage layout configuration for the specified bucket. Note that
* this operation requires storage.objects.list permission.
* (buckets.getStorageLayout)
*
* @param string $bucket Name of a bucket.
* @param array $optParams Optional parameters.
*
* @opt_param string prefix An optional prefix used for permission check. It is
* useful when the caller only has storage.objects.list permission under a
* specific prefix.
* @return BucketStorageLayout
* @throws \Google\Service\Exception
*/
public function getStorageLayout($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('getStorageLayout', [$params], BucketStorageLayout::class);
}
/**
* Creates a new bucket. (buckets.insert)
*
* @param string $project A valid API project identifier.
* @param Bucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool enableObjectRetention When set to true, object retention is
* enabled for this bucket.
* @opt_param string predefinedAcl Apply a predefined set of access controls to
* this bucket.
* @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
* default object access controls to this bucket.
* @opt_param string projection Set of properties to return. Defaults to noAcl,
* unless the bucket resource specifies acl or defaultObjectAcl properties, when
* it defaults to full.
* @opt_param string userProject The project to be billed for this request.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function insert($project, Bucket $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Bucket::class);
}
/**
* Retrieves a list of buckets for a given project. (buckets.listBuckets)
*
* @param string $project A valid API project identifier.
* @param array $optParams Optional parameters.
*
* @opt_param string maxResults Maximum number of buckets to return in a single
* response. The service will use this parameter or 1,000 items, whichever is
* smaller.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @opt_param string prefix Filter results to buckets whose names begin with
* this prefix.
* @opt_param string projection Set of properties to return. Defaults to noAcl.
* @opt_param bool returnPartialSuccess If true, return a list of bucket
* resource names for buckets that are in unreachable locations.
* @opt_param bool softDeleted If true, only soft-deleted bucket versions will
* be returned. The default is false. For more information, see [Soft
* Delete](https://cloud.google.com/storage/docs/soft-delete).
* @opt_param string userProject The project to be billed for this request.
* @return BucketsModel
* @throws \Google\Service\Exception
*/
public function listBuckets($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], BucketsModel::class);
}
/**
* Locks retention policy on a bucket. (buckets.lockRetentionPolicy)
*
* @param string $bucket Name of a bucket.
* @param string $ifMetagenerationMatch Makes the operation conditional on
* whether bucket's current metageneration matches the given value.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function lockRetentionPolicy($bucket, $ifMetagenerationMatch, $optParams = [])
{
$params = ['bucket' => $bucket, 'ifMetagenerationMatch' => $ifMetagenerationMatch];
$params = array_merge($params, $optParams);
return $this->call('lockRetentionPolicy', [$params], Bucket::class);
}
/**
* Patches a bucket. Changes to the bucket will be readable immediately after
* writing, but configuration changes may take time to propagate.
* (buckets.patch)
*
* @param string $bucket Name of a bucket.
* @param Bucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string ifMetagenerationMatch Makes the return of the bucket
* metadata conditional on whether the bucket's current metageneration matches
* the given value.
* @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
* metadata conditional on whether the bucket's current metageneration does not
* match the given value.
* @opt_param string predefinedAcl Apply a predefined set of access controls to
* this bucket.
* @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
* default object access controls to this bucket.
* @opt_param string projection Set of properties to return. Defaults to full.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function patch($bucket, Bucket $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Bucket::class);
}
/**
* Initiates a long-running Relocate Bucket operation on the specified bucket.
* (buckets.relocate)
*
* @param string $bucket Name of the bucket to be moved.
* @param RelocateBucketRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function relocate($bucket, RelocateBucketRequest $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('relocate', [$params], GoogleLongrunningOperation::class);
}
/**
* Restores a soft-deleted bucket. (buckets.restore)
*
* @param string $bucket Name of a bucket.
* @param string $generation Generation of a bucket.
* @param array $optParams Optional parameters.
*
* @opt_param string projection Set of properties to return. Defaults to full.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function restore($bucket, $generation, $optParams = [])
{
$params = ['bucket' => $bucket, 'generation' => $generation];
$params = array_merge($params, $optParams);
return $this->call('restore', [$params], Bucket::class);
}
/**
* Updates an IAM policy for the specified bucket. (buckets.setIamPolicy)
*
* @param string $bucket Name of a bucket.
* @param Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($bucket, Policy $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Tests a set of permissions on the given bucket to see which, if any, are held
* by the caller. (buckets.testIamPermissions)
*
* @param string $bucket Name of a bucket.
* @param string|array $permissions Permissions to test.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($bucket, $permissions, $optParams = [])
{
$params = ['bucket' => $bucket, 'permissions' => $permissions];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Updates a bucket. Changes to the bucket will be readable immediately after
* writing, but configuration changes may take time to propagate.
* (buckets.update)
*
* @param string $bucket Name of a bucket.
* @param Bucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string ifMetagenerationMatch Makes the return of the bucket
* metadata conditional on whether the bucket's current metageneration matches
* the given value.
* @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
* metadata conditional on whether the bucket's current metageneration does not
* match the given value.
* @opt_param string predefinedAcl Apply a predefined set of access controls to
* this bucket.
* @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
* default object access controls to this bucket.
* @opt_param string projection Set of properties to return. Defaults to full.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function update($bucket, Bucket $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Bucket::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Buckets::class, 'Google_Service_Storage_Resource_Buckets');
@@ -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\Storage\Resource;
use Google\Service\Storage\Channel;
/**
* The "channels" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $channels = $storageService->channels;
* </code>
*/
class Channels extends \Google\Service\Resource
{
/**
* Stop watching resources through this channel (channels.stop)
*
* @param Channel $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function stop(Channel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channels::class, 'Google_Service_Storage_Resource_Channels');
@@ -0,0 +1,163 @@
<?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\Storage\Resource;
use Google\Service\Storage\ObjectAccessControl;
use Google\Service\Storage\ObjectAccessControls as ObjectAccessControlsModel;
/**
* The "defaultObjectAccessControls" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
* </code>
*/
class DefaultObjectAccessControls extends \Google\Service\Resource
{
/**
* Permanently deletes the default object ACL entry for the specified entity on
* the specified bucket. (defaultObjectAccessControls.delete)
*
* @param string $bucket Name of a bucket.
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @throws \Google\Service\Exception
*/
public function delete($bucket, $entity, $optParams = [])
{
$params = ['bucket' => $bucket, 'entity' => $entity];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns the default object ACL entry for the specified entity on the
* specified bucket. (defaultObjectAccessControls.get)
*
* @param string $bucket Name of a bucket.
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControl
* @throws \Google\Service\Exception
*/
public function get($bucket, $entity, $optParams = [])
{
$params = ['bucket' => $bucket, 'entity' => $entity];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ObjectAccessControl::class);
}
/**
* Creates a new default object ACL entry on the specified bucket.
* (defaultObjectAccessControls.insert)
*
* @param string $bucket Name of a bucket.
* @param ObjectAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControl
* @throws \Google\Service\Exception
*/
public function insert($bucket, ObjectAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], ObjectAccessControl::class);
}
/**
* Retrieves default object ACL entries on the specified bucket.
* (defaultObjectAccessControls.listDefaultObjectAccessControls)
*
* @param string $bucket Name of a bucket.
* @param array $optParams Optional parameters.
*
* @opt_param string ifMetagenerationMatch If present, only return default ACL
* listing if the bucket's current metageneration matches this value.
* @opt_param string ifMetagenerationNotMatch If present, only return default
* ACL listing if the bucket's current metageneration does not match the given
* value.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControlsModel
* @throws \Google\Service\Exception
*/
public function listDefaultObjectAccessControls($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ObjectAccessControlsModel::class);
}
/**
* Patches a default object ACL entry on the specified bucket.
* (defaultObjectAccessControls.patch)
*
* @param string $bucket Name of a bucket.
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param ObjectAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControl
* @throws \Google\Service\Exception
*/
public function patch($bucket, $entity, ObjectAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ObjectAccessControl::class);
}
/**
* Updates a default object ACL entry on the specified bucket.
* (defaultObjectAccessControls.update)
*
* @param string $bucket Name of a bucket.
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param ObjectAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControl
* @throws \Google\Service\Exception
*/
public function update($bucket, $entity, ObjectAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ObjectAccessControl::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DefaultObjectAccessControls::class, 'Google_Service_Storage_Resource_DefaultObjectAccessControls');
@@ -0,0 +1,178 @@
<?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\Storage\Resource;
use Google\Service\Storage\Folder;
use Google\Service\Storage\Folders as FoldersModel;
use Google\Service\Storage\GoogleLongrunningOperation;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $folders = $storageService->folders;
* </code>
*/
class Folders extends \Google\Service\Resource
{
/**
* Permanently deletes a folder. Only applicable to buckets with hierarchical
* namespace enabled. (folders.delete)
*
* @param string $bucket Name of the bucket in which the folder resides.
* @param string $folder Name of a folder.
* @param array $optParams Optional parameters.
*
* @opt_param string ifMetagenerationMatch If set, only deletes the folder if
* its metageneration matches this value.
* @opt_param string ifMetagenerationNotMatch If set, only deletes the folder if
* its metageneration does not match this value.
* @throws \Google\Service\Exception
*/
public function delete($bucket, $folder, $optParams = [])
{
$params = ['bucket' => $bucket, 'folder' => $folder];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Deletes a folder recursively. Only applicable to buckets with hierarchical
* namespace enabled. (folders.deleteRecursive)
*
* @param string $bucket Name of the bucket in which the folder resides.
* @param string $folder Name of a folder.
* @param array $optParams Optional parameters.
*
* @opt_param string ifMetagenerationMatch If set, only deletes the folder if
* its metageneration matches this value.
* @opt_param string ifMetagenerationNotMatch If set, only deletes the folder if
* its metageneration does not match this value.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function deleteRecursive($bucket, $folder, $optParams = [])
{
$params = ['bucket' => $bucket, 'folder' => $folder];
$params = array_merge($params, $optParams);
return $this->call('deleteRecursive', [$params], GoogleLongrunningOperation::class);
}
/**
* Returns metadata for the specified folder. Only applicable to buckets with
* hierarchical namespace enabled. (folders.get)
*
* @param string $bucket Name of the bucket in which the folder resides.
* @param string $folder Name of a folder.
* @param array $optParams Optional parameters.
*
* @opt_param string ifMetagenerationMatch Makes the return of the folder
* metadata conditional on whether the folder's current metageneration matches
* the given value.
* @opt_param string ifMetagenerationNotMatch Makes the return of the folder
* metadata conditional on whether the folder's current metageneration does not
* match the given value.
* @return Folder
* @throws \Google\Service\Exception
*/
public function get($bucket, $folder, $optParams = [])
{
$params = ['bucket' => $bucket, 'folder' => $folder];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Folder::class);
}
/**
* Creates a new folder. Only applicable to buckets with hierarchical namespace
* enabled. (folders.insert)
*
* @param string $bucket Name of the bucket in which the folder resides.
* @param Folder $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool recursive If true, any parent folder which doesn't exist will
* be created automatically.
* @return Folder
* @throws \Google\Service\Exception
*/
public function insert($bucket, Folder $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Folder::class);
}
/**
* Retrieves a list of folders matching the criteria. Only applicable to buckets
* with hierarchical namespace enabled. (folders.listFolders)
*
* @param string $bucket Name of the bucket in which to look for folders.
* @param array $optParams Optional parameters.
*
* @opt_param string delimiter Returns results in a directory-like mode. The
* only supported value is '/'. If set, items will only contain folders that
* either exactly match the prefix, or are one level below the prefix.
* @opt_param string endOffset Filter results to folders whose names are
* lexicographically before endOffset. If startOffset is also set, the folders
* listed will have names between startOffset (inclusive) and endOffset
* (exclusive).
* @opt_param int pageSize Maximum number of items to return in a single page of
* responses.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @opt_param string prefix Filter results to folders whose paths begin with
* this prefix. If set, the value must either be an empty string or end with a
* '/'.
* @opt_param string startOffset Filter results to folders whose names are
* lexicographically equal to or after startOffset. If endOffset is also set,
* the folders listed will have names between startOffset (inclusive) and
* endOffset (exclusive).
* @return FoldersModel
* @throws \Google\Service\Exception
*/
public function listFolders($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], FoldersModel::class);
}
/**
* Renames a source folder to a destination folder. Only applicable to buckets
* with hierarchical namespace enabled. (folders.rename)
*
* @param string $bucket Name of the bucket in which the folders are in.
* @param string $sourceFolder Name of the source folder.
* @param string $destinationFolder Name of the destination folder.
* @param array $optParams Optional parameters.
*
* @opt_param string ifSourceMetagenerationMatch Makes the operation conditional
* on whether the source object's current metageneration matches the given
* value.
* @opt_param string ifSourceMetagenerationNotMatch Makes the operation
* conditional on whether the source object's current metageneration does not
* match the given value.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function rename($bucket, $sourceFolder, $destinationFolder, $optParams = [])
{
$params = ['bucket' => $bucket, 'sourceFolder' => $sourceFolder, 'destinationFolder' => $destinationFolder];
$params = array_merge($params, $optParams);
return $this->call('rename', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folders::class, 'Google_Service_Storage_Resource_Folders');
@@ -0,0 +1,182 @@
<?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\Storage\Resource;
use Google\Service\Storage\ManagedFolder;
use Google\Service\Storage\ManagedFolders as ManagedFoldersModel;
use Google\Service\Storage\Policy;
use Google\Service\Storage\TestIamPermissionsResponse;
/**
* The "managedFolders" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $managedFolders = $storageService->managedFolders;
* </code>
*/
class ManagedFolders extends \Google\Service\Resource
{
/**
* Permanently deletes a managed folder. (managedFolders.delete)
*
* @param string $bucket Name of the bucket containing the managed folder.
* @param string $managedFolder The managed folder name/path.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowNonEmpty Allows the deletion of a managed folder even if
* it is not empty. A managed folder is empty if there are no objects or managed
* folders that it applies to. Callers must have
* storage.managedFolders.setIamPolicy permission.
* @opt_param string ifMetagenerationMatch If set, only deletes the managed
* folder if its metageneration matches this value.
* @opt_param string ifMetagenerationNotMatch If set, only deletes the managed
* folder if its metageneration does not match this value.
* @throws \Google\Service\Exception
*/
public function delete($bucket, $managedFolder, $optParams = [])
{
$params = ['bucket' => $bucket, 'managedFolder' => $managedFolder];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns metadata of the specified managed folder. (managedFolders.get)
*
* @param string $bucket Name of the bucket containing the managed folder.
* @param string $managedFolder The managed folder name/path.
* @param array $optParams Optional parameters.
*
* @opt_param string ifMetagenerationMatch Makes the return of the managed
* folder metadata conditional on whether the managed folder's current
* metageneration matches the given value.
* @opt_param string ifMetagenerationNotMatch Makes the return of the managed
* folder metadata conditional on whether the managed folder's current
* metageneration does not match the given value.
* @return ManagedFolder
* @throws \Google\Service\Exception
*/
public function get($bucket, $managedFolder, $optParams = [])
{
$params = ['bucket' => $bucket, 'managedFolder' => $managedFolder];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ManagedFolder::class);
}
/**
* Returns an IAM policy for the specified managed folder.
* (managedFolders.getIamPolicy)
*
* @param string $bucket Name of the bucket containing the managed folder.
* @param string $managedFolder The managed folder name/path.
* @param array $optParams Optional parameters.
*
* @opt_param int optionsRequestedPolicyVersion The IAM policy format version to
* be returned. If the optionsRequestedPolicyVersion is for an older version
* that doesn't support part of the requested IAM policy, the request fails.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($bucket, $managedFolder, $optParams = [])
{
$params = ['bucket' => $bucket, 'managedFolder' => $managedFolder];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Creates a new managed folder. (managedFolders.insert)
*
* @param string $bucket Name of the bucket containing the managed folder.
* @param ManagedFolder $postBody
* @param array $optParams Optional parameters.
* @return ManagedFolder
* @throws \Google\Service\Exception
*/
public function insert($bucket, ManagedFolder $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], ManagedFolder::class);
}
/**
* Lists managed folders in the given bucket.
* (managedFolders.listManagedFolders)
*
* @param string $bucket Name of the bucket containing the managed folder.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of items to return in a single page of
* responses.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @opt_param string prefix The managed folder name/path prefix to filter the
* output list of results.
* @return ManagedFoldersModel
* @throws \Google\Service\Exception
*/
public function listManagedFolders($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ManagedFoldersModel::class);
}
/**
* Updates an IAM policy for the specified managed folder.
* (managedFolders.setIamPolicy)
*
* @param string $bucket Name of the bucket containing the managed folder.
* @param string $managedFolder The managed folder name/path.
* @param Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($bucket, $managedFolder, Policy $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'managedFolder' => $managedFolder, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Tests a set of permissions on the given managed folder to see which, if any,
* are held by the caller. (managedFolders.testIamPermissions)
*
* @param string $bucket Name of the bucket containing the managed folder.
* @param string $managedFolder The managed folder name/path.
* @param string|array $permissions Permissions to test.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($bucket, $managedFolder, $permissions, $optParams = [])
{
$params = ['bucket' => $bucket, 'managedFolder' => $managedFolder, 'permissions' => $permissions];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedFolders::class, 'Google_Service_Storage_Resource_ManagedFolders');
@@ -0,0 +1,108 @@
<?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\Storage\Resource;
use Google\Service\Storage\Notification;
use Google\Service\Storage\Notifications as NotificationsModel;
/**
* The "notifications" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $notifications = $storageService->notifications;
* </code>
*/
class Notifications extends \Google\Service\Resource
{
/**
* Permanently deletes a notification subscription. (notifications.delete)
*
* @param string $bucket The parent bucket of the notification.
* @param string $notification ID of the notification to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @throws \Google\Service\Exception
*/
public function delete($bucket, $notification, $optParams = [])
{
$params = ['bucket' => $bucket, 'notification' => $notification];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* View a notification configuration. (notifications.get)
*
* @param string $bucket The parent bucket of the notification.
* @param string $notification Notification ID
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Notification
* @throws \Google\Service\Exception
*/
public function get($bucket, $notification, $optParams = [])
{
$params = ['bucket' => $bucket, 'notification' => $notification];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Notification::class);
}
/**
* Creates a notification subscription for a given bucket.
* (notifications.insert)
*
* @param string $bucket The parent bucket of the notification.
* @param Notification $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Notification
* @throws \Google\Service\Exception
*/
public function insert($bucket, Notification $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Notification::class);
}
/**
* Retrieves a list of notification subscriptions for a given bucket.
* (notifications.listNotifications)
*
* @param string $bucket Name of a Google Cloud Storage bucket.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return NotificationsModel
* @throws \Google\Service\Exception
*/
public function listNotifications($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], NotificationsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notifications::class, 'Google_Service_Storage_Resource_Notifications');
@@ -0,0 +1,186 @@
<?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\Storage\Resource;
use Google\Service\Storage\ObjectAccessControl;
use Google\Service\Storage\ObjectAccessControls as ObjectAccessControlsModel;
/**
* The "objectAccessControls" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $objectAccessControls = $storageService->objectAccessControls;
* </code>
*/
class ObjectAccessControls extends \Google\Service\Resource
{
/**
* Permanently deletes the ACL entry for the specified entity on the specified
* object. (objectAccessControls.delete)
*
* @param string $bucket Name of a bucket.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @throws \Google\Service\Exception
*/
public function delete($bucket, $object, $entity, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'entity' => $entity];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns the ACL entry for the specified entity on the specified object.
* (objectAccessControls.get)
*
* @param string $bucket Name of a bucket.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControl
* @throws \Google\Service\Exception
*/
public function get($bucket, $object, $entity, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'entity' => $entity];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ObjectAccessControl::class);
}
/**
* Creates a new ACL entry on the specified object.
* (objectAccessControls.insert)
*
* @param string $bucket Name of a bucket.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param ObjectAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControl
* @throws \Google\Service\Exception
*/
public function insert($bucket, $object, ObjectAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], ObjectAccessControl::class);
}
/**
* Retrieves ACL entries on the specified object.
* (objectAccessControls.listObjectAccessControls)
*
* @param string $bucket Name of a bucket.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControlsModel
* @throws \Google\Service\Exception
*/
public function listObjectAccessControls($bucket, $object, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ObjectAccessControlsModel::class);
}
/**
* Patches an ACL entry on the specified object. (objectAccessControls.patch)
*
* @param string $bucket Name of a bucket.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param ObjectAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControl
* @throws \Google\Service\Exception
*/
public function patch($bucket, $object, $entity, ObjectAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ObjectAccessControl::class);
}
/**
* Updates an ACL entry on the specified object. (objectAccessControls.update)
*
* @param string $bucket Name of a bucket.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string $entity The entity holding the permission. Can be user-userId,
* user-emailAddress, group-groupId, group-emailAddress, allUsers, or
* allAuthenticatedUsers.
* @param ObjectAccessControl $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return ObjectAccessControl
* @throws \Google\Service\Exception
*/
public function update($bucket, $object, $entity, ObjectAccessControl $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ObjectAccessControl::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectAccessControls::class, 'Google_Service_Storage_Resource_ObjectAccessControls');
@@ -0,0 +1,723 @@
<?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\Storage\Resource;
use Google\Service\Storage\BulkRestoreObjectsRequest;
use Google\Service\Storage\Channel;
use Google\Service\Storage\ComposeRequest;
use Google\Service\Storage\GoogleLongrunningOperation;
use Google\Service\Storage\Objects as ObjectsModel;
use Google\Service\Storage\Policy;
use Google\Service\Storage\RewriteResponse;
use Google\Service\Storage\StorageObject;
use Google\Service\Storage\TestIamPermissionsResponse;
/**
* The "objects" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $objects = $storageService->objects;
* </code>
*/
class Objects extends \Google\Service\Resource
{
/**
* Initiates a long-running bulk restore operation on the specified bucket.
* (objects.bulkRestore)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param BulkRestoreObjectsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function bulkRestore($bucket, BulkRestoreObjectsRequest $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('bulkRestore', [$params], GoogleLongrunningOperation::class);
}
/**
* Concatenates a list of existing objects into a new object in the same bucket.
* (objects.compose)
*
* @param string $destinationBucket Name of the bucket containing the source
* objects. The destination object is stored in this bucket.
* @param string $destinationObject Name of the new object. For information
* about how to URL encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param ComposeRequest $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string destinationPredefinedAcl Apply a predefined set of access
* controls to the destination object.
* @opt_param string dropContextGroups Specifies which groups of Object Contexts
* from the source object(s) should be dropped from the destination object.
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the object's current generation matches the given value. Setting to 0
* makes the operation succeed only if there are no live versions of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the object's current metageneration matches the given value.
* @opt_param string kmsKeyName Resource name of the Cloud KMS key, of the form
* projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that
* will be used to encrypt the object. Overrides the object metadata's
* kms_key_name value, if any.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return StorageObject
* @throws \Google\Service\Exception
*/
public function compose($destinationBucket, $destinationObject, ComposeRequest $postBody, $optParams = [])
{
$params = ['destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('compose', [$params], StorageObject::class);
}
/**
* Copies a source object to a destination object. Optionally overrides
* metadata. (objects.copy)
*
* @param string $sourceBucket Name of the bucket in which to find the source
* object.
* @param string $sourceObject Name of the source object. For information about
* how to URL encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string $destinationBucket Name of the bucket in which to store the new
* object. Overrides the provided object metadata's bucket value, if any.For
* information about how to URL encode object names to be path safe, see
* [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-
* endpoints#encoding).
* @param string $destinationObject Name of the new object. Required when the
* object metadata is not otherwise provided. Overrides the object metadata's
* name value, if any.
* @param StorageObject $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string destinationKmsKeyName Resource name of the Cloud KMS key,
* of the form projects/my-project/locations/global/keyRings/my-
* kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
* object metadata's kms_key_name value, if any.
* @opt_param string destinationPredefinedAcl Apply a predefined set of access
* controls to the destination object.
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the destination object's current generation matches the given value.
* Setting to 0 makes the operation succeed only if there are no live versions
* of the object.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether the destination object's current generation does not match the given
* value. If no live object exists, the precondition fails. Setting to 0 makes
* the operation succeed only if there is a live version of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the destination object's current metageneration matches the given
* value.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether the destination object's current metageneration does not match the
* given value.
* @opt_param string ifSourceGenerationMatch Makes the operation conditional on
* whether the source object's current generation matches the given value.
* @opt_param string ifSourceGenerationNotMatch Makes the operation conditional
* on whether the source object's current generation does not match the given
* value.
* @opt_param string ifSourceMetagenerationMatch Makes the operation conditional
* on whether the source object's current metageneration matches the given
* value.
* @opt_param string ifSourceMetagenerationNotMatch Makes the operation
* conditional on whether the source object's current metageneration does not
* match the given value.
* @opt_param string projection Set of properties to return. Defaults to noAcl,
* unless the object resource specifies the acl property, when it defaults to
* full.
* @opt_param string sourceGeneration If present, selects a specific revision of
* the source object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return StorageObject
* @throws \Google\Service\Exception
*/
public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, StorageObject $postBody, $optParams = [])
{
$params = ['sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('copy', [$params], StorageObject::class);
}
/**
* Deletes an object and its metadata. Deletions are permanent if versioning is
* not enabled for the bucket, or if the generation parameter is used.
* (objects.delete)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, permanently deletes a specific
* revision of this object (as opposed to the latest version, the default).
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the object's current generation matches the given value. Setting to 0
* makes the operation succeed only if there are no live versions of the object.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether the object's current generation does not match the given value. If no
* live object exists, the precondition fails. Setting to 0 makes the operation
* succeed only if there is a live version of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the object's current metageneration matches the given value.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether the object's current metageneration does not match the given value.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @throws \Google\Service\Exception
*/
public function delete($bucket, $object, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves an object or its metadata. (objects.get)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the object's current generation matches the given value. Setting to 0
* makes the operation succeed only if there are no live versions of the object.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether the object's current generation does not match the given value. If no
* live object exists, the precondition fails. Setting to 0 makes the operation
* succeed only if there is a live version of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the object's current metageneration matches the given value.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether the object's current metageneration does not match the given value.
* @opt_param string projection Set of properties to return. Defaults to noAcl.
* @opt_param string restoreToken Restore token used to differentiate soft-
* deleted objects with the same name and generation. Only applicable for
* hierarchical namespace buckets and if softDeleted is set to true. This
* parameter is optional, and is only required in the rare case when there are
* multiple soft-deleted objects with the same name and generation.
* @opt_param bool softDeleted If true, only soft-deleted object versions will
* be listed. The default is false. For more information, see [Soft
* Delete](https://cloud.google.com/storage/docs/soft-delete).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return StorageObject
* @throws \Google\Service\Exception
*/
public function get($bucket, $object, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], StorageObject::class);
}
/**
* Returns an IAM policy for the specified object. (objects.getIamPolicy)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($bucket, $object, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Stores a new object and metadata. (objects.insert)
*
* @param string $bucket Name of the bucket in which to store the new object.
* Overrides the provided object metadata's bucket value, if any.
* @param StorageObject $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string contentEncoding If set, sets the contentEncoding property
* of the final object to this value. Setting this parameter is equivalent to
* setting the contentEncoding metadata property. This can be useful when
* uploading an object with uploadType=media to indicate the encoding of the
* content being uploaded.
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the object's current generation matches the given value. Setting to 0
* makes the operation succeed only if there are no live versions of the object.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether the object's current generation does not match the given value. If no
* live object exists, the precondition fails. Setting to 0 makes the operation
* succeed only if there is a live version of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the object's current metageneration matches the given value.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether the object's current metageneration does not match the given value.
* @opt_param string kmsKeyName Resource name of the Cloud KMS key, of the form
* projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that
* will be used to encrypt the object. Overrides the object metadata's
* kms_key_name value, if any.
* @opt_param string name Name of the object. Required when the object metadata
* is not otherwise provided. Overrides the object metadata's name value, if
* any. For information about how to URL encode object names to be path safe,
* see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-
* endpoints#encoding).
* @opt_param string predefinedAcl Apply a predefined set of access controls to
* this object.
* @opt_param string projection Set of properties to return. Defaults to noAcl,
* unless the object resource specifies the acl property, when it defaults to
* full.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return StorageObject
* @throws \Google\Service\Exception
*/
public function insert($bucket, StorageObject $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], StorageObject::class);
}
/**
* Retrieves a list of objects matching the criteria. (objects.listObjects)
*
* @param string $bucket Name of the bucket in which to look for objects.
* @param array $optParams Optional parameters.
*
* @opt_param string delimiter Returns results in a directory-like mode. items
* will contain only objects whose names, aside from the prefix, do not contain
* delimiter. Objects whose names, aside from the prefix, contain delimiter will
* have their name, truncated after the delimiter, returned in prefixes.
* Duplicate prefixes are omitted.
* @opt_param string endOffset Filter results to objects whose names are
* lexicographically before endOffset. If startOffset is also set, the objects
* listed will have names between startOffset (inclusive) and endOffset
* (exclusive).
* @opt_param string filter Filter the returned objects. Currently only
* supported for the contexts field. If delimiter is set, the returned prefixes
* are exempt from this filter.
* @opt_param bool includeFoldersAsPrefixes Only applicable if delimiter is set
* to '/'. If true, will also include folders and managed folders (besides
* objects) in the returned prefixes.
* @opt_param bool includeTrailingDelimiter If true, objects that end in exactly
* one instance of delimiter will have their metadata included in items in
* addition to prefixes.
* @opt_param string matchGlob Filter results to objects and prefixes that match
* this glob pattern.
* @opt_param string maxResults Maximum number of items plus prefixes to return
* in a single page of responses. As duplicate prefixes are omitted, fewer total
* results may be returned than requested. The service will use this parameter
* or 1,000 items, whichever is smaller.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @opt_param string prefix Filter results to objects whose names begin with
* this prefix.
* @opt_param string projection Set of properties to return. Defaults to noAcl.
* @opt_param bool softDeleted If true, only soft-deleted object versions will
* be listed. The default is false. For more information, see [Soft
* Delete](https://cloud.google.com/storage/docs/soft-delete).
* @opt_param string startOffset Filter results to objects whose names are
* lexicographically equal to or after startOffset. If endOffset is also set,
* the objects listed will have names between startOffset (inclusive) and
* endOffset (exclusive).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @opt_param bool versions If true, lists all versions of an object as distinct
* results. The default is false. For more information, see [Object
* Versioning](https://cloud.google.com/storage/docs/object-versioning).
* @return ObjectsModel
* @throws \Google\Service\Exception
*/
public function listObjects($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ObjectsModel::class);
}
/**
* Moves the source object to the destination object in the same bucket.
* (objects.move)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $sourceObject Name of the source object. For information about
* how to URL encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string $destinationObject Name of the destination object. For
* information about how to URL encode object names to be path safe, see
* [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-
* endpoints#encoding).
* @param array $optParams Optional parameters.
*
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the destination object's current generation matches the given value.
* Setting to 0 makes the operation succeed only if there are no live versions
* of the object. `ifGenerationMatch` and `ifGenerationNotMatch` conditions are
* mutually exclusive: it's an error for both of them to be set in the request.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether the destination object's current generation does not match the given
* value. If no live object exists, the precondition fails. Setting to 0 makes
* the operation succeed only if there is a live version of the
* object.`ifGenerationMatch` and `ifGenerationNotMatch` conditions are mutually
* exclusive: it's an error for both of them to be set in the request.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the destination object's current metageneration matches the given
* value. `ifMetagenerationMatch` and `ifMetagenerationNotMatch` conditions are
* mutually exclusive: it's an error for both of them to be set in the request.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether the destination object's current metageneration does not match the
* given value. `ifMetagenerationMatch` and `ifMetagenerationNotMatch`
* conditions are mutually exclusive: it's an error for both of them to be set
* in the request.
* @opt_param string ifSourceGenerationMatch Makes the operation conditional on
* whether the source object's current generation matches the given value.
* `ifSourceGenerationMatch` and `ifSourceGenerationNotMatch` conditions are
* mutually exclusive: it's an error for both of them to be set in the request.
* @opt_param string ifSourceGenerationNotMatch Makes the operation conditional
* on whether the source object's current generation does not match the given
* value. `ifSourceGenerationMatch` and `ifSourceGenerationNotMatch` conditions
* are mutually exclusive: it's an error for both of them to be set in the
* request.
* @opt_param string ifSourceMetagenerationMatch Makes the operation conditional
* on whether the source object's current metageneration matches the given
* value. `ifSourceMetagenerationMatch` and `ifSourceMetagenerationNotMatch`
* conditions are mutually exclusive: it's an error for both of them to be set
* in the request.
* @opt_param string ifSourceMetagenerationNotMatch Makes the operation
* conditional on whether the source object's current metageneration does not
* match the given value. `ifSourceMetagenerationMatch` and
* `ifSourceMetagenerationNotMatch` conditions are mutually exclusive: it's an
* error for both of them to be set in the request.
* @opt_param string projection Set of properties to return. Defaults to noAcl.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return StorageObject
* @throws \Google\Service\Exception
*/
public function move($bucket, $sourceObject, $destinationObject, $optParams = [])
{
$params = ['bucket' => $bucket, 'sourceObject' => $sourceObject, 'destinationObject' => $destinationObject];
$params = array_merge($params, $optParams);
return $this->call('move', [$params], StorageObject::class);
}
/**
* Patches an object's metadata. (objects.patch)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param StorageObject $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the object's current generation matches the given value. Setting to 0
* makes the operation succeed only if there are no live versions of the object.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether the object's current generation does not match the given value. If no
* live object exists, the precondition fails. Setting to 0 makes the operation
* succeed only if there is a live version of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the object's current metageneration matches the given value.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether the object's current metageneration does not match the given value.
* @opt_param bool overrideUnlockedRetention Must be true to remove the
* retention configuration, reduce its unlocked retention period, or change its
* mode from unlocked to locked.
* @opt_param string predefinedAcl Apply a predefined set of access controls to
* this object.
* @opt_param string projection Set of properties to return. Defaults to full.
* @opt_param string userProject The project to be billed for this request, for
* Requester Pays buckets.
* @return StorageObject
* @throws \Google\Service\Exception
*/
public function patch($bucket, $object, StorageObject $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], StorageObject::class);
}
/**
* Restores a soft-deleted object. (objects.restore)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string $generation Selects a specific revision of this object.
* @param array $optParams Optional parameters.
*
* @opt_param bool copySourceAcl If true, copies the source object's ACL;
* otherwise, uses the bucket's default object ACL. The default is false.
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the object's one live generation matches the given value. Setting to
* 0 makes the operation succeed only if there are no live versions of the
* object.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether none of the object's live generations match the given value. If no
* live object exists, the precondition fails. Setting to 0 makes the operation
* succeed only if there is a live version of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the object's one live metageneration matches the given value.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether none of the object's live metagenerations match the given value.
* @opt_param string projection Set of properties to return. Defaults to full.
* @opt_param string restoreToken Restore token used to differentiate sof-
* deleted objects with the same name and generation. Only applicable for
* hierarchical namespace buckets. This parameter is optional, and is only
* required in the rare case when there are multiple soft-deleted objects with
* the same name and generation.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return StorageObject
* @throws \Google\Service\Exception
*/
public function restore($bucket, $object, $generation, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'generation' => $generation];
$params = array_merge($params, $optParams);
return $this->call('restore', [$params], StorageObject::class);
}
/**
* Rewrites a source object to a destination object. Optionally overrides
* metadata. (objects.rewrite)
*
* @param string $sourceBucket Name of the bucket in which to find the source
* object.
* @param string $sourceObject Name of the source object. For information about
* how to URL encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string $destinationBucket Name of the bucket in which to store the new
* object. Overrides the provided object metadata's bucket value, if any.
* @param string $destinationObject Name of the new object. Required when the
* object metadata is not otherwise provided. Overrides the object metadata's
* name value, if any. For information about how to URL encode object names to
* be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param StorageObject $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string destinationKmsKeyName Resource name of the Cloud KMS key,
* of the form projects/my-project/locations/global/keyRings/my-
* kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
* object metadata's kms_key_name value, if any.
* @opt_param string destinationPredefinedAcl Apply a predefined set of access
* controls to the destination object.
* @opt_param string dropContextGroups Specifies which groups of Object Contexts
* from the source object should be dropped from the destination object.
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the object's current generation matches the given value. Setting to 0
* makes the operation succeed only if there are no live versions of the object.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether the object's current generation does not match the given value. If no
* live object exists, the precondition fails. Setting to 0 makes the operation
* succeed only if there is a live version of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the destination object's current metageneration matches the given
* value.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether the destination object's current metageneration does not match the
* given value.
* @opt_param string ifSourceGenerationMatch Makes the operation conditional on
* whether the source object's current generation matches the given value.
* @opt_param string ifSourceGenerationNotMatch Makes the operation conditional
* on whether the source object's current generation does not match the given
* value.
* @opt_param string ifSourceMetagenerationMatch Makes the operation conditional
* on whether the source object's current metageneration matches the given
* value.
* @opt_param string ifSourceMetagenerationNotMatch Makes the operation
* conditional on whether the source object's current metageneration does not
* match the given value.
* @opt_param string maxBytesRewrittenPerCall The maximum number of bytes that
* will be rewritten per rewrite request. Most callers shouldn't need to specify
* this parameter - it is primarily in place to support testing. If specified
* the value must be an integral multiple of 1 MiB (1048576). Also, this only
* applies to requests where the source and destination span locations and/or
* storage classes. Finally, this value must not change across rewrite calls
* else you'll get an error that the rewriteToken is invalid.
* @opt_param string projection Set of properties to return. Defaults to noAcl,
* unless the object resource specifies the acl property, when it defaults to
* full.
* @opt_param string rewriteToken Include this field (from the previous rewrite
* response) on each rewrite request after the first one, until the rewrite
* response 'done' flag is true. Calls that provide a rewriteToken can omit all
* other request fields, but if included those fields must match the values
* provided in the first rewrite request.
* @opt_param string sourceGeneration If present, selects a specific revision of
* the source object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return RewriteResponse
* @throws \Google\Service\Exception
*/
public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, StorageObject $postBody, $optParams = [])
{
$params = ['sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rewrite', [$params], RewriteResponse::class);
}
/**
* Updates an IAM policy for the specified object. (objects.setIamPolicy)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($bucket, $object, Policy $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Tests a set of permissions on the given object to see which, if any, are held
* by the caller. (objects.testIamPermissions)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param string|array $permissions Permissions to test.
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($bucket, $object, $permissions, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'permissions' => $permissions];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Updates an object's metadata. (objects.update)
*
* @param string $bucket Name of the bucket in which the object resides.
* @param string $object Name of the object. For information about how to URL
* encode object names to be path safe, see [Encoding URI Path
* Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
* @param StorageObject $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string generation If present, selects a specific revision of this
* object (as opposed to the latest version, the default).
* @opt_param string ifGenerationMatch Makes the operation conditional on
* whether the object's current generation matches the given value. Setting to 0
* makes the operation succeed only if there are no live versions of the object.
* @opt_param string ifGenerationNotMatch Makes the operation conditional on
* whether the object's current generation does not match the given value. If no
* live object exists, the precondition fails. Setting to 0 makes the operation
* succeed only if there is a live version of the object.
* @opt_param string ifMetagenerationMatch Makes the operation conditional on
* whether the object's current metageneration matches the given value.
* @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
* whether the object's current metageneration does not match the given value.
* @opt_param bool overrideUnlockedRetention Must be true to remove the
* retention configuration, reduce its unlocked retention period, or change its
* mode from unlocked to locked.
* @opt_param string predefinedAcl Apply a predefined set of access controls to
* this object.
* @opt_param string projection Set of properties to return. Defaults to full.
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @return StorageObject
* @throws \Google\Service\Exception
*/
public function update($bucket, $object, StorageObject $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'object' => $object, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], StorageObject::class);
}
/**
* Watch for changes on all objects in a bucket. (objects.watchAll)
*
* @param string $bucket Name of the bucket in which to look for objects.
* @param Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string delimiter Returns results in a directory-like mode. items
* will contain only objects whose names, aside from the prefix, do not contain
* delimiter. Objects whose names, aside from the prefix, contain delimiter will
* have their name, truncated after the delimiter, returned in prefixes.
* Duplicate prefixes are omitted.
* @opt_param string endOffset Filter results to objects whose names are
* lexicographically before endOffset. If startOffset is also set, the objects
* listed will have names between startOffset (inclusive) and endOffset
* (exclusive).
* @opt_param bool includeTrailingDelimiter If true, objects that end in exactly
* one instance of delimiter will have their metadata included in items in
* addition to prefixes.
* @opt_param string maxResults Maximum number of items plus prefixes to return
* in a single page of responses. As duplicate prefixes are omitted, fewer total
* results may be returned than requested. The service will use this parameter
* or 1,000 items, whichever is smaller.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @opt_param string prefix Filter results to objects whose names begin with
* this prefix.
* @opt_param string projection Set of properties to return. Defaults to noAcl.
* @opt_param string startOffset Filter results to objects whose names are
* lexicographically equal to or after startOffset. If endOffset is also set,
* the objects listed will have names between startOffset (inclusive) and
* endOffset (exclusive).
* @opt_param string userProject The project to be billed for this request.
* Required for Requester Pays buckets.
* @opt_param bool versions If true, lists all versions of an object as distinct
* results. The default is false. For more information, see [Object
* Versioning](https://cloud.google.com/storage/docs/object-versioning).
* @return Channel
* @throws \Google\Service\Exception
*/
public function watchAll($bucket, Channel $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watchAll', [$params], Channel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Objects::class, 'Google_Service_Storage_Resource_Objects');
@@ -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\Storage\Resource;
use Google\Service\Storage\AdvanceRelocateBucketOperationRequest;
use Google\Service\Storage\GoogleLongrunningListOperationsResponse;
use Google\Service\Storage\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $operations = $storageService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Starts asynchronous advancement of the relocate bucket operation in the case
* of required write downtime, to allow it to lock the bucket at the source
* location, and proceed with the bucket location swap. The server makes a best
* effort to advance the relocate bucket operation, but success is not
* guaranteed. (operations.advanceRelocateBucket)
*
* @param string $bucket Name of the bucket to advance the relocate for.
* @param string $operationId ID of the operation resource.
* @param AdvanceRelocateBucketOperationRequest $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function advanceRelocateBucket($bucket, $operationId, AdvanceRelocateBucketOperationRequest $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'operationId' => $operationId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('advanceRelocateBucket', [$params]);
}
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* (operations.cancel)
*
* @param string $bucket The parent bucket of the operation resource.
* @param string $operationId The ID of the operation resource.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function cancel($bucket, $operationId, $optParams = [])
{
$params = ['bucket' => $bucket, 'operationId' => $operationId];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params]);
}
/**
* Gets the latest state of a long-running operation. (operations.get)
*
* @param string $bucket The parent bucket of the operation resource.
* @param string $operationId The ID of the operation resource.
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($bucket, $operationId, $optParams = [])
{
$params = ['bucket' => $bucket, 'operationId' => $operationId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request.
* (operations.listOperations)
*
* @param string $bucket Name of the bucket in which to look for operations.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language is documented in more detail in
* [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize Maximum number of items to return in a single page of
* responses. Fewer total results may be returned than requested. The service
* uses this parameter or 100 items, whichever is smaller.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOperations($bucket, $optParams = [])
{
$params = ['bucket' => $bucket];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_Storage_Resource_Operations');
@@ -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\Storage\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $projects = $storageService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Storage_Resource_Projects');
@@ -0,0 +1,138 @@
<?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\Storage\Resource;
use Google\Service\Storage\HmacKey;
use Google\Service\Storage\HmacKeyMetadata;
use Google\Service\Storage\HmacKeysMetadata;
/**
* The "hmacKeys" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $hmacKeys = $storageService->projects_hmacKeys;
* </code>
*/
class ProjectsHmacKeys extends \Google\Service\Resource
{
/**
* Creates a new HMAC key for the specified service account. (hmacKeys.create)
*
* @param string $projectId Project ID owning the service account.
* @param string $serviceAccountEmail Email address of the service account.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* @return HmacKey
* @throws \Google\Service\Exception
*/
public function create($projectId, $serviceAccountEmail, $optParams = [])
{
$params = ['projectId' => $projectId, 'serviceAccountEmail' => $serviceAccountEmail];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], HmacKey::class);
}
/**
* Deletes an HMAC key. (hmacKeys.delete)
*
* @param string $projectId Project ID owning the requested key
* @param string $accessId Name of the HMAC key to be deleted.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* @throws \Google\Service\Exception
*/
public function delete($projectId, $accessId, $optParams = [])
{
$params = ['projectId' => $projectId, 'accessId' => $accessId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves an HMAC key's metadata (hmacKeys.get)
*
* @param string $projectId Project ID owning the service account of the
* requested key.
* @param string $accessId Name of the HMAC key.
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* @return HmacKeyMetadata
* @throws \Google\Service\Exception
*/
public function get($projectId, $accessId, $optParams = [])
{
$params = ['projectId' => $projectId, 'accessId' => $accessId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], HmacKeyMetadata::class);
}
/**
* Retrieves a list of HMAC keys matching the criteria.
* (hmacKeys.listProjectsHmacKeys)
*
* @param string $projectId Name of the project in which to look for HMAC keys.
* @param array $optParams Optional parameters.
*
* @opt_param string maxResults Maximum number of items to return in a single
* page of responses. The service uses this parameter or 250 items, whichever is
* smaller. The max number of items per page will also be limited by the number
* of distinct service accounts in the response. If the number of service
* accounts in a single response is too high, the page will truncated and a next
* page token will be returned.
* @opt_param string pageToken A previously-returned page token representing
* part of the larger set of results to view.
* @opt_param string serviceAccountEmail If present, only keys for the given
* service account are returned.
* @opt_param bool showDeletedKeys Whether or not to show keys in the DELETED
* state.
* @opt_param string userProject The project to be billed for this request.
* @return HmacKeysMetadata
* @throws \Google\Service\Exception
*/
public function listProjectsHmacKeys($projectId, $optParams = [])
{
$params = ['projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], HmacKeysMetadata::class);
}
/**
* Updates the state of an HMAC key. See the [HMAC Key resource descriptor](http
* s://cloud.google.com/storage/docs/json_api/v1/projects/hmacKeys/update#reques
* t-body) for valid states. (hmacKeys.update)
*
* @param string $projectId Project ID owning the service account of the updated
* key.
* @param string $accessId Name of the HMAC key being updated.
* @param HmacKeyMetadata $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* @return HmacKeyMetadata
* @throws \Google\Service\Exception
*/
public function update($projectId, $accessId, HmacKeyMetadata $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'accessId' => $accessId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], HmacKeyMetadata::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsHmacKeys::class, 'Google_Service_Storage_Resource_ProjectsHmacKeys');
@@ -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\Storage\Resource;
use Google\Service\Storage\ServiceAccount;
/**
* The "serviceAccount" collection of methods.
* Typical usage is:
* <code>
* $storageService = new Google\Service\Storage(...);
* $serviceAccount = $storageService->projects_serviceAccount;
* </code>
*/
class ProjectsServiceAccount extends \Google\Service\Resource
{
/**
* Get the email address of this project's Google Cloud Storage service account.
* (serviceAccount.get)
*
* @param string $projectId Project ID
* @param array $optParams Optional parameters.
*
* @opt_param string userProject The project to be billed for this request.
* @return ServiceAccount
* @throws \Google\Service\Exception
*/
public function get($projectId, $optParams = [])
{
$params = ['projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceAccount::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsServiceAccount::class, 'Google_Service_Storage_Resource_ProjectsServiceAccount');
@@ -0,0 +1,163 @@
<?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\Storage;
class RewriteResponse extends \Google\Model
{
/**
* true if the copy is finished; otherwise, false if the copy is in progress.
* This property is always present in the response.
*
* @var bool
*/
public $done;
/**
* The kind of item this is.
*
* @var string
*/
public $kind;
/**
* The total size of the object being copied in bytes. This property is always
* present in the response.
*
* @var string
*/
public $objectSize;
protected $resourceType = StorageObject::class;
protected $resourceDataType = '';
/**
* A token to use in subsequent requests to continue copying data. This token
* is present in the response only when there is more data to copy.
*
* @var string
*/
public $rewriteToken;
/**
* The total bytes written so far, which can be used to provide a waiting user
* with a progress indicator. This property is always present in the response.
*
* @var string
*/
public $totalBytesRewritten;
/**
* true if the copy is finished; otherwise, false if the copy is in progress.
* This property is always present in the response.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The kind of item this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The total size of the object being copied in bytes. This property is always
* present in the response.
*
* @param string $objectSize
*/
public function setObjectSize($objectSize)
{
$this->objectSize = $objectSize;
}
/**
* @return string
*/
public function getObjectSize()
{
return $this->objectSize;
}
/**
* A resource containing the metadata for the copied-to object. This property
* is present in the response only when copying completes.
*
* @param StorageObject $resource
*/
public function setResource(StorageObject $resource)
{
$this->resource = $resource;
}
/**
* @return StorageObject
*/
public function getResource()
{
return $this->resource;
}
/**
* A token to use in subsequent requests to continue copying data. This token
* is present in the response only when there is more data to copy.
*
* @param string $rewriteToken
*/
public function setRewriteToken($rewriteToken)
{
$this->rewriteToken = $rewriteToken;
}
/**
* @return string
*/
public function getRewriteToken()
{
return $this->rewriteToken;
}
/**
* The total bytes written so far, which can be used to provide a waiting user
* with a progress indicator. This property is always present in the response.
*
* @param string $totalBytesRewritten
*/
public function setTotalBytesRewritten($totalBytesRewritten)
{
$this->totalBytesRewritten = $totalBytesRewritten;
}
/**
* @return string
*/
public function getTotalBytesRewritten()
{
return $this->totalBytesRewritten;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RewriteResponse::class, 'Google_Service_Storage_RewriteResponse');
@@ -0,0 +1,75 @@
<?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\Storage;
class ServiceAccount extends \Google\Model
{
protected $internal_gapi_mappings = [
"emailAddress" => "email_address",
];
/**
* The ID of the notification.
*
* @var string
*/
public $emailAddress;
/**
* The kind of item this is. For notifications, this is always
* storage#notification.
*
* @var string
*/
public $kind;
/**
* The ID of the notification.
*
* @param string $emailAddress
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* The kind of item this is. For notifications, this is always
* storage#notification.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAccount::class, 'Google_Service_Storage_ServiceAccount');
@@ -0,0 +1,936 @@
<?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\Storage;
class StorageObject extends \Google\Collection
{
protected $collection_key = 'acl';
protected $aclType = ObjectAccessControl::class;
protected $aclDataType = 'array';
/**
* The name of the bucket containing this object.
*
* @var string
*/
public $bucket;
/**
* Cache-Control directive for the object data. If omitted, and the object is
* accessible to all anonymous users, the default will be public, max-
* age=3600.
*
* @var string
*/
public $cacheControl;
/**
* Number of underlying components that make up this object. Components are
* accumulated by compose operations.
*
* @var int
*/
public $componentCount;
/**
* Content-Disposition of the object data.
*
* @var string
*/
public $contentDisposition;
/**
* Content-Encoding of the object data.
*
* @var string
*/
public $contentEncoding;
/**
* Content-Language of the object data.
*
* @var string
*/
public $contentLanguage;
/**
* Content-Type of the object data. If an object is stored without a Content-
* Type, it is served as application/octet-stream.
*
* @var string
*/
public $contentType;
protected $contextsType = StorageObjectContexts::class;
protected $contextsDataType = '';
/**
* CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64
* in big-endian byte order. For more information about using the CRC32c
* checksum, see [Data Validation and Change
* Detection](https://cloud.google.com/storage/docs/data-validation).
*
* @var string
*/
public $crc32c;
/**
* A timestamp in RFC 3339 format specified by the user for an object.
*
* @var string
*/
public $customTime;
protected $customerEncryptionType = StorageObjectCustomerEncryption::class;
protected $customerEncryptionDataType = '';
/**
* HTTP 1.1 Entity tag for the object.
*
* @var string
*/
public $etag;
/**
* Whether an object is under event-based hold. Event-based hold is a way to
* retain objects until an event occurs, which is signified by the hold's
* release (i.e. this value is set to false). After being released (set to
* false), such objects will be subject to bucket-level retention (if any).
* One sample use case of this flag is for banks to hold loan documents for at
* least 3 years after loan is paid in full. Here, bucket-level retention is 3
* years and the event is the loan being paid in full. In this example, these
* objects will be held intact for any number of years until the event has
* occurred (event-based hold on the object is released) and then 3 more years
* after that. That means retention duration of the objects begins from the
* moment event-based hold transitioned from true to false.
*
* @var bool
*/
public $eventBasedHold;
/**
* The content generation of this object. Used for object versioning.
*
* @var string
*/
public $generation;
/**
* This is the time (in the future) when the soft-deleted object will no
* longer be restorable. It is equal to the soft delete time plus the current
* soft delete retention duration of the bucket.
*
* @var string
*/
public $hardDeleteTime;
/**
* The ID of the object, including the bucket name, object name, and
* generation number.
*
* @var string
*/
public $id;
/**
* The kind of item this is. For objects, this is always storage#object.
*
* @var string
*/
public $kind;
/**
* Not currently supported. Specifying the parameter causes the request to
* fail with status code 400 - Bad Request.
*
* @var string
*/
public $kmsKeyName;
/**
* MD5 hash of the data; encoded using base64. For more information about
* using the MD5 hash, see [Data Validation and Change
* Detection](https://cloud.google.com/storage/docs/data-validation).
*
* @var string
*/
public $md5Hash;
/**
* Media download link.
*
* @var string
*/
public $mediaLink;
/**
* User-provided metadata, in key/value pairs.
*
* @var string[]
*/
public $metadata;
/**
* The version of the metadata for this object at this generation. Used for
* preconditions and for detecting changes in metadata. A metageneration
* number is only meaningful in the context of a particular generation of a
* particular object.
*
* @var string
*/
public $metageneration;
/**
* The name of the object. Required if not specified by URL parameter.
*
* @var string
*/
public $name;
protected $ownerType = StorageObjectOwner::class;
protected $ownerDataType = '';
/**
* Restore token used to differentiate deleted objects with the same name and
* generation. This field is only returned for deleted objects in hierarchical
* namespace buckets.
*
* @var string
*/
public $restoreToken;
protected $retentionType = StorageObjectRetention::class;
protected $retentionDataType = '';
/**
* A server-determined value that specifies the earliest time that the
* object's retention period expires. This value is in RFC 3339 format. Note
* 1: This field is not provided for objects with an active event-based hold,
* since retention expiration is unknown until the hold is removed. Note 2:
* This value can be provided even when temporary hold is set (so that the
* user can reason about policy without having to first unset the temporary
* hold).
*
* @var string
*/
public $retentionExpirationTime;
/**
* The link to this object.
*
* @var string
*/
public $selfLink;
/**
* Content-Length of the data in bytes.
*
* @var string
*/
public $size;
/**
* The time at which the object became soft-deleted in RFC 3339 format.
*
* @var string
*/
public $softDeleteTime;
/**
* Storage class of the object.
*
* @var string
*/
public $storageClass;
/**
* Whether an object is under temporary hold. While this flag is set to true,
* the object is protected against deletion and overwrites. A common use case
* of this flag is regulatory investigations where objects need to be retained
* while the investigation is ongoing. Note that unlike event-based hold,
* temporary hold does not impact retention expiration time of an object.
*
* @var bool
*/
public $temporaryHold;
/**
* The creation time of the object in RFC 3339 format.
*
* @var string
*/
public $timeCreated;
/**
* The time at which the object became noncurrent in RFC 3339 format. Will be
* returned if and only if this version of the object has been deleted.
*
* @var string
*/
public $timeDeleted;
/**
* The time when the object was finalized.
*
* @var string
*/
public $timeFinalized;
/**
* The time at which the object's storage class was last changed. When the
* object is initially created, it will be set to timeCreated.
*
* @var string
*/
public $timeStorageClassUpdated;
/**
* The modification time of the object metadata in RFC 3339 format. Set
* initially to object creation time and then updated whenever any metadata of
* the object changes. This includes changes made by a requester, such as
* modifying custom metadata, as well as changes made by Cloud Storage on
* behalf of a requester, such as changing the storage class based on an
* Object Lifecycle Configuration.
*
* @var string
*/
public $updated;
/**
* Access controls on the object.
*
* @param ObjectAccessControl[] $acl
*/
public function setAcl($acl)
{
$this->acl = $acl;
}
/**
* @return ObjectAccessControl[]
*/
public function getAcl()
{
return $this->acl;
}
/**
* The name of the bucket containing this object.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* Cache-Control directive for the object data. If omitted, and the object is
* accessible to all anonymous users, the default will be public, max-
* age=3600.
*
* @param string $cacheControl
*/
public function setCacheControl($cacheControl)
{
$this->cacheControl = $cacheControl;
}
/**
* @return string
*/
public function getCacheControl()
{
return $this->cacheControl;
}
/**
* Number of underlying components that make up this object. Components are
* accumulated by compose operations.
*
* @param int $componentCount
*/
public function setComponentCount($componentCount)
{
$this->componentCount = $componentCount;
}
/**
* @return int
*/
public function getComponentCount()
{
return $this->componentCount;
}
/**
* Content-Disposition of the object data.
*
* @param string $contentDisposition
*/
public function setContentDisposition($contentDisposition)
{
$this->contentDisposition = $contentDisposition;
}
/**
* @return string
*/
public function getContentDisposition()
{
return $this->contentDisposition;
}
/**
* Content-Encoding of the object data.
*
* @param string $contentEncoding
*/
public function setContentEncoding($contentEncoding)
{
$this->contentEncoding = $contentEncoding;
}
/**
* @return string
*/
public function getContentEncoding()
{
return $this->contentEncoding;
}
/**
* Content-Language of the object data.
*
* @param string $contentLanguage
*/
public function setContentLanguage($contentLanguage)
{
$this->contentLanguage = $contentLanguage;
}
/**
* @return string
*/
public function getContentLanguage()
{
return $this->contentLanguage;
}
/**
* Content-Type of the object data. If an object is stored without a Content-
* Type, it is served as application/octet-stream.
*
* @param string $contentType
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* User-defined or system-defined object contexts. Each object context is a
* key-payload pair, where the key provides the identification and the payload
* holds the associated value and additional metadata.
*
* @param StorageObjectContexts $contexts
*/
public function setContexts(StorageObjectContexts $contexts)
{
$this->contexts = $contexts;
}
/**
* @return StorageObjectContexts
*/
public function getContexts()
{
return $this->contexts;
}
/**
* CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64
* in big-endian byte order. For more information about using the CRC32c
* checksum, see [Data Validation and Change
* Detection](https://cloud.google.com/storage/docs/data-validation).
*
* @param string $crc32c
*/
public function setCrc32c($crc32c)
{
$this->crc32c = $crc32c;
}
/**
* @return string
*/
public function getCrc32c()
{
return $this->crc32c;
}
/**
* A timestamp in RFC 3339 format specified by the user for an object.
*
* @param string $customTime
*/
public function setCustomTime($customTime)
{
$this->customTime = $customTime;
}
/**
* @return string
*/
public function getCustomTime()
{
return $this->customTime;
}
/**
* Metadata of customer-supplied encryption key, if the object is encrypted by
* such a key.
*
* @param StorageObjectCustomerEncryption $customerEncryption
*/
public function setCustomerEncryption(StorageObjectCustomerEncryption $customerEncryption)
{
$this->customerEncryption = $customerEncryption;
}
/**
* @return StorageObjectCustomerEncryption
*/
public function getCustomerEncryption()
{
return $this->customerEncryption;
}
/**
* HTTP 1.1 Entity tag for the object.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Whether an object is under event-based hold. Event-based hold is a way to
* retain objects until an event occurs, which is signified by the hold's
* release (i.e. this value is set to false). After being released (set to
* false), such objects will be subject to bucket-level retention (if any).
* One sample use case of this flag is for banks to hold loan documents for at
* least 3 years after loan is paid in full. Here, bucket-level retention is 3
* years and the event is the loan being paid in full. In this example, these
* objects will be held intact for any number of years until the event has
* occurred (event-based hold on the object is released) and then 3 more years
* after that. That means retention duration of the objects begins from the
* moment event-based hold transitioned from true to false.
*
* @param bool $eventBasedHold
*/
public function setEventBasedHold($eventBasedHold)
{
$this->eventBasedHold = $eventBasedHold;
}
/**
* @return bool
*/
public function getEventBasedHold()
{
return $this->eventBasedHold;
}
/**
* The content generation of this object. Used for object versioning.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* This is the time (in the future) when the soft-deleted object will no
* longer be restorable. It is equal to the soft delete time plus the current
* soft delete retention duration of the bucket.
*
* @param string $hardDeleteTime
*/
public function setHardDeleteTime($hardDeleteTime)
{
$this->hardDeleteTime = $hardDeleteTime;
}
/**
* @return string
*/
public function getHardDeleteTime()
{
return $this->hardDeleteTime;
}
/**
* The ID of the object, including the bucket name, object name, and
* generation number.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of item this is. For objects, this is always storage#object.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Not currently supported. Specifying the parameter causes the request to
* fail with status code 400 - Bad Request.
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* MD5 hash of the data; encoded using base64. For more information about
* using the MD5 hash, see [Data Validation and Change
* Detection](https://cloud.google.com/storage/docs/data-validation).
*
* @param string $md5Hash
*/
public function setMd5Hash($md5Hash)
{
$this->md5Hash = $md5Hash;
}
/**
* @return string
*/
public function getMd5Hash()
{
return $this->md5Hash;
}
/**
* Media download link.
*
* @param string $mediaLink
*/
public function setMediaLink($mediaLink)
{
$this->mediaLink = $mediaLink;
}
/**
* @return string
*/
public function getMediaLink()
{
return $this->mediaLink;
}
/**
* User-provided metadata, in key/value pairs.
*
* @param string[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The version of the metadata for this object at this generation. Used for
* preconditions and for detecting changes in metadata. A metageneration
* number is only meaningful in the context of a particular generation of a
* particular object.
*
* @param string $metageneration
*/
public function setMetageneration($metageneration)
{
$this->metageneration = $metageneration;
}
/**
* @return string
*/
public function getMetageneration()
{
return $this->metageneration;
}
/**
* The name of the object. Required if not specified by URL parameter.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The owner of the object. This will always be the uploader of the object.
*
* @param StorageObjectOwner $owner
*/
public function setOwner(StorageObjectOwner $owner)
{
$this->owner = $owner;
}
/**
* @return StorageObjectOwner
*/
public function getOwner()
{
return $this->owner;
}
/**
* Restore token used to differentiate deleted objects with the same name and
* generation. This field is only returned for deleted objects in hierarchical
* namespace buckets.
*
* @param string $restoreToken
*/
public function setRestoreToken($restoreToken)
{
$this->restoreToken = $restoreToken;
}
/**
* @return string
*/
public function getRestoreToken()
{
return $this->restoreToken;
}
/**
* A collection of object level retention parameters.
*
* @param StorageObjectRetention $retention
*/
public function setRetention(StorageObjectRetention $retention)
{
$this->retention = $retention;
}
/**
* @return StorageObjectRetention
*/
public function getRetention()
{
return $this->retention;
}
/**
* A server-determined value that specifies the earliest time that the
* object's retention period expires. This value is in RFC 3339 format. Note
* 1: This field is not provided for objects with an active event-based hold,
* since retention expiration is unknown until the hold is removed. Note 2:
* This value can be provided even when temporary hold is set (so that the
* user can reason about policy without having to first unset the temporary
* hold).
*
* @param string $retentionExpirationTime
*/
public function setRetentionExpirationTime($retentionExpirationTime)
{
$this->retentionExpirationTime = $retentionExpirationTime;
}
/**
* @return string
*/
public function getRetentionExpirationTime()
{
return $this->retentionExpirationTime;
}
/**
* The link to this object.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Content-Length of the data in bytes.
*
* @param string $size
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
/**
* The time at which the object became soft-deleted in RFC 3339 format.
*
* @param string $softDeleteTime
*/
public function setSoftDeleteTime($softDeleteTime)
{
$this->softDeleteTime = $softDeleteTime;
}
/**
* @return string
*/
public function getSoftDeleteTime()
{
return $this->softDeleteTime;
}
/**
* Storage class of the object.
*
* @param string $storageClass
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
/**
* Whether an object is under temporary hold. While this flag is set to true,
* the object is protected against deletion and overwrites. A common use case
* of this flag is regulatory investigations where objects need to be retained
* while the investigation is ongoing. Note that unlike event-based hold,
* temporary hold does not impact retention expiration time of an object.
*
* @param bool $temporaryHold
*/
public function setTemporaryHold($temporaryHold)
{
$this->temporaryHold = $temporaryHold;
}
/**
* @return bool
*/
public function getTemporaryHold()
{
return $this->temporaryHold;
}
/**
* The creation time of the object in RFC 3339 format.
*
* @param string $timeCreated
*/
public function setTimeCreated($timeCreated)
{
$this->timeCreated = $timeCreated;
}
/**
* @return string
*/
public function getTimeCreated()
{
return $this->timeCreated;
}
/**
* The time at which the object became noncurrent in RFC 3339 format. Will be
* returned if and only if this version of the object has been deleted.
*
* @param string $timeDeleted
*/
public function setTimeDeleted($timeDeleted)
{
$this->timeDeleted = $timeDeleted;
}
/**
* @return string
*/
public function getTimeDeleted()
{
return $this->timeDeleted;
}
/**
* The time when the object was finalized.
*
* @param string $timeFinalized
*/
public function setTimeFinalized($timeFinalized)
{
$this->timeFinalized = $timeFinalized;
}
/**
* @return string
*/
public function getTimeFinalized()
{
return $this->timeFinalized;
}
/**
* The time at which the object's storage class was last changed. When the
* object is initially created, it will be set to timeCreated.
*
* @param string $timeStorageClassUpdated
*/
public function setTimeStorageClassUpdated($timeStorageClassUpdated)
{
$this->timeStorageClassUpdated = $timeStorageClassUpdated;
}
/**
* @return string
*/
public function getTimeStorageClassUpdated()
{
return $this->timeStorageClassUpdated;
}
/**
* The modification time of the object metadata in RFC 3339 format. Set
* initially to object creation time and then updated whenever any metadata of
* the object changes. This includes changes made by a requester, such as
* modifying custom metadata, as well as changes made by Cloud Storage on
* behalf of a requester, such as changing the storage class based on an
* Object Lifecycle Configuration.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageObject::class, 'Google_Service_Storage_StorageObject');
@@ -0,0 +1,44 @@
<?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\Storage;
class StorageObjectContexts extends \Google\Model
{
protected $customType = ObjectCustomContextPayload::class;
protected $customDataType = 'map';
/**
* User-defined object contexts.
*
* @param ObjectCustomContextPayload[] $custom
*/
public function setCustom($custom)
{
$this->custom = $custom;
}
/**
* @return ObjectCustomContextPayload[]
*/
public function getCustom()
{
return $this->custom;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageObjectContexts::class, 'Google_Service_Storage_StorageObjectContexts');
@@ -0,0 +1,70 @@
<?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\Storage;
class StorageObjectCustomerEncryption extends \Google\Model
{
/**
* The encryption algorithm.
*
* @var string
*/
public $encryptionAlgorithm;
/**
* SHA256 hash value of the encryption key.
*
* @var string
*/
public $keySha256;
/**
* The encryption algorithm.
*
* @param string $encryptionAlgorithm
*/
public function setEncryptionAlgorithm($encryptionAlgorithm)
{
$this->encryptionAlgorithm = $encryptionAlgorithm;
}
/**
* @return string
*/
public function getEncryptionAlgorithm()
{
return $this->encryptionAlgorithm;
}
/**
* SHA256 hash value of the encryption key.
*
* @param string $keySha256
*/
public function setKeySha256($keySha256)
{
$this->keySha256 = $keySha256;
}
/**
* @return string
*/
public function getKeySha256()
{
return $this->keySha256;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageObjectCustomerEncryption::class, 'Google_Service_Storage_StorageObjectCustomerEncryption');
@@ -0,0 +1,70 @@
<?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\Storage;
class StorageObjectOwner extends \Google\Model
{
/**
* The entity, in the form user-userId.
*
* @var string
*/
public $entity;
/**
* The ID for the entity.
*
* @var string
*/
public $entityId;
/**
* The entity, in the form user-userId.
*
* @param string $entity
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* The ID for the entity.
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageObjectOwner::class, 'Google_Service_Storage_StorageObjectOwner');
@@ -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\Storage;
class StorageObjectRetention extends \Google\Model
{
/**
* The bucket's object retention mode, can only be Unlocked or Locked.
*
* @var string
*/
public $mode;
/**
* A time in RFC 3339 format until which object retention protects this
* object.
*
* @var string
*/
public $retainUntilTime;
/**
* The bucket's object retention mode, can only be Unlocked or Locked.
*
* @param string $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* A time in RFC 3339 format until which object retention protects this
* object.
*
* @param string $retainUntilTime
*/
public function setRetainUntilTime($retainUntilTime)
{
$this->retainUntilTime = $retainUntilTime;
}
/**
* @return string
*/
public function getRetainUntilTime()
{
return $this->retainUntilTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StorageObjectRetention::class, 'Google_Service_Storage_StorageObjectRetention');
@@ -0,0 +1,107 @@
<?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\Storage;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* The kind of item this is.
*
* @var string
*/
public $kind;
/**
* The permissions held by the caller. Permissions are always of the format
* storage.resource.capability, where resource is one of buckets, objects, or
* managedFolders. The supported permissions are as follows: -
* storage.buckets.delete - Delete bucket. - storage.buckets.get - Read
* bucket metadata. - storage.buckets.getIamPolicy - Read bucket IAM policy.
* - storage.buckets.create - Create bucket. - storage.buckets.list - List
* buckets. - storage.buckets.setIamPolicy - Update bucket IAM policy. -
* storage.buckets.update - Update bucket metadata. - storage.objects.delete
* - Delete object. - storage.objects.get - Read object data and metadata.
* - storage.objects.getIamPolicy - Read object IAM policy. -
* storage.objects.create - Create object. - storage.objects.list - List
* objects. - storage.objects.setIamPolicy - Update object IAM policy. -
* storage.objects.update - Update object metadata. -
* storage.managedFolders.delete - Delete managed folder. -
* storage.managedFolders.get - Read managed folder metadata. -
* storage.managedFolders.getIamPolicy - Read managed folder IAM policy. -
* storage.managedFolders.create - Create managed folder. -
* storage.managedFolders.list - List managed folders. -
* storage.managedFolders.setIamPolicy - Update managed folder IAM policy.
*
* @var string[]
*/
public $permissions;
/**
* The kind of item this is.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The permissions held by the caller. Permissions are always of the format
* storage.resource.capability, where resource is one of buckets, objects, or
* managedFolders. The supported permissions are as follows: -
* storage.buckets.delete - Delete bucket. - storage.buckets.get - Read
* bucket metadata. - storage.buckets.getIamPolicy - Read bucket IAM policy.
* - storage.buckets.create - Create bucket. - storage.buckets.list - List
* buckets. - storage.buckets.setIamPolicy - Update bucket IAM policy. -
* storage.buckets.update - Update bucket metadata. - storage.objects.delete
* - Delete object. - storage.objects.get - Read object data and metadata.
* - storage.objects.getIamPolicy - Read object IAM policy. -
* storage.objects.create - Create object. - storage.objects.list - List
* objects. - storage.objects.setIamPolicy - Update object IAM policy. -
* storage.objects.update - Update object metadata. -
* storage.managedFolders.delete - Delete managed folder. -
* storage.managedFolders.get - Read managed folder metadata. -
* storage.managedFolders.getIamPolicy - Read managed folder IAM policy. -
* storage.managedFolders.create - Create managed folder. -
* storage.managedFolders.list - List managed folders. -
* storage.managedFolders.setIamPolicy - Update managed folder IAM policy.
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_Storage_TestIamPermissionsResponse');