📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/Storage
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AdvanceRelocateBucketOperationRequest.php
▶ Open 📄 View Source
🐘 AnywhereCache.php
▶ Open 📄 View Source
🐘 AnywhereCaches.php
▶ Open 📄 View Source
🐘 Bucket.php
▶ Open 📄 View Source
🐘 BucketAccessControl.php
▶ Open 📄 View Source
🐘 BucketAccessControlProjectTeam.php
▶ Open 📄 View Source
🐘 BucketAccessControls.php
▶ Open 📄 View Source
🐘 BucketAutoclass.php
▶ Open 📄 View Source
🐘 BucketBilling.php
▶ Open 📄 View Source
🐘 BucketCors.php
▶ Open 📄 View Source
🐘 BucketCustomPlacementConfig.php
▶ Open 📄 View Source
🐘 BucketEncryption.php
▶ Open 📄 View Source
🐘 BucketEncryptionCustomerManagedEncryptionEnforcementConfig.php
▶ Open 📄 View Source
🐘 BucketEncryptionCustomerSuppliedEncryptionEnforcementConfig.php
▶ Open 📄 View Source
🐘 BucketEncryptionGoogleManagedEncryptionEnforcementConfig.php
▶ Open 📄 View Source
🐘 BucketHierarchicalNamespace.php
▶ Open 📄 View Source
🐘 BucketIamConfiguration.php
▶ Open 📄 View Source
🐘 BucketIamConfigurationBucketPolicyOnly.php
▶ Open 📄 View Source
🐘 BucketIamConfigurationUniformBucketLevelAccess.php
▶ Open 📄 View Source
🐘 BucketIpFilter.php
▶ Open 📄 View Source
🐘 BucketIpFilterPublicNetworkSource.php
▶ Open 📄 View Source
🐘 BucketIpFilterVpcNetworkSources.php
▶ Open 📄 View Source
🐘 BucketLifecycle.php
▶ Open 📄 View Source
🐘 BucketLifecycleRule.php
▶ Open 📄 View Source
🐘 BucketLifecycleRuleAction.php
▶ Open 📄 View Source
🐘 BucketLifecycleRuleCondition.php
▶ Open 📄 View Source
🐘 BucketLogging.php
▶ Open 📄 View Source
🐘 BucketObjectRetention.php
▶ Open 📄 View Source
🐘 BucketOwner.php
▶ Open 📄 View Source
🐘 BucketRetentionPolicy.php
▶ Open 📄 View Source
🐘 BucketSoftDeletePolicy.php
▶ Open 📄 View Source
🐘 BucketStorageLayout.php
▶ Open 📄 View Source
🐘 BucketStorageLayoutCustomPlacementConfig.php
▶ Open 📄 View Source
🐘 BucketStorageLayoutHierarchicalNamespace.php
▶ Open 📄 View Source
🐘 BucketVersioning.php
▶ Open 📄 View Source
🐘 BucketWebsite.php
▶ Open 📄 View Source
🐘 Buckets.php
▶ Open 📄 View Source
🐘 BulkRestoreObjectsRequest.php
▶ Open 📄 View Source
🐘 Channel.php
▶ Open 📄 View Source
🐘 ComposeRequest.php
▶ Open 📄 View Source
🐘 ComposeRequestSourceObjects.php
▶ Open 📄 View Source
🐘 ComposeRequestSourceObjectsObjectPreconditions.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 Folder.php
▶ Open 📄 View Source
🐘 FolderPendingRenameInfo.php
▶ Open 📄 View Source
🐘 Folders.php
▶ Open 📄 View Source
🐘 GoogleLongrunningListOperationsResponse.php
▶ Open 📄 View Source
🐘 GoogleLongrunningOperation.php
▶ Open 📄 View Source
🐘 GoogleRpcStatus.php
▶ Open 📄 View Source
🐘 HmacKey.php
▶ Open 📄 View Source
🐘 HmacKeyMetadata.php
▶ Open 📄 View Source
🐘 HmacKeysMetadata.php
▶ Open 📄 View Source
🐘 ManagedFolder.php
▶ Open 📄 View Source
🐘 ManagedFolders.php
▶ Open 📄 View Source
🐘 Notification.php
▶ Open 📄 View Source
🐘 Notifications.php
▶ Open 📄 View Source
🐘 ObjectAccessControl.php
▶ Open 📄 View Source
🐘 ObjectAccessControlProjectTeam.php
▶ Open 📄 View Source
🐘 ObjectAccessControls.php
▶ Open 📄 View Source
🐘 ObjectCustomContextPayload.php
▶ Open 📄 View Source
🐘 Objects.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 PolicyBindings.php
▶ Open 📄 View Source
🐘 RelocateBucketRequest.php
▶ Open 📄 View Source
🐘 RelocateBucketRequestDestinationCustomPlacementConfig.php
▶ Open 📄 View Source
🐘 RewriteResponse.php
▶ Open 📄 View Source
🐘 ServiceAccount.php
▶ Open 📄 View Source
🐘 StorageObject.php
▶ Open 📄 View Source
🐘 StorageObjectContexts.php
▶ Open 📄 View Source
🐘 StorageObjectCustomerEncryption.php
▶ Open 📄 View Source
🐘 StorageObjectOwner.php
▶ Open 📄 View Source
🐘 StorageObjectRetention.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source

📄 Source: Policy.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Storage;

class Policy extends \Google\Collection
{
  protected $collection_key = 'bindings';
  protected $bindingsType = PolicyBindings::class;
  protected $bindingsDataType = 'array';
  /**
   * HTTP 1.1  Entity tag for the policy.
   *
   * @var string
   */
  public $etag;
  /**
   * The kind of item this is. For policies, this is always storage#policy. This
   * field is ignored on input.
   *
   * @var string
   */
  public $kind;
  /**
   * The ID of the resource to which this policy belongs. Will be of the form
   * projects/_/buckets/bucket for buckets,
   * projects/_/buckets/bucket/objects/object for objects, and
   * projects/_/buckets/bucket/managedFolders/managedFolder. A specific
   * generation may be specified by appending #generationNumber to the end of
   * the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The
   * current generation can be denoted with #0. This field is ignored on input.
   *
   * @var string
   */
  public $resourceId;
  /**
   * The IAM policy format version.
   *
   * @var int
   */
  public $version;

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

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_Storage_Policy');
← Back