bindings = $bindings; } /** * @return PolicyBindings[] */ public function getBindings() { return $this->bindings; } /** * HTTP 1.1 Entity tag for the policy. * * @param string $etag */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * The kind of item this is. For policies, this is always storage#policy. This * field is ignored on input. * * @param string $kind */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * The ID of the resource to which this policy belongs. Will be of the form * projects/_/buckets/bucket for buckets, * projects/_/buckets/bucket/objects/object for objects, and * projects/_/buckets/bucket/managedFolders/managedFolder. A specific * generation may be specified by appending #generationNumber to the end of * the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The * current generation can be denoted with #0. This field is ignored on input. * * @param string $resourceId */ public function setResourceId($resourceId) { $this->resourceId = $resourceId; } /** * @return string */ public function getResourceId() { return $this->resourceId; } /** * The IAM policy format version. * * @param int $version */ public function setVersion($version) { $this->version = $version; } /** * @return int */ public function getVersion() { return $this->version; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Policy::class, 'Google_Service_Storage_Policy');