📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AddBitbucketServerConnectedRepositoryRequest.php
▶ Open 📄 View Source
🐘 AddBitbucketServerConnectedRepositoryResponse.php
▶ Open 📄 View Source
🐘 ApprovalConfig.php
▶ Open 📄 View Source
🐘 ApprovalResult.php
▶ Open 📄 View Source
🐘 ApproveBuildRequest.php
▶ Open 📄 View Source
🐘 ArtifactObjects.php
▶ Open 📄 View Source
🐘 ArtifactResult.php
▶ Open 📄 View Source
🐘 Artifacts.php
▶ Open 📄 View Source
🐘 AuditConfig.php
▶ Open 📄 View Source
🐘 AuditLogConfig.php
▶ Open 📄 View Source
🐘 BatchCreateBitbucketServerConnectedRepositoriesRequest.php
▶ Open 📄 View Source
🐘 BatchCreateBitbucketServerConnectedRepositoriesResponse.php
▶ Open 📄 View Source
🐘 BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata.php
▶ Open 📄 View Source
🐘 BatchCreateGitLabConnectedRepositoriesRequest.php
▶ Open 📄 View Source
🐘 BatchCreateGitLabConnectedRepositoriesResponse.php
▶ Open 📄 View Source
🐘 BatchCreateGitLabConnectedRepositoriesResponseMetadata.php
▶ Open 📄 View Source
🐘 BatchCreateRepositoriesRequest.php
▶ Open 📄 View Source
🐘 BatchCreateRepositoriesResponse.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 BitbucketCloudConfig.php
▶ Open 📄 View Source
🐘 BitbucketDataCenterConfig.php
▶ Open 📄 View Source
🐘 BitbucketServerConfig.php
▶ Open 📄 View Source
🐘 BitbucketServerConnectedRepository.php
▶ Open 📄 View Source
🐘 BitbucketServerRepository.php
▶ Open 📄 View Source
🐘 BitbucketServerRepositoryId.php
▶ Open 📄 View Source
🐘 BitbucketServerSecrets.php
▶ Open 📄 View Source
🐘 BitbucketServerTriggerConfig.php
▶ Open 📄 View Source
🐘 Build.php
▶ Open 📄 View Source
🐘 BuildApproval.php
▶ Open 📄 View Source
🐘 BuildOperationMetadata.php
▶ Open 📄 View Source
🐘 BuildOptions.php
▶ Open 📄 View Source
🐘 BuildStep.php
▶ Open 📄 View Source
🐘 BuildTrigger.php
▶ Open 📄 View Source
🐘 BuiltImage.php
▶ Open 📄 View Source
🐘 CancelBuildRequest.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 Capabilities.php
▶ Open 📄 View Source
🐘 ChildStatusReference.php
▶ Open 📄 View Source
🐘 CloudbuildEmpty.php
▶ Open 📄 View Source
🐘 ConnectedRepository.php
▶ Open 📄 View Source
🐘 Connection.php
▶ Open 📄 View Source
🐘 CreateBitbucketServerConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 CreateBitbucketServerConnectedRepositoryRequest.php
▶ Open 📄 View Source
🐘 CreateGitHubEnterpriseConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 CreateGitLabConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 CreateGitLabConnectedRepositoryRequest.php
▶ Open 📄 View Source
🐘 CreateRepositoryRequest.php
▶ Open 📄 View Source
🐘 CreateWorkerPoolOperationMetadata.php
▶ Open 📄 View Source
🐘 DeleteBitbucketServerConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 DeleteGitHubEnterpriseConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 DeleteGitLabConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 DeleteWorkerPoolOperationMetadata.php
▶ Open 📄 View Source
🐘 EmbeddedTask.php
▶ Open 📄 View Source
🐘 EmptyDirVolumeSource.php
▶ Open 📄 View Source
🐘 EnvVar.php
▶ Open 📄 View Source
🐘 ExecAction.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 FailureInfo.php
▶ Open 📄 View Source
🐘 FetchGitRefsResponse.php
▶ Open 📄 View Source
🐘 FetchLinkableRepositoriesResponse.php
▶ Open 📄 View Source
🐘 FetchReadTokenRequest.php
▶ Open 📄 View Source
🐘 FetchReadTokenResponse.php
▶ Open 📄 View Source
🐘 FetchReadWriteTokenRequest.php
▶ Open 📄 View Source
🐘 FetchReadWriteTokenResponse.php
▶ Open 📄 View Source
🐘 FileHashes.php
▶ Open 📄 View Source
🐘 GitFileSource.php
▶ Open 📄 View Source
🐘 GitHubConfig.php
▶ Open 📄 View Source
🐘 GitHubEnterpriseConfig.php
▶ Open 📄 View Source
🐘 GitHubEnterpriseSecrets.php
▶ Open 📄 View Source
🐘 GitHubEventsConfig.php
▶ Open 📄 View Source
🐘 GitLabConfig.php
▶ Open 📄 View Source
🐘 GitLabConnectedRepository.php
▶ Open 📄 View Source
🐘 GitLabEnterpriseConfig.php
▶ Open 📄 View Source
🐘 GitLabEventsConfig.php
▶ Open 📄 View Source
🐘 GitLabRepository.php
▶ Open 📄 View Source
🐘 GitLabRepositoryId.php
▶ Open 📄 View Source
🐘 GitLabSecrets.php
▶ Open 📄 View Source
🐘 GitRepoSource.php
▶ Open 📄 View Source
🐘 GitSource.php
▶ Open 📄 View Source
🐘 GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig.php
▶ Open 📄 View Source
🐘 GoogleDevtoolsCloudbuildV2Condition.php
▶ Open 📄 View Source
🐘 GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfig.php
▶ Open 📄 View Source
🐘 GoogleDevtoolsCloudbuildV2GitLabConfig.php
▶ Open 📄 View Source
🐘 GoogleDevtoolsCloudbuildV2OperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig.php
▶ Open 📄 View Source
🐘 HTTPDelivery.php
▶ Open 📄 View Source
🐘 Hash.php
▶ Open 📄 View Source
🐘 HttpBody.php
▶ Open 📄 View Source
🐘 HybridPoolConfig.php
▶ Open 📄 View Source
🐘 HybridWorkerConfig.php
▶ Open 📄 View Source
🐘 InlineSecret.php
▶ Open 📄 View Source
🐘 InstallationState.php
▶ Open 📄 View Source
🐘 ListBitbucketServerConfigsResponse.php
▶ Open 📄 View Source
🐘 ListBitbucketServerRepositoriesResponse.php
▶ Open 📄 View Source
🐘 ListBuildTriggersResponse.php
▶ Open 📄 View Source
🐘 ListBuildsResponse.php
▶ Open 📄 View Source
🐘 ListConnectionsResponse.php
▶ Open 📄 View Source
🐘 ListGitLabConfigsResponse.php
▶ Open 📄 View Source
🐘 ListGitLabRepositoriesResponse.php
▶ Open 📄 View Source
🐘 ListGithubEnterpriseConfigsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListRepositoriesResponse.php
▶ Open 📄 View Source
🐘 ListWorkerPoolsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 MavenArtifact.php
▶ Open 📄 View Source
🐘 NetworkConfig.php
▶ Open 📄 View Source
🐘 Notification.php
▶ Open 📄 View Source
🐘 NotifierConfig.php
▶ Open 📄 View Source
🐘 NotifierMetadata.php
▶ Open 📄 View Source
🐘 NotifierSecret.php
▶ Open 📄 View Source
🐘 NotifierSecretRef.php
▶ Open 📄 View Source
🐘 NotifierSpec.php
▶ Open 📄 View Source
🐘 NpmPackage.php
▶ Open 📄 View Source
🐘 OAuthCredential.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 Param.php
▶ Open 📄 View Source
🐘 ParamSpec.php
▶ Open 📄 View Source
🐘 ParamValue.php
▶ Open 📄 View Source
🐘 PipelineRef.php
▶ Open 📄 View Source
🐘 PipelineResult.php
▶ Open 📄 View Source
🐘 PipelineRun.php
▶ Open 📄 View Source
🐘 PipelineRunResult.php
▶ Open 📄 View Source
🐘 PipelineSpec.php
▶ Open 📄 View Source
🐘 PipelineTask.php
▶ Open 📄 View Source
🐘 PipelineWorkspaceDeclaration.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 PoolOption.php
▶ Open 📄 View Source
🐘 PrivatePoolV1Config.php
▶ Open 📄 View Source
🐘 Probe.php
▶ Open 📄 View Source
🐘 ProcessAppManifestCallbackOperationMetadata.php
▶ Open 📄 View Source
🐘 PropertySpec.php
▶ Open 📄 View Source
🐘 Provenance.php
▶ Open 📄 View Source
🐘 PubsubConfig.php
▶ Open 📄 View Source
🐘 PullRequestFilter.php
▶ Open 📄 View Source
🐘 PushFilter.php
▶ Open 📄 View Source
🐘 PythonPackage.php
▶ Open 📄 View Source
🐘 ReceiveTriggerWebhookResponse.php
▶ Open 📄 View Source
🐘 RemoveBitbucketServerConnectedRepositoryRequest.php
▶ Open 📄 View Source
🐘 RemoveGitLabConnectedRepositoryRequest.php
▶ Open 📄 View Source
🐘 RepoSource.php
▶ Open 📄 View Source
🐘 Repository.php
▶ Open 📄 View Source
🐘 RepositoryEventConfig.php
▶ Open 📄 View Source
🐘 ResultValue.php
▶ Open 📄 View Source
🐘 Results.php
▶ Open 📄 View Source
🐘 RetryBuildRequest.php
▶ Open 📄 View Source
🐘 RunBuildTriggerRequest.php
▶ Open 📄 View Source
🐘 RunWorkflowCustomOperationMetadata.php
▶ Open 📄 View Source
🐘 SMTPDelivery.php
▶ Open 📄 View Source
🐘 Secret.php
▶ Open 📄 View Source
🐘 SecretManagerSecret.php
▶ Open 📄 View Source
🐘 SecretVolumeSource.php
▶ Open 📄 View Source
🐘 Secrets.php
▶ Open 📄 View Source
🐘 Security.php
▶ Open 📄 View Source
🐘 SecurityContext.php
▶ Open 📄 View Source
🐘 ServiceDirectoryConfig.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 Sidecar.php
▶ Open 📄 View Source
🐘 SkippedTask.php
▶ Open 📄 View Source
🐘 SlackDelivery.php
▶ Open 📄 View Source
🐘 Source.php
▶ Open 📄 View Source
🐘 SourceProvenance.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Step.php
▶ Open 📄 View Source
🐘 StepRef.php
▶ Open 📄 View Source
🐘 StepTemplate.php
▶ Open 📄 View Source
🐘 StorageSource.php
▶ Open 📄 View Source
🐘 StorageSourceManifest.php
▶ Open 📄 View Source
🐘 TaskRef.php
▶ Open 📄 View Source
🐘 TaskResult.php
▶ Open 📄 View Source
🐘 TaskSpec.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 TimeSpan.php
▶ Open 📄 View Source
🐘 TimeoutFields.php
▶ Open 📄 View Source
🐘 UpdateBitbucketServerConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 UpdateGitHubEnterpriseConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 UpdateGitLabConfigOperationMetadata.php
▶ Open 📄 View Source
🐘 UpdateWorkerPoolOperationMetadata.php
▶ Open 📄 View Source
🐘 UploadedMavenArtifact.php
▶ Open 📄 View Source
🐘 UploadedNpmPackage.php
▶ Open 📄 View Source
🐘 UploadedPythonPackage.php
▶ Open 📄 View Source
🐘 UserCredential.php
▶ Open 📄 View Source
🐘 Volume.php
▶ Open 📄 View Source
🐘 VolumeClaim.php
▶ Open 📄 View Source
🐘 VolumeMount.php
▶ Open 📄 View Source
🐘 VolumeSource.php
▶ Open 📄 View Source
🐘 Warning.php
▶ Open 📄 View Source
🐘 WebhookConfig.php
▶ Open 📄 View Source
🐘 WhenExpression.php
▶ Open 📄 View Source
🐘 Worker.php
▶ Open 📄 View Source
🐘 WorkerConfig.php
▶ Open 📄 View Source
🐘 WorkerPool.php
▶ Open 📄 View Source
🐘 WorkspaceBinding.php
▶ Open 📄 View Source
🐘 WorkspaceDeclaration.php
▶ Open 📄 View Source
🐘 WorkspacePipelineTaskBinding.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\CloudBuild;

