gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,25 @@
<?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 AISkillAnalysisNote extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AISkillAnalysisNote::class, 'Google_Service_ContainerAnalysis_AISkillAnalysisNote');
@@ -0,0 +1,89 @@
<?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 AISkillAnalysisOccurrence extends \Google\Collection
{
protected $collection_key = 'findings';
protected $findingsType = Finding::class;
protected $findingsDataType = 'array';
/**
* Maximum severity found among findings.
*
* @var string
*/
public $maxSeverity;
/**
* Name of the skill that produced this analysis.
*
* @var string
*/
public $skillName;
/**
* Findings produced by the analysis.
*
* @param Finding[] $findings
*/
public function setFindings($findings)
{
$this->findings = $findings;
}
/**
* @return Finding[]
*/
public function getFindings()
{
return $this->findings;
}
/**
* Maximum severity found among findings.
*
* @param string $maxSeverity
*/
public function setMaxSeverity($maxSeverity)
{
$this->maxSeverity = $maxSeverity;
}
/**
* @return string
*/
public function getMaxSeverity()
{
return $this->maxSeverity;
}
/**
* Name of the skill that produced this analysis.
*
* @param string $skillName
*/
public function setSkillName($skillName)
{
$this->skillName = $skillName;
}
/**
* @return string
*/
public function getSkillName()
{
return $this->skillName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AISkillAnalysisOccurrence::class, 'Google_Service_ContainerAnalysis_AISkillAnalysisOccurrence');
@@ -0,0 +1,89 @@
<?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 AliasContext extends \Google\Model
{
/**
* Unknown.
*/
public const KIND_KIND_UNSPECIFIED = 'KIND_UNSPECIFIED';
/**
* Git tag.
*/
public const KIND_FIXED = 'FIXED';
/**
* Git branch.
*/
public const KIND_MOVABLE = 'MOVABLE';
/**
* Used to specify non-standard aliases. For example, if a Git repo has a ref
* named "refs/foo/bar".
*/
public const KIND_OTHER = 'OTHER';
/**
* The alias kind.
*
* @var string
*/
public $kind;
/**
* The alias name.
*
* @var string
*/
public $name;
/**
* The alias kind.
*
* Accepted values: KIND_UNSPECIFIED, FIXED, MOVABLE, OTHER
*
* @param self::KIND_* $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return self::KIND_*
*/
public function getKind()
{
return $this->kind;
}
/**
* The alias name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AliasContext::class, 'Google_Service_ContainerAnalysis_AliasContext');
@@ -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\ContainerAnalysis;
class AnalysisCompleted extends \Google\Collection
{
protected $collection_key = 'analysisType';
/**
* @var string[]
*/
public $analysisType;
/**
* @param string[] $analysisType
*/
public function setAnalysisType($analysisType)
{
$this->analysisType = $analysisType;
}
/**
* @return string[]
*/
public function getAnalysisType()
{
return $this->analysisType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalysisCompleted::class, 'Google_Service_ContainerAnalysis_AnalysisCompleted');
@@ -0,0 +1,105 @@
<?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 Artifact extends \Google\Collection
{
protected $collection_key = 'names';
/**
* Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
* container.
*
* @var string
*/
public $checksum;
/**
* Artifact ID, if any; for container images, this will be a URL by digest
* like `gcr.io/projectID/imagename@sha256:123456`.
*
* @var string
*/
public $id;
/**
* Related artifact names. This may be the path to a binary or jar file, or in
* the case of a container build, the name used to push the container image to
* Google Container Registry, as presented to `docker push`. Note that a
* single Artifact ID can have multiple names, for example if two tags are
* applied to one image.
*
* @var string[]
*/
public $names;
/**
* Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
* container.
*
* @param string $checksum
*/
public function setChecksum($checksum)
{
$this->checksum = $checksum;
}
/**
* @return string
*/
public function getChecksum()
{
return $this->checksum;
}
/**
* Artifact ID, if any; for container images, this will be a URL by digest
* like `gcr.io/projectID/imagename@sha256:123456`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Related artifact names. This may be the path to a binary or jar file, or in
* the case of a container build, the name used to push the container image to
* Google Container Registry, as presented to `docker push`. Note that a
* single Artifact ID can have multiple names, for example if two tags are
* applied to one image.
*
* @param string[] $names
*/
public function setNames($names)
{
$this->names = $names;
}
/**
* @return string[]
*/
public function getNames()
{
return $this->names;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Artifact::class, 'Google_Service_ContainerAnalysis_Artifact');
@@ -0,0 +1,35 @@
<?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 ArtifactHashes extends \Google\Model
{
public $sha256;
public function setSha256($sha256)
{
$this->sha256 = $sha256;
}
public function getSha256()
{
return $this->sha256;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArtifactHashes::class, 'Google_Service_ContainerAnalysis_ArtifactHashes');
@@ -0,0 +1,36 @@
<?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 ArtifactRule extends \Google\Collection
{
protected $collection_key = 'artifactRule';
public $artifactRule;
public function setArtifactRule($artifactRule)
{
$this->artifactRule = $artifactRule;
}
public function getArtifactRule()
{
return $this->artifactRule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArtifactRule::class, 'Google_Service_ContainerAnalysis_ArtifactRule');
@@ -0,0 +1,252 @@
<?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 Assessment extends \Google\Collection
{
/**
* No state is specified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* This product is known to be affected by this vulnerability.
*/
public const STATE_AFFECTED = 'AFFECTED';
/**
* This product is known to be not affected by this vulnerability.
*/
public const STATE_NOT_AFFECTED = 'NOT_AFFECTED';
/**
* This product contains a fix for this vulnerability.
*/
public const STATE_FIXED = 'FIXED';
/**
* It is not known yet whether these versions are or are not affected by the
* vulnerability. However, it is still under investigation.
*/
public const STATE_UNDER_INVESTIGATION = 'UNDER_INVESTIGATION';
protected $collection_key = 'remediations';
/**
* Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
* tracking number for the vulnerability. Deprecated: Use vulnerability_id
* instead to denote CVEs.
*
* @deprecated
* @var string
*/
public $cve;
/**
* Contains information about the impact of this vulnerability, this will
* change with time.
*
* @var string[]
*/
public $impacts;
protected $justificationType = Justification::class;
protected $justificationDataType = '';
/**
* A detailed description of this Vex.
*
* @var string
*/
public $longDescription;
protected $relatedUrisType = RelatedUrl::class;
protected $relatedUrisDataType = 'array';
protected $remediationsType = Remediation::class;
protected $remediationsDataType = 'array';
/**
* A one sentence description of this Vex.
*
* @var string
*/
public $shortDescription;
/**
* Provides the state of this Vulnerability assessment.
*
* @var string
*/
public $state;
/**
* The vulnerability identifier for this Assessment. Will hold one of common
* identifiers e.g. CVE, GHSA etc.
*
* @var string
*/
public $vulnerabilityId;
/**
* Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
* tracking number for the vulnerability. Deprecated: Use vulnerability_id
* instead to denote CVEs.
*
* @deprecated
* @param string $cve
*/
public function setCve($cve)
{
$this->cve = $cve;
}
/**
* @deprecated
* @return string
*/
public function getCve()
{
return $this->cve;
}
/**
* Contains information about the impact of this vulnerability, this will
* change with time.
*
* @param string[] $impacts
*/
public function setImpacts($impacts)
{
$this->impacts = $impacts;
}
/**
* @return string[]
*/
public function getImpacts()
{
return $this->impacts;
}
/**
* Justification provides the justification when the state of the assessment
* if NOT_AFFECTED.
*
* @param Justification $justification
*/
public function setJustification(Justification $justification)
{
$this->justification = $justification;
}
/**
* @return Justification
*/
public function getJustification()
{
return $this->justification;
}
/**
* A detailed description of this Vex.
*
* @param string $longDescription
*/
public function setLongDescription($longDescription)
{
$this->longDescription = $longDescription;
}
/**
* @return string
*/
public function getLongDescription()
{
return $this->longDescription;
}
/**
* Holds a list of references associated with this vulnerability item and
* assessment. These uris have additional information about the vulnerability
* and the assessment itself. E.g. Link to a document which details how this
* assessment concluded the state of this vulnerability.
*
* @param RelatedUrl[] $relatedUris
*/
public function setRelatedUris($relatedUris)
{
$this->relatedUris = $relatedUris;
}
/**
* @return RelatedUrl[]
*/
public function getRelatedUris()
{
return $this->relatedUris;
}
/**
* Specifies details on how to handle (and presumably, fix) a vulnerability.
*
* @param Remediation[] $remediations
*/
public function setRemediations($remediations)
{
$this->remediations = $remediations;
}
/**
* @return Remediation[]
*/
public function getRemediations()
{
return $this->remediations;
}
/**
* A one sentence description of this Vex.
*
* @param string $shortDescription
*/
public function setShortDescription($shortDescription)
{
$this->shortDescription = $shortDescription;
}
/**
* @return string
*/
public function getShortDescription()
{
return $this->shortDescription;
}
/**
* Provides the state of this Vulnerability assessment.
*
* Accepted values: STATE_UNSPECIFIED, AFFECTED, NOT_AFFECTED, FIXED,
* UNDER_INVESTIGATION
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The vulnerability identifier for this Assessment. Will hold one of common
* identifiers e.g. CVE, GHSA etc.
*
* @param string $vulnerabilityId
*/
public function setVulnerabilityId($vulnerabilityId)
{
$this->vulnerabilityId = $vulnerabilityId;
}
/**
* @return string
*/
public function getVulnerabilityId()
{
return $this->vulnerabilityId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Assessment::class, 'Google_Service_ContainerAnalysis_Assessment');
@@ -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\ContainerAnalysis;
class Attestation extends \Google\Model
{
protected $genericSignedAttestationType = GenericSignedAttestation::class;
protected $genericSignedAttestationDataType = '';
protected $pgpSignedAttestationType = PgpSignedAttestation::class;
protected $pgpSignedAttestationDataType = '';
/**
* @param GenericSignedAttestation
*/
public function setGenericSignedAttestation(GenericSignedAttestation $genericSignedAttestation)
{
$this->genericSignedAttestation = $genericSignedAttestation;
}
/**
* @return GenericSignedAttestation
*/
public function getGenericSignedAttestation()
{
return $this->genericSignedAttestation;
}
/**
* @param PgpSignedAttestation
*/
public function setPgpSignedAttestation(PgpSignedAttestation $pgpSignedAttestation)
{
$this->pgpSignedAttestation = $pgpSignedAttestation;
}
/**
* @return PgpSignedAttestation
*/
public function getPgpSignedAttestation()
{
return $this->pgpSignedAttestation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attestation::class, 'Google_Service_ContainerAnalysis_Attestation');
@@ -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\ContainerAnalysis;
class AttestationNote extends \Google\Model
{
protected $hintType = Hint::class;
protected $hintDataType = '';
/**
* Hint hints at the purpose of the attestation authority.
*
* @param Hint $hint
*/
public function setHint(Hint $hint)
{
$this->hint = $hint;
}
/**
* @return Hint
*/
public function getHint()
{
return $this->hint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttestationNote::class, 'Google_Service_ContainerAnalysis_AttestationNote');
@@ -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\ContainerAnalysis;
class AttestationOccurrence extends \Google\Collection
{
protected $collection_key = 'signatures';
protected $jwtsType = Jwt::class;
protected $jwtsDataType = 'array';
/**
* Required. The serialized payload that is verified by one or more
* `signatures`.
*
* @var string
*/
public $serializedPayload;
protected $signaturesType = Signature::class;
protected $signaturesDataType = 'array';
/**
* One or more JWTs encoding a self-contained attestation. Each JWT encodes
* the payload that it verifies within the JWT itself. Verifier implementation
* SHOULD ignore the `serialized_payload` field when verifying these JWTs. If
* only JWTs are present on this AttestationOccurrence, then the
* `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim
* specific to the `resource_uri` of this Occurrence, but this is not
* validated by Grafeas metadata API implementations. The JWT itself is opaque
* to Grafeas.
*
* @param Jwt[] $jwts
*/
public function setJwts($jwts)
{
$this->jwts = $jwts;
}
/**
* @return Jwt[]
*/
public function getJwts()
{
return $this->jwts;
}
/**
* Required. The serialized payload that is verified by one or more
* `signatures`.
*
* @param string $serializedPayload
*/
public function setSerializedPayload($serializedPayload)
{
$this->serializedPayload = $serializedPayload;
}
/**
* @return string
*/
public function getSerializedPayload()
{
return $this->serializedPayload;
}
/**
* One or more signatures over `serialized_payload`. Verifier implementations
* should consider this attestation message verified if at least one
* `signature` verifies `serialized_payload`. See `Signature` in common.proto
* for more details on signature structure and verification.
*
* @param Signature[] $signatures
*/
public function setSignatures($signatures)
{
$this->signatures = $signatures;
}
/**
* @return Signature[]
*/
public function getSignatures()
{
return $this->signatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttestationOccurrence::class, 'Google_Service_ContainerAnalysis_AttestationOccurrence');
@@ -0,0 +1,42 @@
<?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 Authority extends \Google\Model
{
protected $hintType = Hint::class;
protected $hintDataType = '';
/**
* @param Hint
*/
public function setHint(Hint $hint)
{
$this->hint = $hint;
}
/**
* @return Hint
*/
public function getHint()
{
return $this->hint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Authority::class, 'Google_Service_ContainerAnalysis_Authority');
@@ -0,0 +1,114 @@
<?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 BaseImage extends \Google\Model
{
/**
* The number of layers that the base image is composed of.
*
* @var int
*/
public $layerCount;
/**
* The name of the base image.
*
* @var string
*/
public $name;
/**
* The registry in which the base image is from.
*
* @var string
*/
public $registry;
/**
* The repository name in which the base image is from.
*
* @var string
*/
public $repository;
/**
* The number of layers that the base image is composed of.
*
* @param int $layerCount
*/
public function setLayerCount($layerCount)
{
$this->layerCount = $layerCount;
}
/**
* @return int
*/
public function getLayerCount()
{
return $this->layerCount;
}
/**
* The name of the base image.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The registry in which the base image is from.
*
* @param string $registry
*/
public function setRegistry($registry)
{
$this->registry = $registry;
}
/**
* @return string
*/
public function getRegistry()
{
return $this->registry;
}
/**
* The repository name in which the base image is from.
*
* @param string $repository
*/
public function setRepository($repository)
{
$this->repository = $repository;
}
/**
* @return string
*/
public function getRepository()
{
return $this->repository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BaseImage::class, 'Google_Service_ContainerAnalysis_BaseImage');
@@ -0,0 +1,51 @@
<?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 Basis extends \Google\Model
{
protected $fingerprintType = Fingerprint::class;
protected $fingerprintDataType = '';
public $resourceUrl;
/**
* @param Fingerprint
*/
public function setFingerprint(Fingerprint $fingerprint)
{
$this->fingerprint = $fingerprint;
}
/**
* @return Fingerprint
*/
public function getFingerprint()
{
return $this->fingerprint;
}
public function setResourceUrl($resourceUrl)
{
$this->resourceUrl = $resourceUrl;
}
public function getResourceUrl()
{
return $this->resourceUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Basis::class, 'Google_Service_ContainerAnalysis_Basis');
@@ -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\ContainerAnalysis;
class BatchCreateNotesRequest extends \Google\Model
{
protected $notesType = Note::class;
protected $notesDataType = 'map';
/**
* Required. The notes to create. Max allowed length is 1000.
*
* @param Note[] $notes
*/
public function setNotes($notes)
{
$this->notes = $notes;
}
/**
* @return Note[]
*/
public function getNotes()
{
return $this->notes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateNotesRequest::class, 'Google_Service_ContainerAnalysis_BatchCreateNotesRequest');
@@ -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\ContainerAnalysis;
class BatchCreateNotesResponse extends \Google\Collection
{
protected $collection_key = 'notes';
protected $notesType = Note::class;
protected $notesDataType = 'array';
/**
* The notes that were created.
*
* @param Note[] $notes
*/
public function setNotes($notes)
{
$this->notes = $notes;
}
/**
* @return Note[]
*/
public function getNotes()
{
return $this->notes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateNotesResponse::class, 'Google_Service_ContainerAnalysis_BatchCreateNotesResponse');
@@ -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\ContainerAnalysis;
class BatchCreateOccurrencesRequest extends \Google\Collection
{
protected $collection_key = 'occurrences';
protected $occurrencesType = Occurrence::class;
protected $occurrencesDataType = 'array';
/**
* Required. The occurrences to create. Max allowed length is 1000.
*
* @param Occurrence[] $occurrences
*/
public function setOccurrences($occurrences)
{
$this->occurrences = $occurrences;
}
/**
* @return Occurrence[]
*/
public function getOccurrences()
{
return $this->occurrences;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateOccurrencesRequest::class, 'Google_Service_ContainerAnalysis_BatchCreateOccurrencesRequest');
@@ -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\ContainerAnalysis;
class BatchCreateOccurrencesResponse extends \Google\Collection
{
protected $collection_key = 'occurrences';
protected $occurrencesType = Occurrence::class;
protected $occurrencesDataType = 'array';
/**
* The occurrences that were created.
*
* @param Occurrence[] $occurrences
*/
public function setOccurrences($occurrences)
{
$this->occurrences = $occurrences;
}
/**
* @return Occurrence[]
*/
public function getOccurrences()
{
return $this->occurrences;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateOccurrencesResponse::class, 'Google_Service_ContainerAnalysis_BatchCreateOccurrencesResponse');
@@ -0,0 +1,216 @@
<?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 Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
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(Binding::class, 'Google_Service_ContainerAnalysis_Binding');
@@ -0,0 +1,51 @@
<?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 Build extends \Google\Model
{
public $builderVersion;
protected $signatureType = BuildSignature::class;
protected $signatureDataType = '';
public function setBuilderVersion($builderVersion)
{
$this->builderVersion = $builderVersion;
}
public function getBuilderVersion()
{
return $this->builderVersion;
}
/**
* @param BuildSignature
*/
public function setSignature(BuildSignature $signature)
{
$this->signature = $signature;
}
/**
* @return BuildSignature
*/
public function getSignature()
{
return $this->signature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Build::class, 'Google_Service_ContainerAnalysis_Build');
@@ -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\ContainerAnalysis;
class BuildDefinition extends \Google\Collection
{
protected $collection_key = 'resolvedDependencies';
/**
* @var string
*/
public $buildType;
/**
* @var array[]
*/
public $externalParameters;
/**
* @var array[]
*/
public $internalParameters;
protected $resolvedDependenciesType = ResourceDescriptor::class;
protected $resolvedDependenciesDataType = 'array';
/**
* @param string $buildType
*/
public function setBuildType($buildType)
{
$this->buildType = $buildType;
}
/**
* @return string
*/
public function getBuildType()
{
return $this->buildType;
}
/**
* @param array[] $externalParameters
*/
public function setExternalParameters($externalParameters)
{
$this->externalParameters = $externalParameters;
}
/**
* @return array[]
*/
public function getExternalParameters()
{
return $this->externalParameters;
}
/**
* @param array[] $internalParameters
*/
public function setInternalParameters($internalParameters)
{
$this->internalParameters = $internalParameters;
}
/**
* @return array[]
*/
public function getInternalParameters()
{
return $this->internalParameters;
}
/**
* @param ResourceDescriptor[] $resolvedDependencies
*/
public function setResolvedDependencies($resolvedDependencies)
{
$this->resolvedDependencies = $resolvedDependencies;
}
/**
* @return ResourceDescriptor[]
*/
public function getResolvedDependencies()
{
return $this->resolvedDependencies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildDefinition::class, 'Google_Service_ContainerAnalysis_BuildDefinition');
@@ -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\ContainerAnalysis;
class BuildMetadata extends \Google\Model
{
/**
* @var string
*/
public $finishedOn;
/**
* @var string
*/
public $invocationId;
/**
* @var string
*/
public $startedOn;
/**
* @param string $finishedOn
*/
public function setFinishedOn($finishedOn)
{
$this->finishedOn = $finishedOn;
}
/**
* @return string
*/
public function getFinishedOn()
{
return $this->finishedOn;
}
/**
* @param string $invocationId
*/
public function setInvocationId($invocationId)
{
$this->invocationId = $invocationId;
}
/**
* @return string
*/
public function getInvocationId()
{
return $this->invocationId;
}
/**
* @param string $startedOn
*/
public function setStartedOn($startedOn)
{
$this->startedOn = $startedOn;
}
/**
* @return string
*/
public function getStartedOn()
{
return $this->startedOn;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildMetadata::class, 'Google_Service_ContainerAnalysis_BuildMetadata');
@@ -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\ContainerAnalysis;
class BuildNote extends \Google\Model
{
/**
* Required. Immutable. Version of the builder which produced this build.
*
* @var string
*/
public $builderVersion;
/**
* Required. Immutable. Version of the builder which produced this build.
*
* @param string $builderVersion
*/
public function setBuilderVersion($builderVersion)
{
$this->builderVersion = $builderVersion;
}
/**
* @return string
*/
public function getBuilderVersion()
{
return $this->builderVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildNote::class, 'Google_Service_ContainerAnalysis_BuildNote');
@@ -0,0 +1,141 @@
<?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 BuildOccurrence extends \Google\Model
{
protected $inTotoSlsaProvenanceV1Type = InTotoSlsaProvenanceV1::class;
protected $inTotoSlsaProvenanceV1DataType = '';
protected $intotoProvenanceType = InTotoProvenance::class;
protected $intotoProvenanceDataType = '';
protected $intotoStatementType = InTotoStatement::class;
protected $intotoStatementDataType = '';
protected $provenanceType = BuildProvenance::class;
protected $provenanceDataType = '';
/**
* Serialized JSON representation of the provenance, used in generating the
* build signature in the corresponding build note. After verifying the
* signature, `provenance_bytes` can be unmarshalled and compared to the
* provenance to confirm that it is unchanged. A base64-encoded string
* representation of the provenance bytes is used for the signature in order
* to interoperate with openssl which expects this format for signature
* verification. The serialized form is captured both to avoid ambiguity in
* how the provenance is marshalled to json as well to prevent
* incompatibilities with future changes.
*
* @var string
*/
public $provenanceBytes;
/**
* In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa
* spec, wrapped in an in-toto statement. This allows for direct jsonification
* of a to-spec in-toto slsa statement with a to-spec slsa provenance.
*
* @param InTotoSlsaProvenanceV1 $inTotoSlsaProvenanceV1
*/
public function setInTotoSlsaProvenanceV1(InTotoSlsaProvenanceV1 $inTotoSlsaProvenanceV1)
{
$this->inTotoSlsaProvenanceV1 = $inTotoSlsaProvenanceV1;
}
/**
* @return InTotoSlsaProvenanceV1
*/
public function getInTotoSlsaProvenanceV1()
{
return $this->inTotoSlsaProvenanceV1;
}
/**
* Deprecated. See InTotoStatement for the replacement. In-toto Provenance
* representation as defined in spec.
*
* @param InTotoProvenance $intotoProvenance
*/
public function setIntotoProvenance(InTotoProvenance $intotoProvenance)
{
$this->intotoProvenance = $intotoProvenance;
}
/**
* @return InTotoProvenance
*/
public function getIntotoProvenance()
{
return $this->intotoProvenance;
}
/**
* In-toto Statement representation as defined in spec. The intoto_statement
* can contain any type of provenance. The serialized payload of the statement
* can be stored and signed in the Occurrence's envelope.
*
* @param InTotoStatement $intotoStatement
*/
public function setIntotoStatement(InTotoStatement $intotoStatement)
{
$this->intotoStatement = $intotoStatement;
}
/**
* @return InTotoStatement
*/
public function getIntotoStatement()
{
return $this->intotoStatement;
}
/**
* The actual provenance for the build.
*
* @param BuildProvenance $provenance
*/
public function setProvenance(BuildProvenance $provenance)
{
$this->provenance = $provenance;
}
/**
* @return BuildProvenance
*/
public function getProvenance()
{
return $this->provenance;
}
/**
* Serialized JSON representation of the provenance, used in generating the
* build signature in the corresponding build note. After verifying the
* signature, `provenance_bytes` can be unmarshalled and compared to the
* provenance to confirm that it is unchanged. A base64-encoded string
* representation of the provenance bytes is used for the signature in order
* to interoperate with openssl which expects this format for signature
* verification. The serialized form is captured both to avoid ambiguity in
* how the provenance is marshalled to json as well to prevent
* incompatibilities with future changes.
*
* @param string $provenanceBytes
*/
public function setProvenanceBytes($provenanceBytes)
{
$this->provenanceBytes = $provenanceBytes;
}
/**
* @return string
*/
public function getProvenanceBytes()
{
return $this->provenanceBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildOccurrence::class, 'Google_Service_ContainerAnalysis_BuildOccurrence');
@@ -0,0 +1,307 @@
<?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 BuildProvenance extends \Google\Collection
{
protected $collection_key = 'commands';
/**
* Special options applied to this build. This is a catch-all field where
* build providers can enter any desired additional details.
*
* @var string[]
*/
public $buildOptions;
/**
* Version string of the builder at the time this build was executed.
*
* @var string
*/
public $builderVersion;
protected $builtArtifactsType = Artifact::class;
protected $builtArtifactsDataType = 'array';
protected $commandsType = Command::class;
protected $commandsDataType = 'array';
/**
* Time at which the build was created.
*
* @var string
*/
public $createTime;
/**
* E-mail address of the user who initiated this build. Note that this was the
* user's e-mail address at the time the build was initiated; this address may
* not represent the same end-user for all time.
*
* @var string
*/
public $creator;
/**
* Time at which execution of the build was finished.
*
* @var string
*/
public $endTime;
/**
* Required. Unique identifier of the build.
*
* @var string
*/
public $id;
/**
* URI where any logs for this provenance were written.
*
* @var string
*/
public $logsUri;
/**
* ID of the project.
*
* @var string
*/
public $projectId;
protected $sourceProvenanceType = Source::class;
protected $sourceProvenanceDataType = '';
/**
* Time at which execution of the build was started.
*
* @var string
*/
public $startTime;
/**
* Trigger identifier if the build was triggered automatically; empty if not.
*
* @var string
*/
public $triggerId;
/**
* Special options applied to this build. This is a catch-all field where
* build providers can enter any desired additional details.
*
* @param string[] $buildOptions
*/
public function setBuildOptions($buildOptions)
{
$this->buildOptions = $buildOptions;
}
/**
* @return string[]
*/
public function getBuildOptions()
{
return $this->buildOptions;
}
/**
* Version string of the builder at the time this build was executed.
*
* @param string $builderVersion
*/
public function setBuilderVersion($builderVersion)
{
$this->builderVersion = $builderVersion;
}
/**
* @return string
*/
public function getBuilderVersion()
{
return $this->builderVersion;
}
/**
* Output of the build.
*
* @param Artifact[] $builtArtifacts
*/
public function setBuiltArtifacts($builtArtifacts)
{
$this->builtArtifacts = $builtArtifacts;
}
/**
* @return Artifact[]
*/
public function getBuiltArtifacts()
{
return $this->builtArtifacts;
}
/**
* Commands requested by the build.
*
* @param Command[] $commands
*/
public function setCommands($commands)
{
$this->commands = $commands;
}
/**
* @return Command[]
*/
public function getCommands()
{
return $this->commands;
}
/**
* Time at which the build was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* E-mail address of the user who initiated this build. Note that this was the
* user's e-mail address at the time the build was initiated; this address may
* not represent the same end-user for all time.
*
* @param string $creator
*/
public function setCreator($creator)
{
$this->creator = $creator;
}
/**
* @return string
*/
public function getCreator()
{
return $this->creator;
}
/**
* Time at which execution of the build was finished.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Required. Unique identifier of the build.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* URI where any logs for this provenance were written.
*
* @param string $logsUri
*/
public function setLogsUri($logsUri)
{
$this->logsUri = $logsUri;
}
/**
* @return string
*/
public function getLogsUri()
{
return $this->logsUri;
}
/**
* ID of the project.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* Details of the Source input to the build.
*
* @param Source $sourceProvenance
*/
public function setSourceProvenance(Source $sourceProvenance)
{
$this->sourceProvenance = $sourceProvenance;
}
/**
* @return Source
*/
public function getSourceProvenance()
{
return $this->sourceProvenance;
}
/**
* Time at which execution of the build was started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Trigger identifier if the build was triggered automatically; empty if not.
*
* @param string $triggerId
*/
public function setTriggerId($triggerId)
{
$this->triggerId = $triggerId;
}
/**
* @return string
*/
public function getTriggerId()
{
return $this->triggerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildProvenance::class, 'Google_Service_ContainerAnalysis_BuildProvenance');
@@ -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\ContainerAnalysis;
class BuildSignature extends \Google\Model
{
public $keyId;
public $keyType;
public $publicKey;
public $signature;
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
public function getKeyId()
{
return $this->keyId;
}
public function setKeyType($keyType)
{
$this->keyType = $keyType;
}
public function getKeyType()
{
return $this->keyType;
}
public function setPublicKey($publicKey)
{
$this->publicKey = $publicKey;
}
public function getPublicKey()
{
return $this->publicKey;
}
public function setSignature($signature)
{
$this->signature = $signature;
}
public function getSignature()
{
return $this->signature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildSignature::class, 'Google_Service_ContainerAnalysis_BuildSignature');
@@ -0,0 +1,590 @@
<?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 BuildStep extends \Google\Collection
{
/**
* Status of the build is unknown.
*/
public const STATUS_STATUS_UNKNOWN = 'STATUS_UNKNOWN';
/**
* Build has been created and is pending execution and queuing. It has not
* been queued.
*/
public const STATUS_PENDING = 'PENDING';
/**
* Build has been received and is being queued.
*/
public const STATUS_QUEUING = 'QUEUING';
/**
* Build or step is queued; work has not yet begun.
*/
public const STATUS_QUEUED = 'QUEUED';
/**
* Build or step is being executed.
*/
public const STATUS_WORKING = 'WORKING';
/**
* Build or step finished successfully.
*/
public const STATUS_SUCCESS = 'SUCCESS';
/**
* Build or step failed to complete successfully.
*/
public const STATUS_FAILURE = 'FAILURE';
/**
* Build or step failed due to an internal cause.
*/
public const STATUS_INTERNAL_ERROR = 'INTERNAL_ERROR';
/**
* Build or step took longer than was allowed.
*/
public const STATUS_TIMEOUT = 'TIMEOUT';
/**
* Build or step was canceled by a user.
*/
public const STATUS_CANCELLED = 'CANCELLED';
/**
* Build was enqueued for longer than the value of `queue_ttl`.
*/
public const STATUS_EXPIRED = 'EXPIRED';
protected $collection_key = 'waitFor';
/**
* Allow this build step to fail without failing the entire build if and only
* if the exit code is one of the specified codes. If allow_failure is also
* specified, this field will take precedence.
*
* @var int[]
*/
public $allowExitCodes;
/**
* Allow this build step to fail without failing the entire build. If false,
* the entire build will fail if this step fails. Otherwise, the build will
* succeed, but this step will still have a failure status. Error information
* will be reported in the failure_detail field.
*
* @var bool
*/
public $allowFailure;
/**
* A list of arguments that will be presented to the step when it is started.
* If the image used to run the step's container has an entrypoint, the `args`
* are used as arguments to that entrypoint. If the image does not define an
* entrypoint, the first element in args is used as the entrypoint, and the
* remainder will be used as arguments.
*
* @var string[]
*/
public $args;
/**
* Option to include built-in and custom substitutions as env variables for
* this build step. This option will override the global option in
* BuildOption.
*
* @var bool
*/
public $automapSubstitutions;
/**
* Working directory to use when running this step's container. If this value
* is a relative path, it is relative to the build's working directory. If
* this value is absolute, it may be outside the build's working directory, in
* which case the contents of the path may not be persisted across build step
* executions, unless a `volume` for that path is specified. If the build
* specifies a `RepoSource` with `dir` and a step with a `dir`, which
* specifies an absolute path, the `RepoSource` `dir` is ignored for the
* step's execution.
*
* @var string
*/
public $dir;
/**
* Entrypoint to be used instead of the build step image's default entrypoint.
* If unset, the image's default entrypoint is used.
*
* @var string
*/
public $entrypoint;
/**
* A list of environment variable definitions to be used when running a step.
* The elements are of the form "KEY=VALUE" for the environment variable "KEY"
* being given the value "VALUE".
*
* @var string[]
*/
public $env;
/**
* Output only. Return code from running the step.
*
* @var int
*/
public $exitCode;
/**
* Unique identifier for this build step, used in `wait_for` to reference this
* build step as a dependency.
*
* @var string
*/
public $id;
/**
* Required. The name of the container image that will run this particular
* build step. If the image is available in the host's Docker daemon's cache,
* it will be run directly. If not, the host will attempt to pull the image
* first, using the builder service account's credentials if necessary. The
* Docker daemon's cache will already have the latest versions of all of the
* officially supported build steps
* ([https://github.com/GoogleCloudPlatform/cloud-
* builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The
* Docker daemon will also have cached many of the layers for some popular
* images, like "ubuntu", "debian", but they will be refreshed at the time you
* attempt to use them. If you built an image in a previous build step, it
* will be stored in the host's Docker daemon's cache and is available to use
* as the name for a later build step.
*
* @var string
*/
public $name;
protected $pullTimingType = TimeSpan::class;
protected $pullTimingDataType = '';
/**
* Remote configuration for the build step.
*
* @var string
*/
public $remoteConfig;
protected $resultsType = StepResult::class;
protected $resultsDataType = 'array';
/**
* A shell script to be executed in the step. When script is provided, the
* user cannot specify the entrypoint or args.
*
* @var string
*/
public $script;
/**
* A list of environment variables which are encrypted using a Cloud Key
* Management Service crypto key. These values must be specified in the
* build's `Secret`.
*
* @var string[]
*/
public $secretEnv;
/**
* Output only. Status of the build step. At this time, build step status is
* only updated on build completion; step status is not updated in real-time
* as the build progresses.
*
* @var string
*/
public $status;
/**
* Time limit for executing this build step. If not defined, the step has no
* time limit and will be allowed to continue to run until either it completes
* or the build itself times out.
*
* @var string
*/
public $timeout;
protected $timingType = TimeSpan::class;
protected $timingDataType = '';
protected $volumesType = Volume::class;
protected $volumesDataType = 'array';
/**
* The ID(s) of the step(s) that this build step depends on. This build step
* will not start until all the build steps in `wait_for` have completed
* successfully. If `wait_for` is empty, this build step will start when all
* previous build steps in the `Build.Steps` list have completed successfully.
*
* @var string[]
*/
public $waitFor;
/**
* Allow this build step to fail without failing the entire build if and only
* if the exit code is one of the specified codes. If allow_failure is also
* specified, this field will take precedence.
*
* @param int[] $allowExitCodes
*/
public function setAllowExitCodes($allowExitCodes)
{
$this->allowExitCodes = $allowExitCodes;
}
/**
* @return int[]
*/
public function getAllowExitCodes()
{
return $this->allowExitCodes;
}
/**
* Allow this build step to fail without failing the entire build. If false,
* the entire build will fail if this step fails. Otherwise, the build will
* succeed, but this step will still have a failure status. Error information
* will be reported in the failure_detail field.
*
* @param bool $allowFailure
*/
public function setAllowFailure($allowFailure)
{
$this->allowFailure = $allowFailure;
}
/**
* @return bool
*/
public function getAllowFailure()
{
return $this->allowFailure;
}
/**
* A list of arguments that will be presented to the step when it is started.
* If the image used to run the step's container has an entrypoint, the `args`
* are used as arguments to that entrypoint. If the image does not define an
* entrypoint, the first element in args is used as the entrypoint, and the
* remainder will be used as arguments.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Option to include built-in and custom substitutions as env variables for
* this build step. This option will override the global option in
* BuildOption.
*
* @param bool $automapSubstitutions
*/
public function setAutomapSubstitutions($automapSubstitutions)
{
$this->automapSubstitutions = $automapSubstitutions;
}
/**
* @return bool
*/
public function getAutomapSubstitutions()
{
return $this->automapSubstitutions;
}
/**
* Working directory to use when running this step's container. If this value
* is a relative path, it is relative to the build's working directory. If
* this value is absolute, it may be outside the build's working directory, in
* which case the contents of the path may not be persisted across build step
* executions, unless a `volume` for that path is specified. If the build
* specifies a `RepoSource` with `dir` and a step with a `dir`, which
* specifies an absolute path, the `RepoSource` `dir` is ignored for the
* step's execution.
*
* @param string $dir
*/
public function setDir($dir)
{
$this->dir = $dir;
}
/**
* @return string
*/
public function getDir()
{
return $this->dir;
}
/**
* Entrypoint to be used instead of the build step image's default entrypoint.
* If unset, the image's default entrypoint is used.
*
* @param string $entrypoint
*/
public function setEntrypoint($entrypoint)
{
$this->entrypoint = $entrypoint;
}
/**
* @return string
*/
public function getEntrypoint()
{
return $this->entrypoint;
}
/**
* A list of environment variable definitions to be used when running a step.
* The elements are of the form "KEY=VALUE" for the environment variable "KEY"
* being given the value "VALUE".
*
* @param string[] $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string[]
*/
public function getEnv()
{
return $this->env;
}
/**
* Output only. Return code from running the step.
*
* @param int $exitCode
*/
public function setExitCode($exitCode)
{
$this->exitCode = $exitCode;
}
/**
* @return int
*/
public function getExitCode()
{
return $this->exitCode;
}
/**
* Unique identifier for this build step, used in `wait_for` to reference this
* build step as a dependency.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Required. The name of the container image that will run this particular
* build step. If the image is available in the host's Docker daemon's cache,
* it will be run directly. If not, the host will attempt to pull the image
* first, using the builder service account's credentials if necessary. The
* Docker daemon's cache will already have the latest versions of all of the
* officially supported build steps
* ([https://github.com/GoogleCloudPlatform/cloud-
* builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The
* Docker daemon will also have cached many of the layers for some popular
* images, like "ubuntu", "debian", but they will be refreshed at the time you
* attempt to use them. If you built an image in a previous build step, it
* will be stored in the host's Docker daemon's cache and is available to use
* as the name for a later build step.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Stores timing information for pulling this build step's
* builder image only.
*
* @param TimeSpan $pullTiming
*/
public function setPullTiming(TimeSpan $pullTiming)
{
$this->pullTiming = $pullTiming;
}
/**
* @return TimeSpan
*/
public function getPullTiming()
{
return $this->pullTiming;
}
/**
* Remote configuration for the build step.
*
* @param string $remoteConfig
*/
public function setRemoteConfig($remoteConfig)
{
$this->remoteConfig = $remoteConfig;
}
/**
* @return string
*/
public function getRemoteConfig()
{
return $this->remoteConfig;
}
/**
* @param StepResult[] $results
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return StepResult[]
*/
public function getResults()
{
return $this->results;
}
/**
* A shell script to be executed in the step. When script is provided, the
* user cannot specify the entrypoint or args.
*
* @param string $script
*/
public function setScript($script)
{
$this->script = $script;
}
/**
* @return string
*/
public function getScript()
{
return $this->script;
}
/**
* A list of environment variables which are encrypted using a Cloud Key
* Management Service crypto key. These values must be specified in the
* build's `Secret`.
*
* @param string[] $secretEnv
*/
public function setSecretEnv($secretEnv)
{
$this->secretEnv = $secretEnv;
}
/**
* @return string[]
*/
public function getSecretEnv()
{
return $this->secretEnv;
}
/**
* Output only. Status of the build step. At this time, build step status is
* only updated on build completion; step status is not updated in real-time
* as the build progresses.
*
* Accepted values: STATUS_UNKNOWN, PENDING, QUEUING, QUEUED, WORKING,
* SUCCESS, FAILURE, INTERNAL_ERROR, TIMEOUT, CANCELLED, EXPIRED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* Time limit for executing this build step. If not defined, the step has no
* time limit and will be allowed to continue to run until either it completes
* or the build itself times out.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Output only. Stores timing information for executing this build step.
*
* @param TimeSpan $timing
*/
public function setTiming(TimeSpan $timing)
{
$this->timing = $timing;
}
/**
* @return TimeSpan
*/
public function getTiming()
{
return $this->timing;
}
/**
* List of volumes to mount into the build step. Each volume is created as an
* empty volume prior to execution of the build step. Upon completion of the
* build, volumes and their contents are discarded. Using a named volume in
* only one step is not valid as it is indicative of a build request with an
* incorrect configuration.
*
* @param Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* The ID(s) of the step(s) that this build step depends on. This build step
* will not start until all the build steps in `wait_for` have completed
* successfully. If `wait_for` is empty, this build step will start when all
* previous build steps in the `Build.Steps` list have completed successfully.
*
* @param string[] $waitFor
*/
public function setWaitFor($waitFor)
{
$this->waitFor = $waitFor;
}
/**
* @return string[]
*/
public function getWaitFor()
{
return $this->waitFor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildStep::class, 'Google_Service_ContainerAnalysis_BuildStep');
@@ -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\ContainerAnalysis;
class BuilderConfig extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuilderConfig::class, 'Google_Service_ContainerAnalysis_BuilderConfig');
@@ -0,0 +1,35 @@
<?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 ByProducts extends \Google\Model
{
public $customValues;
public function setCustomValues($customValues)
{
$this->customValues = $customValues;
}
public function getCustomValues()
{
return $this->customValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ByProducts::class, 'Google_Service_ContainerAnalysis_ByProducts');
@@ -0,0 +1,50 @@
<?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 CISAKnownExploitedVulnerabilities extends \Google\Model
{
/**
* Whether the vulnerability is known to have been leveraged as part of a
* ransomware campaign.
*
* @var string
*/
public $knownRansomwareCampaignUse;
/**
* Whether the vulnerability is known to have been leveraged as part of a
* ransomware campaign.
*
* @param string $knownRansomwareCampaignUse
*/
public function setKnownRansomwareCampaignUse($knownRansomwareCampaignUse)
{
$this->knownRansomwareCampaignUse = $knownRansomwareCampaignUse;
}
/**
* @return string
*/
public function getKnownRansomwareCampaignUse()
{
return $this->knownRansomwareCampaignUse;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CISAKnownExploitedVulnerabilities::class, 'Google_Service_ContainerAnalysis_CISAKnownExploitedVulnerabilities');
@@ -0,0 +1,296 @@
<?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 CVSS extends \Google\Model
{
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_UNSPECIFIED = 'ATTACK_COMPLEXITY_UNSPECIFIED';
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_LOW = 'ATTACK_COMPLEXITY_LOW';
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_HIGH = 'ATTACK_COMPLEXITY_HIGH';
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_MEDIUM = 'ATTACK_COMPLEXITY_MEDIUM';
public const ATTACK_VECTOR_ATTACK_VECTOR_UNSPECIFIED = 'ATTACK_VECTOR_UNSPECIFIED';
public const ATTACK_VECTOR_ATTACK_VECTOR_NETWORK = 'ATTACK_VECTOR_NETWORK';
public const ATTACK_VECTOR_ATTACK_VECTOR_ADJACENT = 'ATTACK_VECTOR_ADJACENT';
public const ATTACK_VECTOR_ATTACK_VECTOR_LOCAL = 'ATTACK_VECTOR_LOCAL';
public const ATTACK_VECTOR_ATTACK_VECTOR_PHYSICAL = 'ATTACK_VECTOR_PHYSICAL';
public const AUTHENTICATION_AUTHENTICATION_UNSPECIFIED = 'AUTHENTICATION_UNSPECIFIED';
public const AUTHENTICATION_AUTHENTICATION_MULTIPLE = 'AUTHENTICATION_MULTIPLE';
public const AUTHENTICATION_AUTHENTICATION_SINGLE = 'AUTHENTICATION_SINGLE';
public const AUTHENTICATION_AUTHENTICATION_NONE = 'AUTHENTICATION_NONE';
public const AVAILABILITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
public const AVAILABILITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
public const AVAILABILITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
public const AVAILABILITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
public const AVAILABILITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
public const AVAILABILITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
public const CONFIDENTIALITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
public const CONFIDENTIALITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
public const CONFIDENTIALITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
public const CONFIDENTIALITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
public const CONFIDENTIALITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
public const CONFIDENTIALITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
public const INTEGRITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
public const INTEGRITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
public const INTEGRITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
public const INTEGRITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
public const INTEGRITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
public const INTEGRITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_UNSPECIFIED = 'PRIVILEGES_REQUIRED_UNSPECIFIED';
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_NONE = 'PRIVILEGES_REQUIRED_NONE';
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_LOW = 'PRIVILEGES_REQUIRED_LOW';
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_HIGH = 'PRIVILEGES_REQUIRED_HIGH';
public const SCOPE_SCOPE_UNSPECIFIED = 'SCOPE_UNSPECIFIED';
public const SCOPE_SCOPE_UNCHANGED = 'SCOPE_UNCHANGED';
public const SCOPE_SCOPE_CHANGED = 'SCOPE_CHANGED';
public const USER_INTERACTION_USER_INTERACTION_UNSPECIFIED = 'USER_INTERACTION_UNSPECIFIED';
public const USER_INTERACTION_USER_INTERACTION_NONE = 'USER_INTERACTION_NONE';
public const USER_INTERACTION_USER_INTERACTION_REQUIRED = 'USER_INTERACTION_REQUIRED';
/**
* @var string
*/
public $attackComplexity;
/**
* Base Metrics Represents the intrinsic characteristics of a vulnerability
* that are constant over time and across user environments.
*
* @var string
*/
public $attackVector;
/**
* @var string
*/
public $authentication;
/**
* @var string
*/
public $availabilityImpact;
/**
* The base score is a function of the base metric scores.
*
* @var float
*/
public $baseScore;
/**
* @var string
*/
public $confidentialityImpact;
/**
* @var float
*/
public $exploitabilityScore;
/**
* @var float
*/
public $impactScore;
/**
* @var string
*/
public $integrityImpact;
/**
* @var string
*/
public $privilegesRequired;
/**
* @var string
*/
public $scope;
/**
* @var string
*/
public $userInteraction;
/**
* @param self::ATTACK_COMPLEXITY_* $attackComplexity
*/
public function setAttackComplexity($attackComplexity)
{
$this->attackComplexity = $attackComplexity;
}
/**
* @return self::ATTACK_COMPLEXITY_*
*/
public function getAttackComplexity()
{
return $this->attackComplexity;
}
/**
* Base Metrics Represents the intrinsic characteristics of a vulnerability
* that are constant over time and across user environments.
*
* Accepted values: ATTACK_VECTOR_UNSPECIFIED, ATTACK_VECTOR_NETWORK,
* ATTACK_VECTOR_ADJACENT, ATTACK_VECTOR_LOCAL, ATTACK_VECTOR_PHYSICAL
*
* @param self::ATTACK_VECTOR_* $attackVector
*/
public function setAttackVector($attackVector)
{
$this->attackVector = $attackVector;
}
/**
* @return self::ATTACK_VECTOR_*
*/
public function getAttackVector()
{
return $this->attackVector;
}
/**
* @param self::AUTHENTICATION_* $authentication
*/
public function setAuthentication($authentication)
{
$this->authentication = $authentication;
}
/**
* @return self::AUTHENTICATION_*
*/
public function getAuthentication()
{
return $this->authentication;
}
/**
* @param self::AVAILABILITY_IMPACT_* $availabilityImpact
*/
public function setAvailabilityImpact($availabilityImpact)
{
$this->availabilityImpact = $availabilityImpact;
}
/**
* @return self::AVAILABILITY_IMPACT_*
*/
public function getAvailabilityImpact()
{
return $this->availabilityImpact;
}
/**
* The base score is a function of the base metric scores.
*
* @param float $baseScore
*/
public function setBaseScore($baseScore)
{
$this->baseScore = $baseScore;
}
/**
* @return float
*/
public function getBaseScore()
{
return $this->baseScore;
}
/**
* @param self::CONFIDENTIALITY_IMPACT_* $confidentialityImpact
*/
public function setConfidentialityImpact($confidentialityImpact)
{
$this->confidentialityImpact = $confidentialityImpact;
}
/**
* @return self::CONFIDENTIALITY_IMPACT_*
*/
public function getConfidentialityImpact()
{
return $this->confidentialityImpact;
}
/**
* @param float $exploitabilityScore
*/
public function setExploitabilityScore($exploitabilityScore)
{
$this->exploitabilityScore = $exploitabilityScore;
}
/**
* @return float
*/
public function getExploitabilityScore()
{
return $this->exploitabilityScore;
}
/**
* @param float $impactScore
*/
public function setImpactScore($impactScore)
{
$this->impactScore = $impactScore;
}
/**
* @return float
*/
public function getImpactScore()
{
return $this->impactScore;
}
/**
* @param self::INTEGRITY_IMPACT_* $integrityImpact
*/
public function setIntegrityImpact($integrityImpact)
{
$this->integrityImpact = $integrityImpact;
}
/**
* @return self::INTEGRITY_IMPACT_*
*/
public function getIntegrityImpact()
{
return $this->integrityImpact;
}
/**
* @param self::PRIVILEGES_REQUIRED_* $privilegesRequired
*/
public function setPrivilegesRequired($privilegesRequired)
{
$this->privilegesRequired = $privilegesRequired;
}
/**
* @return self::PRIVILEGES_REQUIRED_*
*/
public function getPrivilegesRequired()
{
return $this->privilegesRequired;
}
/**
* @param self::SCOPE_* $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return self::SCOPE_*
*/
public function getScope()
{
return $this->scope;
}
/**
* @param self::USER_INTERACTION_* $userInteraction
*/
public function setUserInteraction($userInteraction)
{
$this->userInteraction = $userInteraction;
}
/**
* @return self::USER_INTERACTION_*
*/
public function getUserInteraction()
{
return $this->userInteraction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CVSS::class, 'Google_Service_ContainerAnalysis_CVSS');
@@ -0,0 +1,267 @@
<?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 CVSSv3 extends \Google\Model
{
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_UNSPECIFIED = 'ATTACK_COMPLEXITY_UNSPECIFIED';
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_LOW = 'ATTACK_COMPLEXITY_LOW';
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_HIGH = 'ATTACK_COMPLEXITY_HIGH';
public const ATTACK_VECTOR_ATTACK_VECTOR_UNSPECIFIED = 'ATTACK_VECTOR_UNSPECIFIED';
public const ATTACK_VECTOR_ATTACK_VECTOR_NETWORK = 'ATTACK_VECTOR_NETWORK';
public const ATTACK_VECTOR_ATTACK_VECTOR_ADJACENT = 'ATTACK_VECTOR_ADJACENT';
public const ATTACK_VECTOR_ATTACK_VECTOR_LOCAL = 'ATTACK_VECTOR_LOCAL';
public const ATTACK_VECTOR_ATTACK_VECTOR_PHYSICAL = 'ATTACK_VECTOR_PHYSICAL';
public const AVAILABILITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
public const AVAILABILITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
public const AVAILABILITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
public const AVAILABILITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
public const CONFIDENTIALITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
public const CONFIDENTIALITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
public const CONFIDENTIALITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
public const CONFIDENTIALITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
public const INTEGRITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
public const INTEGRITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
public const INTEGRITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
public const INTEGRITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_UNSPECIFIED = 'PRIVILEGES_REQUIRED_UNSPECIFIED';
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_NONE = 'PRIVILEGES_REQUIRED_NONE';
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_LOW = 'PRIVILEGES_REQUIRED_LOW';
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_HIGH = 'PRIVILEGES_REQUIRED_HIGH';
public const SCOPE_SCOPE_UNSPECIFIED = 'SCOPE_UNSPECIFIED';
public const SCOPE_SCOPE_UNCHANGED = 'SCOPE_UNCHANGED';
public const SCOPE_SCOPE_CHANGED = 'SCOPE_CHANGED';
public const USER_INTERACTION_USER_INTERACTION_UNSPECIFIED = 'USER_INTERACTION_UNSPECIFIED';
public const USER_INTERACTION_USER_INTERACTION_NONE = 'USER_INTERACTION_NONE';
public const USER_INTERACTION_USER_INTERACTION_REQUIRED = 'USER_INTERACTION_REQUIRED';
/**
* @var string
*/
public $attackComplexity;
/**
* Base Metrics Represents the intrinsic characteristics of a vulnerability
* that are constant over time and across user environments.
*
* @var string
*/
public $attackVector;
/**
* @var string
*/
public $availabilityImpact;
/**
* The base score is a function of the base metric scores.
*
* @var float
*/
public $baseScore;
/**
* @var string
*/
public $confidentialityImpact;
/**
* @var float
*/
public $exploitabilityScore;
/**
* @var float
*/
public $impactScore;
/**
* @var string
*/
public $integrityImpact;
/**
* @var string
*/
public $privilegesRequired;
/**
* @var string
*/
public $scope;
/**
* @var string
*/
public $userInteraction;
/**
* @param self::ATTACK_COMPLEXITY_* $attackComplexity
*/
public function setAttackComplexity($attackComplexity)
{
$this->attackComplexity = $attackComplexity;
}
/**
* @return self::ATTACK_COMPLEXITY_*
*/
public function getAttackComplexity()
{
return $this->attackComplexity;
}
/**
* Base Metrics Represents the intrinsic characteristics of a vulnerability
* that are constant over time and across user environments.
*
* Accepted values: ATTACK_VECTOR_UNSPECIFIED, ATTACK_VECTOR_NETWORK,
* ATTACK_VECTOR_ADJACENT, ATTACK_VECTOR_LOCAL, ATTACK_VECTOR_PHYSICAL
*
* @param self::ATTACK_VECTOR_* $attackVector
*/
public function setAttackVector($attackVector)
{
$this->attackVector = $attackVector;
}
/**
* @return self::ATTACK_VECTOR_*
*/
public function getAttackVector()
{
return $this->attackVector;
}
/**
* @param self::AVAILABILITY_IMPACT_* $availabilityImpact
*/
public function setAvailabilityImpact($availabilityImpact)
{
$this->availabilityImpact = $availabilityImpact;
}
/**
* @return self::AVAILABILITY_IMPACT_*
*/
public function getAvailabilityImpact()
{
return $this->availabilityImpact;
}
/**
* The base score is a function of the base metric scores.
*
* @param float $baseScore
*/
public function setBaseScore($baseScore)
{
$this->baseScore = $baseScore;
}
/**
* @return float
*/
public function getBaseScore()
{
return $this->baseScore;
}
/**
* @param self::CONFIDENTIALITY_IMPACT_* $confidentialityImpact
*/
public function setConfidentialityImpact($confidentialityImpact)
{
$this->confidentialityImpact = $confidentialityImpact;
}
/**
* @return self::CONFIDENTIALITY_IMPACT_*
*/
public function getConfidentialityImpact()
{
return $this->confidentialityImpact;
}
/**
* @param float $exploitabilityScore
*/
public function setExploitabilityScore($exploitabilityScore)
{
$this->exploitabilityScore = $exploitabilityScore;
}
/**
* @return float
*/
public function getExploitabilityScore()
{
return $this->exploitabilityScore;
}
/**
* @param float $impactScore
*/
public function setImpactScore($impactScore)
{
$this->impactScore = $impactScore;
}
/**
* @return float
*/
public function getImpactScore()
{
return $this->impactScore;
}
/**
* @param self::INTEGRITY_IMPACT_* $integrityImpact
*/
public function setIntegrityImpact($integrityImpact)
{
$this->integrityImpact = $integrityImpact;
}
/**
* @return self::INTEGRITY_IMPACT_*
*/
public function getIntegrityImpact()
{
return $this->integrityImpact;
}
/**
* @param self::PRIVILEGES_REQUIRED_* $privilegesRequired
*/
public function setPrivilegesRequired($privilegesRequired)
{
$this->privilegesRequired = $privilegesRequired;
}
/**
* @return self::PRIVILEGES_REQUIRED_*
*/
public function getPrivilegesRequired()
{
return $this->privilegesRequired;
}
/**
* @param self::SCOPE_* $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return self::SCOPE_*
*/
public function getScope()
{
return $this->scope;
}
/**
* @param self::USER_INTERACTION_* $userInteraction
*/
public function setUserInteraction($userInteraction)
{
$this->userInteraction = $userInteraction;
}
/**
* @return self::USER_INTERACTION_*
*/
public function getUserInteraction()
{
return $this->userInteraction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CVSSv3::class, 'Google_Service_ContainerAnalysis_CVSSv3');
@@ -0,0 +1,25 @@
<?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 CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_ContainerAnalysis_CancelOperationRequest');
@@ -0,0 +1,70 @@
<?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 Category extends \Google\Model
{
/**
* The identifier of the category.
*
* @var string
*/
public $categoryId;
/**
* The localized name of the category.
*
* @var string
*/
public $name;
/**
* The identifier of the category.
*
* @param string $categoryId
*/
public function setCategoryId($categoryId)
{
$this->categoryId = $categoryId;
}
/**
* @return string
*/
public function getCategoryId()
{
return $this->categoryId;
}
/**
* The localized name of the category.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Category::class, 'Google_Service_ContainerAnalysis_Category');
@@ -0,0 +1,86 @@
<?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 CisBenchmark extends \Google\Model
{
/**
* Unknown.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Minimal severity.
*/
public const SEVERITY_MINIMAL = 'MINIMAL';
/**
* Low severity.
*/
public const SEVERITY_LOW = 'LOW';
/**
* Medium severity.
*/
public const SEVERITY_MEDIUM = 'MEDIUM';
/**
* High severity.
*/
public const SEVERITY_HIGH = 'HIGH';
/**
* Critical severity.
*/
public const SEVERITY_CRITICAL = 'CRITICAL';
/**
* @var int
*/
public $profileLevel;
/**
* @var string
*/
public $severity;
/**
* @param int $profileLevel
*/
public function setProfileLevel($profileLevel)
{
$this->profileLevel = $profileLevel;
}
/**
* @return int
*/
public function getProfileLevel()
{
return $this->profileLevel;
}
/**
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CisBenchmark::class, 'Google_Service_ContainerAnalysis_CisBenchmark');
@@ -0,0 +1,84 @@
<?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 CloudRepoSourceContext extends \Google\Model
{
protected $aliasContextType = AliasContext::class;
protected $aliasContextDataType = '';
protected $repoIdType = RepoId::class;
protected $repoIdDataType = '';
/**
* A revision ID.
*
* @var string
*/
public $revisionId;
/**
* An alias, which may be a branch or tag.
*
* @param AliasContext $aliasContext
*/
public function setAliasContext(AliasContext $aliasContext)
{
$this->aliasContext = $aliasContext;
}
/**
* @return AliasContext
*/
public function getAliasContext()
{
return $this->aliasContext;
}
/**
* The ID of the repo.
*
* @param RepoId $repoId
*/
public function setRepoId(RepoId $repoId)
{
$this->repoId = $repoId;
}
/**
* @return RepoId
*/
public function getRepoId()
{
return $this->repoId;
}
/**
* A revision ID.
*
* @param string $revisionId
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudRepoSourceContext::class, 'Google_Service_ContainerAnalysis_CloudRepoSourceContext');
@@ -0,0 +1,25 @@
<?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 CloudStorageLocation extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudStorageLocation::class, 'Google_Service_ContainerAnalysis_CloudStorageLocation');
@@ -0,0 +1,165 @@
<?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 Command extends \Google\Collection
{
protected $collection_key = 'waitFor';
/**
* Command-line arguments used when executing this command.
*
* @var string[]
*/
public $args;
/**
* Working directory (relative to project source root) used when running this
* command.
*
* @var string
*/
public $dir;
/**
* Environment variables set before running this command.
*
* @var string[]
*/
public $env;
/**
* Optional unique identifier for this command, used in wait_for to reference
* this command as a dependency.
*
* @var string
*/
public $id;
/**
* Required. Name of the command, as presented on the command line, or if the
* command is packaged as a Docker container, as presented to `docker pull`.
*
* @var string
*/
public $name;
/**
* The ID(s) of the command(s) that this command depends on.
*
* @var string[]
*/
public $waitFor;
/**
* Command-line arguments used when executing this command.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Working directory (relative to project source root) used when running this
* command.
*
* @param string $dir
*/
public function setDir($dir)
{
$this->dir = $dir;
}
/**
* @return string
*/
public function getDir()
{
return $this->dir;
}
/**
* Environment variables set before running this command.
*
* @param string[] $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string[]
*/
public function getEnv()
{
return $this->env;
}
/**
* Optional unique identifier for this command, used in wait_for to reference
* this command as a dependency.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Required. Name of the command, as presented on the command line, or if the
* command is packaged as a Docker container, as presented to `docker pull`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The ID(s) of the command(s) that this command depends on.
*
* @param string[] $waitFor
*/
public function setWaitFor($waitFor)
{
$this->waitFor = $waitFor;
}
/**
* @return string[]
*/
public function getWaitFor()
{
return $this->waitFor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Command::class, 'Google_Service_ContainerAnalysis_Command');
@@ -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\ContainerAnalysis;
class Completeness extends \Google\Model
{
/**
* If true, the builder claims that recipe.arguments is complete, meaning that
* all external inputs are properly captured in the recipe.
*
* @var bool
*/
public $arguments;
/**
* If true, the builder claims that recipe.environment is claimed to be
* complete.
*
* @var bool
*/
public $environment;
/**
* If true, the builder claims that materials are complete, usually through
* some controls to prevent network access. Sometimes called "hermetic".
*
* @var bool
*/
public $materials;
/**
* If true, the builder claims that recipe.arguments is complete, meaning that
* all external inputs are properly captured in the recipe.
*
* @param bool $arguments
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return bool
*/
public function getArguments()
{
return $this->arguments;
}
/**
* If true, the builder claims that recipe.environment is claimed to be
* complete.
*
* @param bool $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return bool
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* If true, the builder claims that materials are complete, usually through
* some controls to prevent network access. Sometimes called "hermetic".
*
* @param bool $materials
*/
public function setMaterials($materials)
{
$this->materials = $materials;
}
/**
* @return bool
*/
public function getMaterials()
{
return $this->materials;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Completeness::class, 'Google_Service_ContainerAnalysis_Completeness');
@@ -0,0 +1,189 @@
<?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 ComplianceNote extends \Google\Collection
{
protected $collection_key = 'version';
protected $cisBenchmarkType = CisBenchmark::class;
protected $cisBenchmarkDataType = '';
/**
* A description about this compliance check.
*
* @var string
*/
public $description;
/**
* @var string
*/
public $impact;
/**
* A rationale for the existence of this compliance check.
*
* @var string
*/
public $rationale;
/**
* A description of remediation steps if the compliance check fails.
*
* @var string
*/
public $remediation;
/**
* Serialized scan instructions with a predefined format.
*
* @var string
*/
public $scanInstructions;
/**
* The title that identifies this compliance check.
*
* @var string
*/
public $title;
protected $versionType = ComplianceVersion::class;
protected $versionDataType = 'array';
/**
* @param CisBenchmark $cisBenchmark
*/
public function setCisBenchmark(CisBenchmark $cisBenchmark)
{
$this->cisBenchmark = $cisBenchmark;
}
/**
* @return CisBenchmark
*/
public function getCisBenchmark()
{
return $this->cisBenchmark;
}
/**
* A description about this compliance check.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string $impact
*/
public function setImpact($impact)
{
$this->impact = $impact;
}
/**
* @return string
*/
public function getImpact()
{
return $this->impact;
}
/**
* A rationale for the existence of this compliance check.
*
* @param string $rationale
*/
public function setRationale($rationale)
{
$this->rationale = $rationale;
}
/**
* @return string
*/
public function getRationale()
{
return $this->rationale;
}
/**
* A description of remediation steps if the compliance check fails.
*
* @param string $remediation
*/
public function setRemediation($remediation)
{
$this->remediation = $remediation;
}
/**
* @return string
*/
public function getRemediation()
{
return $this->remediation;
}
/**
* Serialized scan instructions with a predefined format.
*
* @param string $scanInstructions
*/
public function setScanInstructions($scanInstructions)
{
$this->scanInstructions = $scanInstructions;
}
/**
* @return string
*/
public function getScanInstructions()
{
return $this->scanInstructions;
}
/**
* The title that identifies this compliance check.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* The OS and config versions the benchmark applies to.
*
* @param ComplianceVersion[] $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return ComplianceVersion[]
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComplianceNote::class, 'Google_Service_ContainerAnalysis_ComplianceNote');
@@ -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\ContainerAnalysis;
class ComplianceOccurrence extends \Google\Collection
{
protected $collection_key = 'nonCompliantFiles';
/**
* @var string
*/
public $nonComplianceReason;
protected $nonCompliantFilesType = NonCompliantFile::class;
protected $nonCompliantFilesDataType = 'array';
protected $versionType = ComplianceVersion::class;
protected $versionDataType = '';
/**
* @param string $nonComplianceReason
*/
public function setNonComplianceReason($nonComplianceReason)
{
$this->nonComplianceReason = $nonComplianceReason;
}
/**
* @return string
*/
public function getNonComplianceReason()
{
return $this->nonComplianceReason;
}
/**
* @param NonCompliantFile[] $nonCompliantFiles
*/
public function setNonCompliantFiles($nonCompliantFiles)
{
$this->nonCompliantFiles = $nonCompliantFiles;
}
/**
* @return NonCompliantFile[]
*/
public function getNonCompliantFiles()
{
return $this->nonCompliantFiles;
}
/**
* The OS and config version the benchmark was run on.
*
* @param ComplianceVersion $version
*/
public function setVersion(ComplianceVersion $version)
{
$this->version = $version;
}
/**
* @return ComplianceVersion
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComplianceOccurrence::class, 'Google_Service_ContainerAnalysis_ComplianceOccurrence');
@@ -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\ContainerAnalysis;
class ComplianceVersion extends \Google\Model
{
/**
* The name of the document that defines this benchmark, e.g. "CIS Container-
* Optimized OS".
*
* @var string
*/
public $benchmarkDocument;
/**
* The CPE URI (https://cpe.mitre.org/specification/) this benchmark is
* applicable to.
*
* @var string
*/
public $cpeUri;
/**
* The version of the benchmark. This is set to the version of the OS-specific
* CIS document the benchmark is defined in.
*
* @var string
*/
public $version;
/**
* The name of the document that defines this benchmark, e.g. "CIS Container-
* Optimized OS".
*
* @param string $benchmarkDocument
*/
public function setBenchmarkDocument($benchmarkDocument)
{
$this->benchmarkDocument = $benchmarkDocument;
}
/**
* @return string
*/
public function getBenchmarkDocument()
{
return $this->benchmarkDocument;
}
/**
* The CPE URI (https://cpe.mitre.org/specification/) this benchmark is
* applicable to.
*
* @param string $cpeUri
*/
public function setCpeUri($cpeUri)
{
$this->cpeUri = $cpeUri;
}
/**
* @return string
*/
public function getCpeUri()
{
return $this->cpeUri;
}
/**
* The version of the benchmark. This is set to the version of the OS-specific
* CIS document the benchmark is defined in.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComplianceVersion::class, 'Google_Service_ContainerAnalysis_ComplianceVersion');
@@ -0,0 +1,25 @@
<?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 ContaineranalysisEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisEmpty::class, 'Google_Service_ContainerAnalysis_ContaineranalysisEmpty');
@@ -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\ContainerAnalysis;
class ContaineranalysisFile extends \Google\Model
{
/**
* @var string[]
*/
public $digest;
/**
* @var string
*/
public $name;
/**
* @param string[] $digest
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisFile::class, 'Google_Service_ContainerAnalysis_ContaineranalysisFile');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig extends \Google\Model
{
/**
* Whether or not approval is needed. If this is set on a build, it will
* become pending when created, and will need to be explicitly approved to
* start.
*
* @var bool
*/
public $approvalRequired;
/**
* Whether or not approval is needed. If this is set on a build, it will
* become pending when created, and will need to be explicitly approved to
* start.
*
* @param bool $approvalRequired
*/
public function setApprovalRequired($approvalRequired)
{
$this->approvalRequired = $approvalRequired;
}
/**
* @return bool
*/
public function getApprovalRequired()
{
return $this->approvalRequired;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig');
@@ -0,0 +1,158 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult extends \Google\Model
{
/**
* Default enum type. This should not be used.
*/
public const DECISION_DECISION_UNSPECIFIED = 'DECISION_UNSPECIFIED';
/**
* Build is approved.
*/
public const DECISION_APPROVED = 'APPROVED';
/**
* Build is rejected.
*/
public const DECISION_REJECTED = 'REJECTED';
/**
* Output only. The time when the approval decision was made.
*
* @var string
*/
public $approvalTime;
/**
* Output only. Email of the user that called the ApproveBuild API to approve
* or reject a build at the time that the API was called.
*
* @var string
*/
public $approverAccount;
/**
* Optional. An optional comment for this manual approval result.
*
* @var string
*/
public $comment;
/**
* Required. The decision of this manual approval.
*
* @var string
*/
public $decision;
/**
* Optional. An optional URL tied to this manual approval result. This field
* is essentially the same as comment, except that it will be rendered by the
* UI differently. An example use case is a link to an external job that
* approved this Build.
*
* @var string
*/
public $url;
/**
* Output only. The time when the approval decision was made.
*
* @param string $approvalTime
*/
public function setApprovalTime($approvalTime)
{
$this->approvalTime = $approvalTime;
}
/**
* @return string
*/
public function getApprovalTime()
{
return $this->approvalTime;
}
/**
* Output only. Email of the user that called the ApproveBuild API to approve
* or reject a build at the time that the API was called.
*
* @param string $approverAccount
*/
public function setApproverAccount($approverAccount)
{
$this->approverAccount = $approverAccount;
}
/**
* @return string
*/
public function getApproverAccount()
{
return $this->approverAccount;
}
/**
* Optional. An optional comment for this manual approval result.
*
* @param string $comment
*/
public function setComment($comment)
{
$this->comment = $comment;
}
/**
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* Required. The decision of this manual approval.
*
* Accepted values: DECISION_UNSPECIFIED, APPROVED, REJECTED
*
* @param self::DECISION_* $decision
*/
public function setDecision($decision)
{
$this->decision = $decision;
}
/**
* @return self::DECISION_*
*/
public function getDecision()
{
return $this->decision;
}
/**
* Optional. An optional URL tied to this manual approval result. This field
* is essentially the same as comment, except that it will be rendered by the
* UI differently. An example use case is a link to an external job that
* approved this Build.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult');
@@ -0,0 +1,207 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts extends \Google\Collection
{
protected $collection_key = 'pythonPackages';
protected $genericArtifactsType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact::class;
protected $genericArtifactsDataType = 'array';
protected $goModulesType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule::class;
protected $goModulesDataType = 'array';
/**
* A list of images to be pushed upon the successful completion of all build
* steps. The images will be pushed using the builder service account's
* credentials. The digests of the pushed images will be stored in the Build
* resource's results field. If any of the images fail to be pushed, the build
* is marked FAILURE.
*
* @var string[]
*/
public $images;
protected $mavenArtifactsType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact::class;
protected $mavenArtifactsDataType = 'array';
protected $npmPackagesType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage::class;
protected $npmPackagesDataType = 'array';
protected $objectsType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects::class;
protected $objectsDataType = '';
protected $ociType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci::class;
protected $ociDataType = 'array';
protected $pythonPackagesType = ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage::class;
protected $pythonPackagesDataType = 'array';
/**
* Optional. A list of generic artifacts to be uploaded to Artifact Registry
* upon successful completion of all build steps. If any artifacts fail to be
* pushed, the build is marked FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact[] $genericArtifacts
*/
public function setGenericArtifacts($genericArtifacts)
{
$this->genericArtifacts = $genericArtifacts;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact[]
*/
public function getGenericArtifacts()
{
return $this->genericArtifacts;
}
/**
* Optional. A list of Go modules to be uploaded to Artifact Registry upon
* successful completion of all build steps. If any objects fail to be pushed,
* the build is marked FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[] $goModules
*/
public function setGoModules($goModules)
{
$this->goModules = $goModules;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[]
*/
public function getGoModules()
{
return $this->goModules;
}
/**
* A list of images to be pushed upon the successful completion of all build
* steps. The images will be pushed using the builder service account's
* credentials. The digests of the pushed images will be stored in the Build
* resource's results field. If any of the images fail to be pushed, the build
* is marked FAILURE.
*
* @param string[] $images
*/
public function setImages($images)
{
$this->images = $images;
}
/**
* @return string[]
*/
public function getImages()
{
return $this->images;
}
/**
* A list of Maven artifacts to be uploaded to Artifact Registry upon
* successful completion of all build steps. Artifacts in the workspace
* matching specified paths globs will be uploaded to the specified Artifact
* Registry repository using the builder service account's credentials. If any
* artifacts fail to be pushed, the build is marked FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact[] $mavenArtifacts
*/
public function setMavenArtifacts($mavenArtifacts)
{
$this->mavenArtifacts = $mavenArtifacts;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact[]
*/
public function getMavenArtifacts()
{
return $this->mavenArtifacts;
}
/**
* A list of npm packages to be uploaded to Artifact Registry upon successful
* completion of all build steps. Npm packages in the specified paths will be
* uploaded to the specified Artifact Registry repository using the builder
* service account's credentials. If any packages fail to be pushed, the build
* is marked FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage[] $npmPackages
*/
public function setNpmPackages($npmPackages)
{
$this->npmPackages = $npmPackages;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage[]
*/
public function getNpmPackages()
{
return $this->npmPackages;
}
/**
* A list of objects to be uploaded to Cloud Storage upon successful
* completion of all build steps. Files in the workspace matching specified
* paths globs will be uploaded to the specified Cloud Storage location using
* the builder service account's credentials. The location and generation of
* the uploaded objects will be stored in the Build resource's results field.
* If any objects fail to be pushed, the build is marked FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects $objects
*/
public function setObjects(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects $objects)
{
$this->objects = $objects;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects
*/
public function getObjects()
{
return $this->objects;
}
/**
* Optional. A list of OCI images to be uploaded to Artifact Registry upon
* successful completion of all build steps. OCI images in the specified paths
* will be uploaded to the specified Artifact Registry repository using the
* builder service account's credentials. If any images fail to be pushed, the
* build is marked FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci[] $oci
*/
public function setOci($oci)
{
$this->oci = $oci;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci[]
*/
public function getOci()
{
return $this->oci;
}
/**
* A list of Python packages to be uploaded to Artifact Registry upon
* successful completion of all build steps. The build service account
* credentials will be used to perform the upload. If any objects fail to be
* pushed, the build is marked FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage[] $pythonPackages
*/
public function setPythonPackages($pythonPackages)
{
$this->pythonPackages = $pythonPackages;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage[]
*/
public function getPythonPackages()
{
return $this->pythonPackages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects extends \Google\Collection
{
protected $collection_key = 'paths';
/**
* Cloud Storage bucket and optional object path, in the form
* "gs://bucket/path/to/somewhere/". (see [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-
* naming#requirements)). Files in the workspace matching any path pattern
* will be uploaded to Cloud Storage with this location as a prefix.
*
* @var string
*/
public $location;
/**
* Path globs used to match files in the build's workspace.
*
* @var string[]
*/
public $paths;
protected $timingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $timingDataType = '';
/**
* Cloud Storage bucket and optional object path, in the form
* "gs://bucket/path/to/somewhere/". (see [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-
* naming#requirements)). Files in the workspace matching any path pattern
* will be uploaded to Cloud Storage with this location as a prefix.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Path globs used to match files in the build's workspace.
*
* @param string[] $paths
*/
public function setPaths($paths)
{
$this->paths = $paths;
}
/**
* @return string[]
*/
public function getPaths()
{
return $this->paths;
}
/**
* Output only. Stores timing information for pushing all artifact objects.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $timing
*/
public function setTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $timing)
{
$this->timing = $timing;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getTiming()
{
return $this->timing;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact extends \Google\Model
{
/**
* Required. Path to the generic artifact in the build's workspace to be
* uploaded to Artifact Registry.
*
* @var string
*/
public $folder;
/**
* Required. Registry path to upload the generic artifact to, in the form proj
* ects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/vers
* ions/$VERSION
*
* @var string
*/
public $registryPath;
/**
* Required. Path to the generic artifact in the build's workspace to be
* uploaded to Artifact Registry.
*
* @param string $folder
*/
public function setFolder($folder)
{
$this->folder = $folder;
}
/**
* @return string
*/
public function getFolder()
{
return $this->folder;
}
/**
* Required. Registry path to upload the generic artifact to, in the form proj
* ects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/vers
* ions/$VERSION
*
* @param string $registryPath
*/
public function setRegistryPath($registryPath)
{
$this->registryPath = $registryPath;
}
/**
* @return string
*/
public function getRegistryPath()
{
return $this->registryPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact');
@@ -0,0 +1,176 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule extends \Google\Model
{
/**
* Optional. The Go module's "module path". e.g. example.com/foo/v2
*
* @var string
*/
public $modulePath;
/**
* Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1
* Pre-release identifiers can also be added by appending a dash and dot
* separated ASCII alphanumeric characters and hyphens. e.g.
* v0.2.3-alpha.x.12m.5
*
* @var string
*/
public $moduleVersion;
/**
* Optional. Location of the Artifact Registry repository. i.e. us-east1
* Defaults to the builds location.
*
* @var string
*/
public $repositoryLocation;
/**
* Optional. Artifact Registry repository name. Specified Go modules will be
* zipped and uploaded to Artifact Registry with this location as a prefix.
* e.g. my-go-repo
*
* @var string
*/
public $repositoryName;
/**
* Optional. Project ID of the Artifact Registry repository. Defaults to the
* build project.
*
* @var string
*/
public $repositoryProjectId;
/**
* Optional. Source path of the go.mod file in the build's workspace. If not
* specified, this will default to the current directory. e.g.
* ~/code/go/mypackage
*
* @var string
*/
public $sourcePath;
/**
* Optional. The Go module's "module path". e.g. example.com/foo/v2
*
* @param string $modulePath
*/
public function setModulePath($modulePath)
{
$this->modulePath = $modulePath;
}
/**
* @return string
*/
public function getModulePath()
{
return $this->modulePath;
}
/**
* Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1
* Pre-release identifiers can also be added by appending a dash and dot
* separated ASCII alphanumeric characters and hyphens. e.g.
* v0.2.3-alpha.x.12m.5
*
* @param string $moduleVersion
*/
public function setModuleVersion($moduleVersion)
{
$this->moduleVersion = $moduleVersion;
}
/**
* @return string
*/
public function getModuleVersion()
{
return $this->moduleVersion;
}
/**
* Optional. Location of the Artifact Registry repository. i.e. us-east1
* Defaults to the builds location.
*
* @param string $repositoryLocation
*/
public function setRepositoryLocation($repositoryLocation)
{
$this->repositoryLocation = $repositoryLocation;
}
/**
* @return string
*/
public function getRepositoryLocation()
{
return $this->repositoryLocation;
}
/**
* Optional. Artifact Registry repository name. Specified Go modules will be
* zipped and uploaded to Artifact Registry with this location as a prefix.
* e.g. my-go-repo
*
* @param string $repositoryName
*/
public function setRepositoryName($repositoryName)
{
$this->repositoryName = $repositoryName;
}
/**
* @return string
*/
public function getRepositoryName()
{
return $this->repositoryName;
}
/**
* Optional. Project ID of the Artifact Registry repository. Defaults to the
* build project.
*
* @param string $repositoryProjectId
*/
public function setRepositoryProjectId($repositoryProjectId)
{
$this->repositoryProjectId = $repositoryProjectId;
}
/**
* @return string
*/
public function getRepositoryProjectId()
{
return $this->repositoryProjectId;
}
/**
* Optional. Source path of the go.mod file in the build's workspace. If not
* specified, this will default to the current directory. e.g.
* ~/code/go/mypackage
*
* @param string $sourcePath
*/
public function setSourcePath($sourcePath)
{
$this->sourcePath = $sourcePath;
}
/**
* @return string
*/
public function getSourcePath()
{
return $this->sourcePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule');
@@ -0,0 +1,180 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact extends \Google\Model
{
/**
* Maven `artifactId` value used when uploading the artifact to Artifact
* Registry.
*
* @var string
*/
public $artifactId;
/**
* Optional. Path to a folder containing the files to upload to Artifact
* Registry. This can be either an absolute path, e.g. `/workspace/my-
* app/target/`, or a relative path from /workspace, e.g. `my-app/target/`.
* This field is mutually exclusive with the `path` field.
*
* @var string
*/
public $deployFolder;
/**
* Maven `groupId` value used when uploading the artifact to Artifact
* Registry.
*
* @var string
*/
public $groupId;
/**
* Optional. Path to an artifact in the build's workspace to be uploaded to
* Artifact Registry. This can be either an absolute path, e.g. /workspace/my-
* app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g.
* my-app/target/my-app-1.0.SNAPSHOT.jar.
*
* @var string
*/
public $path;
/**
* Artifact Registry repository, in the form "https://$REGION-
* maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by
* path will be uploaded to Artifact Registry with this location as a prefix.
*
* @var string
*/
public $repository;
/**
* Maven `version` value used when uploading the artifact to Artifact
* Registry.
*
* @var string
*/
public $version;
/**
* Maven `artifactId` value used when uploading the artifact to Artifact
* Registry.
*
* @param string $artifactId
*/
public function setArtifactId($artifactId)
{
$this->artifactId = $artifactId;
}
/**
* @return string
*/
public function getArtifactId()
{
return $this->artifactId;
}
/**
* Optional. Path to a folder containing the files to upload to Artifact
* Registry. This can be either an absolute path, e.g. `/workspace/my-
* app/target/`, or a relative path from /workspace, e.g. `my-app/target/`.
* This field is mutually exclusive with the `path` field.
*
* @param string $deployFolder
*/
public function setDeployFolder($deployFolder)
{
$this->deployFolder = $deployFolder;
}
/**
* @return string
*/
public function getDeployFolder()
{
return $this->deployFolder;
}
/**
* Maven `groupId` value used when uploading the artifact to Artifact
* Registry.
*
* @param string $groupId
*/
public function setGroupId($groupId)
{
$this->groupId = $groupId;
}
/**
* @return string
*/
public function getGroupId()
{
return $this->groupId;
}
/**
* Optional. Path to an artifact in the build's workspace to be uploaded to
* Artifact Registry. This can be either an absolute path, e.g. /workspace/my-
* app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g.
* my-app/target/my-app-1.0.SNAPSHOT.jar.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Artifact Registry repository, in the form "https://$REGION-
* maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by
* path will be uploaded to Artifact Registry with this location as a prefix.
*
* @param string $repository
*/
public function setRepository($repository)
{
$this->repository = $repository;
}
/**
* @return string
*/
public function getRepository()
{
return $this->repository;
}
/**
* Maven `version` value used when uploading the artifact to Artifact
* Registry.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage extends \Google\Model
{
/**
* Optional. Path to the package.json. e.g. workspace/path/to/package Only one
* of `archive` or `package_path` can be specified.
*
* @var string
*/
public $packagePath;
/**
* Artifact Registry repository, in the form "https://$REGION-
* npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by
* path will be zipped and uploaded to Artifact Registry with this location as
* a prefix.
*
* @var string
*/
public $repository;
/**
* Optional. Path to the package.json. e.g. workspace/path/to/package Only one
* of `archive` or `package_path` can be specified.
*
* @param string $packagePath
*/
public function setPackagePath($packagePath)
{
$this->packagePath = $packagePath;
}
/**
* @return string
*/
public function getPackagePath()
{
return $this->packagePath;
}
/**
* Artifact Registry repository, in the form "https://$REGION-
* npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by
* path will be zipped and uploaded to Artifact Registry with this location as
* a prefix.
*
* @param string $repository
*/
public function setRepository($repository)
{
$this->repository = $repository;
}
/**
* @return string
*/
public function getRepository()
{
return $this->repository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* Required. Path on the local file system where to find the container to
* upload. e.g. /workspace/my-image.tar
*
* @var string
*/
public $file;
/**
* Required. Registry path to upload the container to. e.g. us-
* east1-docker.pkg.dev/my-project/my-repo/my-image
*
* @var string
*/
public $registryPath;
/**
* Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
*
* @var string[]
*/
public $tags;
/**
* Required. Path on the local file system where to find the container to
* upload. e.g. /workspace/my-image.tar
*
* @param string $file
*/
public function setFile($file)
{
$this->file = $file;
}
/**
* @return string
*/
public function getFile()
{
return $this->file;
}
/**
* Required. Registry path to upload the container to. e.g. us-
* east1-docker.pkg.dev/my-project/my-repo/my-image
*
* @param string $registryPath
*/
public function setRegistryPath($registryPath)
{
$this->registryPath = $registryPath;
}
/**
* @return string
*/
public function getRegistryPath()
{
return $this->registryPath;
}
/**
* Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage extends \Google\Collection
{
protected $collection_key = 'paths';
/**
* Path globs used to match files in the build's workspace. For Python/ Twine,
* this is usually `dist`, and sometimes additionally an `.asc` file.
*
* @var string[]
*/
public $paths;
/**
* Artifact Registry repository, in the form "https://$REGION-
* python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any
* path pattern will be uploaded to Artifact Registry with this location as a
* prefix.
*
* @var string
*/
public $repository;
/**
* Path globs used to match files in the build's workspace. For Python/ Twine,
* this is usually `dist`, and sometimes additionally an `.asc` file.
*
* @param string[] $paths
*/
public function setPaths($paths)
{
$this->paths = $paths;
}
/**
* @return string[]
*/
public function getPaths()
{
return $this->paths;
}
/**
* Artifact Registry repository, in the form "https://$REGION-
* python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any
* path pattern will be uploaded to Artifact Registry with this location as a
* prefix.
*
* @param string $repository
*/
public function setRepository($repository)
{
$this->repository = $repository;
}
/**
* @return string
*/
public function getRepository()
{
return $this->repository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage');
@@ -0,0 +1,747 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1Build extends \Google\Collection
{
/**
* Status of the build is unknown.
*/
public const STATUS_STATUS_UNKNOWN = 'STATUS_UNKNOWN';
/**
* Build has been created and is pending execution and queuing. It has not
* been queued.
*/
public const STATUS_PENDING = 'PENDING';
/**
* Build or step is queued; work has not yet begun.
*/
public const STATUS_QUEUED = 'QUEUED';
/**
* Build or step is being executed.
*/
public const STATUS_WORKING = 'WORKING';
/**
* Build or step finished successfully.
*/
public const STATUS_SUCCESS = 'SUCCESS';
/**
* Build or step failed to complete successfully.
*/
public const STATUS_FAILURE = 'FAILURE';
/**
* Build or step failed due to an internal cause.
*/
public const STATUS_INTERNAL_ERROR = 'INTERNAL_ERROR';
/**
* Build or step took longer than was allowed.
*/
public const STATUS_TIMEOUT = 'TIMEOUT';
/**
* Build or step was canceled by a user.
*/
public const STATUS_CANCELLED = 'CANCELLED';
/**
* Build was enqueued for longer than the value of `queue_ttl`.
*/
public const STATUS_EXPIRED = 'EXPIRED';
protected $collection_key = 'warnings';
protected $approvalType = ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval::class;
protected $approvalDataType = '';
protected $artifactsType = ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts::class;
protected $artifactsDataType = '';
protected $availableSecretsType = ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets::class;
protected $availableSecretsDataType = '';
/**
* Output only. The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
* @var string
*/
public $buildTriggerId;
/**
* Output only. Time at which the request to create the build was received.
*
* @var string
*/
public $createTime;
protected $dependenciesType = ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency::class;
protected $dependenciesDataType = 'array';
protected $failureInfoType = ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo::class;
protected $failureInfoDataType = '';
/**
* Output only. Time at which execution of the build was finished. The
* difference between finish_time and start_time is the duration of the
* build's execution.
*
* @var string
*/
public $finishTime;
protected $gitConfigType = ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig::class;
protected $gitConfigDataType = '';
/**
* Output only. Unique identifier of the build.
*
* @var string
*/
public $id;
/**
* A list of images to be pushed upon the successful completion of all build
* steps. The images are pushed using the builder service account's
* credentials. The digests of the pushed images will be stored in the `Build`
* resource's results field. If any of the images fail to be pushed, the build
* status is marked `FAILURE`.
*
* @var string[]
*/
public $images;
/**
* Output only. URL to logs for this build in Google Cloud Console.
*
* @var string
*/
public $logUrl;
/**
* Cloud Storage bucket where logs should be written (see [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-
* naming#requirements)). Logs file names will be of the format
* `${logs_bucket}/log-${build_id}.txt`.
*
* @var string
*/
public $logsBucket;
/**
* Output only. The 'Build' name with format:
* `projects/{project}/locations/{location}/builds/{build}`, where {build} is
* a unique identifier generated by the service.
*
* @var string
*/
public $name;
protected $optionsType = ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions::class;
protected $optionsDataType = '';
/**
* Output only. ID of the project.
*
* @var string
*/
public $projectId;
/**
* TTL in queue for this build. If provided and the build is enqueued longer
* than this value, the build will expire and the build status will be
* `EXPIRED`. The TTL starts ticking from create_time.
*
* @var string
*/
public $queueTtl;
protected $resultsType = ContaineranalysisGoogleDevtoolsCloudbuildV1Results::class;
protected $resultsDataType = '';
protected $secretsType = ContaineranalysisGoogleDevtoolsCloudbuildV1Secret::class;
protected $secretsDataType = 'array';
/**
* IAM service account whose credentials will be used at build runtime. Must
* be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT
* can be email address or uniqueId of the service account.
*
* @var string
*/
public $serviceAccount;
protected $sourceType = ContaineranalysisGoogleDevtoolsCloudbuildV1Source::class;
protected $sourceDataType = '';
protected $sourceProvenanceType = ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance::class;
protected $sourceProvenanceDataType = '';
/**
* Output only. Time at which execution of the build was started.
*
* @var string
*/
public $startTime;
/**
* Output only. Status of the build.
*
* @var string
*/
public $status;
/**
* Output only. Customer-readable message about the current status.
*
* @var string
*/
public $statusDetail;
protected $stepsType = ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep::class;
protected $stepsDataType = 'array';
/**
* Substitutions data for `Build` resource.
*
* @var string[]
*/
public $substitutions;
/**
* Tags for annotation of a `Build`. These are not docker tags.
*
* @var string[]
*/
public $tags;
/**
* Amount of time that this build should be allowed to run, to second
* granularity. If this amount of time elapses, work on the build will cease
* and the build status will be `TIMEOUT`. `timeout` starts ticking from
* `startTime`. Default time is 60 minutes.
*
* @var string
*/
public $timeout;
protected $timingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $timingDataType = 'map';
protected $warningsType = ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning::class;
protected $warningsDataType = 'array';
/**
* Output only. Describes this build's approval configuration, status, and
* result.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval $approval
*/
public function setApproval(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval $approval)
{
$this->approval = $approval;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval
*/
public function getApproval()
{
return $this->approval;
}
/**
* Artifacts produced by the build that should be uploaded upon successful
* completion of all build steps.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts $artifacts
*/
public function setArtifacts(ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts $artifacts)
{
$this->artifacts = $artifacts;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts
*/
public function getArtifacts()
{
return $this->artifacts;
}
/**
* Secrets and secret environment variables.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets $availableSecrets
*/
public function setAvailableSecrets(ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets $availableSecrets)
{
$this->availableSecrets = $availableSecrets;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets
*/
public function getAvailableSecrets()
{
return $this->availableSecrets;
}
/**
* Output only. The ID of the `BuildTrigger` that triggered this build, if it
* was triggered automatically.
*
* @param string $buildTriggerId
*/
public function setBuildTriggerId($buildTriggerId)
{
$this->buildTriggerId = $buildTriggerId;
}
/**
* @return string
*/
public function getBuildTriggerId()
{
return $this->buildTriggerId;
}
/**
* Output only. Time at which the request to create the build was received.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Dependencies that the Cloud Build worker will fetch before
* executing user steps.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency[] $dependencies
*/
public function setDependencies($dependencies)
{
$this->dependencies = $dependencies;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency[]
*/
public function getDependencies()
{
return $this->dependencies;
}
/**
* Output only. Contains information about the build when status=FAILURE.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo $failureInfo
*/
public function setFailureInfo(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo $failureInfo)
{
$this->failureInfo = $failureInfo;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo
*/
public function getFailureInfo()
{
return $this->failureInfo;
}
/**
* Output only. Time at which execution of the build was finished. The
* difference between finish_time and start_time is the duration of the
* build's execution.
*
* @param string $finishTime
*/
public function setFinishTime($finishTime)
{
$this->finishTime = $finishTime;
}
/**
* @return string
*/
public function getFinishTime()
{
return $this->finishTime;
}
/**
* Optional. Configuration for git operations.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig $gitConfig
*/
public function setGitConfig(ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig $gitConfig)
{
$this->gitConfig = $gitConfig;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig
*/
public function getGitConfig()
{
return $this->gitConfig;
}
/**
* Output only. Unique identifier of the build.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of images to be pushed upon the successful completion of all build
* steps. The images are pushed using the builder service account's
* credentials. The digests of the pushed images will be stored in the `Build`
* resource's results field. If any of the images fail to be pushed, the build
* status is marked `FAILURE`.
*
* @param string[] $images
*/
public function setImages($images)
{
$this->images = $images;
}
/**
* @return string[]
*/
public function getImages()
{
return $this->images;
}
/**
* Output only. URL to logs for this build in Google Cloud Console.
*
* @param string $logUrl
*/
public function setLogUrl($logUrl)
{
$this->logUrl = $logUrl;
}
/**
* @return string
*/
public function getLogUrl()
{
return $this->logUrl;
}
/**
* Cloud Storage bucket where logs should be written (see [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-
* naming#requirements)). Logs file names will be of the format
* `${logs_bucket}/log-${build_id}.txt`.
*
* @param string $logsBucket
*/
public function setLogsBucket($logsBucket)
{
$this->logsBucket = $logsBucket;
}
/**
* @return string
*/
public function getLogsBucket()
{
return $this->logsBucket;
}
/**
* Output only. The 'Build' name with format:
* `projects/{project}/locations/{location}/builds/{build}`, where {build} is
* a unique identifier generated by the service.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Special options for this build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions $options
*/
public function setOptions(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions $options)
{
$this->options = $options;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions
*/
public function getOptions()
{
return $this->options;
}
/**
* Output only. ID of the project.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* TTL in queue for this build. If provided and the build is enqueued longer
* than this value, the build will expire and the build status will be
* `EXPIRED`. The TTL starts ticking from create_time.
*
* @param string $queueTtl
*/
public function setQueueTtl($queueTtl)
{
$this->queueTtl = $queueTtl;
}
/**
* @return string
*/
public function getQueueTtl()
{
return $this->queueTtl;
}
/**
* Output only. Results of the build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Results $results
*/
public function setResults(ContaineranalysisGoogleDevtoolsCloudbuildV1Results $results)
{
$this->results = $results;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Results
*/
public function getResults()
{
return $this->results;
}
/**
* Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager
* is the recommended technique for managing sensitive data with Cloud Build.
* Use `available_secrets` to configure builds to access secrets from Secret
* Manager. For instructions, see: https://cloud.google.com/cloud-
* build/docs/securing-builds/use-secrets
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Secret[] $secrets
*/
public function setSecrets($secrets)
{
$this->secrets = $secrets;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Secret[]
*/
public function getSecrets()
{
return $this->secrets;
}
/**
* IAM service account whose credentials will be used at build runtime. Must
* be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT
* can be email address or uniqueId of the service account.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Optional. The location of the source files to build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Source $source
*/
public function setSource(ContaineranalysisGoogleDevtoolsCloudbuildV1Source $source)
{
$this->source = $source;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Source
*/
public function getSource()
{
return $this->source;
}
/**
* Output only. A permanent fixed identifier for source.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance $sourceProvenance
*/
public function setSourceProvenance(ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance $sourceProvenance)
{
$this->sourceProvenance = $sourceProvenance;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance
*/
public function getSourceProvenance()
{
return $this->sourceProvenance;
}
/**
* Output only. Time at which execution of the build was started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. Status of the build.
*
* Accepted values: STATUS_UNKNOWN, PENDING, QUEUED, WORKING, SUCCESS,
* FAILURE, INTERNAL_ERROR, TIMEOUT, CANCELLED, EXPIRED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* Output only. Customer-readable message about the current status.
*
* @param string $statusDetail
*/
public function setStatusDetail($statusDetail)
{
$this->statusDetail = $statusDetail;
}
/**
* @return string
*/
public function getStatusDetail()
{
return $this->statusDetail;
}
/**
* Required. The operations to be performed on the workspace.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep[] $steps
*/
public function setSteps($steps)
{
$this->steps = $steps;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep[]
*/
public function getSteps()
{
return $this->steps;
}
/**
* Substitutions data for `Build` resource.
*
* @param string[] $substitutions
*/
public function setSubstitutions($substitutions)
{
$this->substitutions = $substitutions;
}
/**
* @return string[]
*/
public function getSubstitutions()
{
return $this->substitutions;
}
/**
* Tags for annotation of a `Build`. These are not docker tags.
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* Amount of time that this build should be allowed to run, to second
* granularity. If this amount of time elapses, work on the build will cease
* and the build status will be `TIMEOUT`. `timeout` starts ticking from
* `startTime`. Default time is 60 minutes.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Output only. Stores timing information for phases of the build. Valid keys
* are: * BUILD: time to execute all build steps. * PUSH: time to push all
* artifacts including docker images and non docker artifacts. * FETCHSOURCE:
* time to fetch source. * SETUPBUILD: time to set up build. If the build does
* not specify source or images, these keys will not be included.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan[] $timing
*/
public function setTiming($timing)
{
$this->timing = $timing;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan[]
*/
public function getTiming()
{
return $this->timing;
}
/**
* Output only. Non-fatal problems encountered during the execution of the
* build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Build::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Build');
@@ -0,0 +1,106 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval extends \Google\Model
{
/**
* Default enum type. This should not be used.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Build approval is pending.
*/
public const STATE_PENDING = 'PENDING';
/**
* Build approval has been approved.
*/
public const STATE_APPROVED = 'APPROVED';
/**
* Build approval has been rejected.
*/
public const STATE_REJECTED = 'REJECTED';
/**
* Build was cancelled while it was still pending approval.
*/
public const STATE_CANCELLED = 'CANCELLED';
protected $configType = ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig::class;
protected $configDataType = '';
protected $resultType = ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult::class;
protected $resultDataType = '';
/**
* Output only. The state of this build's approval.
*
* @var string
*/
public $state;
/**
* Output only. Configuration for manual approval of this build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig $config
*/
public function setConfig(ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig $config)
{
$this->config = $config;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* Output only. Result of manual approval for this Build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult $result
*/
public function setResult(ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult $result)
{
$this->result = $result;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult
*/
public function getResult()
{
return $this->result;
}
/**
* Output only. The state of this build's approval.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, APPROVED, REJECTED, CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval');
@@ -0,0 +1,102 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo extends \Google\Model
{
/**
* Type unspecified
*/
public const TYPE_FAILURE_TYPE_UNSPECIFIED = 'FAILURE_TYPE_UNSPECIFIED';
/**
* Unable to push the image to the repository.
*/
public const TYPE_PUSH_FAILED = 'PUSH_FAILED';
/**
* Final image not found.
*/
public const TYPE_PUSH_IMAGE_NOT_FOUND = 'PUSH_IMAGE_NOT_FOUND';
/**
* Unauthorized push of the final image.
*/
public const TYPE_PUSH_NOT_AUTHORIZED = 'PUSH_NOT_AUTHORIZED';
/**
* Backend logging failures. Should retry.
*/
public const TYPE_LOGGING_FAILURE = 'LOGGING_FAILURE';
/**
* A build step has failed.
*/
public const TYPE_USER_BUILD_STEP = 'USER_BUILD_STEP';
/**
* The source fetching has failed.
*/
public const TYPE_FETCH_SOURCE_FAILED = 'FETCH_SOURCE_FAILED';
/**
* Explains the failure issue in more detail using hard-coded text.
*
* @var string
*/
public $detail;
/**
* The name of the failure.
*
* @var string
*/
public $type;
/**
* Explains the failure issue in more detail using hard-coded text.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* The name of the failure.
*
* Accepted values: FAILURE_TYPE_UNSPECIFIED, PUSH_FAILED,
* PUSH_IMAGE_NOT_FOUND, PUSH_NOT_AUTHORIZED, LOGGING_FAILURE,
* USER_BUILD_STEP, FETCH_SOURCE_FAILED
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo');
@@ -0,0 +1,559 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions extends \Google\Collection
{
/**
* Unspecified.
*/
public const DEFAULT_LOGS_BUCKET_BEHAVIOR_DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 'DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED';
/**
* Bucket is located in user-owned project in the same region as the build.
* The builder service account must have access to create and write to Cloud
* Storage buckets in the build project.
*/
public const DEFAULT_LOGS_BUCKET_BEHAVIOR_REGIONAL_USER_OWNED_BUCKET = 'REGIONAL_USER_OWNED_BUCKET';
/**
* Bucket is located in a Google-owned project and is not regionalized.
*/
public const DEFAULT_LOGS_BUCKET_BEHAVIOR_LEGACY_BUCKET = 'LEGACY_BUCKET';
/**
* Service may automatically determine build log streaming behavior.
*/
public const LOG_STREAMING_OPTION_STREAM_DEFAULT = 'STREAM_DEFAULT';
/**
* Build logs should be streamed to Cloud Storage.
*/
public const LOG_STREAMING_OPTION_STREAM_ON = 'STREAM_ON';
/**
* Build logs should not be streamed to Cloud Storage; they will be written
* when the build is completed.
*/
public const LOG_STREAMING_OPTION_STREAM_OFF = 'STREAM_OFF';
/**
* The service determines the logging mode. The default is `LEGACY`. Do not
* rely on the default logging behavior as it may change in the future.
*/
public const LOGGING_LOGGING_UNSPECIFIED = 'LOGGING_UNSPECIFIED';
/**
* Build logs are stored in Cloud Logging and Cloud Storage.
*/
public const LOGGING_LEGACY = 'LEGACY';
/**
* Build logs are stored in Cloud Storage.
*/
public const LOGGING_GCS_ONLY = 'GCS_ONLY';
/**
* This option is the same as CLOUD_LOGGING_ONLY.
*
* @deprecated
*/
public const LOGGING_STACKDRIVER_ONLY = 'STACKDRIVER_ONLY';
/**
* Build logs are stored in Cloud Logging. Selecting this option will not
* allow [logs
* streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log).
*/
public const LOGGING_CLOUD_LOGGING_ONLY = 'CLOUD_LOGGING_ONLY';
/**
* Turn off all logging. No build logs will be captured.
*/
public const LOGGING_NONE = 'NONE';
/**
* Standard machine type.
*/
public const MACHINE_TYPE_UNSPECIFIED = 'UNSPECIFIED';
/**
* Highcpu machine with 8 CPUs.
*
* @deprecated
*/
public const MACHINE_TYPE_N1_HIGHCPU_8 = 'N1_HIGHCPU_8';
/**
* Highcpu machine with 32 CPUs.
*
* @deprecated
*/
public const MACHINE_TYPE_N1_HIGHCPU_32 = 'N1_HIGHCPU_32';
/**
* Highcpu e2 machine with 8 CPUs.
*/
public const MACHINE_TYPE_E2_HIGHCPU_8 = 'E2_HIGHCPU_8';
/**
* Highcpu e2 machine with 32 CPUs.
*/
public const MACHINE_TYPE_E2_HIGHCPU_32 = 'E2_HIGHCPU_32';
/**
* E2 machine with 1 CPU.
*/
public const MACHINE_TYPE_E2_MEDIUM = 'E2_MEDIUM';
/**
* Not a verifiable build (the default).
*/
public const REQUESTED_VERIFY_OPTION_NOT_VERIFIED = 'NOT_VERIFIED';
/**
* Build must be verified.
*/
public const REQUESTED_VERIFY_OPTION_VERIFIED = 'VERIFIED';
/**
* Fails the build if error in substitutions checks, like missing a
* substitution in the template or in the map.
*/
public const SUBSTITUTION_OPTION_MUST_MATCH = 'MUST_MATCH';
/**
* Do not fail the build if error in substitutions checks.
*/
public const SUBSTITUTION_OPTION_ALLOW_LOOSE = 'ALLOW_LOOSE';
protected $collection_key = 'volumes';
/**
* Option to include built-in and custom substitutions as env variables for
* all build steps.
*
* @var bool
*/
public $automapSubstitutions;
/**
* Optional. Option to specify how default logs buckets are setup.
*
* @var string
*/
public $defaultLogsBucketBehavior;
/**
* Requested disk size for the VM that runs the build. Note that this is *NOT*
* "disk free"; some of the space will be used by the operating system and
* build utilities. Also note that this is the minimum disk size that will be
* allocated for the build -- the build may run with a larger disk than
* requested. At present, the maximum disk size is 4000GB; builds that request
* more than the maximum are rejected with an error.
*
* @var string
*/
public $diskSizeGb;
/**
* Option to specify whether or not to apply bash style string operations to
* the substitutions. NOTE: this is always enabled for triggered builds and
* cannot be overridden in the build configuration file.
*
* @var bool
*/
public $dynamicSubstitutions;
/**
* Optional. Option to specify whether structured logging is enabled. If true,
* JSON-formatted logs are parsed as structured logs.
*
* @var bool
*/
public $enableStructuredLogging;
/**
* A list of global environment variable definitions that will exist for all
* build steps in this build. If a variable is defined in both globally and in
* a build step, the variable will use the build step value. The elements are
* of the form "KEY=VALUE" for the environment variable "KEY" being given the
* value "VALUE".
*
* @var string[]
*/
public $env;
/**
* Option to define build log streaming behavior to Cloud Storage.
*
* @var string
*/
public $logStreamingOption;
/**
* Option to specify the logging mode, which determines if and where build
* logs are stored.
*
* @var string
*/
public $logging;
/**
* Compute Engine machine type on which to run the build.
*
* @var string
*/
public $machineType;
protected $poolType = ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption::class;
protected $poolDataType = '';
/**
* Optional. Option to specify the Pub/Sub topic to receive build status
* updates.
*
* @var string
*/
public $pubsubTopic;
/**
* Requested verifiability options.
*
* @var string
*/
public $requestedVerifyOption;
/**
* A list of global environment variables, which are encrypted using a Cloud
* Key Management Service crypto key. These values must be specified in the
* build's `Secret`. These variables will be available to all build steps in
* this build.
*
* @var string[]
*/
public $secretEnv;
/**
* Requested hash for SourceProvenance.
*
* @var string[]
*/
public $sourceProvenanceHash;
/**
* Option to specify behavior when there is an error in the substitution
* checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and
* cannot be overridden in the build configuration file.
*
* @var string
*/
public $substitutionOption;
protected $volumesType = ContaineranalysisGoogleDevtoolsCloudbuildV1Volume::class;
protected $volumesDataType = 'array';
/**
* This field deprecated; please use `pool.name` instead.
*
* @deprecated
* @var string
*/
public $workerPool;
/**
* Option to include built-in and custom substitutions as env variables for
* all build steps.
*
* @param bool $automapSubstitutions
*/
public function setAutomapSubstitutions($automapSubstitutions)
{
$this->automapSubstitutions = $automapSubstitutions;
}
/**
* @return bool
*/
public function getAutomapSubstitutions()
{
return $this->automapSubstitutions;
}
/**
* Optional. Option to specify how default logs buckets are setup.
*
* Accepted values: DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED,
* REGIONAL_USER_OWNED_BUCKET, LEGACY_BUCKET
*
* @param self::DEFAULT_LOGS_BUCKET_BEHAVIOR_* $defaultLogsBucketBehavior
*/
public function setDefaultLogsBucketBehavior($defaultLogsBucketBehavior)
{
$this->defaultLogsBucketBehavior = $defaultLogsBucketBehavior;
}
/**
* @return self::DEFAULT_LOGS_BUCKET_BEHAVIOR_*
*/
public function getDefaultLogsBucketBehavior()
{
return $this->defaultLogsBucketBehavior;
}
/**
* Requested disk size for the VM that runs the build. Note that this is *NOT*
* "disk free"; some of the space will be used by the operating system and
* build utilities. Also note that this is the minimum disk size that will be
* allocated for the build -- the build may run with a larger disk than
* requested. At present, the maximum disk size is 4000GB; builds that request
* more than the maximum are rejected with an error.
*
* @param string $diskSizeGb
*/
public function setDiskSizeGb($diskSizeGb)
{
$this->diskSizeGb = $diskSizeGb;
}
/**
* @return string
*/
public function getDiskSizeGb()
{
return $this->diskSizeGb;
}
/**
* Option to specify whether or not to apply bash style string operations to
* the substitutions. NOTE: this is always enabled for triggered builds and
* cannot be overridden in the build configuration file.
*
* @param bool $dynamicSubstitutions
*/
public function setDynamicSubstitutions($dynamicSubstitutions)
{
$this->dynamicSubstitutions = $dynamicSubstitutions;
}
/**
* @return bool
*/
public function getDynamicSubstitutions()
{
return $this->dynamicSubstitutions;
}
/**
* Optional. Option to specify whether structured logging is enabled. If true,
* JSON-formatted logs are parsed as structured logs.
*
* @param bool $enableStructuredLogging
*/
public function setEnableStructuredLogging($enableStructuredLogging)
{
$this->enableStructuredLogging = $enableStructuredLogging;
}
/**
* @return bool
*/
public function getEnableStructuredLogging()
{
return $this->enableStructuredLogging;
}
/**
* A list of global environment variable definitions that will exist for all
* build steps in this build. If a variable is defined in both globally and in
* a build step, the variable will use the build step value. The elements are
* of the form "KEY=VALUE" for the environment variable "KEY" being given the
* value "VALUE".
*
* @param string[] $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string[]
*/
public function getEnv()
{
return $this->env;
}
/**
* Option to define build log streaming behavior to Cloud Storage.
*
* Accepted values: STREAM_DEFAULT, STREAM_ON, STREAM_OFF
*
* @param self::LOG_STREAMING_OPTION_* $logStreamingOption
*/
public function setLogStreamingOption($logStreamingOption)
{
$this->logStreamingOption = $logStreamingOption;
}
/**
* @return self::LOG_STREAMING_OPTION_*
*/
public function getLogStreamingOption()
{
return $this->logStreamingOption;
}
/**
* Option to specify the logging mode, which determines if and where build
* logs are stored.
*
* Accepted values: LOGGING_UNSPECIFIED, LEGACY, GCS_ONLY, STACKDRIVER_ONLY,
* CLOUD_LOGGING_ONLY, NONE
*
* @param self::LOGGING_* $logging
*/
public function setLogging($logging)
{
$this->logging = $logging;
}
/**
* @return self::LOGGING_*
*/
public function getLogging()
{
return $this->logging;
}
/**
* Compute Engine machine type on which to run the build.
*
* Accepted values: UNSPECIFIED, N1_HIGHCPU_8, N1_HIGHCPU_32, E2_HIGHCPU_8,
* E2_HIGHCPU_32, E2_MEDIUM
*
* @param self::MACHINE_TYPE_* $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return self::MACHINE_TYPE_*
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Optional. Specification for execution on a `WorkerPool`. See [running
* builds in a private pool](https://cloud.google.com/build/docs/private-
* pools/run-builds-in-private-pool) for more information.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption $pool
*/
public function setPool(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption $pool)
{
$this->pool = $pool;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption
*/
public function getPool()
{
return $this->pool;
}
/**
* Optional. Option to specify the Pub/Sub topic to receive build status
* updates.
*
* @param string $pubsubTopic
*/
public function setPubsubTopic($pubsubTopic)
{
$this->pubsubTopic = $pubsubTopic;
}
/**
* @return string
*/
public function getPubsubTopic()
{
return $this->pubsubTopic;
}
/**
* Requested verifiability options.
*
* Accepted values: NOT_VERIFIED, VERIFIED
*
* @param self::REQUESTED_VERIFY_OPTION_* $requestedVerifyOption
*/
public function setRequestedVerifyOption($requestedVerifyOption)
{
$this->requestedVerifyOption = $requestedVerifyOption;
}
/**
* @return self::REQUESTED_VERIFY_OPTION_*
*/
public function getRequestedVerifyOption()
{
return $this->requestedVerifyOption;
}
/**
* A list of global environment variables, which are encrypted using a Cloud
* Key Management Service crypto key. These values must be specified in the
* build's `Secret`. These variables will be available to all build steps in
* this build.
*
* @param string[] $secretEnv
*/
public function setSecretEnv($secretEnv)
{
$this->secretEnv = $secretEnv;
}
/**
* @return string[]
*/
public function getSecretEnv()
{
return $this->secretEnv;
}
/**
* Requested hash for SourceProvenance.
*
* @param string[] $sourceProvenanceHash
*/
public function setSourceProvenanceHash($sourceProvenanceHash)
{
$this->sourceProvenanceHash = $sourceProvenanceHash;
}
/**
* @return string[]
*/
public function getSourceProvenanceHash()
{
return $this->sourceProvenanceHash;
}
/**
* Option to specify behavior when there is an error in the substitution
* checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and
* cannot be overridden in the build configuration file.
*
* Accepted values: MUST_MATCH, ALLOW_LOOSE
*
* @param self::SUBSTITUTION_OPTION_* $substitutionOption
*/
public function setSubstitutionOption($substitutionOption)
{
$this->substitutionOption = $substitutionOption;
}
/**
* @return self::SUBSTITUTION_OPTION_*
*/
public function getSubstitutionOption()
{
return $this->substitutionOption;
}
/**
* Global list of volumes to mount for ALL build steps Each volume is created
* as an empty volume prior to starting the build process. Upon completion of
* the build, volumes and their contents are discarded. Global volume names
* and paths cannot conflict with the volumes defined a build step. Using a
* global volume in a build with only one step is not valid as it is
* indicative of a build request with an incorrect configuration.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* This field deprecated; please use `pool.name` instead.
*
* @deprecated
* @param string $workerPool
*/
public function setWorkerPool($workerPool)
{
$this->workerPool = $workerPool;
}
/**
* @deprecated
* @return string
*/
public function getWorkerPool()
{
return $this->workerPool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption extends \Google\Model
{
/**
* The `WorkerPool` resource to execute the build on. You must have
* `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format
* projects/{project}/locations/{location}/workerPools/{workerPoolId}
*
* @var string
*/
public $name;
/**
* The `WorkerPool` resource to execute the build on. You must have
* `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format
* projects/{project}/locations/{location}/workerPools/{workerPoolId}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig extends \Google\Model
{
/**
* @var string
*/
public $diskSizeGb;
/**
* @var float
*/
public $memoryGb;
/**
* @var float
*/
public $vcpuCount;
/**
* @param string
*/
public function setDiskSizeGb($diskSizeGb)
{
$this->diskSizeGb = $diskSizeGb;
}
/**
* @return string
*/
public function getDiskSizeGb()
{
return $this->diskSizeGb;
}
/**
* @param float
*/
public function setMemoryGb($memoryGb)
{
$this->memoryGb = $memoryGb;
}
/**
* @return float
*/
public function getMemoryGb()
{
return $this->memoryGb;
}
/**
* @param float
*/
public function setVcpuCount($vcpuCount)
{
$this->vcpuCount = $vcpuCount;
}
/**
* @return float
*/
public function getVcpuCount()
{
return $this->vcpuCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig');
@@ -0,0 +1,566 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep extends \Google\Collection
{
/**
* Status of the build is unknown.
*/
public const STATUS_STATUS_UNKNOWN = 'STATUS_UNKNOWN';
/**
* Build has been created and is pending execution and queuing. It has not
* been queued.
*/
public const STATUS_PENDING = 'PENDING';
/**
* Build or step is queued; work has not yet begun.
*/
public const STATUS_QUEUED = 'QUEUED';
/**
* Build or step is being executed.
*/
public const STATUS_WORKING = 'WORKING';
/**
* Build or step finished successfully.
*/
public const STATUS_SUCCESS = 'SUCCESS';
/**
* Build or step failed to complete successfully.
*/
public const STATUS_FAILURE = 'FAILURE';
/**
* Build or step failed due to an internal cause.
*/
public const STATUS_INTERNAL_ERROR = 'INTERNAL_ERROR';
/**
* Build or step took longer than was allowed.
*/
public const STATUS_TIMEOUT = 'TIMEOUT';
/**
* Build or step was canceled by a user.
*/
public const STATUS_CANCELLED = 'CANCELLED';
/**
* Build was enqueued for longer than the value of `queue_ttl`.
*/
public const STATUS_EXPIRED = 'EXPIRED';
protected $collection_key = 'waitFor';
/**
* Allow this build step to fail without failing the entire build if and only
* if the exit code is one of the specified codes. If allow_failure is also
* specified, this field will take precedence.
*
* @var int[]
*/
public $allowExitCodes;
/**
* Allow this build step to fail without failing the entire build. If false,
* the entire build will fail if this step fails. Otherwise, the build will
* succeed, but this step will still have a failure status. Error information
* will be reported in the failure_detail field.
*
* @var bool
*/
public $allowFailure;
/**
* A list of arguments that will be presented to the step when it is started.
* If the image used to run the step's container has an entrypoint, the `args`
* are used as arguments to that entrypoint. If the image does not define an
* entrypoint, the first element in args is used as the entrypoint, and the
* remainder will be used as arguments.
*
* @var string[]
*/
public $args;
/**
* Option to include built-in and custom substitutions as env variables for
* this build step. This option will override the global option in
* BuildOption.
*
* @var bool
*/
public $automapSubstitutions;
/**
* Working directory to use when running this step's container. If this value
* is a relative path, it is relative to the build's working directory. If
* this value is absolute, it may be outside the build's working directory, in
* which case the contents of the path may not be persisted across build step
* executions, unless a `volume` for that path is specified. If the build
* specifies a `RepoSource` with `dir` and a step with a `dir`, which
* specifies an absolute path, the `RepoSource` `dir` is ignored for the
* step's execution.
*
* @var string
*/
public $dir;
/**
* Entrypoint to be used instead of the build step image's default entrypoint.
* If unset, the image's default entrypoint is used.
*
* @var string
*/
public $entrypoint;
/**
* A list of environment variable definitions to be used when running a step.
* The elements are of the form "KEY=VALUE" for the environment variable "KEY"
* being given the value "VALUE".
*
* @var string[]
*/
public $env;
/**
* Output only. Return code from running the step.
*
* @var int
*/
public $exitCode;
/**
* Unique identifier for this build step, used in `wait_for` to reference this
* build step as a dependency.
*
* @var string
*/
public $id;
/**
* Required. The name of the container image that will run this particular
* build step. If the image is available in the host's Docker daemon's cache,
* it will be run directly. If not, the host will attempt to pull the image
* first, using the builder service account's credentials if necessary. The
* Docker daemon's cache will already have the latest versions of all of the
* officially supported build steps
* ([https://github.com/GoogleCloudPlatform/cloud-
* builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The
* Docker daemon will also have cached many of the layers for some popular
* images, like "ubuntu", "debian", but they will be refreshed at the time you
* attempt to use them. If you built an image in a previous build step, it
* will be stored in the host's Docker daemon's cache and is available to use
* as the name for a later build step.
*
* @var string
*/
public $name;
protected $pullTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $pullTimingDataType = '';
protected $resultsType = ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult::class;
protected $resultsDataType = 'array';
/**
* A shell script to be executed in the step. When script is provided, the
* user cannot specify the entrypoint or args.
*
* @var string
*/
public $script;
/**
* A list of environment variables which are encrypted using a Cloud Key
* Management Service crypto key. These values must be specified in the
* build's `Secret`.
*
* @var string[]
*/
public $secretEnv;
/**
* Output only. Status of the build step. At this time, build step status is
* only updated on build completion; step status is not updated in real-time
* as the build progresses.
*
* @var string
*/
public $status;
/**
* Time limit for executing this build step. If not defined, the step has no
* time limit and will be allowed to continue to run until either it completes
* or the build itself times out.
*
* @var string
*/
public $timeout;
protected $timingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $timingDataType = '';
protected $volumesType = ContaineranalysisGoogleDevtoolsCloudbuildV1Volume::class;
protected $volumesDataType = 'array';
/**
* The ID(s) of the step(s) that this build step depends on. This build step
* will not start until all the build steps in `wait_for` have completed
* successfully. If `wait_for` is empty, this build step will start when all
* previous build steps in the `Build.Steps` list have completed successfully.
*
* @var string[]
*/
public $waitFor;
/**
* Allow this build step to fail without failing the entire build if and only
* if the exit code is one of the specified codes. If allow_failure is also
* specified, this field will take precedence.
*
* @param int[] $allowExitCodes
*/
public function setAllowExitCodes($allowExitCodes)
{
$this->allowExitCodes = $allowExitCodes;
}
/**
* @return int[]
*/
public function getAllowExitCodes()
{
return $this->allowExitCodes;
}
/**
* Allow this build step to fail without failing the entire build. If false,
* the entire build will fail if this step fails. Otherwise, the build will
* succeed, but this step will still have a failure status. Error information
* will be reported in the failure_detail field.
*
* @param bool $allowFailure
*/
public function setAllowFailure($allowFailure)
{
$this->allowFailure = $allowFailure;
}
/**
* @return bool
*/
public function getAllowFailure()
{
return $this->allowFailure;
}
/**
* A list of arguments that will be presented to the step when it is started.
* If the image used to run the step's container has an entrypoint, the `args`
* are used as arguments to that entrypoint. If the image does not define an
* entrypoint, the first element in args is used as the entrypoint, and the
* remainder will be used as arguments.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Option to include built-in and custom substitutions as env variables for
* this build step. This option will override the global option in
* BuildOption.
*
* @param bool $automapSubstitutions
*/
public function setAutomapSubstitutions($automapSubstitutions)
{
$this->automapSubstitutions = $automapSubstitutions;
}
/**
* @return bool
*/
public function getAutomapSubstitutions()
{
return $this->automapSubstitutions;
}
/**
* Working directory to use when running this step's container. If this value
* is a relative path, it is relative to the build's working directory. If
* this value is absolute, it may be outside the build's working directory, in
* which case the contents of the path may not be persisted across build step
* executions, unless a `volume` for that path is specified. If the build
* specifies a `RepoSource` with `dir` and a step with a `dir`, which
* specifies an absolute path, the `RepoSource` `dir` is ignored for the
* step's execution.
*
* @param string $dir
*/
public function setDir($dir)
{
$this->dir = $dir;
}
/**
* @return string
*/
public function getDir()
{
return $this->dir;
}
/**
* Entrypoint to be used instead of the build step image's default entrypoint.
* If unset, the image's default entrypoint is used.
*
* @param string $entrypoint
*/
public function setEntrypoint($entrypoint)
{
$this->entrypoint = $entrypoint;
}
/**
* @return string
*/
public function getEntrypoint()
{
return $this->entrypoint;
}
/**
* A list of environment variable definitions to be used when running a step.
* The elements are of the form "KEY=VALUE" for the environment variable "KEY"
* being given the value "VALUE".
*
* @param string[] $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string[]
*/
public function getEnv()
{
return $this->env;
}
/**
* Output only. Return code from running the step.
*
* @param int $exitCode
*/
public function setExitCode($exitCode)
{
$this->exitCode = $exitCode;
}
/**
* @return int
*/
public function getExitCode()
{
return $this->exitCode;
}
/**
* Unique identifier for this build step, used in `wait_for` to reference this
* build step as a dependency.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Required. The name of the container image that will run this particular
* build step. If the image is available in the host's Docker daemon's cache,
* it will be run directly. If not, the host will attempt to pull the image
* first, using the builder service account's credentials if necessary. The
* Docker daemon's cache will already have the latest versions of all of the
* officially supported build steps
* ([https://github.com/GoogleCloudPlatform/cloud-
* builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The
* Docker daemon will also have cached many of the layers for some popular
* images, like "ubuntu", "debian", but they will be refreshed at the time you
* attempt to use them. If you built an image in a previous build step, it
* will be stored in the host's Docker daemon's cache and is available to use
* as the name for a later build step.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Stores timing information for pulling this build step's
* builder image only.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pullTiming
*/
public function setPullTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pullTiming)
{
$this->pullTiming = $pullTiming;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getPullTiming()
{
return $this->pullTiming;
}
/**
* Declaration of results for this build step.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult[] $results
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult[]
*/
public function getResults()
{
return $this->results;
}
/**
* A shell script to be executed in the step. When script is provided, the
* user cannot specify the entrypoint or args.
*
* @param string $script
*/
public function setScript($script)
{
$this->script = $script;
}
/**
* @return string
*/
public function getScript()
{
return $this->script;
}
/**
* A list of environment variables which are encrypted using a Cloud Key
* Management Service crypto key. These values must be specified in the
* build's `Secret`.
*
* @param string[] $secretEnv
*/
public function setSecretEnv($secretEnv)
{
$this->secretEnv = $secretEnv;
}
/**
* @return string[]
*/
public function getSecretEnv()
{
return $this->secretEnv;
}
/**
* Output only. Status of the build step. At this time, build step status is
* only updated on build completion; step status is not updated in real-time
* as the build progresses.
*
* Accepted values: STATUS_UNKNOWN, PENDING, QUEUED, WORKING, SUCCESS,
* FAILURE, INTERNAL_ERROR, TIMEOUT, CANCELLED, EXPIRED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* Time limit for executing this build step. If not defined, the step has no
* time limit and will be allowed to continue to run until either it completes
* or the build itself times out.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Output only. Stores timing information for executing this build step.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $timing
*/
public function setTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $timing)
{
$this->timing = $timing;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getTiming()
{
return $this->timing;
}
/**
* List of volumes to mount into the build step. Each volume is created as an
* empty volume prior to execution of the build step. Upon completion of the
* build, volumes and their contents are discarded. Using a named volume in
* only one step is not valid as it is indicative of a build request with an
* incorrect configuration.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* The ID(s) of the step(s) that this build step depends on. This build step
* will not start until all the build steps in `wait_for` have completed
* successfully. If `wait_for` is empty, this build step will start when all
* previous build steps in the `Build.Steps` list have completed successfully.
*
* @param string[] $waitFor
*/
public function setWaitFor($waitFor)
{
$this->waitFor = $waitFor;
}
/**
* @return string[]
*/
public function getWaitFor()
{
return $this->waitFor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults extends \Google\Model
{
/**
* Results for a build step.
*
* @var string[]
*/
public $results;
/**
* Results for a build step.
*
* @param string[] $results
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return string[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults');
@@ -0,0 +1,88 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning extends \Google\Model
{
/**
* Should not be used.
*/
public const PRIORITY_PRIORITY_UNSPECIFIED = 'PRIORITY_UNSPECIFIED';
/**
* e.g. deprecation warnings and alternative feature highlights.
*/
public const PRIORITY_INFO = 'INFO';
/**
* e.g. automated detection of possible issues with the build.
*/
public const PRIORITY_WARNING = 'WARNING';
/**
* e.g. alerts that a feature used in the build is pending removal
*/
public const PRIORITY_ALERT = 'ALERT';
/**
* The priority for this warning.
*
* @var string
*/
public $priority;
/**
* Explanation of the warning generated.
*
* @var string
*/
public $text;
/**
* The priority for this warning.
*
* Accepted values: PRIORITY_UNSPECIFIED, INFO, WARNING, ALERT
*
* @param self::PRIORITY_* $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return self::PRIORITY_*
*/
public function getPriority()
{
return $this->priority;
}
/**
* Explanation of the warning generated.
*
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning');
@@ -0,0 +1,152 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage extends \Google\Model
{
/**
* Default value.
*/
public const OCI_MEDIA_TYPE_OCI_MEDIA_TYPE_UNSPECIFIED = 'OCI_MEDIA_TYPE_UNSPECIFIED';
/**
* The artifact is an image manifest, which represents a single image with all
* its layers.
*/
public const OCI_MEDIA_TYPE_IMAGE_MANIFEST = 'IMAGE_MANIFEST';
/**
* The artifact is an image index, which can contain a list of image
* manifests.
*/
public const OCI_MEDIA_TYPE_IMAGE_INDEX = 'IMAGE_INDEX';
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @var string
*/
public $artifactRegistryPackage;
/**
* Docker Registry 2.0 digest.
*
* @var string
*/
public $digest;
/**
* Name used to push the container image to Google Container Registry, as
* presented to `docker push`.
*
* @var string
*/
public $name;
/**
* Output only. The OCI media type of the artifact. Non-OCI images, such as
* Docker images, will have an unspecified value.
*
* @var string
*/
public $ociMediaType;
protected $pushTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $pushTimingDataType = '';
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @param string $artifactRegistryPackage
*/
public function setArtifactRegistryPackage($artifactRegistryPackage)
{
$this->artifactRegistryPackage = $artifactRegistryPackage;
}
/**
* @return string
*/
public function getArtifactRegistryPackage()
{
return $this->artifactRegistryPackage;
}
/**
* Docker Registry 2.0 digest.
*
* @param string $digest
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string
*/
public function getDigest()
{
return $this->digest;
}
/**
* Name used to push the container image to Google Container Registry, as
* presented to `docker push`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The OCI media type of the artifact. Non-OCI images, such as
* Docker images, will have an unspecified value.
*
* Accepted values: OCI_MEDIA_TYPE_UNSPECIFIED, IMAGE_MANIFEST, IMAGE_INDEX
*
* @param self::OCI_MEDIA_TYPE_* $ociMediaType
*/
public function setOciMediaType($ociMediaType)
{
$this->ociMediaType = $ociMediaType;
}
/**
* @return self::OCI_MEDIA_TYPE_*
*/
public function getOciMediaType()
{
return $this->ociMediaType;
}
/**
* Output only. Stores timing information for pushing the specified image.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming
*/
public function setPushTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming)
{
$this->pushTiming = $pushTiming;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getPushTiming()
{
return $this->pushTiming;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository extends \Google\Model
{
/**
* Optional. Directory, relative to the source root, in which to run the
* build.
*
* @var string
*/
public $dir;
/**
* Required. Name of the Google Cloud Build repository, formatted as
* `projects/locations/connections/repositories`.
*
* @var string
*/
public $repository;
/**
* Required. The revision to fetch from the Git repository such as a branch, a
* tag, a commit SHA, or any Git ref.
*
* @var string
*/
public $revision;
/**
* Optional. Directory, relative to the source root, in which to run the
* build.
*
* @param string $dir
*/
public function setDir($dir)
{
$this->dir = $dir;
}
/**
* @return string
*/
public function getDir()
{
return $this->dir;
}
/**
* Required. Name of the Google Cloud Build repository, formatted as
* `projects/locations/connections/repositories`.
*
* @param string $repository
*/
public function setRepository($repository)
{
$this->repository = $repository;
}
/**
* @return string
*/
public function getRepository()
{
return $this->repository;
}
/**
* Required. The revision to fetch from the Git repository such as a branch, a
* tag, a commit SHA, or any Git ref.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository');
@@ -0,0 +1,86 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency extends \Google\Model
{
/**
* If set to true disable all dependency fetching (ignoring the default source
* as well).
*
* @var bool
*/
public $empty;
protected $genericArtifactType = ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency::class;
protected $genericArtifactDataType = '';
protected $gitSourceType = ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency::class;
protected $gitSourceDataType = '';
/**
* If set to true disable all dependency fetching (ignoring the default source
* as well).
*
* @param bool $empty
*/
public function setEmpty($empty)
{
$this->empty = $empty;
}
/**
* @return bool
*/
public function getEmpty()
{
return $this->empty;
}
/**
* Represents a generic artifact as a build dependency.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency $genericArtifact
*/
public function setGenericArtifact(ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency $genericArtifact)
{
$this->genericArtifact = $genericArtifact;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency
*/
public function getGenericArtifact()
{
return $this->genericArtifact;
}
/**
* Represents a git repository as a build dependency.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency $gitSource
*/
public function setGitSource(ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency $gitSource)
{
$this->gitSource = $gitSource;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency
*/
public function getGitSource()
{
return $this->gitSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency');
@@ -0,0 +1,72 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency extends \Google\Model
{
/**
* Required. Where the artifact files should be placed on the worker.
*
* @var string
*/
public $destPath;
/**
* Required. The location to download the artifact files from. Ex:
* projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
*
* @var string
*/
public $resource;
/**
* Required. Where the artifact files should be placed on the worker.
*
* @param string $destPath
*/
public function setDestPath($destPath)
{
$this->destPath = $destPath;
}
/**
* @return string
*/
public function getDestPath()
{
return $this->destPath;
}
/**
* Required. The location to download the artifact files from. Ex:
* projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
*
* @param string $resource
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency');
@@ -0,0 +1,134 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency extends \Google\Model
{
/**
* Optional. How much history should be fetched for the build (default 1, -1
* for all history).
*
* @var string
*/
public $depth;
/**
* Required. Where should the files be placed on the worker.
*
* @var string
*/
public $destPath;
/**
* Optional. True if submodules should be fetched too (default false).
*
* @var bool
*/
public $recurseSubmodules;
protected $repositoryType = ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository::class;
protected $repositoryDataType = '';
/**
* Required. The revision that we will fetch the repo at.
*
* @var string
*/
public $revision;
/**
* Optional. How much history should be fetched for the build (default 1, -1
* for all history).
*
* @param string $depth
*/
public function setDepth($depth)
{
$this->depth = $depth;
}
/**
* @return string
*/
public function getDepth()
{
return $this->depth;
}
/**
* Required. Where should the files be placed on the worker.
*
* @param string $destPath
*/
public function setDestPath($destPath)
{
$this->destPath = $destPath;
}
/**
* @return string
*/
public function getDestPath()
{
return $this->destPath;
}
/**
* Optional. True if submodules should be fetched too (default false).
*
* @param bool $recurseSubmodules
*/
public function setRecurseSubmodules($recurseSubmodules)
{
$this->recurseSubmodules = $recurseSubmodules;
}
/**
* @return bool
*/
public function getRecurseSubmodules()
{
return $this->recurseSubmodules;
}
/**
* Required. The kind of repo (url or dev connect).
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository $repository
*/
public function setRepository(ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository $repository)
{
$this->repository = $repository;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository
*/
public function getRepository()
{
return $this->repository;
}
/**
* Required. The revision that we will fetch the repo at.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency');
@@ -0,0 +1,72 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository extends \Google\Model
{
/**
* The Developer Connect Git repository link formatted as
* `projects/locations/connections/gitRepositoryLink`
*
* @var string
*/
public $developerConnect;
/**
* Location of the Git repository.
*
* @var string
*/
public $url;
/**
* The Developer Connect Git repository link formatted as
* `projects/locations/connections/gitRepositoryLink`
*
* @param string $developerConnect
*/
public function setDeveloperConnect($developerConnect)
{
$this->developerConnect = $developerConnect;
}
/**
* @return string
*/
public function getDeveloperConnect()
{
return $this->developerConnect;
}
/**
* Location of the Git repository.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig extends \Google\Model
{
/**
* Required. Directory, relative to the source root, in which to run the
* build.
*
* @var string
*/
public $dir;
/**
* Required. The Developer Connect Git repository link, formatted as
* `projects/locations/connections/gitRepositoryLink`.
*
* @var string
*/
public $gitRepositoryLink;
/**
* Required. The revision to fetch from the Git repository such as a branch, a
* tag, a commit SHA, or any Git ref.
*
* @var string
*/
public $revision;
/**
* Required. Directory, relative to the source root, in which to run the
* build.
*
* @param string $dir
*/
public function setDir($dir)
{
$this->dir = $dir;
}
/**
* @return string
*/
public function getDir()
{
return $this->dir;
}
/**
* Required. The Developer Connect Git repository link, formatted as
* `projects/locations/connections/gitRepositoryLink`.
*
* @param string $gitRepositoryLink
*/
public function setGitRepositoryLink($gitRepositoryLink)
{
$this->gitRepositoryLink = $gitRepositoryLink;
}
/**
* @return string
*/
public function getGitRepositoryLink()
{
return $this->gitRepositoryLink;
}
/**
* Required. The revision to fetch from the Git repository such as a branch, a
* tag, a commit SHA, or any Git ref.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes extends \Google\Collection
{
protected $collection_key = 'fileHash';
protected $fileHashType = ContaineranalysisGoogleDevtoolsCloudbuildV1Hash::class;
protected $fileHashDataType = 'array';
/**
* Collection of file hashes.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1Hash[] $fileHash
*/
public function setFileHash($fileHash)
{
$this->fileHash = $fileHash;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1Hash[]
*/
public function getFileHash()
{
return $this->fileHash;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation extends \Google\Model
{
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $generation;
/**
* @var string
*/
public $object;
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* @param string
*/
public function setObject($object)
{
$this->object = $object;
}
/**
* @return string
*/
public function getObject()
{
return $this->object;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig extends \Google\Model
{
protected $httpType = ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig::class;
protected $httpDataType = '';
/**
* Configuration for HTTP related git operations.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig $http
*/
public function setHttp(ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig $http)
{
$this->http = $http;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig
*/
public function getHttp()
{
return $this->http;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig');
@@ -0,0 +1,54 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig extends \Google\Model
{
/**
* SecretVersion resource of the HTTP proxy URL. The Service Account used in
* the build (either the default Service Account or user-specified Service
* Account) should have `secretmanager.versions.access` permissions on this
* secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.
*
* @var string
*/
public $proxySecretVersionName;
/**
* SecretVersion resource of the HTTP proxy URL. The Service Account used in
* the build (either the default Service Account or user-specified Service
* Account) should have `secretmanager.versions.access` permissions on this
* secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.
*
* @param string $proxySecretVersionName
*/
public function setProxySecretVersionName($proxySecretVersionName)
{
$this->proxySecretVersionName = $proxySecretVersionName;
}
/**
* @return string
*/
public function getProxySecretVersionName()
{
return $this->proxySecretVersionName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig');
@@ -0,0 +1,110 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource extends \Google\Model
{
/**
* Optional. Directory, relative to the source root, in which to run the
* build. This must be a relative path. If a step's `dir` is specified and is
* an absolute path, this value is ignored for that step's execution.
*
* @var string
*/
public $dir;
/**
* Optional. The revision to fetch from the Git repository such as a branch, a
* tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch
* the revision from the Git repository; therefore make sure that the string
* you provide for `revision` is parsable by the command. For information on
* string values accepted by `git fetch`, see https://git-
* scm.com/docs/gitrevisions#_specifying_revisions. For information on `git
* fetch`, see https://git-scm.com/docs/git-fetch.
*
* @var string
*/
public $revision;
/**
* Required. Location of the Git repo to build. This will be used as a `git
* remote`, see https://git-scm.com/docs/git-remote.
*
* @var string
*/
public $url;
/**
* Optional. Directory, relative to the source root, in which to run the
* build. This must be a relative path. If a step's `dir` is specified and is
* an absolute path, this value is ignored for that step's execution.
*
* @param string $dir
*/
public function setDir($dir)
{
$this->dir = $dir;
}
/**
* @return string
*/
public function getDir()
{
return $this->dir;
}
/**
* Optional. The revision to fetch from the Git repository such as a branch, a
* tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch
* the revision from the Git repository; therefore make sure that the string
* you provide for `revision` is parsable by the command. For information on
* string values accepted by `git fetch`, see https://git-
* scm.com/docs/gitrevisions#_specifying_revisions. For information on `git
* fetch`, see https://git-scm.com/docs/git-fetch.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
/**
* Required. Location of the Git repo to build. This will be used as a `git
* remote`, see https://git-scm.com/docs/git-remote.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource');
@@ -0,0 +1,96 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1Hash extends \Google\Model
{
/**
* No hash requested.
*/
public const TYPE_NONE = 'NONE';
/**
* Use a sha256 hash.
*/
public const TYPE_SHA256 = 'SHA256';
/**
* Use a md5 hash.
*/
public const TYPE_MD5 = 'MD5';
/**
* Dirhash of a Go module's source code which is then hex-encoded.
*/
public const TYPE_GO_MODULE_H1 = 'GO_MODULE_H1';
/**
* Use a sha512 hash.
*/
public const TYPE_SHA512 = 'SHA512';
/**
* Use a dirsum_sha256 hash.
*/
public const TYPE_DIRSUM_SHA256 = 'DIRSUM_SHA256';
/**
* The type of hash that was performed.
*
* @var string
*/
public $type;
/**
* The hash value.
*
* @var string
*/
public $value;
/**
* The type of hash that was performed.
*
* Accepted values: NONE, SHA256, MD5, GO_MODULE_H1, SHA512, DIRSUM_SHA256
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* The hash value.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Hash::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Hash');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret extends \Google\Model
{
/**
* Map of environment variable name to its encrypted value. Secret environment
* variables must be unique across all of a build's secrets, and must be used
* by at least one build step. Values can be at most 64 KB in size. There can
* be at most 100 secret values across all of a build's secrets.
*
* @var string[]
*/
public $envMap;
/**
* Resource name of Cloud KMS crypto key to decrypt the encrypted value. In
* format: projects/locations/keyRings/cryptoKeys
*
* @var string
*/
public $kmsKeyName;
/**
* Map of environment variable name to its encrypted value. Secret environment
* variables must be unique across all of a build's secrets, and must be used
* by at least one build step. Values can be at most 64 KB in size. There can
* be at most 100 secret values across all of a build's secrets.
*
* @param string[] $envMap
*/
public function setEnvMap($envMap)
{
$this->envMap = $envMap;
}
/**
* @return string[]
*/
public function getEnvMap()
{
return $this->envMap;
}
/**
* Resource name of Cloud KMS crypto key to decrypt the encrypted value. In
* format: projects/locations/keyRings/cryptoKeys
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret');
@@ -0,0 +1,220 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource extends \Google\Model
{
/**
* Regex matching branches to build. The syntax of the regular expressions
* accepted is the syntax accepted by RE2 and described at
* https://github.com/google/re2/wiki/Syntax
*
* @var string
*/
public $branchName;
/**
* Explicit commit SHA to build.
*
* @var string
*/
public $commitSha;
/**
* Optional. Directory, relative to the source root, in which to run the
* build. This must be a relative path. If a step's `dir` is specified and is
* an absolute path, this value is ignored for that step's execution.
*
* @var string
*/
public $dir;
/**
* Optional. Only trigger a build if the revision regex does NOT match the
* revision regex.
*
* @var bool
*/
public $invertRegex;
/**
* Optional. ID of the project that owns the Cloud Source Repository. If
* omitted, the project ID requesting the build is assumed.
*
* @var string
*/
public $projectId;
/**
* Required. Name of the Cloud Source Repository.
*
* @var string
*/
public $repoName;
/**
* Optional. Substitutions to use in a triggered build. Should only be used
* with RunBuildTrigger
*
* @var string[]
*/
public $substitutions;
/**
* Regex matching tags to build. The syntax of the regular expressions
* accepted is the syntax accepted by RE2 and described at
* https://github.com/google/re2/wiki/Syntax
*
* @var string
*/
public $tagName;
/**
* Regex matching branches to build. The syntax of the regular expressions
* accepted is the syntax accepted by RE2 and described at
* https://github.com/google/re2/wiki/Syntax
*
* @param string $branchName
*/
public function setBranchName($branchName)
{
$this->branchName = $branchName;
}
/**
* @return string
*/
public function getBranchName()
{
return $this->branchName;
}
/**
* Explicit commit SHA to build.
*
* @param string $commitSha
*/
public function setCommitSha($commitSha)
{
$this->commitSha = $commitSha;
}
/**
* @return string
*/
public function getCommitSha()
{
return $this->commitSha;
}
/**
* Optional. Directory, relative to the source root, in which to run the
* build. This must be a relative path. If a step's `dir` is specified and is
* an absolute path, this value is ignored for that step's execution.
*
* @param string $dir
*/
public function setDir($dir)
{
$this->dir = $dir;
}
/**
* @return string
*/
public function getDir()
{
return $this->dir;
}
/**
* Optional. Only trigger a build if the revision regex does NOT match the
* revision regex.
*
* @param bool $invertRegex
*/
public function setInvertRegex($invertRegex)
{
$this->invertRegex = $invertRegex;
}
/**
* @return bool
*/
public function getInvertRegex()
{
return $this->invertRegex;
}
/**
* Optional. ID of the project that owns the Cloud Source Repository. If
* omitted, the project ID requesting the build is assumed.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* Required. Name of the Cloud Source Repository.
*
* @param string $repoName
*/
public function setRepoName($repoName)
{
$this->repoName = $repoName;
}
/**
* @return string
*/
public function getRepoName()
{
return $this->repoName;
}
/**
* Optional. Substitutions to use in a triggered build. Should only be used
* with RunBuildTrigger
*
* @param string[] $substitutions
*/
public function setSubstitutions($substitutions)
{
$this->substitutions = $substitutions;
}
/**
* @return string[]
*/
public function getSubstitutions()
{
return $this->substitutions;
}
/**
* Regex matching tags to build. The syntax of the regular expressions
* accepted is the syntax accepted by RE2 and described at
* https://github.com/google/re2/wiki/Syntax
*
* @param string $tagName
*/
public function setTagName($tagName)
{
$this->tagName = $tagName;
}
/**
* @return string
*/
public function getTagName()
{
return $this->tagName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource');
@@ -0,0 +1,277 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1Results extends \Google\Collection
{
protected $collection_key = 'pythonPackages';
/**
* Path to the artifact manifest for non-container artifacts uploaded to Cloud
* Storage. Only populated when artifacts are uploaded to Cloud Storage.
*
* @var string
*/
public $artifactManifest;
protected $artifactTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $artifactTimingDataType = '';
/**
* List of build step digests, in the order corresponding to build step
* indices.
*
* @var string[]
*/
public $buildStepImages;
/**
* List of build step outputs, produced by builder images, in the order
* corresponding to build step indices. [Cloud
* Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can
* produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first
* 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-
* only and can't be substituted.
*
* @var string[]
*/
public $buildStepOutputs;
protected $buildStepResultsType = ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults::class;
protected $buildStepResultsDataType = 'map';
protected $genericArtifactsType = ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact::class;
protected $genericArtifactsDataType = 'array';
protected $goModulesType = ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule::class;
protected $goModulesDataType = 'array';
protected $imagesType = ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage::class;
protected $imagesDataType = 'array';
protected $mavenArtifactsType = ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact::class;
protected $mavenArtifactsDataType = 'array';
protected $npmPackagesType = ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage::class;
protected $npmPackagesDataType = 'array';
/**
* Number of non-container artifacts uploaded to Cloud Storage. Only populated
* when artifacts are uploaded to Cloud Storage.
*
* @var string
*/
public $numArtifacts;
protected $pythonPackagesType = ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage::class;
protected $pythonPackagesDataType = 'array';
/**
* Path to the artifact manifest for non-container artifacts uploaded to Cloud
* Storage. Only populated when artifacts are uploaded to Cloud Storage.
*
* @param string $artifactManifest
*/
public function setArtifactManifest($artifactManifest)
{
$this->artifactManifest = $artifactManifest;
}
/**
* @return string
*/
public function getArtifactManifest()
{
return $this->artifactManifest;
}
/**
* Time to push all non-container artifacts to Cloud Storage.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $artifactTiming
*/
public function setArtifactTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $artifactTiming)
{
$this->artifactTiming = $artifactTiming;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getArtifactTiming()
{
return $this->artifactTiming;
}
/**
* List of build step digests, in the order corresponding to build step
* indices.
*
* @param string[] $buildStepImages
*/
public function setBuildStepImages($buildStepImages)
{
$this->buildStepImages = $buildStepImages;
}
/**
* @return string[]
*/
public function getBuildStepImages()
{
return $this->buildStepImages;
}
/**
* List of build step outputs, produced by builder images, in the order
* corresponding to build step indices. [Cloud
* Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can
* produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first
* 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-
* only and can't be substituted.
*
* @param string[] $buildStepOutputs
*/
public function setBuildStepOutputs($buildStepOutputs)
{
$this->buildStepOutputs = $buildStepOutputs;
}
/**
* @return string[]
*/
public function getBuildStepOutputs()
{
return $this->buildStepOutputs;
}
/**
* Results for build steps. step_id ->
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults[] $buildStepResults
*/
public function setBuildStepResults($buildStepResults)
{
$this->buildStepResults = $buildStepResults;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults[]
*/
public function getBuildStepResults()
{
return $this->buildStepResults;
}
/**
* Output only. Generic artifacts uploaded to Artifact Registry at the end of
* the build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact[] $genericArtifacts
*/
public function setGenericArtifacts($genericArtifacts)
{
$this->genericArtifacts = $genericArtifacts;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact[]
*/
public function getGenericArtifacts()
{
return $this->genericArtifacts;
}
/**
* Optional. Go module artifacts uploaded to Artifact Registry at the end of
* the build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[] $goModules
*/
public function setGoModules($goModules)
{
$this->goModules = $goModules;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[]
*/
public function getGoModules()
{
return $this->goModules;
}
/**
* Container images that were built as a part of the build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[] $images
*/
public function setImages($images)
{
$this->images = $images;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[]
*/
public function getImages()
{
return $this->images;
}
/**
* Maven artifacts uploaded to Artifact Registry at the end of the build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact[] $mavenArtifacts
*/
public function setMavenArtifacts($mavenArtifacts)
{
$this->mavenArtifacts = $mavenArtifacts;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact[]
*/
public function getMavenArtifacts()
{
return $this->mavenArtifacts;
}
/**
* Npm packages uploaded to Artifact Registry at the end of the build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage[] $npmPackages
*/
public function setNpmPackages($npmPackages)
{
$this->npmPackages = $npmPackages;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage[]
*/
public function getNpmPackages()
{
return $this->npmPackages;
}
/**
* Number of non-container artifacts uploaded to Cloud Storage. Only populated
* when artifacts are uploaded to Cloud Storage.
*
* @param string $numArtifacts
*/
public function setNumArtifacts($numArtifacts)
{
$this->numArtifacts = $numArtifacts;
}
/**
* @return string
*/
public function getNumArtifacts()
{
return $this->numArtifacts;
}
/**
* Python artifacts uploaded to Artifact Registry at the end of the build.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage[] $pythonPackages
*/
public function setPythonPackages($pythonPackages)
{
$this->pythonPackages = $pythonPackages;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage[]
*/
public function getPythonPackages()
{
return $this->pythonPackages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Results::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Results');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1Secret extends \Google\Model
{
/**
* Cloud KMS key name to use to decrypt these envs.
*
* @var string
*/
public $kmsKeyName;
/**
* Map of environment variable name to its encrypted value. Secret environment
* variables must be unique across all of a build's secrets, and must be used
* by at least one build step. Values can be at most 64 KB in size. There can
* be at most 100 secret values across all of a build's secrets.
*
* @var string[]
*/
public $secretEnv;
/**
* Cloud KMS key name to use to decrypt these envs.
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* Map of environment variable name to its encrypted value. Secret environment
* variables must be unique across all of a build's secrets, and must be used
* by at least one build step. Values can be at most 64 KB in size. There can
* be at most 100 secret values across all of a build's secrets.
*
* @param string[] $secretEnv
*/
public function setSecretEnv($secretEnv)
{
$this->secretEnv = $secretEnv;
}
/**
* @return string[]
*/
public function getSecretEnv()
{
return $this->secretEnv;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Secret::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Secret');
@@ -0,0 +1,74 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret extends \Google\Model
{
/**
* Environment variable name to associate with the secret. Secret environment
* variables must be unique across all of a build's secrets, and must be used
* by at least one build step.
*
* @var string
*/
public $env;
/**
* Resource name of the SecretVersion. In format: projects/secrets/versions
*
* @var string
*/
public $versionName;
/**
* Environment variable name to associate with the secret. Secret environment
* variables must be unique across all of a build's secrets, and must be used
* by at least one build step.
*
* @param string $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string
*/
public function getEnv()
{
return $this->env;
}
/**
* Resource name of the SecretVersion. In format: projects/secrets/versions
*
* @param string $versionName
*/
public function setVersionName($versionName)
{
$this->versionName = $versionName;
}
/**
* @return string
*/
public function getVersionName()
{
return $this->versionName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret');
@@ -0,0 +1,64 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets extends \Google\Collection
{
protected $collection_key = 'secretManager';
protected $inlineType = ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret::class;
protected $inlineDataType = 'array';
protected $secretManagerType = ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret::class;
protected $secretManagerDataType = 'array';
/**
* Secrets encrypted with KMS key and the associated secret environment
* variable.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret[] $inline
*/
public function setInline($inline)
{
$this->inline = $inline;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret[]
*/
public function getInline()
{
return $this->inline;
}
/**
* Secrets in Secret Manager and associated secret environment variable.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret[] $secretManager
*/
public function setSecretManager($secretManager)
{
$this->secretManager = $secretManager;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret[]
*/
public function getSecretManager()
{
return $this->secretManager;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets');
@@ -0,0 +1,139 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1Source extends \Google\Model
{
protected $connectedRepositoryType = ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository::class;
protected $connectedRepositoryDataType = '';
protected $developerConnectConfigType = ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig::class;
protected $developerConnectConfigDataType = '';
protected $gitSourceType = ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource::class;
protected $gitSourceDataType = '';
protected $repoSourceType = ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource::class;
protected $repoSourceDataType = '';
protected $storageSourceType = ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource::class;
protected $storageSourceDataType = '';
protected $storageSourceManifestType = ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest::class;
protected $storageSourceManifestDataType = '';
/**
* Optional. If provided, get the source from this 2nd-gen Google Cloud Build
* repository resource.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository $connectedRepository
*/
public function setConnectedRepository(ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository $connectedRepository)
{
$this->connectedRepository = $connectedRepository;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository
*/
public function getConnectedRepository()
{
return $this->connectedRepository;
}
/**
* If provided, get the source from this Developer Connect config.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig $developerConnectConfig
*/
public function setDeveloperConnectConfig(ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig $developerConnectConfig)
{
$this->developerConnectConfig = $developerConnectConfig;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig
*/
public function getDeveloperConnectConfig()
{
return $this->developerConnectConfig;
}
/**
* If provided, get the source from this Git repository.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource $gitSource
*/
public function setGitSource(ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource $gitSource)
{
$this->gitSource = $gitSource;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource
*/
public function getGitSource()
{
return $this->gitSource;
}
/**
* If provided, get the source from this location in a Cloud Source
* Repository.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource $repoSource
*/
public function setRepoSource(ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource $repoSource)
{
$this->repoSource = $repoSource;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource
*/
public function getRepoSource()
{
return $this->repoSource;
}
/**
* If provided, get the source from this location in Cloud Storage.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource $storageSource
*/
public function setStorageSource(ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource $storageSource)
{
$this->storageSource = $storageSource;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource
*/
public function getStorageSource()
{
return $this->storageSource;
}
/**
* If provided, get the source from this manifest in Cloud Storage. This
* feature is in Preview; see description
* [here](https://github.com/GoogleCloudPlatform/cloud-
* builders/tree/master/gcs-fetcher).
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest $storageSourceManifest
*/
public function setStorageSourceManifest(ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest $storageSourceManifest)
{
$this->storageSourceManifest = $storageSourceManifest;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest
*/
public function getStorageSourceManifest()
{
return $this->storageSourceManifest;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Source::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Source');
@@ -0,0 +1,145 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance extends \Google\Model
{
protected $fileHashesType = ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::class;
protected $fileHashesDataType = 'map';
protected $resolvedConnectedRepositoryType = ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository::class;
protected $resolvedConnectedRepositoryDataType = '';
protected $resolvedGitSourceType = ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource::class;
protected $resolvedGitSourceDataType = '';
protected $resolvedRepoSourceType = ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource::class;
protected $resolvedRepoSourceDataType = '';
protected $resolvedStorageSourceType = ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource::class;
protected $resolvedStorageSourceDataType = '';
protected $resolvedStorageSourceManifestType = ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest::class;
protected $resolvedStorageSourceManifestDataType = '';
/**
* Output only. Hash(es) of the build source, which can be used to verify that
* the original source integrity was maintained in the build. Note that
* `FileHashes` will only be populated if `BuildOptions` has requested a
* `SourceProvenanceHash`. The keys to this map are file paths used as build
* source and the values contain the hash values for those files. If the build
* source came in a single package such as a gzipped tarfile (`.tar.gz`), the
* `FileHash` will be for the single path to that file.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes[] $fileHashes
*/
public function setFileHashes($fileHashes)
{
$this->fileHashes = $fileHashes;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes[]
*/
public function getFileHashes()
{
return $this->fileHashes;
}
/**
* Output only. A copy of the build's `source.connected_repository`, if
* exists, with any revisions resolved.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository $resolvedConnectedRepository
*/
public function setResolvedConnectedRepository(ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository $resolvedConnectedRepository)
{
$this->resolvedConnectedRepository = $resolvedConnectedRepository;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository
*/
public function getResolvedConnectedRepository()
{
return $this->resolvedConnectedRepository;
}
/**
* Output only. A copy of the build's `source.git_source`, if exists, with any
* revisions resolved.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource $resolvedGitSource
*/
public function setResolvedGitSource(ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource $resolvedGitSource)
{
$this->resolvedGitSource = $resolvedGitSource;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource
*/
public function getResolvedGitSource()
{
return $this->resolvedGitSource;
}
/**
* A copy of the build's `source.repo_source`, if exists, with any revisions
* resolved.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource $resolvedRepoSource
*/
public function setResolvedRepoSource(ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource $resolvedRepoSource)
{
$this->resolvedRepoSource = $resolvedRepoSource;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource
*/
public function getResolvedRepoSource()
{
return $this->resolvedRepoSource;
}
/**
* A copy of the build's `source.storage_source`, if exists, with any
* generations resolved.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource $resolvedStorageSource
*/
public function setResolvedStorageSource(ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource $resolvedStorageSource)
{
$this->resolvedStorageSource = $resolvedStorageSource;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource
*/
public function getResolvedStorageSource()
{
return $this->resolvedStorageSource;
}
/**
* A copy of the build's `source.storage_source_manifest`, if exists, with any
* revisions resolved. This feature is in Preview.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest $resolvedStorageSourceManifest
*/
public function setResolvedStorageSourceManifest(ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest $resolvedStorageSourceManifest)
{
$this->resolvedStorageSourceManifest = $resolvedStorageSourceManifest;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest
*/
public function getResolvedStorageSourceManifest()
{
return $this->resolvedStorageSourceManifest;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance');
@@ -0,0 +1,92 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult extends \Google\Model
{
/**
* Optional. The content of the attestation to be generated.
*
* @var string
*/
public $attestationContent;
/**
* Optional. The type of attestation to be generated.
*
* @var string
*/
public $attestationType;
/**
* Required. The name of the result.
*
* @var string
*/
public $name;
/**
* Optional. The content of the attestation to be generated.
*
* @param string $attestationContent
*/
public function setAttestationContent($attestationContent)
{
$this->attestationContent = $attestationContent;
}
/**
* @return string
*/
public function getAttestationContent()
{
return $this->attestationContent;
}
/**
* Optional. The type of attestation to be generated.
*
* @param string $attestationType
*/
public function setAttestationType($attestationType)
{
$this->attestationType = $attestationType;
}
/**
* @return string
*/
public function getAttestationType()
{
return $this->attestationType;
}
/**
* Required. The name of the result.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult');
@@ -0,0 +1,140 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource extends \Google\Model
{
/**
* Unspecified defaults to GSUTIL.
*/
public const SOURCE_FETCHER_SOURCE_FETCHER_UNSPECIFIED = 'SOURCE_FETCHER_UNSPECIFIED';
/**
* Use the "gsutil" tool to download the source file.
*/
public const SOURCE_FETCHER_GSUTIL = 'GSUTIL';
/**
* Use the Cloud Storage Fetcher tool to download the source file.
*/
public const SOURCE_FETCHER_GCS_FETCHER = 'GCS_FETCHER';
/**
* Cloud Storage bucket containing the source (see [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-
* naming#requirements)).
*
* @var string
*/
public $bucket;
/**
* Optional. Cloud Storage generation for the object. If the generation is
* omitted, the latest generation will be used.
*
* @var string
*/
public $generation;
/**
* Required. Cloud Storage object containing the source. This object must be a
* zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to
* build.
*
* @var string
*/
public $object;
/**
* Optional. Option to specify the tool to fetch the source file for the
* build.
*
* @var string
*/
public $sourceFetcher;
/**
* Cloud Storage bucket containing the source (see [Bucket Name
* Requirements](https://cloud.google.com/storage/docs/bucket-
* naming#requirements)).
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* Optional. Cloud Storage generation for the object. If the generation is
* omitted, the latest generation will be used.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* Required. Cloud Storage object containing the source. This object must be a
* zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to
* build.
*
* @param string $object
*/
public function setObject($object)
{
$this->object = $object;
}
/**
* @return string
*/
public function getObject()
{
return $this->object;
}
/**
* Optional. Option to specify the tool to fetch the source file for the
* build.
*
* Accepted values: SOURCE_FETCHER_UNSPECIFIED, GSUTIL, GCS_FETCHER
*
* @param self::SOURCE_FETCHER_* $sourceFetcher
*/
public function setSourceFetcher($sourceFetcher)
{
$this->sourceFetcher = $sourceFetcher;
}
/**
* @return self::SOURCE_FETCHER_*
*/
public function getSourceFetcher()
{
return $this->sourceFetcher;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource');
@@ -0,0 +1,100 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest extends \Google\Model
{
/**
* Required. Cloud Storage bucket containing the source manifest (see [Bucket
* Name Requirements](https://cloud.google.com/storage/docs/bucket-
* naming#requirements)).
*
* @var string
*/
public $bucket;
/**
* Cloud Storage generation for the object. If the generation is omitted, the
* latest generation will be used.
*
* @var string
*/
public $generation;
/**
* Required. Cloud Storage object containing the source manifest. This object
* must be a JSON file.
*
* @var string
*/
public $object;
/**
* Required. Cloud Storage bucket containing the source manifest (see [Bucket
* Name Requirements](https://cloud.google.com/storage/docs/bucket-
* naming#requirements)).
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* Cloud Storage generation for the object. If the generation is omitted, the
* latest generation will be used.
*
* @param string $generation
*/
public function setGeneration($generation)
{
$this->generation = $generation;
}
/**
* @return string
*/
public function getGeneration()
{
return $this->generation;
}
/**
* Required. Cloud Storage object containing the source manifest. This object
* must be a JSON file.
*
* @param string $object
*/
public function setObject($object)
{
$this->object = $object;
}
/**
* @return string
*/
public function getObject()
{
return $this->object;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest');
@@ -0,0 +1,70 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan extends \Google\Model
{
/**
* End of time span.
*
* @var string
*/
public $endTime;
/**
* Start of time span.
*
* @var string
*/
public $startTime;
/**
* End of time span.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Start of time span.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan');
@@ -0,0 +1,126 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact extends \Google\Model
{
protected $artifactFingerprintType = ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::class;
protected $artifactFingerprintDataType = '';
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @var string
*/
public $artifactRegistryPackage;
protected $fileHashesType = ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::class;
protected $fileHashesDataType = 'map';
protected $pushTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $pushTimingDataType = '';
/**
* Output only. URI of the uploaded artifact. Ex:
* projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
*
* @var string
*/
public $uri;
/**
* Output only. The hash of the whole artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $artifactFingerprint
*/
public function setArtifactFingerprint(ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $artifactFingerprint)
{
$this->artifactFingerprint = $artifactFingerprint;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes
*/
public function getArtifactFingerprint()
{
return $this->artifactFingerprint;
}
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @param string $artifactRegistryPackage
*/
public function setArtifactRegistryPackage($artifactRegistryPackage)
{
$this->artifactRegistryPackage = $artifactRegistryPackage;
}
/**
* @return string
*/
public function getArtifactRegistryPackage()
{
return $this->artifactRegistryPackage;
}
/**
* Output only. The file hashes that make up the generic artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes[] $fileHashes
*/
public function setFileHashes($fileHashes)
{
$this->fileHashes = $fileHashes;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes[]
*/
public function getFileHashes()
{
return $this->fileHashes;
}
/**
* Output only. Stores timing information for pushing the specified artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming
*/
public function setPushTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming)
{
$this->pushTiming = $pushTiming;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getPushTiming()
{
return $this->pushTiming;
}
/**
* Output only. URI of the uploaded artifact. Ex:
* projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact');
@@ -0,0 +1,106 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule extends \Google\Model
{
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @var string
*/
public $artifactRegistryPackage;
protected $fileHashesType = ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::class;
protected $fileHashesDataType = '';
protected $pushTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $pushTimingDataType = '';
/**
* URI of the uploaded artifact.
*
* @var string
*/
public $uri;
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @param string $artifactRegistryPackage
*/
public function setArtifactRegistryPackage($artifactRegistryPackage)
{
$this->artifactRegistryPackage = $artifactRegistryPackage;
}
/**
* @return string
*/
public function getArtifactRegistryPackage()
{
return $this->artifactRegistryPackage;
}
/**
* Hash types and values of the Go Module Artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $fileHashes
*/
public function setFileHashes(ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $fileHashes)
{
$this->fileHashes = $fileHashes;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes
*/
public function getFileHashes()
{
return $this->fileHashes;
}
/**
* Output only. Stores timing information for pushing the specified artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming
*/
public function setPushTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming)
{
$this->pushTiming = $pushTiming;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getPushTiming()
{
return $this->pushTiming;
}
/**
* URI of the uploaded artifact.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule');
@@ -0,0 +1,106 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact extends \Google\Model
{
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @var string
*/
public $artifactRegistryPackage;
protected $fileHashesType = ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::class;
protected $fileHashesDataType = '';
protected $pushTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $pushTimingDataType = '';
/**
* URI of the uploaded artifact.
*
* @var string
*/
public $uri;
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @param string $artifactRegistryPackage
*/
public function setArtifactRegistryPackage($artifactRegistryPackage)
{
$this->artifactRegistryPackage = $artifactRegistryPackage;
}
/**
* @return string
*/
public function getArtifactRegistryPackage()
{
return $this->artifactRegistryPackage;
}
/**
* Hash types and values of the Maven Artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $fileHashes
*/
public function setFileHashes(ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $fileHashes)
{
$this->fileHashes = $fileHashes;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes
*/
public function getFileHashes()
{
return $this->fileHashes;
}
/**
* Output only. Stores timing information for pushing the specified artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming
*/
public function setPushTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming)
{
$this->pushTiming = $pushTiming;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getPushTiming()
{
return $this->pushTiming;
}
/**
* URI of the uploaded artifact.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact');
@@ -0,0 +1,106 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage extends \Google\Model
{
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @var string
*/
public $artifactRegistryPackage;
protected $fileHashesType = ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::class;
protected $fileHashesDataType = '';
protected $pushTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $pushTimingDataType = '';
/**
* URI of the uploaded npm package.
*
* @var string
*/
public $uri;
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @param string $artifactRegistryPackage
*/
public function setArtifactRegistryPackage($artifactRegistryPackage)
{
$this->artifactRegistryPackage = $artifactRegistryPackage;
}
/**
* @return string
*/
public function getArtifactRegistryPackage()
{
return $this->artifactRegistryPackage;
}
/**
* Hash types and values of the npm package.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $fileHashes
*/
public function setFileHashes(ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $fileHashes)
{
$this->fileHashes = $fileHashes;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes
*/
public function getFileHashes()
{
return $this->fileHashes;
}
/**
* Output only. Stores timing information for pushing the specified artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming
*/
public function setPushTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming)
{
$this->pushTiming = $pushTiming;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getPushTiming()
{
return $this->pushTiming;
}
/**
* URI of the uploaded npm package.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage');
@@ -0,0 +1,106 @@
<?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 ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage extends \Google\Model
{
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @var string
*/
public $artifactRegistryPackage;
protected $fileHashesType = ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::class;
protected $fileHashesDataType = '';
protected $pushTimingType = ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::class;
protected $pushTimingDataType = '';
/**
* URI of the uploaded artifact.
*
* @var string
*/
public $uri;
/**
* Output only. Path to the artifact in Artifact Registry.
*
* @param string $artifactRegistryPackage
*/
public function setArtifactRegistryPackage($artifactRegistryPackage)
{
$this->artifactRegistryPackage = $artifactRegistryPackage;
}
/**
* @return string
*/
public function getArtifactRegistryPackage()
{
return $this->artifactRegistryPackage;
}
/**
* Hash types and values of the Python Artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $fileHashes
*/
public function setFileHashes(ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes $fileHashes)
{
$this->fileHashes = $fileHashes;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes
*/
public function getFileHashes()
{
return $this->fileHashes;
}
/**
* Output only. Stores timing information for pushing the specified artifact.
*
* @param ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming
*/
public function setPushTiming(ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan $pushTiming)
{
$this->pushTiming = $pushTiming;
}
/**
* @return ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan
*/
public function getPushTiming()
{
return $this->pushTiming;
}
/**
* URI of the uploaded artifact.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage');
@@ -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\ContainerAnalysis;
class ContaineranalysisGoogleDevtoolsCloudbuildV1Volume extends \Google\Model
{
/**
* Name of the volume to mount. Volume names must be unique per build step and
* must be valid names for Docker volumes. Each named volume must be used by
* at least two build steps.
*
* @var string
*/
public $name;
/**
* Path at which to mount the volume. Paths must be absolute and cannot
* conflict with other volume paths on the same build step or with certain
* reserved volume paths.
*
* @var string
*/
public $path;
/**
* Name of the volume to mount. Volume names must be unique per build step and
* must be valid names for Docker volumes. Each named volume must be used by
* at least two build steps.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Path at which to mount the volume. Paths must be absolute and cannot
* conflict with other volume paths on the same build step or with certain
* reserved volume paths.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisGoogleDevtoolsCloudbuildV1Volume::class, 'Google_Service_ContainerAnalysis_ContaineranalysisGoogleDevtoolsCloudbuildV1Volume');
@@ -0,0 +1,60 @@
<?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 ContaineranalysisResource extends \Google\Model
{
protected $contentHashType = Hash::class;
protected $contentHashDataType = '';
public $name;
public $uri;
/**
* @param Hash
*/
public function setContentHash(Hash $contentHash)
{
$this->contentHash = $contentHash;
}
/**
* @return Hash
*/
public function getContentHash()
{
return $this->contentHash;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setUri($uri)
{
$this->uri = $uri;
}
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContaineranalysisResource::class, 'Google_Service_ContainerAnalysis_ContaineranalysisResource');
@@ -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\ContainerAnalysis;
class DSSEAttestationNote extends \Google\Model
{
protected $hintType = DSSEHint::class;
protected $hintDataType = '';
/**
* DSSEHint hints at the purpose of the attestation authority.
*
* @param DSSEHint $hint
*/
public function setHint(DSSEHint $hint)
{
$this->hint = $hint;
}
/**
* @return DSSEHint
*/
public function getHint()
{
return $this->hint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DSSEAttestationNote::class, 'Google_Service_ContainerAnalysis_DSSEAttestationNote');
@@ -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\ContainerAnalysis;
class DSSEAttestationOccurrence extends \Google\Model
{
protected $envelopeType = Envelope::class;
protected $envelopeDataType = '';
protected $statementType = InTotoStatement::class;
protected $statementDataType = '';
/**
* If doing something security critical, make sure to verify the signatures in
* this metadata.
*
* @param Envelope $envelope
*/
public function setEnvelope(Envelope $envelope)
{
$this->envelope = $envelope;
}
/**
* @return Envelope
*/
public function getEnvelope()
{
return $this->envelope;
}
/**
* @param InTotoStatement $statement
*/
public function setStatement(InTotoStatement $statement)
{
$this->statement = $statement;
}
/**
* @return InTotoStatement
*/
public function getStatement()
{
return $this->statement;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DSSEAttestationOccurrence::class, 'Google_Service_ContainerAnalysis_DSSEAttestationOccurrence');
@@ -0,0 +1,50 @@
<?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 DSSEHint extends \Google\Model
{
/**
* Required. The human readable name of this attestation authority, for
* example "cloudbuild-prod".
*
* @var string
*/
public $humanReadableName;
/**
* Required. The human readable name of this attestation authority, for
* example "cloudbuild-prod".
*
* @param string $humanReadableName
*/
public function setHumanReadableName($humanReadableName)
{
$this->humanReadableName = $humanReadableName;
}
/**
* @return string
*/
public function getHumanReadableName()
{
return $this->humanReadableName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DSSEHint::class, 'Google_Service_ContainerAnalysis_DSSEHint');
@@ -0,0 +1,36 @@
<?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 Deployable extends \Google\Collection
{
protected $collection_key = 'resourceUri';
public $resourceUri;
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
public function getResourceUri()
{
return $this->resourceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deployable::class, 'Google_Service_ContainerAnalysis_Deployable');
@@ -0,0 +1,90 @@
<?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 Deployment extends \Google\Collection
{
protected $collection_key = 'resourceUri';
public $address;
public $config;
public $deployTime;
public $platform;
public $resourceUri;
public $undeployTime;
public $userEmail;
public function setAddress($address)
{
$this->address = $address;
}
public function getAddress()
{
return $this->address;
}
public function setConfig($config)
{
$this->config = $config;
}
public function getConfig()
{
return $this->config;
}
public function setDeployTime($deployTime)
{
$this->deployTime = $deployTime;
}
public function getDeployTime()
{
return $this->deployTime;
}
public function setPlatform($platform)
{
$this->platform = $platform;
}
public function getPlatform()
{
return $this->platform;
}
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
public function getResourceUri()
{
return $this->resourceUri;
}
public function setUndeployTime($undeployTime)
{
$this->undeployTime = $undeployTime;
}
public function getUndeployTime()
{
return $this->undeployTime;
}
public function setUserEmail($userEmail)
{
$this->userEmail = $userEmail;
}
public function getUserEmail()
{
return $this->userEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deployment::class, 'Google_Service_ContainerAnalysis_Deployment');

Some files were not shown because too many files have changed in this diff Show More