Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -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 AdvanceRelocateBucketOperationRequest extends \Google\Model
{
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $ttl;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,242 @@
<?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
{
/**
* @var string
*/
public $admissionPolicy;
/**
* @var string
*/
public $anywhereCacheId;
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $pendingUpdate;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $ttl;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $zone;
/**
* @param string
*/
public function setAdmissionPolicy($admissionPolicy)
{
$this->admissionPolicy = $admissionPolicy;
}
/**
* @return string
*/
public function getAdmissionPolicy()
{
return $this->admissionPolicy;
}
/**
* @param string
*/
public function setAnywhereCacheId($anywhereCacheId)
{
$this->anywhereCacheId = $anywhereCacheId;
}
/**
* @return string
*/
public function getAnywhereCacheId()
{
return $this->anywhereCacheId;
}
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setPendingUpdate($pendingUpdate)
{
$this->pendingUpdate = $pendingUpdate;
}
/**
* @return bool
*/
public function getPendingUpdate()
{
return $this->pendingUpdate;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,79 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param AnywhereCache[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AnywhereCache[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,675 @@
<?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 = '';
/**
* @var bool
*/
public $defaultEventBasedHold;
protected $defaultObjectAclType = ObjectAccessControl::class;
protected $defaultObjectAclDataType = 'array';
protected $encryptionType = BucketEncryption::class;
protected $encryptionDataType = '';
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $hardDeleteTime;
protected $hierarchicalNamespaceType = BucketHierarchicalNamespace::class;
protected $hierarchicalNamespaceDataType = '';
protected $iamConfigurationType = BucketIamConfiguration::class;
protected $iamConfigurationDataType = '';
/**
* @var string
*/
public $id;
protected $ipFilterType = BucketIpFilter::class;
protected $ipFilterDataType = '';
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $labels;
protected $lifecycleType = BucketLifecycle::class;
protected $lifecycleDataType = '';
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
protected $loggingType = BucketLogging::class;
protected $loggingDataType = '';
/**
* @var string
*/
public $metageneration;
/**
* @var string
*/
public $name;
protected $objectRetentionType = BucketObjectRetention::class;
protected $objectRetentionDataType = '';
protected $ownerType = BucketOwner::class;
protected $ownerDataType = '';
/**
* @var string
*/
public $projectNumber;
protected $retentionPolicyType = BucketRetentionPolicy::class;
protected $retentionPolicyDataType = '';
/**
* @var string
*/
public $rpo;
/**
* @var bool
*/
public $satisfiesPZI;
/**
* @var bool
*/
public $satisfiesPZS;
/**
* @var string
*/
public $selfLink;
protected $softDeletePolicyType = BucketSoftDeletePolicy::class;
protected $softDeletePolicyDataType = '';
/**
* @var string
*/
public $softDeleteTime;
/**
* @var string
*/
public $storageClass;
/**
* @var string
*/
public $timeCreated;
/**
* @var string
*/
public $updated;
protected $versioningType = BucketVersioning::class;
protected $versioningDataType = '';
protected $websiteType = BucketWebsite::class;
protected $websiteDataType = '';
/**
* @param BucketAccessControl[]
*/
public function setAcl($acl)
{
$this->acl = $acl;
}
/**
* @return BucketAccessControl[]
*/
public function getAcl()
{
return $this->acl;
}
/**
* @param BucketAutoclass
*/
public function setAutoclass(BucketAutoclass $autoclass)
{
$this->autoclass = $autoclass;
}
/**
* @return BucketAutoclass
*/
public function getAutoclass()
{
return $this->autoclass;
}
/**
* @param BucketBilling
*/
public function setBilling(BucketBilling $billing)
{
$this->billing = $billing;
}
/**
* @return BucketBilling
*/
public function getBilling()
{
return $this->billing;
}
/**
* @param BucketCors[]
*/
public function setCors($cors)
{
$this->cors = $cors;
}
/**
* @return BucketCors[]
*/
public function getCors()
{
return $this->cors;
}
/**
* @param BucketCustomPlacementConfig
*/
public function setCustomPlacementConfig(BucketCustomPlacementConfig $customPlacementConfig)
{
$this->customPlacementConfig = $customPlacementConfig;
}
/**
* @return BucketCustomPlacementConfig
*/
public function getCustomPlacementConfig()
{
return $this->customPlacementConfig;
}
/**
* @param bool
*/
public function setDefaultEventBasedHold($defaultEventBasedHold)
{
$this->defaultEventBasedHold = $defaultEventBasedHold;
}
/**
* @return bool
*/
public function getDefaultEventBasedHold()
{
return $this->defaultEventBasedHold;
}
/**
* @param ObjectAccessControl[]
*/
public function setDefaultObjectAcl($defaultObjectAcl)
{
$this->defaultObjectAcl = $defaultObjectAcl;
}
/**
* @return ObjectAccessControl[]
*/
public function getDefaultObjectAcl()
{
return $this->defaultObjectAcl;
}
/**
* @param BucketEncryption
*/
public function setEncryption(BucketEncryption $encryption)
{
$this->encryption = $encryption;
}
/**
* @return BucketEncryption
*/
public function getEncryption()
{
return $this->encryption;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param string
*/
public function setHardDeleteTime($hardDeleteTime)
{
$this->hardDeleteTime = $hardDeleteTime;
}
/**
* @return string
*/
public function getHardDeleteTime()
{
return $this->hardDeleteTime;
}
/**
* @param BucketHierarchicalNamespace
*/
public function setHierarchicalNamespace(BucketHierarchicalNamespace $hierarchicalNamespace)
{
$this->hierarchicalNamespace = $hierarchicalNamespace;
}
/**
* @return BucketHierarchicalNamespace
*/
public function getHierarchicalNamespace()
{
return $this->hierarchicalNamespace;
}
/**
* @param BucketIamConfiguration
*/
public function setIamConfiguration(BucketIamConfiguration $iamConfiguration)
{
$this->iamConfiguration = $iamConfiguration;
}
/**
* @return BucketIamConfiguration
*/
public function getIamConfiguration()
{
return $this->iamConfiguration;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param BucketIpFilter
*/
public function setIpFilter(BucketIpFilter $ipFilter)
{
$this->ipFilter = $ipFilter;
}
/**
* @return BucketIpFilter
*/
public function getIpFilter()
{
return $this->ipFilter;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param BucketLifecycle
*/
public function setLifecycle(BucketLifecycle $lifecycle)
{
$this->lifecycle = $lifecycle;
}
/**
* @return BucketLifecycle
*/
public function getLifecycle()
{
return $this->lifecycle;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
/**
* @param BucketLogging
*/
public function setLogging(BucketLogging $logging)
{
$this->logging = $logging;
}
/**
* @return BucketLogging
*/
public function getLogging()
{
return $this->logging;
}
/**
* @param string
*/
public function setMetageneration($metageneration)
{
$this->metageneration = $metageneration;
}
/**
* @return string
*/
public function getMetageneration()
{
return $this->metageneration;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param BucketObjectRetention
*/
public function setObjectRetention(BucketObjectRetention $objectRetention)
{
$this->objectRetention = $objectRetention;
}
/**
* @return BucketObjectRetention
*/
public function getObjectRetention()
{
return $this->objectRetention;
}
/**
* @param BucketOwner
*/
public function setOwner(BucketOwner $owner)
{
$this->owner = $owner;
}
/**
* @return BucketOwner
*/
public function getOwner()
{
return $this->owner;
}
/**
* @param string
*/
public function setProjectNumber($projectNumber)
{
$this->projectNumber = $projectNumber;
}
/**
* @return string
*/
public function getProjectNumber()
{
return $this->projectNumber;
}
/**
* @param BucketRetentionPolicy
*/
public function setRetentionPolicy(BucketRetentionPolicy $retentionPolicy)
{
$this->retentionPolicy = $retentionPolicy;
}
/**
* @return BucketRetentionPolicy
*/
public function getRetentionPolicy()
{
return $this->retentionPolicy;
}
/**
* @param string
*/
public function setRpo($rpo)
{
$this->rpo = $rpo;
}
/**
* @return string
*/
public function getRpo()
{
return $this->rpo;
}
/**
* @param bool
*/
public function setSatisfiesPZI($satisfiesPZI)
{
$this->satisfiesPZI = $satisfiesPZI;
}
/**
* @return bool
*/
public function getSatisfiesPZI()
{
return $this->satisfiesPZI;
}
/**
* @param bool
*/
public function setSatisfiesPZS($satisfiesPZS)
{
$this->satisfiesPZS = $satisfiesPZS;
}
/**
* @return bool
*/
public function getSatisfiesPZS()
{
return $this->satisfiesPZS;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param BucketSoftDeletePolicy
*/
public function setSoftDeletePolicy(BucketSoftDeletePolicy $softDeletePolicy)
{
$this->softDeletePolicy = $softDeletePolicy;
}
/**
* @return BucketSoftDeletePolicy
*/
public function getSoftDeletePolicy()
{
return $this->softDeletePolicy;
}
/**
* @param string
*/
public function setSoftDeleteTime($softDeleteTime)
{
$this->softDeleteTime = $softDeleteTime;
}
/**
* @return string
*/
public function getSoftDeleteTime()
{
return $this->softDeleteTime;
}
/**
* @param string
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
/**
* @param string
*/
public function setTimeCreated($timeCreated)
{
$this->timeCreated = $timeCreated;
}
/**
* @return string
*/
public function getTimeCreated()
{
return $this->timeCreated;
}
/**
* @param string
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* @param BucketVersioning
*/
public function setVersioning(BucketVersioning $versioning)
{
$this->versioning = $versioning;
}
/**
* @return BucketVersioning
*/
public function getVersioning()
{
return $this->versioning;
}
/**
* @param BucketWebsite
*/
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');

View File

@@ -0,0 +1,222 @@
<?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
{
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $email;
/**
* @var string
*/
public $entity;
/**
* @var string
*/
public $entityId;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
protected $projectTeamType = BucketAccessControlProjectTeam::class;
protected $projectTeamDataType = '';
/**
* @var string
*/
public $role;
/**
* @var string
*/
public $selfLink;
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* @param string
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param BucketAccessControlProjectTeam
*/
public function setProjectTeam(BucketAccessControlProjectTeam $projectTeam)
{
$this->projectTeam = $projectTeam;
}
/**
* @return BucketAccessControlProjectTeam
*/
public function getProjectTeam()
{
return $this->projectTeam;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @param string
*/
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');

View File

@@ -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 BucketAccessControlProjectTeam extends \Google\Model
{
/**
* @var string
*/
public $projectNumber;
/**
* @var string
*/
public $team;
/**
* @param string
*/
public function setProjectNumber($projectNumber)
{
$this->projectNumber = $projectNumber;
}
/**
* @return string
*/
public function getProjectNumber()
{
return $this->projectNumber;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,61 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @param BucketAccessControl[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BucketAccessControl[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class BucketAutoclass extends \Google\Model
{
/**
* @var bool
*/
public $enabled;
/**
* @var string
*/
public $terminalStorageClass;
/**
* @var string
*/
public $terminalStorageClassUpdateTime;
/**
* @var string
*/
public $toggleTime;
/**
* @param bool
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param string
*/
public function setTerminalStorageClass($terminalStorageClass)
{
$this->terminalStorageClass = $terminalStorageClass;
}
/**
* @return string
*/
public function getTerminalStorageClass()
{
return $this->terminalStorageClass;
}
/**
* @param string
*/
public function setTerminalStorageClassUpdateTime($terminalStorageClassUpdateTime)
{
$this->terminalStorageClassUpdateTime = $terminalStorageClassUpdateTime;
}
/**
* @return string
*/
public function getTerminalStorageClassUpdateTime()
{
return $this->terminalStorageClassUpdateTime;
}
/**
* @param string
*/
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');

View File

@@ -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 BucketBilling extends \Google\Model
{
/**
* @var bool
*/
public $requesterPays;
/**
* @param bool
*/
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');

View File

@@ -0,0 +1,99 @@
<?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';
/**
* @var int
*/
public $maxAgeSeconds;
/**
* @var string[]
*/
public $method;
/**
* @var string[]
*/
public $origin;
/**
* @var string[]
*/
public $responseHeader;
/**
* @param int
*/
public function setMaxAgeSeconds($maxAgeSeconds)
{
$this->maxAgeSeconds = $maxAgeSeconds;
}
/**
* @return int
*/
public function getMaxAgeSeconds()
{
return $this->maxAgeSeconds;
}
/**
* @param string[]
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string[]
*/
public function getMethod()
{
return $this->method;
}
/**
* @param string[]
*/
public function setOrigin($origin)
{
$this->origin = $origin;
}
/**
* @return string[]
*/
public function getOrigin()
{
return $this->origin;
}
/**
* @param string[]
*/
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');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class BucketCustomPlacementConfig extends \Google\Collection
{
protected $collection_key = 'dataLocations';
/**
* @var string[]
*/
public $dataLocations;
/**
* @param string[]
*/
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');

View File

@@ -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 BucketEncryption extends \Google\Model
{
/**
* @var string
*/
public $defaultKmsKeyName;
/**
* @param string
*/
public function setDefaultKmsKeyName($defaultKmsKeyName)
{
$this->defaultKmsKeyName = $defaultKmsKeyName;
}
/**
* @return string
*/
public function getDefaultKmsKeyName()
{
return $this->defaultKmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketEncryption::class, 'Google_Service_Storage_BucketEncryption');

View File

@@ -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 BucketHierarchicalNamespace extends \Google\Model
{
/**
* @var bool
*/
public $enabled;
/**
* @param bool
*/
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');

View File

@@ -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 BucketIamConfiguration extends \Google\Model
{
protected $bucketPolicyOnlyType = BucketIamConfigurationBucketPolicyOnly::class;
protected $bucketPolicyOnlyDataType = '';
/**
* @var string
*/
public $publicAccessPrevention;
protected $uniformBucketLevelAccessType = BucketIamConfigurationUniformBucketLevelAccess::class;
protected $uniformBucketLevelAccessDataType = '';
/**
* @param BucketIamConfigurationBucketPolicyOnly
*/
public function setBucketPolicyOnly(BucketIamConfigurationBucketPolicyOnly $bucketPolicyOnly)
{
$this->bucketPolicyOnly = $bucketPolicyOnly;
}
/**
* @return BucketIamConfigurationBucketPolicyOnly
*/
public function getBucketPolicyOnly()
{
return $this->bucketPolicyOnly;
}
/**
* @param string
*/
public function setPublicAccessPrevention($publicAccessPrevention)
{
$this->publicAccessPrevention = $publicAccessPrevention;
}
/**
* @return string
*/
public function getPublicAccessPrevention()
{
return $this->publicAccessPrevention;
}
/**
* @param BucketIamConfigurationUniformBucketLevelAccess
*/
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');

View File

@@ -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 BucketIamConfigurationBucketPolicyOnly extends \Google\Model
{
/**
* @var bool
*/
public $enabled;
/**
* @var string
*/
public $lockedTime;
/**
* @param bool
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param string
*/
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');

View File

@@ -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 BucketIamConfigurationUniformBucketLevelAccess extends \Google\Model
{
/**
* @var bool
*/
public $enabled;
/**
* @var string
*/
public $lockedTime;
/**
* @param bool
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,77 @@
<?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';
/**
* @var string
*/
public $mode;
protected $publicNetworkSourceType = BucketIpFilterPublicNetworkSource::class;
protected $publicNetworkSourceDataType = '';
protected $vpcNetworkSourcesType = BucketIpFilterVpcNetworkSources::class;
protected $vpcNetworkSourcesDataType = 'array';
/**
* @param string
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* @param BucketIpFilterPublicNetworkSource
*/
public function setPublicNetworkSource(BucketIpFilterPublicNetworkSource $publicNetworkSource)
{
$this->publicNetworkSource = $publicNetworkSource;
}
/**
* @return BucketIpFilterPublicNetworkSource
*/
public function getPublicNetworkSource()
{
return $this->publicNetworkSource;
}
/**
* @param BucketIpFilterVpcNetworkSources[]
*/
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');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class BucketIpFilterPublicNetworkSource extends \Google\Collection
{
protected $collection_key = 'allowedIpCidrRanges';
/**
* @var string[]
*/
public $allowedIpCidrRanges;
/**
* @param string[]
*/
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');

View File

@@ -0,0 +1,63 @@
<?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';
/**
* @var string[]
*/
public $allowedIpCidrRanges;
/**
* @var string
*/
public $network;
/**
* @param string[]
*/
public function setAllowedIpCidrRanges($allowedIpCidrRanges)
{
$this->allowedIpCidrRanges = $allowedIpCidrRanges;
}
/**
* @return string[]
*/
public function getAllowedIpCidrRanges()
{
return $this->allowedIpCidrRanges;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,43 @@
<?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';
/**
* @param BucketLifecycleRule[]
*/
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');

View File

@@ -0,0 +1,58 @@
<?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 = '';
/**
* @param BucketLifecycleRuleAction
*/
public function setAction(BucketLifecycleRuleAction $action)
{
$this->action = $action;
}
/**
* @return BucketLifecycleRuleAction
*/
public function getAction()
{
return $this->action;
}
/**
* @param BucketLifecycleRuleCondition
*/
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');

View File

@@ -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 BucketLifecycleRuleAction extends \Google\Model
{
/**
* @var string
*/
public $storageClass;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,243 @@
<?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';
/**
* @var int
*/
public $age;
/**
* @var string
*/
public $createdBefore;
/**
* @var string
*/
public $customTimeBefore;
/**
* @var int
*/
public $daysSinceCustomTime;
/**
* @var int
*/
public $daysSinceNoncurrentTime;
/**
* @var bool
*/
public $isLive;
/**
* @var string
*/
public $matchesPattern;
/**
* @var string[]
*/
public $matchesPrefix;
/**
* @var string[]
*/
public $matchesStorageClass;
/**
* @var string[]
*/
public $matchesSuffix;
/**
* @var string
*/
public $noncurrentTimeBefore;
/**
* @var int
*/
public $numNewerVersions;
/**
* @param int
*/
public function setAge($age)
{
$this->age = $age;
}
/**
* @return int
*/
public function getAge()
{
return $this->age;
}
/**
* @param string
*/
public function setCreatedBefore($createdBefore)
{
$this->createdBefore = $createdBefore;
}
/**
* @return string
*/
public function getCreatedBefore()
{
return $this->createdBefore;
}
/**
* @param string
*/
public function setCustomTimeBefore($customTimeBefore)
{
$this->customTimeBefore = $customTimeBefore;
}
/**
* @return string
*/
public function getCustomTimeBefore()
{
return $this->customTimeBefore;
}
/**
* @param int
*/
public function setDaysSinceCustomTime($daysSinceCustomTime)
{
$this->daysSinceCustomTime = $daysSinceCustomTime;
}
/**
* @return int
*/
public function getDaysSinceCustomTime()
{
return $this->daysSinceCustomTime;
}
/**
* @param int
*/
public function setDaysSinceNoncurrentTime($daysSinceNoncurrentTime)
{
$this->daysSinceNoncurrentTime = $daysSinceNoncurrentTime;
}
/**
* @return int
*/
public function getDaysSinceNoncurrentTime()
{
return $this->daysSinceNoncurrentTime;
}
/**
* @param bool
*/
public function setIsLive($isLive)
{
$this->isLive = $isLive;
}
/**
* @return bool
*/
public function getIsLive()
{
return $this->isLive;
}
/**
* @param string
*/
public function setMatchesPattern($matchesPattern)
{
$this->matchesPattern = $matchesPattern;
}
/**
* @return string
*/
public function getMatchesPattern()
{
return $this->matchesPattern;
}
/**
* @param string[]
*/
public function setMatchesPrefix($matchesPrefix)
{
$this->matchesPrefix = $matchesPrefix;
}
/**
* @return string[]
*/
public function getMatchesPrefix()
{
return $this->matchesPrefix;
}
/**
* @param string[]
*/
public function setMatchesStorageClass($matchesStorageClass)
{
$this->matchesStorageClass = $matchesStorageClass;
}
/**
* @return string[]
*/
public function getMatchesStorageClass()
{
return $this->matchesStorageClass;
}
/**
* @param string[]
*/
public function setMatchesSuffix($matchesSuffix)
{
$this->matchesSuffix = $matchesSuffix;
}
/**
* @return string[]
*/
public function getMatchesSuffix()
{
return $this->matchesSuffix;
}
/**
* @param string
*/
public function setNoncurrentTimeBefore($noncurrentTimeBefore)
{
$this->noncurrentTimeBefore = $noncurrentTimeBefore;
}
/**
* @return string
*/
public function getNoncurrentTimeBefore()
{
return $this->noncurrentTimeBefore;
}
/**
* @param int
*/
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');

View File

@@ -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 BucketLogging extends \Google\Model
{
/**
* @var string
*/
public $logBucket;
/**
* @var string
*/
public $logObjectPrefix;
/**
* @param string
*/
public function setLogBucket($logBucket)
{
$this->logBucket = $logBucket;
}
/**
* @return string
*/
public function getLogBucket()
{
return $this->logBucket;
}
/**
* @param string
*/
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');

View File

@@ -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 BucketObjectRetention extends \Google\Model
{
/**
* @var string
*/
public $mode;
/**
* @param string
*/
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');

View File

@@ -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 BucketOwner extends \Google\Model
{
/**
* @var string
*/
public $entity;
/**
* @var string
*/
public $entityId;
/**
* @param string
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* @param string
*/
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');

View File

@@ -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 BucketRetentionPolicy extends \Google\Model
{
/**
* @var string
*/
public $effectiveTime;
/**
* @var bool
*/
public $isLocked;
/**
* @var string
*/
public $retentionPeriod;
/**
* @param string
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* @param bool
*/
public function setIsLocked($isLocked)
{
$this->isLocked = $isLocked;
}
/**
* @return bool
*/
public function getIsLocked()
{
return $this->isLocked;
}
/**
* @param string
*/
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');

View File

@@ -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 BucketSoftDeletePolicy extends \Google\Model
{
/**
* @var string
*/
public $effectiveTime;
/**
* @var string
*/
public $retentionDurationSeconds;
/**
* @param string
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,130 @@
<?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
{
/**
* @var string
*/
public $bucket;
protected $customPlacementConfigType = BucketStorageLayoutCustomPlacementConfig::class;
protected $customPlacementConfigDataType = '';
protected $hierarchicalNamespaceType = BucketStorageLayoutHierarchicalNamespace::class;
protected $hierarchicalNamespaceDataType = '';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param BucketStorageLayoutCustomPlacementConfig
*/
public function setCustomPlacementConfig(BucketStorageLayoutCustomPlacementConfig $customPlacementConfig)
{
$this->customPlacementConfig = $customPlacementConfig;
}
/**
* @return BucketStorageLayoutCustomPlacementConfig
*/
public function getCustomPlacementConfig()
{
return $this->customPlacementConfig;
}
/**
* @param BucketStorageLayoutHierarchicalNamespace
*/
public function setHierarchicalNamespace(BucketStorageLayoutHierarchicalNamespace $hierarchicalNamespace)
{
$this->hierarchicalNamespace = $hierarchicalNamespace;
}
/**
* @return BucketStorageLayoutHierarchicalNamespace
*/
public function getHierarchicalNamespace()
{
return $this->hierarchicalNamespace;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class BucketStorageLayoutCustomPlacementConfig extends \Google\Collection
{
protected $collection_key = 'dataLocations';
/**
* @var string[]
*/
public $dataLocations;
/**
* @param string[]
*/
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');

View File

@@ -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 BucketStorageLayoutHierarchicalNamespace extends \Google\Model
{
/**
* @var bool
*/
public $enabled;
/**
* @param bool
*/
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');

View File

@@ -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 BucketVersioning extends \Google\Model
{
/**
* @var bool
*/
public $enabled;
/**
* @param bool
*/
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');

View File

@@ -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 BucketWebsite extends \Google\Model
{
/**
* @var string
*/
public $mainPageSuffix;
/**
* @var string
*/
public $notFoundPage;
/**
* @param string
*/
public function setMainPageSuffix($mainPageSuffix)
{
$this->mainPageSuffix = $mainPageSuffix;
}
/**
* @return string
*/
public function getMainPageSuffix()
{
return $this->mainPageSuffix;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,79 @@
<?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 = 'items';
protected $itemsType = Bucket::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Bucket[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Bucket[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
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(Buckets::class, 'Google_Service_Storage_Buckets');

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 BulkRestoreObjectsRequest extends \Google\Collection
{
protected $collection_key = 'matchGlobs';
/**
* @var bool
*/
public $allowOverwrite;
/**
* @var bool
*/
public $copySourceAcl;
/**
* @var string[]
*/
public $matchGlobs;
/**
* @var string
*/
public $softDeletedAfterTime;
/**
* @var string
*/
public $softDeletedBeforeTime;
/**
* @param bool
*/
public function setAllowOverwrite($allowOverwrite)
{
$this->allowOverwrite = $allowOverwrite;
}
/**
* @return bool
*/
public function getAllowOverwrite()
{
return $this->allowOverwrite;
}
/**
* @param bool
*/
public function setCopySourceAcl($copySourceAcl)
{
$this->copySourceAcl = $copySourceAcl;
}
/**
* @return bool
*/
public function getCopySourceAcl()
{
return $this->copySourceAcl;
}
/**
* @param string[]
*/
public function setMatchGlobs($matchGlobs)
{
$this->matchGlobs = $matchGlobs;
}
/**
* @return string[]
*/
public function getMatchGlobs()
{
return $this->matchGlobs;
}
/**
* @param string
*/
public function setSoftDeletedAfterTime($softDeletedAfterTime)
{
$this->softDeletedAfterTime = $softDeletedAfterTime;
}
/**
* @return string
*/
public function getSoftDeletedAfterTime()
{
return $this->softDeletedAfterTime;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class Channel extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $expiration;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $params;
/**
* @var bool
*/
public $payload;
/**
* @var string
*/
public $resourceId;
/**
* @var string
*/
public $resourceUri;
/**
* @var string
*/
public $token;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setExpiration($expiration)
{
$this->expiration = $expiration;
}
/**
* @return string
*/
public function getExpiration()
{
return $this->expiration;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return string[]
*/
public function getParams()
{
return $this->params;
}
/**
* @param bool
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return bool
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param string
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,77 @@
<?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';
protected $destinationType = StorageObject::class;
protected $destinationDataType = '';
/**
* @var string
*/
public $kind;
protected $sourceObjectsType = ComposeRequestSourceObjects::class;
protected $sourceObjectsDataType = 'array';
/**
* @param StorageObject
*/
public function setDestination(StorageObject $destination)
{
$this->destination = $destination;
}
/**
* @return StorageObject
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param ComposeRequestSourceObjects[]
*/
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');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class ComposeRequestSourceObjects extends \Google\Model
{
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $name;
protected $objectPreconditionsType = ComposeRequestSourceObjectsObjectPreconditions::class;
protected $objectPreconditionsDataType = '';
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param ComposeRequestSourceObjectsObjectPreconditions
*/
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');

View File

@@ -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 ComposeRequestSourceObjectsObjectPreconditions extends \Google\Model
{
/**
* @var string
*/
public $ifGenerationMatch;
/**
* @param string
*/
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');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
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');

View File

@@ -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;
class Folder extends \Google\Model
{
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $metageneration;
/**
* @var string
*/
public $name;
protected $pendingRenameInfoType = FolderPendingRenameInfo::class;
protected $pendingRenameInfoDataType = '';
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setMetageneration($metageneration)
{
$this->metageneration = $metageneration;
}
/**
* @return string
*/
public function getMetageneration()
{
return $this->metageneration;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param FolderPendingRenameInfo
*/
public function setPendingRenameInfo(FolderPendingRenameInfo $pendingRenameInfo)
{
$this->pendingRenameInfo = $pendingRenameInfo;
}
/**
* @return FolderPendingRenameInfo
*/
public function getPendingRenameInfo()
{
return $this->pendingRenameInfo;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
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');

View File

@@ -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 FolderPendingRenameInfo extends \Google\Model
{
/**
* @var string
*/
public $operationId;
/**
* @param string
*/
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');

View File

@@ -0,0 +1,79 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Folder[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Folder[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,79 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleLongrunningOperation[]
*/
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');

View File

@@ -0,0 +1,150 @@
<?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
{
/**
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* @var string
*/
public $kind;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @var string
*/
public $selfLink;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param GoogleRpcStatus
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,81 @@
<?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';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class HmacKey extends \Google\Model
{
/**
* @var string
*/
public $kind;
protected $metadataType = HmacKeyMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $secret;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param HmacKeyMetadata
*/
public function setMetadata(HmacKeyMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return HmacKeyMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class HmacKeyMetadata extends \Google\Model
{
/**
* @var string
*/
public $accessId;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $serviceAccountEmail;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $timeCreated;
/**
* @var string
*/
public $updated;
/**
* @param string
*/
public function setAccessId($accessId)
{
$this->accessId = $accessId;
}
/**
* @return string
*/
public function getAccessId()
{
return $this->accessId;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setServiceAccountEmail($serviceAccountEmail)
{
$this->serviceAccountEmail = $serviceAccountEmail;
}
/**
* @return string
*/
public function getServiceAccountEmail()
{
return $this->serviceAccountEmail;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setTimeCreated($timeCreated)
{
$this->timeCreated = $timeCreated;
}
/**
* @return string
*/
public function getTimeCreated()
{
return $this->timeCreated;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,79 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param HmacKeyMetadata[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return HmacKeyMetadata[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,170 @@
<?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
{
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $metageneration;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setMetageneration($metageneration)
{
$this->metageneration = $metageneration;
}
/**
* @return string
*/
public function getMetageneration()
{
return $this->metageneration;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,79 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param ManagedFolder[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return ManagedFolder[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,195 @@
<?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",
];
/**
* @var string[]
*/
public $customAttributes;
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $eventTypes;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $objectNamePrefix;
/**
* @var string
*/
public $payloadFormat;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $topic;
/**
* @param string[]
*/
public function setCustomAttributes($customAttributes)
{
$this->customAttributes = $customAttributes;
}
/**
* @return string[]
*/
public function getCustomAttributes()
{
return $this->customAttributes;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setEventTypes($eventTypes)
{
$this->eventTypes = $eventTypes;
}
/**
* @return string[]
*/
public function getEventTypes()
{
return $this->eventTypes;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setObjectNamePrefix($objectNamePrefix)
{
$this->objectNamePrefix = $objectNamePrefix;
}
/**
* @return string
*/
public function getObjectNamePrefix()
{
return $this->objectNamePrefix;
}
/**
* @param string
*/
public function setPayloadFormat($payloadFormat)
{
$this->payloadFormat = $payloadFormat;
}
/**
* @return string
*/
public function getPayloadFormat()
{
return $this->payloadFormat;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,61 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @param Notification[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Notification[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,258 @@
<?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
{
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $email;
/**
* @var string
*/
public $entity;
/**
* @var string
*/
public $entityId;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $object;
protected $projectTeamType = ObjectAccessControlProjectTeam::class;
protected $projectTeamDataType = '';
/**
* @var string
*/
public $role;
/**
* @var string
*/
public $selfLink;
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* @param string
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setObject($object)
{
$this->object = $object;
}
/**
* @return string
*/
public function getObject()
{
return $this->object;
}
/**
* @param ObjectAccessControlProjectTeam
*/
public function setProjectTeam(ObjectAccessControlProjectTeam $projectTeam)
{
$this->projectTeam = $projectTeam;
}
/**
* @return ObjectAccessControlProjectTeam
*/
public function getProjectTeam()
{
return $this->projectTeam;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @param string
*/
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');

View File

@@ -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 ObjectAccessControlProjectTeam extends \Google\Model
{
/**
* @var string
*/
public $projectNumber;
/**
* @var string
*/
public $team;
/**
* @param string
*/
public function setProjectNumber($projectNumber)
{
$this->projectNumber = $projectNumber;
}
/**
* @return string
*/
public function getProjectNumber()
{
return $this->projectNumber;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,61 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @param ObjectAccessControl[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return ObjectAccessControl[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,97 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $prefixes;
/**
* @param StorageObject[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return StorageObject[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
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');

View File

@@ -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 Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = PolicyBindings::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $resourceId;
/**
* @var int
*/
public $version;
/**
* @param PolicyBindings[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return PolicyBindings[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* @param int
*/
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');

View File

@@ -0,0 +1,79 @@
<?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 = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class RelocateBucketRequest extends \Google\Model
{
protected $destinationCustomPlacementConfigType = RelocateBucketRequestDestinationCustomPlacementConfig::class;
protected $destinationCustomPlacementConfigDataType = '';
/**
* @var string
*/
public $destinationLocation;
/**
* @var bool
*/
public $validateOnly;
/**
* @param RelocateBucketRequestDestinationCustomPlacementConfig
*/
public function setDestinationCustomPlacementConfig(RelocateBucketRequestDestinationCustomPlacementConfig $destinationCustomPlacementConfig)
{
$this->destinationCustomPlacementConfig = $destinationCustomPlacementConfig;
}
/**
* @return RelocateBucketRequestDestinationCustomPlacementConfig
*/
public function getDestinationCustomPlacementConfig()
{
return $this->destinationCustomPlacementConfig;
}
/**
* @param string
*/
public function setDestinationLocation($destinationLocation)
{
$this->destinationLocation = $destinationLocation;
}
/**
* @return string
*/
public function getDestinationLocation()
{
return $this->destinationLocation;
}
/**
* @param bool
*/
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');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Storage;
class RelocateBucketRequestDestinationCustomPlacementConfig extends \Google\Collection
{
protected $collection_key = 'dataLocations';
/**
* @var string[]
*/
public $dataLocations;
/**
* @param string[]
*/
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');

View File

@@ -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');

View File

@@ -0,0 +1,149 @@
<?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(ttl and admissionPolicy) 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');

View File

@@ -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');

View File

@@ -0,0 +1,337 @@
<?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 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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -0,0 +1,157 @@
<?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]);
}
/**
* 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 doesnt 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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -0,0 +1,715 @@
<?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 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 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 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 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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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 RewriteResponse extends \Google\Model
{
/**
* @var bool
*/
public $done;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $objectSize;
protected $resourceType = StorageObject::class;
protected $resourceDataType = '';
/**
* @var string
*/
public $rewriteToken;
/**
* @var string
*/
public $totalBytesRewritten;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setObjectSize($objectSize)
{
$this->objectSize = $objectSize;
}
/**
* @return string
*/
public function getObjectSize()
{
return $this->objectSize;
}
/**
* @param StorageObject
*/
public function setResource(StorageObject $resource)
{
$this->resource = $resource;
}
/**
* @return StorageObject
*/
public function getResource()
{
return $this->resource;
}
/**
* @param string
*/
public function setRewriteToken($rewriteToken)
{
$this->rewriteToken = $rewriteToken;
}
/**
* @return string
*/
public function getRewriteToken()
{
return $this->rewriteToken;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,65 @@
<?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",
];
/**
* @var string
*/
public $emailAddress;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,685 @@
<?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';
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $cacheControl;
/**
* @var int
*/
public $componentCount;
/**
* @var string
*/
public $contentDisposition;
/**
* @var string
*/
public $contentEncoding;
/**
* @var string
*/
public $contentLanguage;
/**
* @var string
*/
public $contentType;
/**
* @var string
*/
public $crc32c;
/**
* @var string
*/
public $customTime;
protected $customerEncryptionType = StorageObjectCustomerEncryption::class;
protected $customerEncryptionDataType = '';
/**
* @var string
*/
public $etag;
/**
* @var bool
*/
public $eventBasedHold;
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $hardDeleteTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string
*/
public $md5Hash;
/**
* @var string
*/
public $mediaLink;
/**
* @var string[]
*/
public $metadata;
/**
* @var string
*/
public $metageneration;
/**
* @var string
*/
public $name;
protected $ownerType = StorageObjectOwner::class;
protected $ownerDataType = '';
/**
* @var string
*/
public $restoreToken;
protected $retentionType = StorageObjectRetention::class;
protected $retentionDataType = '';
/**
* @var string
*/
public $retentionExpirationTime;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $size;
/**
* @var string
*/
public $softDeleteTime;
/**
* @var string
*/
public $storageClass;
/**
* @var bool
*/
public $temporaryHold;
/**
* @var string
*/
public $timeCreated;
/**
* @var string
*/
public $timeDeleted;
/**
* @var string
*/
public $timeFinalized;
/**
* @var string
*/
public $timeStorageClassUpdated;
/**
* @var string
*/
public $updated;
/**
* @param ObjectAccessControl[]
*/
public function setAcl($acl)
{
$this->acl = $acl;
}
/**
* @return ObjectAccessControl[]
*/
public function getAcl()
{
return $this->acl;
}
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setCacheControl($cacheControl)
{
$this->cacheControl = $cacheControl;
}
/**
* @return string
*/
public function getCacheControl()
{
return $this->cacheControl;
}
/**
* @param int
*/
public function setComponentCount($componentCount)
{
$this->componentCount = $componentCount;
}
/**
* @return int
*/
public function getComponentCount()
{
return $this->componentCount;
}
/**
* @param string
*/
public function setContentDisposition($contentDisposition)
{
$this->contentDisposition = $contentDisposition;
}
/**
* @return string
*/
public function getContentDisposition()
{
return $this->contentDisposition;
}
/**
* @param string
*/
public function setContentEncoding($contentEncoding)
{
$this->contentEncoding = $contentEncoding;
}
/**
* @return string
*/
public function getContentEncoding()
{
return $this->contentEncoding;
}
/**
* @param string
*/
public function setContentLanguage($contentLanguage)
{
$this->contentLanguage = $contentLanguage;
}
/**
* @return string
*/
public function getContentLanguage()
{
return $this->contentLanguage;
}
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param string
*/
public function setCrc32c($crc32c)
{
$this->crc32c = $crc32c;
}
/**
* @return string
*/
public function getCrc32c()
{
return $this->crc32c;
}
/**
* @param string
*/
public function setCustomTime($customTime)
{
$this->customTime = $customTime;
}
/**
* @return string
*/
public function getCustomTime()
{
return $this->customTime;
}
/**
* @param StorageObjectCustomerEncryption
*/
public function setCustomerEncryption(StorageObjectCustomerEncryption $customerEncryption)
{
$this->customerEncryption = $customerEncryption;
}
/**
* @return StorageObjectCustomerEncryption
*/
public function getCustomerEncryption()
{
return $this->customerEncryption;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param bool
*/
public function setEventBasedHold($eventBasedHold)
{
$this->eventBasedHold = $eventBasedHold;
}
/**
* @return bool
*/
public function getEventBasedHold()
{
return $this->eventBasedHold;
}
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param string
*/
public function setHardDeleteTime($hardDeleteTime)
{
$this->hardDeleteTime = $hardDeleteTime;
}
/**
* @return string
*/
public function getHardDeleteTime()
{
return $this->hardDeleteTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string
*/
public function setMd5Hash($md5Hash)
{
$this->md5Hash = $md5Hash;
}
/**
* @return string
*/
public function getMd5Hash()
{
return $this->md5Hash;
}
/**
* @param string
*/
public function setMediaLink($mediaLink)
{
$this->mediaLink = $mediaLink;
}
/**
* @return string
*/
public function getMediaLink()
{
return $this->mediaLink;
}
/**
* @param string[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setMetageneration($metageneration)
{
$this->metageneration = $metageneration;
}
/**
* @return string
*/
public function getMetageneration()
{
return $this->metageneration;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param StorageObjectOwner
*/
public function setOwner(StorageObjectOwner $owner)
{
$this->owner = $owner;
}
/**
* @return StorageObjectOwner
*/
public function getOwner()
{
return $this->owner;
}
/**
* @param string
*/
public function setRestoreToken($restoreToken)
{
$this->restoreToken = $restoreToken;
}
/**
* @return string
*/
public function getRestoreToken()
{
return $this->restoreToken;
}
/**
* @param StorageObjectRetention
*/
public function setRetention(StorageObjectRetention $retention)
{
$this->retention = $retention;
}
/**
* @return StorageObjectRetention
*/
public function getRetention()
{
return $this->retention;
}
/**
* @param string
*/
public function setRetentionExpirationTime($retentionExpirationTime)
{
$this->retentionExpirationTime = $retentionExpirationTime;
}
/**
* @return string
*/
public function getRetentionExpirationTime()
{
return $this->retentionExpirationTime;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
/**
* @param string
*/
public function setSoftDeleteTime($softDeleteTime)
{
$this->softDeleteTime = $softDeleteTime;
}
/**
* @return string
*/
public function getSoftDeleteTime()
{
return $this->softDeleteTime;
}
/**
* @param string
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
/**
* @param bool
*/
public function setTemporaryHold($temporaryHold)
{
$this->temporaryHold = $temporaryHold;
}
/**
* @return bool
*/
public function getTemporaryHold()
{
return $this->temporaryHold;
}
/**
* @param string
*/
public function setTimeCreated($timeCreated)
{
$this->timeCreated = $timeCreated;
}
/**
* @return string
*/
public function getTimeCreated()
{
return $this->timeCreated;
}
/**
* @param string
*/
public function setTimeDeleted($timeDeleted)
{
$this->timeDeleted = $timeDeleted;
}
/**
* @return string
*/
public function getTimeDeleted()
{
return $this->timeDeleted;
}
/**
* @param string
*/
public function setTimeFinalized($timeFinalized)
{
$this->timeFinalized = $timeFinalized;
}
/**
* @return string
*/
public function getTimeFinalized()
{
return $this->timeFinalized;
}
/**
* @param string
*/
public function setTimeStorageClassUpdated($timeStorageClassUpdated)
{
$this->timeStorageClassUpdated = $timeStorageClassUpdated;
}
/**
* @return string
*/
public function getTimeStorageClassUpdated()
{
return $this->timeStorageClassUpdated;
}
/**
* @param string
*/
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');

View File

@@ -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 StorageObjectCustomerEncryption extends \Google\Model
{
/**
* @var string
*/
public $encryptionAlgorithm;
/**
* @var string
*/
public $keySha256;
/**
* @param string
*/
public function setEncryptionAlgorithm($encryptionAlgorithm)
{
$this->encryptionAlgorithm = $encryptionAlgorithm;
}
/**
* @return string
*/
public function getEncryptionAlgorithm()
{
return $this->encryptionAlgorithm;
}
/**
* @param string
*/
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');

View File

@@ -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 StorageObjectOwner extends \Google\Model
{
/**
* @var string
*/
public $entity;
/**
* @var string
*/
public $entityId;
/**
* @param string
*/
public function setEntity($entity)
{
$this->entity = $entity;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* @param string
*/
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');

View File

@@ -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 StorageObjectRetention extends \Google\Model
{
/**
* @var string
*/
public $mode;
/**
* @var string
*/
public $retainUntilTime;
/**
* @param string
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,63 @@
<?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';
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $permissions;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
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');