class Policy extends \Google\Collection
{
  protected $collection_key = 'bindings';
  protected $auditConfigsType = AuditConfig::class;
  protected $auditConfigsDataType = 'array';
  protected $bindingsType = Binding::class;
  protected $bindingsDataType = 'array';
  /**
   * `etag` is used for optimistic concurrency control as a way to help prevent
   * simultaneous updates of a policy from overwriting each other. It is
   * strongly suggested that systems make use of the `etag` in the read-modify-
   * write cycle to perform policy updates in order to avoid race conditions: An
   * `etag` is returned in the response to `getIamPolicy`, and systems are
   * expected to put that etag in the request to `setIamPolicy` to ensure that
   * their change will be applied to the same version of the policy.
   * **Important:** If you use IAM Conditions, you must include the `etag` field
   * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
   * you to overwrite a version `3` policy with a version `1` policy, and all of
   * the conditions in the version `3` policy are lost.
   *
   * @var string
   */
  public $etag;
  /**
   * Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
   * Requests that specify an invalid value are rejected. Any operation that
   * affects conditional role bindings must specify version `3`. This
   * requirement applies to the following operations: * Getting a policy that
   * includes a conditional role binding * Adding a conditional role binding to
   * a policy * Changing a conditional role binding in a policy * Removing any
   * role binding, with or without a condition, from a policy that includes
   * conditions **Important:** If you use IAM Conditions, you must include the
   * `etag` field whenever you call `setIamPolicy`. If you omit this field, then
   * IAM allows you to overwrite a version `3` policy with a version `1` policy,
   * and all of the conditions in the version `3` policy are lost. If a policy
   * does not include any conditions, operations on that policy may specify any
   * valid version or leave the field unset. To learn which resources support
   * conditions in their IAM policies, see the [IAM
   * documentation](https://cloud.google.com/iam/help/conditions/resource-
   * policies).
   *
   * @var int
   */
  public $version;

