📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AliasContext.php
▶ Open 📄 View Source
🐘 AnalysisCompleted.php
▶ Open 📄 View Source
🐘 Artifact.php
▶ Open 📄 View Source
🐘 ArtifactHashes.php
▶ Open 📄 View Source
🐘 ArtifactRule.php
▶ Open 📄 View Source
🐘 Assessment.php
▶ Open 📄 View Source
🐘 Attestation.php
▶ Open 📄 View Source
🐘 AttestationNote.php
▶ Open 📄 View Source
🐘 AttestationOccurrence.php
▶ Open 📄 View Source
🐘 Authority.php
▶ Open 📄 View Source
🐘 BaseImage.php
▶ Open 📄 View Source
🐘 Basis.php
▶ Open 📄 View Source
🐘 BatchCreateNotesRequest.php
▶ Open 📄 View Source
🐘 BatchCreateNotesResponse.php
▶ Open 📄 View Source
🐘 BatchCreateOccurrencesRequest.php
▶ Open 📄 View Source
🐘 BatchCreateOccurrencesResponse.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 Build.php
▶ Open 📄 View Source
🐘 BuildDefinition.php
▶ Open 📄 View Source
🐘 BuildMetadata.php
▶ Open 📄 View Source
🐘 BuildNote.php
▶ Open 📄 View Source
🐘 BuildOccurrence.php
▶ Open 📄 View Source
🐘 BuildProvenance.php
▶ Open 📄 View Source
🐘 BuildSignature.php
▶ Open 📄 View Source
🐘 BuildStep.php
▶ Open 📄 View Source
🐘 BuilderConfig.php
▶ Open 📄 View Source
🐘 ByProducts.php
▶ Open 📄 View Source
🐘 CISAKnownExploitedVulnerabilities.php
▶ Open 📄 View Source
🐘 CVSS.php
▶ Open 📄 View Source
🐘 CVSSv3.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 Category.php
▶ Open 📄 View Source
🐘 CisBenchmark.php
▶ Open 📄 View Source
🐘 CloudRepoSourceContext.php
▶ Open 📄 View Source
🐘 CloudStorageLocation.php
▶ Open 📄 View Source
🐘 Command.php
▶ Open 📄 View Source
🐘 Completeness.php
▶ Open 📄 View Source
🐘 ComplianceNote.php
▶ Open 📄 View Source
🐘 ComplianceOccurrence.php
▶ Open 📄 View Source
🐘 ComplianceVersion.php
▶ Open 📄 View Source
🐘 ContaineranalysisEmpty.php
▶ Open 📄 View Source
🐘 ContaineranalysisFile.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Build.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Hash.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Results.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Secret.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Source.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage.php
▶ Open 📄 View Source
🐘 ContaineranalysisGoogleDevtoolsCloudbuildV1Volume.php
▶ Open 📄 View Source
🐘 ContaineranalysisResource.php
▶ Open 📄 View Source
🐘 DSSEAttestationNote.php
▶ Open 📄 View Source
🐘 DSSEAttestationOccurrence.php
▶ Open 📄 View Source
🐘 DSSEHint.php
▶ Open 📄 View Source
🐘 Deployable.php
▶ Open 📄 View Source
🐘 Deployment.php
▶ Open 📄 View Source
🐘 DeploymentNote.php
▶ Open 📄 View Source
🐘 DeploymentOccurrence.php
▶ Open 📄 View Source
🐘 Derived.php
▶ Open 📄 View Source
🐘 Detail.php
▶ Open 📄 View Source
🐘 Details.php
▶ Open 📄 View Source
🐘 Digest.php
▶ Open 📄 View Source
🐘 Discovered.php
▶ Open 📄 View Source
🐘 Discovery.php
▶ Open 📄 View Source
🐘 DiscoveryNote.php
▶ Open 📄 View Source
🐘 DiscoveryOccurrence.php
▶ Open 📄 View Source
🐘 Distribution.php
▶ Open 📄 View Source
🐘 DocumentNote.php
▶ Open 📄 View Source
🐘 DocumentOccurrence.php
▶ Open 📄 View Source
🐘 Envelope.php
▶ Open 📄 View Source
🐘 EnvelopeSignature.php
▶ Open 📄 View Source
🐘 Environment.php
▶ Open 📄 View Source
🐘 ExploitPredictionScoringSystem.php
▶ Open 📄 View Source
🐘 ExportSBOMRequest.php
▶ Open 📄 View Source
🐘 ExportSBOMResponse.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 ExternalRef.php
▶ Open 📄 View Source
🐘 FileHashes.php
▶ Open 📄 View Source
🐘 FileNote.php
▶ Open 📄 View Source
🐘 FileOccurrence.php
▶ Open 📄 View Source
🐘 Fingerprint.php
▶ Open 📄 View Source
🐘 FixableTotalByDigest.php
▶ Open 📄 View Source
🐘 GeneratePackagesSummaryRequest.php
▶ Open 📄 View Source
🐘 GenericSignedAttestation.php
▶ Open 📄 View Source
🐘 GerritSourceContext.php
▶ Open 📄 View Source
🐘 GetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 GetPolicyOptions.php
▶ Open 📄 View Source
🐘 GitSourceContext.php
▶ Open 📄 View Source
🐘 GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata.php
▶ Open 📄 View Source
🐘 GrafeasV1FileLocation.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1BuildDetails.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1DeploymentDetails.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1DiscoveryDetails.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1ImageDetails.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1IntotoArtifact.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1IntotoDetails.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1IntotoSignature.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1PackageDetails.php
▶ Open 📄 View Source
🐘 GrafeasV1beta1VulnerabilityDetails.php
▶ Open 📄 View Source
🐘 Hash.php
▶ Open 📄 View Source
🐘 Hint.php
▶ Open 📄 View Source
🐘 Identity.php
▶ Open 📄 View Source
🐘 ImageNote.php
▶ Open 📄 View Source
🐘 ImageOccurrence.php
▶ Open 📄 View Source
🐘 InToto.php
▶ Open 📄 View Source
🐘 InTotoProvenance.php
▶ Open 📄 View Source
🐘 InTotoSlsaProvenanceV1.php
▶ Open 📄 View Source
🐘 InTotoStatement.php
▶ Open 📄 View Source
🐘 Installation.php
▶ Open 📄 View Source
🐘 Justification.php
▶ Open 📄 View Source
🐘 Jwt.php
▶ Open 📄 View Source
🐘 KnowledgeBase.php
▶ Open 📄 View Source
🐘 Layer.php
▶ Open 📄 View Source
🐘 LayerDetails.php
▶ Open 📄 View Source
🐘 License.php
▶ Open 📄 View Source
🐘 LicensesSummary.php
▶ Open 📄 View Source
🐘 Link.php
▶ Open 📄 View Source
🐘 ListNoteOccurrencesResponse.php
▶ Open 📄 View Source
🐘 ListNotesResponse.php
▶ Open 📄 View Source
🐘 ListOccurrencesResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListScanConfigsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 Material.php
▶ Open 📄 View Source
🐘 Metadata.php
▶ Open 📄 View Source
🐘 NonCompliantFile.php
▶ Open 📄 View Source
🐘 Note.php
▶ Open 📄 View Source
🐘 Occurrence.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 Package.php
▶ Open 📄 View Source
🐘 PackageIssue.php
▶ Open 📄 View Source
🐘 PackageNote.php
▶ Open 📄 View Source
🐘 PackageOccurrence.php
▶ Open 📄 View Source
🐘 PackagesSummaryResponse.php
▶ Open 📄 View Source
🐘 PgpSignedAttestation.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 Product.php
▶ Open 📄 View Source
🐘 ProjectRepoId.php
▶ Open 📄 View Source
🐘 ProvenanceBuilder.php
▶ Open 📄 View Source
🐘 Publisher.php
▶ Open 📄 View Source
🐘 Recipe.php
▶ Open 📄 View Source
🐘 RelatedUrl.php
▶ Open 📄 View Source
🐘 RelationshipNote.php
▶ Open 📄 View Source
🐘 RelationshipOccurrence.php
▶ Open 📄 View Source
🐘 Remediation.php
▶ Open 📄 View Source
🐘 RepoId.php
▶ Open 📄 View Source
🐘 ResourceDescriptor.php
▶ Open 📄 View Source
🐘 Risk.php
▶ Open 📄 View Source
🐘 RunDetails.php
▶ Open 📄 View Source
🐘 SBOMReferenceNote.php
▶ Open 📄 View Source
🐘 SBOMReferenceOccurrence.php
▶ Open 📄 View Source
🐘 SBOMStatus.php
▶ Open 📄 View Source
🐘 SbomReferenceIntotoPayload.php
▶ Open 📄 View Source
🐘 SbomReferenceIntotoPredicate.php
▶ Open 📄 View Source
🐘 ScanConfig.php
▶ Open 📄 View Source
🐘 SecretLocation.php
▶ Open 📄 View Source
🐘 SecretNote.php
▶ Open 📄 View Source
🐘 SecretOccurrence.php
▶ Open 📄 View Source
🐘 SecretStatus.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 Signature.php
▶ Open 📄 View Source
🐘 SigningKey.php
▶ Open 📄 View Source
🐘 SlsaBuilder.php
▶ Open 📄 View Source
🐘 SlsaCompleteness.php
▶ Open 📄 View Source
🐘 SlsaMetadata.php
▶ Open 📄 View Source
🐘 SlsaProvenance.php
▶ Open 📄 View Source
🐘 SlsaProvenanceV1.php
▶ Open 📄 View Source
🐘 SlsaProvenanceZeroTwo.php
▶ Open 📄 View Source
🐘 SlsaRecipe.php
▶ Open 📄 View Source
🐘 Source.php
▶ Open 📄 View Source
🐘 SourceContext.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StepResult.php
▶ Open 📄 View Source
🐘 Subject.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 TimeSpan.php
▶ Open 📄 View Source
🐘 UpgradeDistribution.php
▶ Open 📄 View Source
🐘 UpgradeNote.php
▶ Open 📄 View Source
🐘 UpgradeOccurrence.php
▶ Open 📄 View Source
🐘 Version.php
▶ Open 📄 View Source
🐘 VexAssessment.php
▶ Open 📄 View Source
🐘 Volume.php
▶ Open 📄 View Source
🐘 Vulnerability.php
▶ Open 📄 View Source
🐘 VulnerabilityAssessmentNote.php
▶ Open 📄 View Source
🐘 VulnerabilityAttestation.php
▶ Open 📄 View Source
🐘 VulnerabilityLocation.php
▶ Open 📄 View Source
🐘 VulnerabilityNote.php
▶ Open 📄 View Source
🐘 VulnerabilityOccurrence.php
▶ Open 📄 View Source
🐘 VulnerabilityOccurrencesSummary.php
▶ Open 📄 View Source
🐘 WindowsDetail.php
▶ Open 📄 View Source
🐘 WindowsUpdate.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\ContainerAnalysis;

class Policy extends \Google\Collection
{
  protected $collection_key = 'bindings';
  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;

  /**
   * 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_ContainerAnalysis_Policy');
← Back