  /**
   * Specifies cloud audit logging configuration for this policy.
   *
   * @param AuditConfig[] $auditConfigs
   */
  public function setAuditConfigs($auditConfigs)
  {
    $this->auditConfigs = $auditConfigs;
  }
  /**
   * @return AuditConfig[]
   */
  public function getAuditConfigs()
  {
    return $this->auditConfigs;
  }
  /**
   * Associates a list of `members`, or principals, with a `role`. Optionally,
   * may specify a `condition` that determines how and when the `bindings` are
   * applied. Each of the `bindings` must contain at least one principal. The
   * `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
   * these principals can be Google groups. Each occurrence of a principal
   * counts towards these limits. For example, if the `bindings` grant 50
   * different roles to `user:alice@example.com`, and not to any other
   * principal, then you can add another 1,450 principals to the `bindings` in
   * the `Policy`.
   *
   * @param Binding[] $bindings
   */
  public function setBindings($bindings)
  {
    $this->bindings = $bindings;
  }
  /**
   * @return Binding[]
   */
  public function getBindings()
  {
    return $this->bindings;
  }
  /**
   * `etag` is used for optimistic concurrency control as a way to help prevent
   * simultaneous updates of a policy from overwriting each other. It is
   * strongly suggested that systems make use of the `etag` in the read-modify-
   * write cycle to perform policy updates in order to avoid race conditions: An
   * `etag` is returned in the response to `getIamPolicy`, and systems are
   * expected to put that etag in the request to `setIamPolicy` to ensure that
   * their change will be applied to the same version of the policy.
   * **Important:** If you use IAM Conditions, you must include the `etag` field
   * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
   * you to overwrite a version `3` policy with a version `1` policy, and all of
   * the conditions in the version `3` policy are lost.
   *
   * @param string $etag
   */
  public function setEtag($etag)
  {
    $this->etag = $etag;
  }
  /**
   * @return string
   */
  public function getEtag()
  {
    return $this->etag;
  }
  /**
   * Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
   * Requests that specify an invalid value are rejected. Any operation that
   * affects conditional role bindings must specify version `3`. This
   * requirement applies to the following operations: * Getting a policy that
   * includes a conditional role binding * Adding a conditional role binding to
   * a policy * Changing a conditional role binding in a policy * Removing any
   * role binding, with or without a condition, from a policy that includes
   * conditions **Important:** If you use IAM Conditions, you must include the
   * `etag` field whenever you call `setIamPolicy`. If you omit this field, then
   * IAM allows you to overwrite a version `3` policy with a version `1` policy,
   * and all of the conditions in the version `3` policy are lost. If a policy
   * does not include any conditions, operations on that policy may specify any
   * valid version or leave the field unset. To learn which resources support
   * conditions in their IAM policies, see the [IAM
   * documentation](https://cloud.google.com/iam/help/conditions/resource-
   * policies).
   *
   * @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_CloudBuild_Policy');
← Back