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,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\OnDemandScanning;
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_OnDemandScanning_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\OnDemandScanning;
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_OnDemandScanning_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\OnDemandScanning;
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_OnDemandScanning_AnalysisCompleted');
@@ -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\OnDemandScanning;
class AnalyzePackagesMetadata extends \Google\Model
{
/**
* When the scan was created.
*
* @var string
*/
public $createTime;
/**
* The resource URI of the container image being scanned.
*
* @var string
*/
public $resourceUri;
/**
* When the scan was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The resource URI of the container image being scanned.
*
* @param string $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzePackagesMetadata::class, 'Google_Service_OnDemandScanning_AnalyzePackagesMetadata');
@@ -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\OnDemandScanning;
class AnalyzePackagesMetadataV1 extends \Google\Model
{
/**
* When the scan was created.
*
* @var string
*/
public $createTime;
/**
* The resource URI of the container image being scanned.
*
* @var string
*/
public $resourceUri;
/**
* When the scan was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The resource URI of the container image being scanned.
*
* @param string $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzePackagesMetadataV1::class, 'Google_Service_OnDemandScanning_AnalyzePackagesMetadataV1');
@@ -0,0 +1,94 @@
<?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\OnDemandScanning;
class AnalyzePackagesRequestV1 extends \Google\Collection
{
protected $collection_key = 'packages';
/**
* [DEPRECATED] Whether to include OSV data in the scan. For backwards
* compatibility reasons, this field can be neither removed nor renamed.
*
* @deprecated
* @var bool
*/
public $includeOsvData;
protected $packagesType = PackageData::class;
protected $packagesDataType = 'array';
/**
* Required. The resource URI of the container image being scanned.
*
* @var string
*/
public $resourceUri;
/**
* [DEPRECATED] Whether to include OSV data in the scan. For backwards
* compatibility reasons, this field can be neither removed nor renamed.
*
* @deprecated
* @param bool $includeOsvData
*/
public function setIncludeOsvData($includeOsvData)
{
$this->includeOsvData = $includeOsvData;
}
/**
* @deprecated
* @return bool
*/
public function getIncludeOsvData()
{
return $this->includeOsvData;
}
/**
* The packages to analyze.
*
* @param PackageData[] $packages
*/
public function setPackages($packages)
{
$this->packages = $packages;
}
/**
* @return PackageData[]
*/
public function getPackages()
{
return $this->packages;
}
/**
* Required. The resource URI of the container image being scanned.
*
* @param string $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzePackagesRequestV1::class, 'Google_Service_OnDemandScanning_AnalyzePackagesRequestV1');
@@ -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\OnDemandScanning;
class AnalyzePackagesResponse extends \Google\Model
{
/**
* The name of the scan resource created by this successful scan.
*
* @var string
*/
public $scan;
/**
* The name of the scan resource created by this successful scan.
*
* @param string $scan
*/
public function setScan($scan)
{
$this->scan = $scan;
}
/**
* @return string
*/
public function getScan()
{
return $this->scan;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzePackagesResponse::class, 'Google_Service_OnDemandScanning_AnalyzePackagesResponse');
@@ -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\OnDemandScanning;
class AnalyzePackagesResponseV1 extends \Google\Model
{
/**
* The name of the scan resource created by this successful scan.
*
* @var string
*/
public $scan;
/**
* The name of the scan resource created by this successful scan.
*
* @param string $scan
*/
public function setScan($scan)
{
$this->scan = $scan;
}
/**
* @return string
*/
public function getScan()
{
return $this->scan;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzePackagesResponseV1::class, 'Google_Service_OnDemandScanning_AnalyzePackagesResponseV1');
@@ -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\OnDemandScanning;
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_OnDemandScanning_Artifact');
@@ -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\OnDemandScanning;
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_OnDemandScanning_AttestationOccurrence');
@@ -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\OnDemandScanning;
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_OnDemandScanning_BaseImage');
@@ -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\OnDemandScanning;
class Binary extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
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(Binary::class, 'Google_Service_OnDemandScanning_Binary');
@@ -0,0 +1,69 @@
<?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\OnDemandScanning;
class BinarySourceInfo extends \Google\Model
{
protected $binaryVersionType = PackageVersion::class;
protected $binaryVersionDataType = '';
protected $sourceVersionType = PackageVersion::class;
protected $sourceVersionDataType = '';
/**
* The binary package. This is significant when the source is different than
* the binary itself. Historically if they've differed, we've stored the name
* of the source and its version in the package/version fields, but we should
* also store the binary package info, as that's what's actually installed.
*
* @param PackageVersion $binaryVersion
*/
public function setBinaryVersion(PackageVersion $binaryVersion)
{
$this->binaryVersion = $binaryVersion;
}
/**
* @return PackageVersion
*/
public function getBinaryVersion()
{
return $this->binaryVersion;
}
/**
* The source package. Similar to the above, this is significant when the
* source is different than the binary itself. Since the top-level
* package/version fields are based on an if/else, we need a separate field
* for both binary and source if we want to know definitively where the data
* is coming from.
*
* @param PackageVersion $sourceVersion
*/
public function setSourceVersion(PackageVersion $sourceVersion)
{
$this->sourceVersion = $sourceVersion;
}
/**
* @return PackageVersion
*/
public function getSourceVersion()
{
return $this->sourceVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BinarySourceInfo::class, 'Google_Service_OnDemandScanning_BinarySourceInfo');
@@ -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\OnDemandScanning;
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_OnDemandScanning_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\OnDemandScanning;
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_OnDemandScanning_BuildMetadata');
@@ -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\OnDemandScanning;
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_OnDemandScanning_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\OnDemandScanning;
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_OnDemandScanning_BuildProvenance');
@@ -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\OnDemandScanning;
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_OnDemandScanning_BuilderConfig');
@@ -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\OnDemandScanning;
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_OnDemandScanning_CISAKnownExploitedVulnerabilities');
@@ -0,0 +1,812 @@
<?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\OnDemandScanning;
class CVSS extends \Google\Model
{
/**
* Unspecified.
*/
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_UNSPECIFIED = 'ATTACK_COMPLEXITY_UNSPECIFIED';
/**
* Low attack complexity (AC:L). Defined in CVSS v2, v3, v4.
*/
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_LOW = 'ATTACK_COMPLEXITY_LOW';
/**
* High attack complexity (AC:H). Defined in CVSS v2, v3, v4.
*/
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_HIGH = 'ATTACK_COMPLEXITY_HIGH';
/**
* Medium attack complexity (AC:M). Defined in CVSS v2.
*/
public const ATTACK_COMPLEXITY_ATTACK_COMPLEXITY_MEDIUM = 'ATTACK_COMPLEXITY_MEDIUM';
/**
* Unspecified.
*/
public const ATTACK_REQUIREMENTS_ATTACK_REQUIREMENTS_UNSPECIFIED = 'ATTACK_REQUIREMENTS_UNSPECIFIED';
/**
* No attack requirements (AT:N). Defined in CVSS v4.
*/
public const ATTACK_REQUIREMENTS_ATTACK_REQUIREMENTS_NONE = 'ATTACK_REQUIREMENTS_NONE';
/**
* Attack requirements: Present (AT:P). Defined in CVSS v4.
*/
public const ATTACK_REQUIREMENTS_ATTACK_REQUIREMENTS_PRESENT = 'ATTACK_REQUIREMENTS_PRESENT';
/**
* Unspecified.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_UNSPECIFIED = 'ATTACK_VECTOR_UNSPECIFIED';
/**
* Attack Vector: Network (AV:N). Defined in CVSS v2, v3, v4.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_NETWORK = 'ATTACK_VECTOR_NETWORK';
/**
* Attack Vector: Adjacent (AV:A). Defined in CVSS v2, v3, v4.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_ADJACENT = 'ATTACK_VECTOR_ADJACENT';
/**
* Attack Vector: Local (AV:L). Defined in CVSS v2, v3, v4.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_LOCAL = 'ATTACK_VECTOR_LOCAL';
/**
* Attack Vector: Physical (AV:P). Defined in CVSS v3, v4.
*/
public const ATTACK_VECTOR_ATTACK_VECTOR_PHYSICAL = 'ATTACK_VECTOR_PHYSICAL';
/**
* Unspecified.
*/
public const AUTHENTICATION_AUTHENTICATION_UNSPECIFIED = 'AUTHENTICATION_UNSPECIFIED';
/**
* Multiple authentication required (Au:M). Defined in CVSS v2.
*/
public const AUTHENTICATION_AUTHENTICATION_MULTIPLE = 'AUTHENTICATION_MULTIPLE';
/**
* Single authentication required (Au:S). Defined in CVSS v2.
*/
public const AUTHENTICATION_AUTHENTICATION_SINGLE = 'AUTHENTICATION_SINGLE';
/**
* No authentication required (Au:N). Defined in CVSS v2.
*/
public const AUTHENTICATION_AUTHENTICATION_NONE = 'AUTHENTICATION_NONE';
/**
* Unspecified.
*/
public const AVAILABILITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const AVAILABILITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const AVAILABILITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const AVAILABILITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const AVAILABILITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const AVAILABILITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Unspecified.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const CONFIDENTIALITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Unspecified.
*/
public const INTEGRITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const INTEGRITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const INTEGRITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const INTEGRITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const INTEGRITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const INTEGRITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Unspecified.
*/
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_UNSPECIFIED = 'PRIVILEGES_REQUIRED_UNSPECIFIED';
/**
* No privileges required (PR:N). Defined in CVSS v3, v4.
*/
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_NONE = 'PRIVILEGES_REQUIRED_NONE';
/**
* Low privileges required (PR:L). Defined in CVSS v3, v4.
*/
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_LOW = 'PRIVILEGES_REQUIRED_LOW';
/**
* High privileges required (PR:H). Defined in CVSS v3, v4.
*/
public const PRIVILEGES_REQUIRED_PRIVILEGES_REQUIRED_HIGH = 'PRIVILEGES_REQUIRED_HIGH';
/**
* Unspecified.
*/
public const SCOPE_SCOPE_UNSPECIFIED = 'SCOPE_UNSPECIFIED';
/**
* Scope: Unchanged (S:U). Defined in CVSS v3.
*/
public const SCOPE_SCOPE_UNCHANGED = 'SCOPE_UNCHANGED';
/**
* Scope: Changed (S:C). Defined in CVSS v3.
*/
public const SCOPE_SCOPE_CHANGED = 'SCOPE_CHANGED';
/**
* Unspecified.
*/
public const SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Unspecified.
*/
public const SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Unspecified.
*/
public const SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Unspecified.
*/
public const USER_INTERACTION_USER_INTERACTION_UNSPECIFIED = 'USER_INTERACTION_UNSPECIFIED';
/**
* No user interaction required (UI:N). Defined in CVSS v3, v4.
*/
public const USER_INTERACTION_USER_INTERACTION_NONE = 'USER_INTERACTION_NONE';
/**
* User interaction required (UI:R). Defined in CVSS v3.
*/
public const USER_INTERACTION_USER_INTERACTION_REQUIRED = 'USER_INTERACTION_REQUIRED';
/**
* Passive user interaction required (UI:P). Defined in CVSS v4.
*/
public const USER_INTERACTION_USER_INTERACTION_PASSIVE = 'USER_INTERACTION_PASSIVE';
/**
* Active user interaction required (UI:A). Defined in CVSS v4.
*/
public const USER_INTERACTION_USER_INTERACTION_ACTIVE = 'USER_INTERACTION_ACTIVE';
/**
* Unspecified.
*/
public const VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Unspecified.
*/
public const VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Unspecified.
*/
public const VULNERABLE_SYSTEM_INTEGRITY_IMPACT_IMPACT_UNSPECIFIED = 'IMPACT_UNSPECIFIED';
/**
* High impact (H). Defined in CVSS v3, v4.
*/
public const VULNERABLE_SYSTEM_INTEGRITY_IMPACT_IMPACT_HIGH = 'IMPACT_HIGH';
/**
* Low impact (L). Defined in CVSS v3, v4.
*/
public const VULNERABLE_SYSTEM_INTEGRITY_IMPACT_IMPACT_LOW = 'IMPACT_LOW';
/**
* No impact (N). Defined in CVSS v2, v3, v4.
*/
public const VULNERABLE_SYSTEM_INTEGRITY_IMPACT_IMPACT_NONE = 'IMPACT_NONE';
/**
* Partial impact (P). Defined in CVSS v2.
*/
public const VULNERABLE_SYSTEM_INTEGRITY_IMPACT_IMPACT_PARTIAL = 'IMPACT_PARTIAL';
/**
* Complete impact (C). Defined in CVSS v2.
*/
public const VULNERABLE_SYSTEM_INTEGRITY_IMPACT_IMPACT_COMPLETE = 'IMPACT_COMPLETE';
/**
* Attack Complexity (AC). Defined in CVSS v2, v3, v4.
*
* @var string
*/
public $attackComplexity;
/**
* Attack Requirements (AT). Defined in CVSS v4.
*
* @var string
*/
public $attackRequirements;
/**
* Attack Vector (AV). Defined in CVSS v2, v3, v4.
*
* @var string
*/
public $attackVector;
/**
* Authentication (Au). Defined in CVSS v2.
*
* @var string
*/
public $authentication;
/**
* Availability Impact (A). Defined in CVSS v2, v3.
*
* @var string
*/
public $availabilityImpact;
/**
* The base score is a function of the base metric scores.
*
* @var float
*/
public $baseScore;
/**
* Confidentiality Impact (C). Defined in CVSS v2, v3.
*
* @var string
*/
public $confidentialityImpact;
/**
* @var float
*/
public $exploitabilityScore;
/**
* @var float
*/
public $impactScore;
/**
* Integrity Impact (I). Defined in CVSS v2, v3.
*
* @var string
*/
public $integrityImpact;
/**
* Privileges Required (PR). Defined in CVSS v3, v4.
*
* @var string
*/
public $privilegesRequired;
/**
* Scope (S). Defined in CVSS v3.
*
* @var string
*/
public $scope;
/**
* Subsequent System Availability Impact (SA). Defined in CVSS v4.
*
* @var string
*/
public $subsequentSystemAvailabilityImpact;
/**
* Subsequent System Confidentiality Impact (SC). Defined in CVSS v4.
*
* @var string
*/
public $subsequentSystemConfidentialityImpact;
/**
* Subsequent System Integrity Impact (SI). Defined in CVSS v4.
*
* @var string
*/
public $subsequentSystemIntegrityImpact;
/**
* User Interaction (UI). Defined in CVSS v3, v4.
*
* @var string
*/
public $userInteraction;
/**
* Vulnerable System Availability Impact (VA). Defined in CVSS v4.
*
* @var string
*/
public $vulnerableSystemAvailabilityImpact;
/**
* Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4.
*
* @var string
*/
public $vulnerableSystemConfidentialityImpact;
/**
* Vulnerable System Integrity Impact (VI). Defined in CVSS v4.
*
* @var string
*/
public $vulnerableSystemIntegrityImpact;
/**
* Attack Complexity (AC). Defined in CVSS v2, v3, v4.
*
* Accepted values: ATTACK_COMPLEXITY_UNSPECIFIED, ATTACK_COMPLEXITY_LOW,
* ATTACK_COMPLEXITY_HIGH, ATTACK_COMPLEXITY_MEDIUM
*
* @param self::ATTACK_COMPLEXITY_* $attackComplexity
*/
public function setAttackComplexity($attackComplexity)
{
$this->attackComplexity = $attackComplexity;
}
/**
* @return self::ATTACK_COMPLEXITY_*
*/
public function getAttackComplexity()
{
return $this->attackComplexity;
}
/**
* Attack Requirements (AT). Defined in CVSS v4.
*
* Accepted values: ATTACK_REQUIREMENTS_UNSPECIFIED, ATTACK_REQUIREMENTS_NONE,
* ATTACK_REQUIREMENTS_PRESENT
*
* @param self::ATTACK_REQUIREMENTS_* $attackRequirements
*/
public function setAttackRequirements($attackRequirements)
{
$this->attackRequirements = $attackRequirements;
}
/**
* @return self::ATTACK_REQUIREMENTS_*
*/
public function getAttackRequirements()
{
return $this->attackRequirements;
}
/**
* Attack Vector (AV). Defined in CVSS v2, v3, v4.
*
* 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;
}
/**
* Authentication (Au). Defined in CVSS v2.
*
* Accepted values: AUTHENTICATION_UNSPECIFIED, AUTHENTICATION_MULTIPLE,
* AUTHENTICATION_SINGLE, AUTHENTICATION_NONE
*
* @param self::AUTHENTICATION_* $authentication
*/
public function setAuthentication($authentication)
{
$this->authentication = $authentication;
}
/**
* @return self::AUTHENTICATION_*
*/
public function getAuthentication()
{
return $this->authentication;
}
/**
* Availability Impact (A). Defined in CVSS v2, v3.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @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;
}
/**
* Confidentiality Impact (C). Defined in CVSS v2, v3.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @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;
}
/**
* Integrity Impact (I). Defined in CVSS v2, v3.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @param self::INTEGRITY_IMPACT_* $integrityImpact
*/
public function setIntegrityImpact($integrityImpact)
{
$this->integrityImpact = $integrityImpact;
}
/**
* @return self::INTEGRITY_IMPACT_*
*/
public function getIntegrityImpact()
{
return $this->integrityImpact;
}
/**
* Privileges Required (PR). Defined in CVSS v3, v4.
*
* Accepted values: PRIVILEGES_REQUIRED_UNSPECIFIED, PRIVILEGES_REQUIRED_NONE,
* PRIVILEGES_REQUIRED_LOW, PRIVILEGES_REQUIRED_HIGH
*
* @param self::PRIVILEGES_REQUIRED_* $privilegesRequired
*/
public function setPrivilegesRequired($privilegesRequired)
{
$this->privilegesRequired = $privilegesRequired;
}
/**
* @return self::PRIVILEGES_REQUIRED_*
*/
public function getPrivilegesRequired()
{
return $this->privilegesRequired;
}
/**
* Scope (S). Defined in CVSS v3.
*
* Accepted values: SCOPE_UNSPECIFIED, SCOPE_UNCHANGED, SCOPE_CHANGED
*
* @param self::SCOPE_* $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return self::SCOPE_*
*/
public function getScope()
{
return $this->scope;
}
/**
* Subsequent System Availability Impact (SA). Defined in CVSS v4.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @param self::SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_* $subsequentSystemAvailabilityImpact
*/
public function setSubsequentSystemAvailabilityImpact($subsequentSystemAvailabilityImpact)
{
$this->subsequentSystemAvailabilityImpact = $subsequentSystemAvailabilityImpact;
}
/**
* @return self::SUBSEQUENT_SYSTEM_AVAILABILITY_IMPACT_*
*/
public function getSubsequentSystemAvailabilityImpact()
{
return $this->subsequentSystemAvailabilityImpact;
}
/**
* Subsequent System Confidentiality Impact (SC). Defined in CVSS v4.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @param self::SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_* $subsequentSystemConfidentialityImpact
*/
public function setSubsequentSystemConfidentialityImpact($subsequentSystemConfidentialityImpact)
{
$this->subsequentSystemConfidentialityImpact = $subsequentSystemConfidentialityImpact;
}
/**
* @return self::SUBSEQUENT_SYSTEM_CONFIDENTIALITY_IMPACT_*
*/
public function getSubsequentSystemConfidentialityImpact()
{
return $this->subsequentSystemConfidentialityImpact;
}
/**
* Subsequent System Integrity Impact (SI). Defined in CVSS v4.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @param self::SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_* $subsequentSystemIntegrityImpact
*/
public function setSubsequentSystemIntegrityImpact($subsequentSystemIntegrityImpact)
{
$this->subsequentSystemIntegrityImpact = $subsequentSystemIntegrityImpact;
}
/**
* @return self::SUBSEQUENT_SYSTEM_INTEGRITY_IMPACT_*
*/
public function getSubsequentSystemIntegrityImpact()
{
return $this->subsequentSystemIntegrityImpact;
}
/**
* User Interaction (UI). Defined in CVSS v3, v4.
*
* Accepted values: USER_INTERACTION_UNSPECIFIED, USER_INTERACTION_NONE,
* USER_INTERACTION_REQUIRED, USER_INTERACTION_PASSIVE,
* USER_INTERACTION_ACTIVE
*
* @param self::USER_INTERACTION_* $userInteraction
*/
public function setUserInteraction($userInteraction)
{
$this->userInteraction = $userInteraction;
}
/**
* @return self::USER_INTERACTION_*
*/
public function getUserInteraction()
{
return $this->userInteraction;
}
/**
* Vulnerable System Availability Impact (VA). Defined in CVSS v4.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @param self::VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_* $vulnerableSystemAvailabilityImpact
*/
public function setVulnerableSystemAvailabilityImpact($vulnerableSystemAvailabilityImpact)
{
$this->vulnerableSystemAvailabilityImpact = $vulnerableSystemAvailabilityImpact;
}
/**
* @return self::VULNERABLE_SYSTEM_AVAILABILITY_IMPACT_*
*/
public function getVulnerableSystemAvailabilityImpact()
{
return $this->vulnerableSystemAvailabilityImpact;
}
/**
* Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @param self::VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_* $vulnerableSystemConfidentialityImpact
*/
public function setVulnerableSystemConfidentialityImpact($vulnerableSystemConfidentialityImpact)
{
$this->vulnerableSystemConfidentialityImpact = $vulnerableSystemConfidentialityImpact;
}
/**
* @return self::VULNERABLE_SYSTEM_CONFIDENTIALITY_IMPACT_*
*/
public function getVulnerableSystemConfidentialityImpact()
{
return $this->vulnerableSystemConfidentialityImpact;
}
/**
* Vulnerable System Integrity Impact (VI). Defined in CVSS v4.
*
* Accepted values: IMPACT_UNSPECIFIED, IMPACT_HIGH, IMPACT_LOW, IMPACT_NONE,
* IMPACT_PARTIAL, IMPACT_COMPLETE
*
* @param self::VULNERABLE_SYSTEM_INTEGRITY_IMPACT_* $vulnerableSystemIntegrityImpact
*/
public function setVulnerableSystemIntegrityImpact($vulnerableSystemIntegrityImpact)
{
$this->vulnerableSystemIntegrityImpact = $vulnerableSystemIntegrityImpact;
}
/**
* @return self::VULNERABLE_SYSTEM_INTEGRITY_IMPACT_*
*/
public function getVulnerableSystemIntegrityImpact()
{
return $this->vulnerableSystemIntegrityImpact;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CVSS::class, 'Google_Service_OnDemandScanning_CVSS');
@@ -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\OnDemandScanning;
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_OnDemandScanning_Category');
@@ -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\OnDemandScanning;
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_OnDemandScanning_CloudRepoSourceContext');
@@ -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\OnDemandScanning;
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_OnDemandScanning_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\OnDemandScanning;
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_OnDemandScanning_Completeness');
@@ -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\OnDemandScanning;
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_OnDemandScanning_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\OnDemandScanning;
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_OnDemandScanning_ComplianceVersion');
@@ -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\OnDemandScanning;
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_OnDemandScanning_DSSEAttestationOccurrence');
@@ -0,0 +1,201 @@
<?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\OnDemandScanning;
class DeploymentOccurrence extends \Google\Collection
{
/**
* Unknown.
*/
public const PLATFORM_PLATFORM_UNSPECIFIED = 'PLATFORM_UNSPECIFIED';
/**
* Google Container Engine.
*/
public const PLATFORM_GKE = 'GKE';
/**
* Google App Engine: Flexible Environment.
*/
public const PLATFORM_FLEX = 'FLEX';
/**
* Custom user-defined platform.
*/
public const PLATFORM_CUSTOM = 'CUSTOM';
protected $collection_key = 'resourceUri';
/**
* Address of the runtime element hosting this deployment.
*
* @var string
*/
public $address;
/**
* Configuration used to create this deployment.
*
* @var string
*/
public $config;
/**
* Required. Beginning of the lifetime of this deployment.
*
* @var string
*/
public $deployTime;
/**
* Platform hosting this deployment.
*
* @var string
*/
public $platform;
/**
* Output only. Resource URI for the artifact being deployed taken from the
* deployable field with the same name.
*
* @var string[]
*/
public $resourceUri;
/**
* End of the lifetime of this deployment.
*
* @var string
*/
public $undeployTime;
/**
* Identity of the user that triggered this deployment.
*
* @var string
*/
public $userEmail;
/**
* Address of the runtime element hosting this deployment.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Configuration used to create this deployment.
*
* @param string $config
*/
public function setConfig($config)
{
$this->config = $config;
}
/**
* @return string
*/
public function getConfig()
{
return $this->config;
}
/**
* Required. Beginning of the lifetime of this deployment.
*
* @param string $deployTime
*/
public function setDeployTime($deployTime)
{
$this->deployTime = $deployTime;
}
/**
* @return string
*/
public function getDeployTime()
{
return $this->deployTime;
}
/**
* Platform hosting this deployment.
*
* Accepted values: PLATFORM_UNSPECIFIED, GKE, FLEX, CUSTOM
*
* @param self::PLATFORM_* $platform
*/
public function setPlatform($platform)
{
$this->platform = $platform;
}
/**
* @return self::PLATFORM_*
*/
public function getPlatform()
{
return $this->platform;
}
/**
* Output only. Resource URI for the artifact being deployed taken from the
* deployable field with the same name.
*
* @param string[] $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string[]
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* End of the lifetime of this deployment.
*
* @param string $undeployTime
*/
public function setUndeployTime($undeployTime)
{
$this->undeployTime = $undeployTime;
}
/**
* @return string
*/
public function getUndeployTime()
{
return $this->undeployTime;
}
/**
* Identity of the user that triggered this deployment.
*
* @param string $userEmail
*/
public function setUserEmail($userEmail)
{
$this->userEmail = $userEmail;
}
/**
* @return string
*/
public function getUserEmail()
{
return $this->userEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentOccurrence::class, 'Google_Service_OnDemandScanning_DeploymentOccurrence');
@@ -0,0 +1,298 @@
<?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\OnDemandScanning;
class DiscoveryOccurrence extends \Google\Collection
{
/**
* Unknown.
*/
public const ANALYSIS_STATUS_ANALYSIS_STATUS_UNSPECIFIED = 'ANALYSIS_STATUS_UNSPECIFIED';
/**
* Resource is known but no action has been taken yet.
*/
public const ANALYSIS_STATUS_PENDING = 'PENDING';
/**
* Resource is being analyzed.
*/
public const ANALYSIS_STATUS_SCANNING = 'SCANNING';
/**
* Analysis has finished successfully.
*/
public const ANALYSIS_STATUS_FINISHED_SUCCESS = 'FINISHED_SUCCESS';
/**
* Analysis has completed.
*/
public const ANALYSIS_STATUS_COMPLETE = 'COMPLETE';
/**
* Analysis has finished unsuccessfully, the analysis itself is in a bad
* state.
*/
public const ANALYSIS_STATUS_FINISHED_FAILED = 'FINISHED_FAILED';
/**
* The resource is known not to be supported.
*/
public const ANALYSIS_STATUS_FINISHED_UNSUPPORTED = 'FINISHED_UNSUPPORTED';
/**
* Unknown.
*/
public const CONTINUOUS_ANALYSIS_CONTINUOUS_ANALYSIS_UNSPECIFIED = 'CONTINUOUS_ANALYSIS_UNSPECIFIED';
/**
* The resource is continuously analyzed.
*/
public const CONTINUOUS_ANALYSIS_ACTIVE = 'ACTIVE';
/**
* The resource is ignored for continuous analysis.
*/
public const CONTINUOUS_ANALYSIS_INACTIVE = 'INACTIVE';
protected $collection_key = 'files';
protected $analysisCompletedType = AnalysisCompleted::class;
protected $analysisCompletedDataType = '';
protected $analysisErrorType = Status::class;
protected $analysisErrorDataType = 'array';
/**
* The status of discovery for the resource.
*
* @var string
*/
public $analysisStatus;
protected $analysisStatusErrorType = Status::class;
protected $analysisStatusErrorDataType = '';
/**
* Output only. The time occurrences related to this discovery occurrence were
* archived.
*
* @var string
*/
public $archiveTime;
/**
* Whether the resource is continuously analyzed.
*
* @var string
*/
public $continuousAnalysis;
/**
* The CPE of the resource being scanned.
*
* @var string
*/
public $cpe;
protected $filesType = OndemandscanningFile::class;
protected $filesDataType = 'array';
/**
* The last time this resource was scanned.
*
* @var string
*/
public $lastScanTime;
/**
* The last time vulnerability scan results changed.
*
* @var string
*/
public $lastVulnerabilityUpdateTime;
protected $sbomStatusType = SBOMStatus::class;
protected $sbomStatusDataType = '';
/**
* @param AnalysisCompleted $analysisCompleted
*/
public function setAnalysisCompleted(AnalysisCompleted $analysisCompleted)
{
$this->analysisCompleted = $analysisCompleted;
}
/**
* @return AnalysisCompleted
*/
public function getAnalysisCompleted()
{
return $this->analysisCompleted;
}
/**
* Indicates any errors encountered during analysis of a resource. There could
* be 0 or more of these errors.
*
* @param Status[] $analysisError
*/
public function setAnalysisError($analysisError)
{
$this->analysisError = $analysisError;
}
/**
* @return Status[]
*/
public function getAnalysisError()
{
return $this->analysisError;
}
/**
* The status of discovery for the resource.
*
* Accepted values: ANALYSIS_STATUS_UNSPECIFIED, PENDING, SCANNING,
* FINISHED_SUCCESS, COMPLETE, FINISHED_FAILED, FINISHED_UNSUPPORTED
*
* @param self::ANALYSIS_STATUS_* $analysisStatus
*/
public function setAnalysisStatus($analysisStatus)
{
$this->analysisStatus = $analysisStatus;
}
/**
* @return self::ANALYSIS_STATUS_*
*/
public function getAnalysisStatus()
{
return $this->analysisStatus;
}
/**
* When an error is encountered this will contain a LocalizedMessage under
* details to show to the user. The LocalizedMessage is output only and
* populated by the API.
*
* @param Status $analysisStatusError
*/
public function setAnalysisStatusError(Status $analysisStatusError)
{
$this->analysisStatusError = $analysisStatusError;
}
/**
* @return Status
*/
public function getAnalysisStatusError()
{
return $this->analysisStatusError;
}
/**
* Output only. The time occurrences related to this discovery occurrence were
* archived.
*
* @param string $archiveTime
*/
public function setArchiveTime($archiveTime)
{
$this->archiveTime = $archiveTime;
}
/**
* @return string
*/
public function getArchiveTime()
{
return $this->archiveTime;
}
/**
* Whether the resource is continuously analyzed.
*
* Accepted values: CONTINUOUS_ANALYSIS_UNSPECIFIED, ACTIVE, INACTIVE
*
* @param self::CONTINUOUS_ANALYSIS_* $continuousAnalysis
*/
public function setContinuousAnalysis($continuousAnalysis)
{
$this->continuousAnalysis = $continuousAnalysis;
}
/**
* @return self::CONTINUOUS_ANALYSIS_*
*/
public function getContinuousAnalysis()
{
return $this->continuousAnalysis;
}
/**
* The CPE of the resource being scanned.
*
* @param string $cpe
*/
public function setCpe($cpe)
{
$this->cpe = $cpe;
}
/**
* @return string
*/
public function getCpe()
{
return $this->cpe;
}
/**
* Files that make up the resource described by the occurrence.
*
* @param OndemandscanningFile[] $files
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return OndemandscanningFile[]
*/
public function getFiles()
{
return $this->files;
}
/**
* The last time this resource was scanned.
*
* @param string $lastScanTime
*/
public function setLastScanTime($lastScanTime)
{
$this->lastScanTime = $lastScanTime;
}
/**
* @return string
*/
public function getLastScanTime()
{
return $this->lastScanTime;
}
/**
* The last time vulnerability scan results changed.
*
* @param string $lastVulnerabilityUpdateTime
*/
public function setLastVulnerabilityUpdateTime($lastVulnerabilityUpdateTime)
{
$this->lastVulnerabilityUpdateTime = $lastVulnerabilityUpdateTime;
}
/**
* @return string
*/
public function getLastVulnerabilityUpdateTime()
{
return $this->lastVulnerabilityUpdateTime;
}
/**
* The status of an SBOM generation.
*
* @param SBOMStatus $sbomStatus
*/
public function setSbomStatus(SBOMStatus $sbomStatus)
{
$this->sbomStatus = $sbomStatus;
}
/**
* @return SBOMStatus
*/
public function getSbomStatus()
{
return $this->sbomStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiscoveryOccurrence::class, 'Google_Service_OnDemandScanning_DiscoveryOccurrence');
@@ -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\OnDemandScanning;
class Envelope extends \Google\Collection
{
protected $collection_key = 'signatures';
/**
* @var string
*/
public $payload;
/**
* @var string
*/
public $payloadType;
protected $signaturesType = EnvelopeSignature::class;
protected $signaturesDataType = 'array';
/**
* @param string $payload
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return string
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string $payloadType
*/
public function setPayloadType($payloadType)
{
$this->payloadType = $payloadType;
}
/**
* @return string
*/
public function getPayloadType()
{
return $this->payloadType;
}
/**
* @param EnvelopeSignature[] $signatures
*/
public function setSignatures($signatures)
{
$this->signatures = $signatures;
}
/**
* @return EnvelopeSignature[]
*/
public function getSignatures()
{
return $this->signatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Envelope::class, 'Google_Service_OnDemandScanning_Envelope');
@@ -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\OnDemandScanning;
class EnvelopeSignature extends \Google\Model
{
/**
* @var string
*/
public $keyid;
/**
* @var string
*/
public $sig;
/**
* @param string $keyid
*/
public function setKeyid($keyid)
{
$this->keyid = $keyid;
}
/**
* @return string
*/
public function getKeyid()
{
return $this->keyid;
}
/**
* @param string $sig
*/
public function setSig($sig)
{
$this->sig = $sig;
}
/**
* @return string
*/
public function getSig()
{
return $this->sig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvelopeSignature::class, 'Google_Service_OnDemandScanning_EnvelopeSignature');
@@ -0,0 +1,56 @@
<?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\OnDemandScanning;
class ExploitPredictionScoringSystem extends \Google\Model
{
/**
* The percentile of the current score, the proportion of all scored
* vulnerabilities with the same or a lower EPSS score
*
* @var
*/
public $percentile;
/**
* The EPSS score representing the probability [0-1] of exploitation in the
* wild in the next 30 days
*
* @var
*/
public $score;
public function setPercentile($percentile)
{
$this->percentile = $percentile;
}
public function getPercentile()
{
return $this->percentile;
}
public function setScore($score)
{
$this->score = $score;
}
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExploitPredictionScoringSystem::class, 'Google_Service_OnDemandScanning_ExploitPredictionScoringSystem');
@@ -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\OnDemandScanning;
class FileHashes extends \Google\Collection
{
protected $collection_key = 'fileHash';
protected $fileHashType = Hash::class;
protected $fileHashDataType = 'array';
/**
* Required. Collection of file hashes.
*
* @param Hash[] $fileHash
*/
public function setFileHash($fileHash)
{
$this->fileHash = $fileHash;
}
/**
* @return Hash[]
*/
public function getFileHash()
{
return $this->fileHash;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileHashes::class, 'Google_Service_OnDemandScanning_FileHashes');
@@ -0,0 +1,94 @@
<?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\OnDemandScanning;
class FileLocation extends \Google\Model
{
/**
* For jars that are contained inside .war files, this filepath can indicate
* the path to war file combined with the path to jar file.
*
* @var string
*/
public $filePath;
protected $layerDetailsType = LayerDetails::class;
protected $layerDetailsDataType = '';
/**
* Line number in the file where the package is found. Applies only to source
* repository scanning. Note: this field is marked as `optional` in other
* corresponding protos, but in edition 2023, the "optional" keyword is
* redundant.
*
* @var int
*/
public $lineNumber;
/**
* For jars that are contained inside .war files, this filepath can indicate
* the path to war file combined with the path to jar file.
*
* @param string $filePath
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
/**
* @param LayerDetails $layerDetails
*/
public function setLayerDetails(LayerDetails $layerDetails)
{
$this->layerDetails = $layerDetails;
}
/**
* @return LayerDetails
*/
public function getLayerDetails()
{
return $this->layerDetails;
}
/**
* Line number in the file where the package is found. Applies only to source
* repository scanning. Note: this field is marked as `optional` in other
* corresponding protos, but in edition 2023, the "optional" keyword is
* redundant.
*
* @param int $lineNumber
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return int
*/
public function getLineNumber()
{
return $this->lineNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileLocation::class, 'Google_Service_OnDemandScanning_FileLocation');
@@ -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\OnDemandScanning;
class Finding extends \Google\Model
{
/**
* Category of the finding.
*
* @var string
*/
public $category;
protected $locationType = FindingLocation::class;
protected $locationDataType = '';
/**
* Scanner determines which engine (e.g. static, llm) emitted the finding.
*
* @var string
*/
public $scanner;
/**
* Severity of the finding.
*
* @var string
*/
public $severity;
/**
* Category of the finding.
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* Location (path and line) where the finding was detected.
*
* @param FindingLocation $location
*/
public function setLocation(FindingLocation $location)
{
$this->location = $location;
}
/**
* @return FindingLocation
*/
public function getLocation()
{
return $this->location;
}
/**
* Scanner determines which engine (e.g. static, llm) emitted the finding.
*
* @param string $scanner
*/
public function setScanner($scanner)
{
$this->scanner = $scanner;
}
/**
* @return string
*/
public function getScanner()
{
return $this->scanner;
}
/**
* Severity of the finding.
*
* @param string $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Finding::class, 'Google_Service_OnDemandScanning_Finding');
@@ -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\OnDemandScanning;
class FindingLocation extends \Google\Model
{
/**
* Relative path of the file containing the finding.
*
* @var string
*/
public $filePath;
/**
* Line number (1-based), or 0 if whole File / unknown.
*
* @var string
*/
public $lineNumber;
/**
* Relative path of the file containing the finding.
*
* @param string $filePath
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
/**
* Line number (1-based), or 0 if whole File / unknown.
*
* @param string $lineNumber
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return string
*/
public function getLineNumber()
{
return $this->lineNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindingLocation::class, 'Google_Service_OnDemandScanning_FindingLocation');
@@ -0,0 +1,99 @@
<?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\OnDemandScanning;
class Fingerprint extends \Google\Collection
{
protected $collection_key = 'v2Blob';
/**
* Required. The layer ID of the final layer in the Docker image's v1
* representation.
*
* @var string
*/
public $v1Name;
/**
* Required. The ordered list of v2 blobs that represent a given image.
*
* @var string[]
*/
public $v2Blob;
/**
* Output only. The name of the image's v2 blobs computed via: [bottom] :=
* v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of
* the final blob is kept.
*
* @var string
*/
public $v2Name;
/**
* Required. The layer ID of the final layer in the Docker image's v1
* representation.
*
* @param string $v1Name
*/
public function setV1Name($v1Name)
{
$this->v1Name = $v1Name;
}
/**
* @return string
*/
public function getV1Name()
{
return $this->v1Name;
}
/**
* Required. The ordered list of v2 blobs that represent a given image.
*
* @param string[] $v2Blob
*/
public function setV2Blob($v2Blob)
{
$this->v2Blob = $v2Blob;
}
/**
* @return string[]
*/
public function getV2Blob()
{
return $this->v2Blob;
}
/**
* Output only. The name of the image's v2 blobs computed via: [bottom] :=
* v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of
* the final blob is kept.
*
* @param string $v2Name
*/
public function setV2Name($v2Name)
{
$this->v2Name = $v2Name;
}
/**
* @return string
*/
public function getV2Name()
{
return $this->v2Name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Fingerprint::class, 'Google_Service_OnDemandScanning_Fingerprint');
@@ -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\OnDemandScanning;
class GerritSourceContext extends \Google\Model
{
protected $aliasContextType = AliasContext::class;
protected $aliasContextDataType = '';
/**
* The full project name within the host. Projects may be nested, so
* "project/subproject" is a valid project name. The "repo name" is the
* hostURI/project.
*
* @var string
*/
public $gerritProject;
/**
* The URI of a running Gerrit instance.
*
* @var string
*/
public $hostUri;
/**
* A revision (commit) 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 full project name within the host. Projects may be nested, so
* "project/subproject" is a valid project name. The "repo name" is the
* hostURI/project.
*
* @param string $gerritProject
*/
public function setGerritProject($gerritProject)
{
$this->gerritProject = $gerritProject;
}
/**
* @return string
*/
public function getGerritProject()
{
return $this->gerritProject;
}
/**
* The URI of a running Gerrit instance.
*
* @param string $hostUri
*/
public function setHostUri($hostUri)
{
$this->hostUri = $hostUri;
}
/**
* @return string
*/
public function getHostUri()
{
return $this->hostUri;
}
/**
* A revision (commit) 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(GerritSourceContext::class, 'Google_Service_OnDemandScanning_GerritSourceContext');
@@ -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\OnDemandScanning;
class GitSourceContext extends \Google\Model
{
/**
* Git commit hash.
*
* @var string
*/
public $revisionId;
/**
* Git repository URL.
*
* @var string
*/
public $url;
/**
* Git commit hash.
*
* @param string $revisionId
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* Git repository URL.
*
* @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(GitSourceContext::class, 'Google_Service_OnDemandScanning_GitSourceContext');
@@ -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\OnDemandScanning;
class GrafeasV1BaseImage 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(GrafeasV1BaseImage::class, 'Google_Service_OnDemandScanning_GrafeasV1BaseImage');
@@ -0,0 +1,93 @@
<?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\OnDemandScanning;
class GrafeasV1FileLocation extends \Google\Model
{
/**
* For jars that are contained inside .war files, this filepath can indicate
* the path to war file combined with the path to jar file.
*
* @var string
*/
public $filePath;
protected $layerDetailsType = GrafeasV1LayerDetails::class;
protected $layerDetailsDataType = '';
/**
* Line number in the file where the package was found. Optional field that
* only applies to source repository scanning.
*
* @var int
*/
public $lineNumber;
/**
* For jars that are contained inside .war files, this filepath can indicate
* the path to war file combined with the path to jar file.
*
* @param string $filePath
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
/**
* Each package found in a file should have its own layer metadata (that is,
* information from the origin layer of the package).
*
* @param GrafeasV1LayerDetails $layerDetails
*/
public function setLayerDetails(GrafeasV1LayerDetails $layerDetails)
{
$this->layerDetails = $layerDetails;
}
/**
* @return GrafeasV1LayerDetails
*/
public function getLayerDetails()
{
return $this->layerDetails;
}
/**
* Line number in the file where the package was found. Optional field that
* only applies to source repository scanning.
*
* @param int $lineNumber
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return int
*/
public function getLineNumber()
{
return $this->lineNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1FileLocation::class, 'Google_Service_OnDemandScanning_GrafeasV1FileLocation');
@@ -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\OnDemandScanning;
class GrafeasV1LayerDetails extends \Google\Collection
{
protected $collection_key = 'baseImages';
protected $baseImagesType = GrafeasV1BaseImage::class;
protected $baseImagesDataType = 'array';
/**
* The layer chain ID (sha256 hash) of the layer in the container image.
* https://github.com/opencontainers/image-spec/blob/main/config.md#layer-
* chainid
*
* @var string
*/
public $chainId;
/**
* The layer build command that was used to build the layer. This may not be
* found in all layers depending on how the container image is built.
*
* @var string
*/
public $command;
/**
* The diff ID (typically a sha256 hash) of the layer in the container image.
*
* @var string
*/
public $diffId;
/**
* The index of the layer in the container image.
*
* @var int
*/
public $index;
/**
* The base images the layer is found within.
*
* @param GrafeasV1BaseImage[] $baseImages
*/
public function setBaseImages($baseImages)
{
$this->baseImages = $baseImages;
}
/**
* @return GrafeasV1BaseImage[]
*/
public function getBaseImages()
{
return $this->baseImages;
}
/**
* The layer chain ID (sha256 hash) of the layer in the container image.
* https://github.com/opencontainers/image-spec/blob/main/config.md#layer-
* chainid
*
* @param string $chainId
*/
public function setChainId($chainId)
{
$this->chainId = $chainId;
}
/**
* @return string
*/
public function getChainId()
{
return $this->chainId;
}
/**
* The layer build command that was used to build the layer. This may not be
* found in all layers depending on how the container image is built.
*
* @param string $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string
*/
public function getCommand()
{
return $this->command;
}
/**
* The diff ID (typically a sha256 hash) of the layer in the container image.
*
* @param string $diffId
*/
public function setDiffId($diffId)
{
$this->diffId = $diffId;
}
/**
* @return string
*/
public function getDiffId()
{
return $this->diffId;
}
/**
* The index of the layer in the container image.
*
* @param int $index
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return int
*/
public function getIndex()
{
return $this->index;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1LayerDetails::class, 'Google_Service_OnDemandScanning_GrafeasV1LayerDetails');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenance02SlsaBuilder extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string
*/
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(GrafeasV1SlsaProvenance02SlsaBuilder::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenance02SlsaBuilder');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenance02SlsaCompleteness extends \Google\Model
{
/**
* @var bool
*/
public $environment;
/**
* @var bool
*/
public $materials;
/**
* @var bool
*/
public $parameters;
/**
* @param bool
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return bool
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param bool
*/
public function setMaterials($materials)
{
$this->materials = $materials;
}
/**
* @return bool
*/
public function getMaterials()
{
return $this->materials;
}
/**
* @param bool
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return bool
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1SlsaProvenance02SlsaCompleteness::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenance02SlsaCompleteness');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenance02SlsaConfigSource extends \Google\Model
{
/**
* @var string[]
*/
public $digest;
/**
* @var string
*/
public $entryPoint;
/**
* @var string
*/
public $uri;
/**
* @param string[]
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string
*/
public function setEntryPoint($entryPoint)
{
$this->entryPoint = $entryPoint;
}
/**
* @return string
*/
public function getEntryPoint()
{
return $this->entryPoint;
}
/**
* @param string
*/
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(GrafeasV1SlsaProvenance02SlsaConfigSource::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenance02SlsaConfigSource');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenance02SlsaInvocation extends \Google\Model
{
protected $configSourceType = GrafeasV1SlsaProvenance02SlsaConfigSource::class;
protected $configSourceDataType = '';
/**
* @var array[]
*/
public $environment;
/**
* @var array[]
*/
public $parameters;
/**
* @param GrafeasV1SlsaProvenance02SlsaConfigSource
*/
public function setConfigSource(GrafeasV1SlsaProvenance02SlsaConfigSource $configSource)
{
$this->configSource = $configSource;
}
/**
* @return GrafeasV1SlsaProvenance02SlsaConfigSource
*/
public function getConfigSource()
{
return $this->configSource;
}
/**
* @param array[]
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return array[]
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param array[]
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return array[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1SlsaProvenance02SlsaInvocation::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenance02SlsaInvocation');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenance02SlsaMaterial extends \Google\Model
{
/**
* @var string[]
*/
public $digest;
/**
* @var string
*/
public $uri;
/**
* @param string[]
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string
*/
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(GrafeasV1SlsaProvenance02SlsaMaterial::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenance02SlsaMaterial');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenance02SlsaMetadata extends \Google\Model
{
/**
* @var string
*/
public $buildFinishedOn;
/**
* @var string
*/
public $buildInvocationId;
/**
* @var string
*/
public $buildStartedOn;
protected $completenessType = GrafeasV1SlsaProvenance02SlsaCompleteness::class;
protected $completenessDataType = '';
/**
* @var bool
*/
public $reproducible;
/**
* @param string
*/
public function setBuildFinishedOn($buildFinishedOn)
{
$this->buildFinishedOn = $buildFinishedOn;
}
/**
* @return string
*/
public function getBuildFinishedOn()
{
return $this->buildFinishedOn;
}
/**
* @param string
*/
public function setBuildInvocationId($buildInvocationId)
{
$this->buildInvocationId = $buildInvocationId;
}
/**
* @return string
*/
public function getBuildInvocationId()
{
return $this->buildInvocationId;
}
/**
* @param string
*/
public function setBuildStartedOn($buildStartedOn)
{
$this->buildStartedOn = $buildStartedOn;
}
/**
* @return string
*/
public function getBuildStartedOn()
{
return $this->buildStartedOn;
}
/**
* @param GrafeasV1SlsaProvenance02SlsaCompleteness
*/
public function setCompleteness(GrafeasV1SlsaProvenance02SlsaCompleteness $completeness)
{
$this->completeness = $completeness;
}
/**
* @return GrafeasV1SlsaProvenance02SlsaCompleteness
*/
public function getCompleteness()
{
return $this->completeness;
}
/**
* @param bool
*/
public function setReproducible($reproducible)
{
$this->reproducible = $reproducible;
}
/**
* @return bool
*/
public function getReproducible()
{
return $this->reproducible;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1SlsaProvenance02SlsaMetadata::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenance02SlsaMetadata');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder 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(GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness extends \Google\Model
{
/**
* @var bool
*/
public $environment;
/**
* @var bool
*/
public $materials;
/**
* @var bool
*/
public $parameters;
/**
* @param bool $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return bool
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param bool $materials
*/
public function setMaterials($materials)
{
$this->materials = $materials;
}
/**
* @return bool
*/
public function getMaterials()
{
return $this->materials;
}
/**
* @param bool $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return bool
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource extends \Google\Model
{
/**
* @var string[]
*/
public $digest;
/**
* @var string
*/
public $entryPoint;
/**
* @var string
*/
public $uri;
/**
* @param string[] $digest
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string $entryPoint
*/
public function setEntryPoint($entryPoint)
{
$this->entryPoint = $entryPoint;
}
/**
* @return string
*/
public function getEntryPoint()
{
return $this->entryPoint;
}
/**
* @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(GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation extends \Google\Model
{
protected $configSourceType = GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource::class;
protected $configSourceDataType = '';
/**
* @var array[]
*/
public $environment;
/**
* @var array[]
*/
public $parameters;
/**
* @param GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource $configSource
*/
public function setConfigSource(GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource $configSource)
{
$this->configSource = $configSource;
}
/**
* @return GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource
*/
public function getConfigSource()
{
return $this->configSource;
}
/**
* @param array[] $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return array[]
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param array[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return array[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial extends \Google\Model
{
/**
* @var string[]
*/
public $digest;
/**
* @var string
*/
public $uri;
/**
* @param string[] $digest
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @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(GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial');
@@ -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\OnDemandScanning;
class GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata extends \Google\Model
{
/**
* @var string
*/
public $buildFinishedOn;
/**
* @var string
*/
public $buildInvocationId;
/**
* @var string
*/
public $buildStartedOn;
protected $completenessType = GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness::class;
protected $completenessDataType = '';
/**
* @var bool
*/
public $reproducible;
/**
* @param string $buildFinishedOn
*/
public function setBuildFinishedOn($buildFinishedOn)
{
$this->buildFinishedOn = $buildFinishedOn;
}
/**
* @return string
*/
public function getBuildFinishedOn()
{
return $this->buildFinishedOn;
}
/**
* @param string $buildInvocationId
*/
public function setBuildInvocationId($buildInvocationId)
{
$this->buildInvocationId = $buildInvocationId;
}
/**
* @return string
*/
public function getBuildInvocationId()
{
return $this->buildInvocationId;
}
/**
* @param string $buildStartedOn
*/
public function setBuildStartedOn($buildStartedOn)
{
$this->buildStartedOn = $buildStartedOn;
}
/**
* @return string
*/
public function getBuildStartedOn()
{
return $this->buildStartedOn;
}
/**
* @param GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness $completeness
*/
public function setCompleteness(GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness $completeness)
{
$this->completeness = $completeness;
}
/**
* @return GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness
*/
public function getCompleteness()
{
return $this->completeness;
}
/**
* @param bool $reproducible
*/
public function setReproducible($reproducible)
{
$this->reproducible = $reproducible;
}
/**
* @return bool
*/
public function getReproducible()
{
return $this->reproducible;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata');
@@ -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\OnDemandScanning;
class Hash extends \Google\Model
{
/**
* Required. The type of hash that was performed, e.g. "SHA-256".
*
* @var string
*/
public $type;
/**
* Required. The hash value.
*
* @var string
*/
public $value;
/**
* Required. The type of hash that was performed, e.g. "SHA-256".
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Required. 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(Hash::class, 'Google_Service_OnDemandScanning_Hash');
@@ -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\OnDemandScanning;
class Identity extends \Google\Model
{
/**
* The revision number of the update.
*
* @var int
*/
public $revision;
/**
* The revision independent identifier of the update.
*
* @var string
*/
public $updateId;
/**
* The revision number of the update.
*
* @param int $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return int
*/
public function getRevision()
{
return $this->revision;
}
/**
* The revision independent identifier of the update.
*
* @param string $updateId
*/
public function setUpdateId($updateId)
{
$this->updateId = $updateId;
}
/**
* @return string
*/
public function getUpdateId()
{
return $this->updateId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Identity::class, 'Google_Service_OnDemandScanning_Identity');
@@ -0,0 +1,113 @@
<?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\OnDemandScanning;
class ImageOccurrence extends \Google\Collection
{
protected $collection_key = 'layerInfo';
/**
* Output only. This contains the base image URL for the derived image
* occurrence.
*
* @var string
*/
public $baseResourceUrl;
/**
* Output only. The number of layers by which this image differs from the
* associated image basis.
*
* @var int
*/
public $distance;
protected $fingerprintType = Fingerprint::class;
protected $fingerprintDataType = '';
protected $layerInfoType = Layer::class;
protected $layerInfoDataType = 'array';
/**
* Output only. This contains the base image URL for the derived image
* occurrence.
*
* @param string $baseResourceUrl
*/
public function setBaseResourceUrl($baseResourceUrl)
{
$this->baseResourceUrl = $baseResourceUrl;
}
/**
* @return string
*/
public function getBaseResourceUrl()
{
return $this->baseResourceUrl;
}
/**
* Output only. The number of layers by which this image differs from the
* associated image basis.
*
* @param int $distance
*/
public function setDistance($distance)
{
$this->distance = $distance;
}
/**
* @return int
*/
public function getDistance()
{
return $this->distance;
}
/**
* Required. The fingerprint of the derived image.
*
* @param Fingerprint $fingerprint
*/
public function setFingerprint(Fingerprint $fingerprint)
{
$this->fingerprint = $fingerprint;
}
/**
* @return Fingerprint
*/
public function getFingerprint()
{
return $this->fingerprint;
}
/**
* This contains layer-specific metadata, if populated it has length
* "distance" and is ordered with [distance] being the layer immediately
* following the base image and [1] being the final layer.
*
* @param Layer[] $layerInfo
*/
public function setLayerInfo($layerInfo)
{
$this->layerInfo = $layerInfo;
}
/**
* @return Layer[]
*/
public function getLayerInfo()
{
return $this->layerInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageOccurrence::class, 'Google_Service_OnDemandScanning_ImageOccurrence');
@@ -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\OnDemandScanning;
class InTotoProvenance extends \Google\Collection
{
protected $collection_key = 'materials';
protected $builderConfigType = BuilderConfig::class;
protected $builderConfigDataType = '';
/**
* The collection of artifacts that influenced the build including sources,
* dependencies, build tools, base images, and so on. This is considered to be
* incomplete unless metadata.completeness.materials is true. Unset or null is
* equivalent to empty.
*
* @var string[]
*/
public $materials;
protected $metadataType = Metadata::class;
protected $metadataDataType = '';
protected $recipeType = Recipe::class;
protected $recipeDataType = '';
/**
* required
*
* @param BuilderConfig $builderConfig
*/
public function setBuilderConfig(BuilderConfig $builderConfig)
{
$this->builderConfig = $builderConfig;
}
/**
* @return BuilderConfig
*/
public function getBuilderConfig()
{
return $this->builderConfig;
}
/**
* The collection of artifacts that influenced the build including sources,
* dependencies, build tools, base images, and so on. This is considered to be
* incomplete unless metadata.completeness.materials is true. Unset or null is
* equivalent to empty.
*
* @param string[] $materials
*/
public function setMaterials($materials)
{
$this->materials = $materials;
}
/**
* @return string[]
*/
public function getMaterials()
{
return $this->materials;
}
/**
* @param Metadata $metadata
*/
public function setMetadata(Metadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Identifies the configuration used for the build. When combined with
* materials, this SHOULD fully describe the build, such that re-running this
* recipe results in bit-for-bit identical output (if the build is
* reproducible). required
*
* @param Recipe $recipe
*/
public function setRecipe(Recipe $recipe)
{
$this->recipe = $recipe;
}
/**
* @return Recipe
*/
public function getRecipe()
{
return $this->recipe;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InTotoProvenance::class, 'Google_Service_OnDemandScanning_InTotoProvenance');
@@ -0,0 +1,103 @@
<?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\OnDemandScanning;
class InTotoSlsaProvenanceV1 extends \Google\Collection
{
protected $collection_key = 'subject';
protected $internal_gapi_mappings = [
"type" => "_type",
];
/**
* InToto spec defined at https://github.com/in-
* toto/attestation/tree/main/spec#statement
*
* @var string
*/
public $type;
protected $predicateDataType = '';
/**
* @var string
*/
public $predicateType;
protected $subjectType = Subject::class;
protected $subjectDataType = 'array';
/**
* InToto spec defined at https://github.com/in-
* toto/attestation/tree/main/spec#statement
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param SlsaProvenanceV1 $predicate
*/
public function setPredicate(SlsaProvenanceV1 $predicate)
{
$this->predicate = $predicate;
}
/**
* @return SlsaProvenanceV1
*/
public function getPredicate()
{
return $this->predicate;
}
/**
* @param string $predicateType
*/
public function setPredicateType($predicateType)
{
$this->predicateType = $predicateType;
}
/**
* @return string
*/
public function getPredicateType()
{
return $this->predicateType;
}
/**
* @param Subject[] $subject
*/
public function setSubject($subject)
{
$this->subject = $subject;
}
/**
* @return Subject[]
*/
public function getSubject()
{
return $this->subject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InTotoSlsaProvenanceV1::class, 'Google_Service_OnDemandScanning_InTotoSlsaProvenanceV1');
@@ -0,0 +1,138 @@
<?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\OnDemandScanning;
class InTotoStatement extends \Google\Collection
{
protected $collection_key = 'subject';
protected $internal_gapi_mappings = [
"type" => "_type",
];
/**
* Always `https://in-toto.io/Statement/v0.1`.
*
* @var string
*/
public $type;
/**
* `https://slsa.dev/provenance/v0.1` for SlsaProvenance.
*
* @var string
*/
public $predicateType;
protected $provenanceType = InTotoProvenance::class;
protected $provenanceDataType = '';
protected $slsaProvenanceType = SlsaProvenance::class;
protected $slsaProvenanceDataType = '';
protected $slsaProvenanceZeroTwoType = SlsaProvenanceZeroTwo::class;
protected $slsaProvenanceZeroTwoDataType = '';
protected $subjectType = Subject::class;
protected $subjectDataType = 'array';
/**
* Always `https://in-toto.io/Statement/v0.1`.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* `https://slsa.dev/provenance/v0.1` for SlsaProvenance.
*
* @param string $predicateType
*/
public function setPredicateType($predicateType)
{
$this->predicateType = $predicateType;
}
/**
* @return string
*/
public function getPredicateType()
{
return $this->predicateType;
}
/**
* @param InTotoProvenance $provenance
*/
public function setProvenance(InTotoProvenance $provenance)
{
$this->provenance = $provenance;
}
/**
* @return InTotoProvenance
*/
public function getProvenance()
{
return $this->provenance;
}
/**
* @param SlsaProvenance $slsaProvenance
*/
public function setSlsaProvenance(SlsaProvenance $slsaProvenance)
{
$this->slsaProvenance = $slsaProvenance;
}
/**
* @return SlsaProvenance
*/
public function getSlsaProvenance()
{
return $this->slsaProvenance;
}
/**
* @param SlsaProvenanceZeroTwo $slsaProvenanceZeroTwo
*/
public function setSlsaProvenanceZeroTwo(SlsaProvenanceZeroTwo $slsaProvenanceZeroTwo)
{
$this->slsaProvenanceZeroTwo = $slsaProvenanceZeroTwo;
}
/**
* @return SlsaProvenanceZeroTwo
*/
public function getSlsaProvenanceZeroTwo()
{
return $this->slsaProvenanceZeroTwo;
}
/**
* @param Subject[] $subject
*/
public function setSubject($subject)
{
$this->subject = $subject;
}
/**
* @return Subject[]
*/
public function getSubject()
{
return $this->subject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InTotoStatement::class, 'Google_Service_OnDemandScanning_InTotoStatement');
@@ -0,0 +1,107 @@
<?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\OnDemandScanning;
class Justification extends \Google\Model
{
/**
* JUSTIFICATION_TYPE_UNSPECIFIED.
*/
public const JUSTIFICATION_TYPE_JUSTIFICATION_TYPE_UNSPECIFIED = 'JUSTIFICATION_TYPE_UNSPECIFIED';
/**
* The vulnerable component is not present in the product.
*/
public const JUSTIFICATION_TYPE_COMPONENT_NOT_PRESENT = 'COMPONENT_NOT_PRESENT';
/**
* The vulnerable code is not present. Typically this case occurs when source
* code is configured or built in a way that excludes the vulnerable code.
*/
public const JUSTIFICATION_TYPE_VULNERABLE_CODE_NOT_PRESENT = 'VULNERABLE_CODE_NOT_PRESENT';
/**
* The vulnerable code can not be executed. Typically this case occurs when
* the product includes the vulnerable code but does not call or use the
* vulnerable code.
*/
public const JUSTIFICATION_TYPE_VULNERABLE_CODE_NOT_IN_EXECUTE_PATH = 'VULNERABLE_CODE_NOT_IN_EXECUTE_PATH';
/**
* The vulnerable code cannot be controlled by an attacker to exploit the
* vulnerability.
*/
public const JUSTIFICATION_TYPE_VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY = 'VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY';
/**
* The product includes built-in protections or features that prevent
* exploitation of the vulnerability. These built-in protections cannot be
* subverted by the attacker and cannot be configured or disabled by the user.
* These mitigations completely prevent exploitation based on known attack
* vectors.
*/
public const JUSTIFICATION_TYPE_INLINE_MITIGATIONS_ALREADY_EXIST = 'INLINE_MITIGATIONS_ALREADY_EXIST';
/**
* Additional details on why this justification was chosen.
*
* @var string
*/
public $details;
/**
* The justification type for this vulnerability.
*
* @var string
*/
public $justificationType;
/**
* Additional details on why this justification was chosen.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* The justification type for this vulnerability.
*
* Accepted values: JUSTIFICATION_TYPE_UNSPECIFIED, COMPONENT_NOT_PRESENT,
* VULNERABLE_CODE_NOT_PRESENT, VULNERABLE_CODE_NOT_IN_EXECUTE_PATH,
* VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY,
* INLINE_MITIGATIONS_ALREADY_EXIST
*
* @param self::JUSTIFICATION_TYPE_* $justificationType
*/
public function setJustificationType($justificationType)
{
$this->justificationType = $justificationType;
}
/**
* @return self::JUSTIFICATION_TYPE_*
*/
public function getJustificationType()
{
return $this->justificationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Justification::class, 'Google_Service_OnDemandScanning_Justification');
@@ -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\OnDemandScanning;
class Jwt extends \Google\Model
{
/**
* The compact encoding of a JWS, which is always three base64 encoded strings
* joined by periods. For details, see:
* https://tools.ietf.org/html/rfc7515.html#section-3.1
*
* @var string
*/
public $compactJwt;
/**
* The compact encoding of a JWS, which is always three base64 encoded strings
* joined by periods. For details, see:
* https://tools.ietf.org/html/rfc7515.html#section-3.1
*
* @param string $compactJwt
*/
public function setCompactJwt($compactJwt)
{
$this->compactJwt = $compactJwt;
}
/**
* @return string
*/
public function getCompactJwt()
{
return $this->compactJwt;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Jwt::class, 'Google_Service_OnDemandScanning_Jwt');
@@ -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\OnDemandScanning;
class LanguagePackageDependency extends \Google\Model
{
/**
* @var string
*/
public $package;
/**
* @var string
*/
public $version;
/**
* @param string $package
*/
public function setPackage($package)
{
$this->package = $package;
}
/**
* @return string
*/
public function getPackage()
{
return $this->package;
}
/**
* @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(LanguagePackageDependency::class, 'Google_Service_OnDemandScanning_LanguagePackageDependency');
@@ -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\OnDemandScanning;
class Layer extends \Google\Model
{
/**
* The recovered arguments to the Dockerfile directive.
*
* @var string
*/
public $arguments;
/**
* Required. The recovered Dockerfile directive used to construct this layer.
* See https://docs.docker.com/engine/reference/builder/ for more information.
*
* @var string
*/
public $directive;
/**
* The recovered arguments to the Dockerfile directive.
*
* @param string $arguments
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return string
*/
public function getArguments()
{
return $this->arguments;
}
/**
* Required. The recovered Dockerfile directive used to construct this layer.
* See https://docs.docker.com/engine/reference/builder/ for more information.
*
* @param string $directive
*/
public function setDirective($directive)
{
$this->directive = $directive;
}
/**
* @return string
*/
public function getDirective()
{
return $this->directive;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Layer::class, 'Google_Service_OnDemandScanning_Layer');
@@ -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\OnDemandScanning;
class LayerDetails extends \Google\Collection
{
protected $collection_key = 'baseImages';
protected $baseImagesType = BaseImage::class;
protected $baseImagesDataType = 'array';
/**
* The layer chain ID (sha256 hash) of the layer in the container image.
* https://github.com/opencontainers/image-spec/blob/main/config.md#layer-
* chainid
*
* @var string
*/
public $chainId;
/**
* The layer build command that was used to build the layer. This may not be
* found in all layers depending on how the container image is built.
*
* @var string
*/
public $command;
/**
* The diff ID (sha256 hash) of the layer in the container image.
*
* @var string
*/
public $diffId;
/**
* The index of the layer in the container image.
*
* @var int
*/
public $index;
/**
* The base images the layer is found within.
*
* @param BaseImage[] $baseImages
*/
public function setBaseImages($baseImages)
{
$this->baseImages = $baseImages;
}
/**
* @return BaseImage[]
*/
public function getBaseImages()
{
return $this->baseImages;
}
/**
* The layer chain ID (sha256 hash) of the layer in the container image.
* https://github.com/opencontainers/image-spec/blob/main/config.md#layer-
* chainid
*
* @param string $chainId
*/
public function setChainId($chainId)
{
$this->chainId = $chainId;
}
/**
* @return string
*/
public function getChainId()
{
return $this->chainId;
}
/**
* The layer build command that was used to build the layer. This may not be
* found in all layers depending on how the container image is built.
*
* @param string $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string
*/
public function getCommand()
{
return $this->command;
}
/**
* The diff ID (sha256 hash) of the layer in the container image.
*
* @param string $diffId
*/
public function setDiffId($diffId)
{
$this->diffId = $diffId;
}
/**
* @return string
*/
public function getDiffId()
{
return $this->diffId;
}
/**
* The index of the layer in the container image.
*
* @param int $index
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return int
*/
public function getIndex()
{
return $this->index;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LayerDetails::class, 'Google_Service_OnDemandScanning_LayerDetails');
@@ -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\OnDemandScanning;
class License extends \Google\Model
{
/**
* Comments
*
* @var string
*/
public $comments;
/**
* Often a single license can be used to represent the licensing terms.
* Sometimes it is necessary to include a choice of one or more licenses or
* some combination of license identifiers. Examples: "LGPL-2.1-only OR MIT",
* "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
*
* @var string
*/
public $expression;
/**
* Comments
*
* @param string $comments
*/
public function setComments($comments)
{
$this->comments = $comments;
}
/**
* @return string
*/
public function getComments()
{
return $this->comments;
}
/**
* Often a single license can be used to represent the licensing terms.
* Sometimes it is necessary to include a choice of one or more licenses or
* some combination of license identifiers. Examples: "LGPL-2.1-only OR MIT",
* "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(License::class, 'Google_Service_OnDemandScanning_License');
@@ -0,0 +1,95 @@
<?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\OnDemandScanning;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_OnDemandScanning_ListOperationsResponse');
@@ -0,0 +1,69 @@
<?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\OnDemandScanning;
class ListVulnerabilitiesResponseV1 extends \Google\Collection
{
protected $collection_key = 'occurrences';
/**
* A page token that can be used in a subsequent call to ListVulnerabilities
* to continue retrieving results.
*
* @var string
*/
public $nextPageToken;
protected $occurrencesType = Occurrence::class;
protected $occurrencesDataType = 'array';
/**
* A page token that can be used in a subsequent call to ListVulnerabilities
* to continue retrieving results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of Vulnerability Occurrences resulting from a scan.
*
* @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(ListVulnerabilitiesResponseV1::class, 'Google_Service_OnDemandScanning_ListVulnerabilitiesResponseV1');
@@ -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\OnDemandScanning;
class Location extends \Google\Model
{
/**
* Deprecated. The CPE URI in [CPE
* format](https://cpe.mitre.org/specification/)
*
* @var string
*/
public $cpeUri;
/**
* The path from which we gathered that this package/version is installed.
*
* @var string
*/
public $path;
protected $versionType = Version::class;
protected $versionDataType = '';
/**
* Deprecated. The CPE URI in [CPE
* format](https://cpe.mitre.org/specification/)
*
* @param string $cpeUri
*/
public function setCpeUri($cpeUri)
{
$this->cpeUri = $cpeUri;
}
/**
* @return string
*/
public function getCpeUri()
{
return $this->cpeUri;
}
/**
* The path from which we gathered that this package/version is installed.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Deprecated. The version installed at this location.
*
* @param Version $version
*/
public function setVersion(Version $version)
{
$this->version = $version;
}
/**
* @return Version
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_OnDemandScanning_Location');
@@ -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\OnDemandScanning;
class Maintainer extends \Google\Model
{
/**
* @var string
*/
public $email;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $url;
/**
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @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(Maintainer::class, 'Google_Service_OnDemandScanning_Maintainer');
@@ -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\OnDemandScanning;
class Material extends \Google\Model
{
/**
* @var string[]
*/
public $digest;
/**
* @var string
*/
public $uri;
/**
* @param string[] $digest
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @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(Material::class, 'Google_Service_OnDemandScanning_Material');
@@ -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\OnDemandScanning;
class Metadata extends \Google\Model
{
/**
* The timestamp of when the build completed.
*
* @var string
*/
public $buildFinishedOn;
/**
* Identifies the particular build invocation, which can be useful for finding
* associated logs or other ad-hoc analysis. The value SHOULD be globally
* unique, per in-toto Provenance spec.
*
* @var string
*/
public $buildInvocationId;
/**
* The timestamp of when the build started.
*
* @var string
*/
public $buildStartedOn;
protected $completenessType = Completeness::class;
protected $completenessDataType = '';
/**
* If true, the builder claims that running the recipe on materials will
* produce bit-for-bit identical output.
*
* @var bool
*/
public $reproducible;
/**
* The timestamp of when the build completed.
*
* @param string $buildFinishedOn
*/
public function setBuildFinishedOn($buildFinishedOn)
{
$this->buildFinishedOn = $buildFinishedOn;
}
/**
* @return string
*/
public function getBuildFinishedOn()
{
return $this->buildFinishedOn;
}
/**
* Identifies the particular build invocation, which can be useful for finding
* associated logs or other ad-hoc analysis. The value SHOULD be globally
* unique, per in-toto Provenance spec.
*
* @param string $buildInvocationId
*/
public function setBuildInvocationId($buildInvocationId)
{
$this->buildInvocationId = $buildInvocationId;
}
/**
* @return string
*/
public function getBuildInvocationId()
{
return $this->buildInvocationId;
}
/**
* The timestamp of when the build started.
*
* @param string $buildStartedOn
*/
public function setBuildStartedOn($buildStartedOn)
{
$this->buildStartedOn = $buildStartedOn;
}
/**
* @return string
*/
public function getBuildStartedOn()
{
return $this->buildStartedOn;
}
/**
* Indicates that the builder claims certain fields in this message to be
* complete.
*
* @param Completeness $completeness
*/
public function setCompleteness(Completeness $completeness)
{
$this->completeness = $completeness;
}
/**
* @return Completeness
*/
public function getCompleteness()
{
return $this->completeness;
}
/**
* If true, the builder claims that running the recipe on materials will
* produce bit-for-bit identical output.
*
* @param bool $reproducible
*/
public function setReproducible($reproducible)
{
$this->reproducible = $reproducible;
}
/**
* @return bool
*/
public function getReproducible()
{
return $this->reproducible;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metadata::class, 'Google_Service_OnDemandScanning_Metadata');
@@ -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\OnDemandScanning;
class NonCompliantFile extends \Google\Model
{
/**
* Command to display the non-compliant files.
*
* @var string
*/
public $displayCommand;
/**
* Empty if `display_command` is set.
*
* @var string
*/
public $path;
/**
* Explains why a file is non compliant for a CIS check.
*
* @var string
*/
public $reason;
/**
* Command to display the non-compliant files.
*
* @param string $displayCommand
*/
public function setDisplayCommand($displayCommand)
{
$this->displayCommand = $displayCommand;
}
/**
* @return string
*/
public function getDisplayCommand()
{
return $this->displayCommand;
}
/**
* Empty if `display_command` is set.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Explains why a file is non compliant for a CIS check.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NonCompliantFile::class, 'Google_Service_OnDemandScanning_NonCompliantFile');
@@ -0,0 +1,531 @@
<?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\OnDemandScanning;
class Occurrence extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const KIND_NOTE_KIND_UNSPECIFIED = 'NOTE_KIND_UNSPECIFIED';
/**
* The note and occurrence represent a package vulnerability.
*/
public const KIND_VULNERABILITY = 'VULNERABILITY';
/**
* The note and occurrence assert build provenance.
*/
public const KIND_BUILD = 'BUILD';
/**
* This represents an image basis relationship.
*/
public const KIND_IMAGE = 'IMAGE';
/**
* This represents a package installed via a package manager.
*/
public const KIND_PACKAGE = 'PACKAGE';
/**
* The note and occurrence track deployment events.
*/
public const KIND_DEPLOYMENT = 'DEPLOYMENT';
/**
* The note and occurrence track the initial discovery status of a resource.
*/
public const KIND_DISCOVERY = 'DISCOVERY';
/**
* This represents a logical "role" that can attest to artifacts.
*/
public const KIND_ATTESTATION = 'ATTESTATION';
/**
* This represents an available package upgrade.
*/
public const KIND_UPGRADE = 'UPGRADE';
/**
* This represents a Compliance Note
*/
public const KIND_COMPLIANCE = 'COMPLIANCE';
/**
* This represents a DSSE attestation Note
*/
public const KIND_DSSE_ATTESTATION = 'DSSE_ATTESTATION';
/**
* This represents a Vulnerability Assessment.
*/
public const KIND_VULNERABILITY_ASSESSMENT = 'VULNERABILITY_ASSESSMENT';
/**
* This represents an SBOM Reference.
*/
public const KIND_SBOM_REFERENCE = 'SBOM_REFERENCE';
/**
* This represents a secret.
*/
public const KIND_SECRET = 'SECRET';
/**
* This represents an AI skill analysis.
*/
public const KIND_AI_SKILL_ANALYSIS = 'AI_SKILL_ANALYSIS';
/**
* The time this advisory was published by the source.
*
* @var string
*/
public $advisoryPublishTime;
protected $aiSkillAnalysisType = AISkillAnalysisOccurrence::class;
protected $aiSkillAnalysisDataType = '';
protected $attestationType = AttestationOccurrence::class;
protected $attestationDataType = '';
protected $buildType = BuildOccurrence::class;
protected $buildDataType = '';
protected $complianceType = ComplianceOccurrence::class;
protected $complianceDataType = '';
/**
* Output only. The time this occurrence was created.
*
* @var string
*/
public $createTime;
protected $deploymentType = DeploymentOccurrence::class;
protected $deploymentDataType = '';
protected $discoveryType = DiscoveryOccurrence::class;
protected $discoveryDataType = '';
protected $dsseAttestationType = DSSEAttestationOccurrence::class;
protected $dsseAttestationDataType = '';
protected $envelopeType = Envelope::class;
protected $envelopeDataType = '';
protected $imageType = ImageOccurrence::class;
protected $imageDataType = '';
/**
* Output only. This explicitly denotes which of the occurrence details are
* specified. This field can be used as a filter in list requests.
*
* @var string
*/
public $kind;
/**
* Output only. The name of the occurrence in the form of
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
*
* @var string
*/
public $name;
/**
* Required. Immutable. The analysis note associated with this occurrence, in
* the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be
* used as a filter in list requests.
*
* @var string
*/
public $noteName;
protected $packageType = PackageOccurrence::class;
protected $packageDataType = '';
/**
* A description of actions that can be taken to remedy the note.
*
* @var string
*/
public $remediation;
/**
* Required. Immutable. A URI that represents the resource for which the
* occurrence applies. For example,
* `https://gcr.io/project/image@sha256:123abc` for a Docker image.
*
* @var string
*/
public $resourceUri;
protected $sbomReferenceType = SBOMReferenceOccurrence::class;
protected $sbomReferenceDataType = '';
protected $secretType = SecretOccurrence::class;
protected $secretDataType = '';
/**
* Output only. The time this occurrence was last updated.
*
* @var string
*/
public $updateTime;
protected $upgradeType = UpgradeOccurrence::class;
protected $upgradeDataType = '';
protected $vulnerabilityType = VulnerabilityOccurrence::class;
protected $vulnerabilityDataType = '';
/**
* The time this advisory was published by the source.
*
* @param string $advisoryPublishTime
*/
public function setAdvisoryPublishTime($advisoryPublishTime)
{
$this->advisoryPublishTime = $advisoryPublishTime;
}
/**
* @return string
*/
public function getAdvisoryPublishTime()
{
return $this->advisoryPublishTime;
}
/**
* Describes an AI skill analysis.
*
* @param AISkillAnalysisOccurrence $aiSkillAnalysis
*/
public function setAiSkillAnalysis(AISkillAnalysisOccurrence $aiSkillAnalysis)
{
$this->aiSkillAnalysis = $aiSkillAnalysis;
}
/**
* @return AISkillAnalysisOccurrence
*/
public function getAiSkillAnalysis()
{
return $this->aiSkillAnalysis;
}
/**
* Describes an attestation of an artifact.
*
* @param AttestationOccurrence $attestation
*/
public function setAttestation(AttestationOccurrence $attestation)
{
$this->attestation = $attestation;
}
/**
* @return AttestationOccurrence
*/
public function getAttestation()
{
return $this->attestation;
}
/**
* Describes a verifiable build.
*
* @param BuildOccurrence $build
*/
public function setBuild(BuildOccurrence $build)
{
$this->build = $build;
}
/**
* @return BuildOccurrence
*/
public function getBuild()
{
return $this->build;
}
/**
* Describes a compliance violation on a linked resource.
*
* @param ComplianceOccurrence $compliance
*/
public function setCompliance(ComplianceOccurrence $compliance)
{
$this->compliance = $compliance;
}
/**
* @return ComplianceOccurrence
*/
public function getCompliance()
{
return $this->compliance;
}
/**
* Output only. The time this occurrence was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Describes the deployment of an artifact on a runtime.
*
* @param DeploymentOccurrence $deployment
*/
public function setDeployment(DeploymentOccurrence $deployment)
{
$this->deployment = $deployment;
}
/**
* @return DeploymentOccurrence
*/
public function getDeployment()
{
return $this->deployment;
}
/**
* Describes when a resource was discovered.
*
* @param DiscoveryOccurrence $discovery
*/
public function setDiscovery(DiscoveryOccurrence $discovery)
{
$this->discovery = $discovery;
}
/**
* @return DiscoveryOccurrence
*/
public function getDiscovery()
{
return $this->discovery;
}
/**
* Describes an attestation of an artifact using dsse.
*
* @param DSSEAttestationOccurrence $dsseAttestation
*/
public function setDsseAttestation(DSSEAttestationOccurrence $dsseAttestation)
{
$this->dsseAttestation = $dsseAttestation;
}
/**
* @return DSSEAttestationOccurrence
*/
public function getDsseAttestation()
{
return $this->dsseAttestation;
}
/**
* https://github.com/secure-systems-lab/dsse
*
* @param Envelope $envelope
*/
public function setEnvelope(Envelope $envelope)
{
$this->envelope = $envelope;
}
/**
* @return Envelope
*/
public function getEnvelope()
{
return $this->envelope;
}
/**
* Describes how this resource derives from the basis in the associated note.
*
* @param ImageOccurrence $image
*/
public function setImage(ImageOccurrence $image)
{
$this->image = $image;
}
/**
* @return ImageOccurrence
*/
public function getImage()
{
return $this->image;
}
/**
* Output only. This explicitly denotes which of the occurrence details are
* specified. This field can be used as a filter in list requests.
*
* Accepted values: NOTE_KIND_UNSPECIFIED, VULNERABILITY, BUILD, IMAGE,
* PACKAGE, DEPLOYMENT, DISCOVERY, ATTESTATION, UPGRADE, COMPLIANCE,
* DSSE_ATTESTATION, VULNERABILITY_ASSESSMENT, SBOM_REFERENCE, SECRET,
* AI_SKILL_ANALYSIS
*
* @param self::KIND_* $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return self::KIND_*
*/
public function getKind()
{
return $this->kind;
}
/**
* Output only. The name of the occurrence in the form of
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Immutable. The analysis note associated with this occurrence, in
* the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be
* used as a filter in list requests.
*
* @param string $noteName
*/
public function setNoteName($noteName)
{
$this->noteName = $noteName;
}
/**
* @return string
*/
public function getNoteName()
{
return $this->noteName;
}
/**
* Describes the installation of a package on the linked resource.
*
* @param PackageOccurrence $package
*/
public function setPackage(PackageOccurrence $package)
{
$this->package = $package;
}
/**
* @return PackageOccurrence
*/
public function getPackage()
{
return $this->package;
}
/**
* A description of actions that can be taken to remedy the note.
*
* @param string $remediation
*/
public function setRemediation($remediation)
{
$this->remediation = $remediation;
}
/**
* @return string
*/
public function getRemediation()
{
return $this->remediation;
}
/**
* Required. Immutable. A URI that represents the resource for which the
* occurrence applies. For example,
* `https://gcr.io/project/image@sha256:123abc` for a Docker image.
*
* @param string $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* Describes a specific SBOM reference occurrences.
*
* @param SBOMReferenceOccurrence $sbomReference
*/
public function setSbomReference(SBOMReferenceOccurrence $sbomReference)
{
$this->sbomReference = $sbomReference;
}
/**
* @return SBOMReferenceOccurrence
*/
public function getSbomReference()
{
return $this->sbomReference;
}
/**
* Describes a secret.
*
* @param SecretOccurrence $secret
*/
public function setSecret(SecretOccurrence $secret)
{
$this->secret = $secret;
}
/**
* @return SecretOccurrence
*/
public function getSecret()
{
return $this->secret;
}
/**
* Output only. The time this occurrence was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Describes an available package upgrade on the linked resource.
*
* @param UpgradeOccurrence $upgrade
*/
public function setUpgrade(UpgradeOccurrence $upgrade)
{
$this->upgrade = $upgrade;
}
/**
* @return UpgradeOccurrence
*/
public function getUpgrade()
{
return $this->upgrade;
}
/**
* Describes a security vulnerability.
*
* @param VulnerabilityOccurrence $vulnerability
*/
public function setVulnerability(VulnerabilityOccurrence $vulnerability)
{
$this->vulnerability = $vulnerability;
}
/**
* @return VulnerabilityOccurrence
*/
public function getVulnerability()
{
return $this->vulnerability;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Occurrence::class, 'Google_Service_OnDemandScanning_Occurrence');
@@ -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\OnDemandScanning;
class OndemandscanningEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OndemandscanningEmpty::class, 'Google_Service_OnDemandScanning_OndemandscanningEmpty');
@@ -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\OnDemandScanning;
class OndemandscanningFile 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(OndemandscanningFile::class, 'Google_Service_OnDemandScanning_OndemandscanningFile');
@@ -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\OnDemandScanning;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_OnDemandScanning_Operation');
@@ -0,0 +1,457 @@
<?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\OnDemandScanning;
class PackageData extends \Google\Collection
{
public const PACKAGE_TYPE_PACKAGE_TYPE_UNSPECIFIED = 'PACKAGE_TYPE_UNSPECIFIED';
/**
* Operating System
*/
public const PACKAGE_TYPE_OS = 'OS';
/**
* Java packages from Maven.
*/
public const PACKAGE_TYPE_MAVEN = 'MAVEN';
/**
* Go third-party packages.
*/
public const PACKAGE_TYPE_GO = 'GO';
/**
* Go toolchain + standard library packages.
*/
public const PACKAGE_TYPE_GO_STDLIB = 'GO_STDLIB';
/**
* Python packages.
*/
public const PACKAGE_TYPE_PYPI = 'PYPI';
/**
* NPM packages.
*/
public const PACKAGE_TYPE_NPM = 'NPM';
/**
* Nuget (C#/.NET) packages.
*/
public const PACKAGE_TYPE_NUGET = 'NUGET';
/**
* Ruby packges (from RubyGems package manager).
*/
public const PACKAGE_TYPE_RUBYGEMS = 'RUBYGEMS';
/**
* Rust packages from Cargo (GitHub ecosystem is `RUST`).
*/
public const PACKAGE_TYPE_RUST = 'RUST';
/**
* PHP packages from Composer package manager.
*/
public const PACKAGE_TYPE_COMPOSER = 'COMPOSER';
/**
* Swift packages from Swift Package Manager (SwiftPM).
*/
public const PACKAGE_TYPE_SWIFT = 'SWIFT';
protected $collection_key = 'patchedCve';
/**
* The architecture of the package.
*
* @var string
*/
public $architecture;
protected $binarySourceInfoType = BinarySourceInfo::class;
protected $binarySourceInfoDataType = 'array';
protected $binaryVersionType = PackageVersion::class;
protected $binaryVersionDataType = '';
/**
* The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
* the vulnerability may manifest. Examples include distro or storage location
* for vulnerable jar.
*
* @var string
*/
public $cpeUri;
protected $dependencyChainType = LanguagePackageDependency::class;
protected $dependencyChainDataType = 'array';
protected $fileLocationType = FileLocation::class;
protected $fileLocationDataType = 'array';
/**
* HashDigest stores the SHA512 hash digest of the jar file if the package is
* of type Maven. This field will be unset for non Maven packages.
*
* @var string
*/
public $hashDigest;
protected $layerDetailsType = LayerDetails::class;
protected $layerDetailsDataType = '';
/**
* The list of licenses found that are related to a given package. Note that
* licenses may also be stored on the BinarySourceInfo. If there is no
* BinarySourceInfo (because there's no concept of source vs binary), then it
* will be stored here, while if there are BinarySourceInfos, it will be
* stored there, as one source can have multiple binaries with different
* licenses.
*
* @var string[]
*/
public $licenses;
protected $maintainerType = Maintainer::class;
protected $maintainerDataType = '';
/**
* The OS affected by a vulnerability Used to generate the cpe_uri for OS
* packages
*
* @var string
*/
public $os;
/**
* The version of the OS Used to generate the cpe_uri for OS packages
*
* @var string
*/
public $osVersion;
/**
* The package being analysed for vulnerabilities
*
* @var string
*/
public $package;
/**
* The type of package: os, maven, go, etc.
*
* @var string
*/
public $packageType;
/**
* CVEs that this package is no longer vulnerable to
*
* @var string[]
*/
public $patchedCve;
protected $sourceVersionType = PackageVersion::class;
protected $sourceVersionDataType = '';
/**
* @var string
*/
public $unused;
/**
* The version of the package being analysed
*
* @var string
*/
public $version;
/**
* The architecture of the package.
*
* @param string $architecture
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return string
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* A bundle containing the binary and source information.
*
* @param BinarySourceInfo[] $binarySourceInfo
*/
public function setBinarySourceInfo($binarySourceInfo)
{
$this->binarySourceInfo = $binarySourceInfo;
}
/**
* @return BinarySourceInfo[]
*/
public function getBinarySourceInfo()
{
return $this->binarySourceInfo;
}
/**
* DEPRECATED
*
* @param PackageVersion $binaryVersion
*/
public function setBinaryVersion(PackageVersion $binaryVersion)
{
$this->binaryVersion = $binaryVersion;
}
/**
* @return PackageVersion
*/
public function getBinaryVersion()
{
return $this->binaryVersion;
}
/**
* The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
* the vulnerability may manifest. Examples include distro or storage location
* for vulnerable jar.
*
* @param string $cpeUri
*/
public function setCpeUri($cpeUri)
{
$this->cpeUri = $cpeUri;
}
/**
* @return string
*/
public function getCpeUri()
{
return $this->cpeUri;
}
/**
* The dependency chain between this package and the user's artifact. List in
* order from the customer's package under review first, to the current
* package last. Inclusive of the original package and the current package.
*
* @param LanguagePackageDependency[] $dependencyChain
*/
public function setDependencyChain($dependencyChain)
{
$this->dependencyChain = $dependencyChain;
}
/**
* @return LanguagePackageDependency[]
*/
public function getDependencyChain()
{
return $this->dependencyChain;
}
/**
* The path to the jar file / go binary file.
*
* @param FileLocation[] $fileLocation
*/
public function setFileLocation($fileLocation)
{
$this->fileLocation = $fileLocation;
}
/**
* @return FileLocation[]
*/
public function getFileLocation()
{
return $this->fileLocation;
}
/**
* HashDigest stores the SHA512 hash digest of the jar file if the package is
* of type Maven. This field will be unset for non Maven packages.
*
* @param string $hashDigest
*/
public function setHashDigest($hashDigest)
{
$this->hashDigest = $hashDigest;
}
/**
* @return string
*/
public function getHashDigest()
{
return $this->hashDigest;
}
/**
* @param LayerDetails $layerDetails
*/
public function setLayerDetails(LayerDetails $layerDetails)
{
$this->layerDetails = $layerDetails;
}
/**
* @return LayerDetails
*/
public function getLayerDetails()
{
return $this->layerDetails;
}
/**
* The list of licenses found that are related to a given package. Note that
* licenses may also be stored on the BinarySourceInfo. If there is no
* BinarySourceInfo (because there's no concept of source vs binary), then it
* will be stored here, while if there are BinarySourceInfos, it will be
* stored there, as one source can have multiple binaries with different
* licenses.
*
* @param string[] $licenses
*/
public function setLicenses($licenses)
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
public function getLicenses()
{
return $this->licenses;
}
/**
* The maintainer of the package.
*
* @param Maintainer $maintainer
*/
public function setMaintainer(Maintainer $maintainer)
{
$this->maintainer = $maintainer;
}
/**
* @return Maintainer
*/
public function getMaintainer()
{
return $this->maintainer;
}
/**
* The OS affected by a vulnerability Used to generate the cpe_uri for OS
* packages
*
* @param string $os
*/
public function setOs($os)
{
$this->os = $os;
}
/**
* @return string
*/
public function getOs()
{
return $this->os;
}
/**
* The version of the OS Used to generate the cpe_uri for OS packages
*
* @param string $osVersion
*/
public function setOsVersion($osVersion)
{
$this->osVersion = $osVersion;
}
/**
* @return string
*/
public function getOsVersion()
{
return $this->osVersion;
}
/**
* The package being analysed for vulnerabilities
*
* @param string $package
*/
public function setPackage($package)
{
$this->package = $package;
}
/**
* @return string
*/
public function getPackage()
{
return $this->package;
}
/**
* The type of package: os, maven, go, etc.
*
* Accepted values: PACKAGE_TYPE_UNSPECIFIED, OS, MAVEN, GO, GO_STDLIB, PYPI,
* NPM, NUGET, RUBYGEMS, RUST, COMPOSER, SWIFT
*
* @param self::PACKAGE_TYPE_* $packageType
*/
public function setPackageType($packageType)
{
$this->packageType = $packageType;
}
/**
* @return self::PACKAGE_TYPE_*
*/
public function getPackageType()
{
return $this->packageType;
}
/**
* CVEs that this package is no longer vulnerable to
*
* @param string[] $patchedCve
*/
public function setPatchedCve($patchedCve)
{
$this->patchedCve = $patchedCve;
}
/**
* @return string[]
*/
public function getPatchedCve()
{
return $this->patchedCve;
}
/**
* DEPRECATED
*
* @param PackageVersion $sourceVersion
*/
public function setSourceVersion(PackageVersion $sourceVersion)
{
$this->sourceVersion = $sourceVersion;
}
/**
* @return PackageVersion
*/
public function getSourceVersion()
{
return $this->sourceVersion;
}
/**
* @param string $unused
*/
public function setUnused($unused)
{
$this->unused = $unused;
}
/**
* @return string
*/
public function getUnused()
{
return $this->unused;
}
/**
* The version of the package being analysed
*
* @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(PackageData::class, 'Google_Service_OnDemandScanning_PackageData');
@@ -0,0 +1,275 @@
<?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\OnDemandScanning;
class PackageIssue extends \Google\Collection
{
/**
* Unknown.
*/
public const EFFECTIVE_SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Minimal severity.
*/
public const EFFECTIVE_SEVERITY_MINIMAL = 'MINIMAL';
/**
* Low severity.
*/
public const EFFECTIVE_SEVERITY_LOW = 'LOW';
/**
* Medium severity.
*/
public const EFFECTIVE_SEVERITY_MEDIUM = 'MEDIUM';
/**
* High severity.
*/
public const EFFECTIVE_SEVERITY_HIGH = 'HIGH';
/**
* Critical severity.
*/
public const EFFECTIVE_SEVERITY_CRITICAL = 'CRITICAL';
protected $collection_key = 'fileLocation';
/**
* Required. The [CPE URI](https://cpe.mitre.org/specification/) this
* vulnerability was found in.
*
* @var string
*/
public $affectedCpeUri;
/**
* Required. The package this vulnerability was found in.
*
* @var string
*/
public $affectedPackage;
protected $affectedVersionType = Version::class;
protected $affectedVersionDataType = '';
/**
* Output only. The distro or language system assigned severity for this
* vulnerability when that is available and note provider assigned severity
* when it is not available.
*
* @var string
*/
public $effectiveSeverity;
protected $fileLocationType = GrafeasV1FileLocation::class;
protected $fileLocationDataType = 'array';
/**
* Output only. Whether a fix is available for this package.
*
* @var bool
*/
public $fixAvailable;
/**
* The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was
* fixed in. It is possible for this to be different from the
* affected_cpe_uri.
*
* @var string
*/
public $fixedCpeUri;
/**
* The package this vulnerability was fixed in. It is possible for this to be
* different from the affected_package.
*
* @var string
*/
public $fixedPackage;
protected $fixedVersionType = Version::class;
protected $fixedVersionDataType = '';
/**
* The type of package (e.g. OS, MAVEN, GO).
*
* @var string
*/
public $packageType;
/**
* Required. The [CPE URI](https://cpe.mitre.org/specification/) this
* vulnerability was found in.
*
* @param string $affectedCpeUri
*/
public function setAffectedCpeUri($affectedCpeUri)
{
$this->affectedCpeUri = $affectedCpeUri;
}
/**
* @return string
*/
public function getAffectedCpeUri()
{
return $this->affectedCpeUri;
}
/**
* Required. The package this vulnerability was found in.
*
* @param string $affectedPackage
*/
public function setAffectedPackage($affectedPackage)
{
$this->affectedPackage = $affectedPackage;
}
/**
* @return string
*/
public function getAffectedPackage()
{
return $this->affectedPackage;
}
/**
* Required. The version of the package that is installed on the resource
* affected by this vulnerability.
*
* @param Version $affectedVersion
*/
public function setAffectedVersion(Version $affectedVersion)
{
$this->affectedVersion = $affectedVersion;
}
/**
* @return Version
*/
public function getAffectedVersion()
{
return $this->affectedVersion;
}
/**
* Output only. The distro or language system assigned severity for this
* vulnerability when that is available and note provider assigned severity
* when it is not available.
*
* Accepted values: SEVERITY_UNSPECIFIED, MINIMAL, LOW, MEDIUM, HIGH, CRITICAL
*
* @param self::EFFECTIVE_SEVERITY_* $effectiveSeverity
*/
public function setEffectiveSeverity($effectiveSeverity)
{
$this->effectiveSeverity = $effectiveSeverity;
}
/**
* @return self::EFFECTIVE_SEVERITY_*
*/
public function getEffectiveSeverity()
{
return $this->effectiveSeverity;
}
/**
* The location at which this package was found.
*
* @param GrafeasV1FileLocation[] $fileLocation
*/
public function setFileLocation($fileLocation)
{
$this->fileLocation = $fileLocation;
}
/**
* @return GrafeasV1FileLocation[]
*/
public function getFileLocation()
{
return $this->fileLocation;
}
/**
* Output only. Whether a fix is available for this package.
*
* @param bool $fixAvailable
*/
public function setFixAvailable($fixAvailable)
{
$this->fixAvailable = $fixAvailable;
}
/**
* @return bool
*/
public function getFixAvailable()
{
return $this->fixAvailable;
}
/**
* The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was
* fixed in. It is possible for this to be different from the
* affected_cpe_uri.
*
* @param string $fixedCpeUri
*/
public function setFixedCpeUri($fixedCpeUri)
{
$this->fixedCpeUri = $fixedCpeUri;
}
/**
* @return string
*/
public function getFixedCpeUri()
{
return $this->fixedCpeUri;
}
/**
* The package this vulnerability was fixed in. It is possible for this to be
* different from the affected_package.
*
* @param string $fixedPackage
*/
public function setFixedPackage($fixedPackage)
{
$this->fixedPackage = $fixedPackage;
}
/**
* @return string
*/
public function getFixedPackage()
{
return $this->fixedPackage;
}
/**
* Required. The version of the package this vulnerability was fixed in.
* Setting this to VersionKind.MAXIMUM means no fix is yet available.
*
* @param Version $fixedVersion
*/
public function setFixedVersion(Version $fixedVersion)
{
$this->fixedVersion = $fixedVersion;
}
/**
* @return Version
*/
public function getFixedVersion()
{
return $this->fixedVersion;
}
/**
* The type of package (e.g. OS, MAVEN, GO).
*
* @param string $packageType
*/
public function setPackageType($packageType)
{
$this->packageType = $packageType;
}
/**
* @return string
*/
public function getPackageType()
{
return $this->packageType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PackageIssue::class, 'Google_Service_OnDemandScanning_PackageIssue');
@@ -0,0 +1,194 @@
<?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\OnDemandScanning;
class PackageOccurrence extends \Google\Collection
{
/**
* Unknown architecture.
*/
public const ARCHITECTURE_ARCHITECTURE_UNSPECIFIED = 'ARCHITECTURE_UNSPECIFIED';
/**
* X86 architecture.
*/
public const ARCHITECTURE_X86 = 'X86';
/**
* X64 architecture.
*/
public const ARCHITECTURE_X64 = 'X64';
protected $collection_key = 'location';
/**
* Output only. The CPU architecture for which packages in this distribution
* channel were built. Architecture will be blank for language packages.
*
* @var string
*/
public $architecture;
/**
* Output only. The cpe_uri in [CPE
* format](https://cpe.mitre.org/specification/) denoting the package manager
* version distributing a package. The cpe_uri will be blank for language
* packages.
*
* @var string
*/
public $cpeUri;
protected $licenseType = License::class;
protected $licenseDataType = '';
protected $locationType = Location::class;
protected $locationDataType = 'array';
/**
* Required. Output only. The name of the installed package.
*
* @var string
*/
public $name;
/**
* Output only. The type of package; whether native or non native (e.g., ruby
* gems, node.js packages, etc.).
*
* @var string
*/
public $packageType;
protected $versionType = Version::class;
protected $versionDataType = '';
/**
* Output only. The CPU architecture for which packages in this distribution
* channel were built. Architecture will be blank for language packages.
*
* Accepted values: ARCHITECTURE_UNSPECIFIED, X86, X64
*
* @param self::ARCHITECTURE_* $architecture
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return self::ARCHITECTURE_*
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* Output only. The cpe_uri in [CPE
* format](https://cpe.mitre.org/specification/) denoting the package manager
* version distributing a package. The cpe_uri will be blank for language
* packages.
*
* @param string $cpeUri
*/
public function setCpeUri($cpeUri)
{
$this->cpeUri = $cpeUri;
}
/**
* @return string
*/
public function getCpeUri()
{
return $this->cpeUri;
}
/**
* Licenses that have been declared by the authors of the package.
*
* @param License $license
*/
public function setLicense(License $license)
{
$this->license = $license;
}
/**
* @return License
*/
public function getLicense()
{
return $this->license;
}
/**
* All of the places within the filesystem versions of this package have been
* found.
*
* @param Location[] $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return Location[]
*/
public function getLocation()
{
return $this->location;
}
/**
* Required. Output only. The name of the installed package.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The type of package; whether native or non native (e.g., ruby
* gems, node.js packages, etc.).
*
* @param string $packageType
*/
public function setPackageType($packageType)
{
$this->packageType = $packageType;
}
/**
* @return string
*/
public function getPackageType()
{
return $this->packageType;
}
/**
* Output only. The version of the package.
*
* @param Version $version
*/
public function setVersion(Version $version)
{
$this->version = $version;
}
/**
* @return Version
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PackageOccurrence::class, 'Google_Service_OnDemandScanning_PackageOccurrence');
@@ -0,0 +1,91 @@
<?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\OnDemandScanning;
class PackageVersion extends \Google\Collection
{
protected $collection_key = 'licenses';
/**
* The licenses associated with this package. Note that this has to go on the
* PackageVersion level, because we can have cases with images with the same
* source having different licences. E.g. in Alpine, musl and musl-utils both
* have the same origin musl, but have different sets of licenses.
*
* @var string[]
*/
public $licenses;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $version;
/**
* The licenses associated with this package. Note that this has to go on the
* PackageVersion level, because we can have cases with images with the same
* source having different licences. E.g. in Alpine, musl and musl-utils both
* have the same origin musl, but have different sets of licenses.
*
* @param string[] $licenses
*/
public function setLicenses($licenses)
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
public function getLicenses()
{
return $this->licenses;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @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(PackageVersion::class, 'Google_Service_OnDemandScanning_PackageVersion');
@@ -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\OnDemandScanning;
class ProjectRepoId extends \Google\Model
{
/**
* The ID of the project.
*
* @var string
*/
public $projectId;
/**
* The name of the repo. Leave empty for the default repo.
*
* @var string
*/
public $repoName;
/**
* The ID of the project.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* The name of the repo. Leave empty for the default repo.
*
* @param string $repoName
*/
public function setRepoName($repoName)
{
$this->repoName = $repoName;
}
/**
* @return string
*/
public function getRepoName()
{
return $this->repoName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectRepoId::class, 'Google_Service_OnDemandScanning_ProjectRepoId');
@@ -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\OnDemandScanning;
class ProvenanceBuilder extends \Google\Collection
{
protected $collection_key = 'builderDependencies';
protected $builderDependenciesType = ResourceDescriptor::class;
protected $builderDependenciesDataType = 'array';
/**
* @var string
*/
public $id;
/**
* @var string[]
*/
public $version;
/**
* @param ResourceDescriptor[] $builderDependencies
*/
public function setBuilderDependencies($builderDependencies)
{
$this->builderDependencies = $builderDependencies;
}
/**
* @return ResourceDescriptor[]
*/
public function getBuilderDependencies()
{
return $this->builderDependencies;
}
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @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(ProvenanceBuilder::class, 'Google_Service_OnDemandScanning_ProvenanceBuilder');
@@ -0,0 +1,171 @@
<?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\OnDemandScanning;
class Recipe extends \Google\Collection
{
protected $collection_key = 'environment';
/**
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe
* type were "make", then this might be the flags passed to make aside from
* the target, which is captured in recipe.entryPoint. Since the arguments
* field can greatly vary in structure, depending on the builder and recipe
* type, this is of form "Any".
*
* @var array[]
*/
public $arguments;
/**
* Index in materials containing the recipe steps that are not implied by
* recipe.type. For example, if the recipe type were "make", then this would
* point to the source containing the Makefile, not the make program itself.
* Set to -1 if the recipe doesn't come from a material, as zero is default
* unset value for int64.
*
* @var string
*/
public $definedInMaterial;
/**
* String identifying the entry point into the build. This is often a path to
* a configuration file and/or a target label within that file. The syntax and
* meaning are defined by recipe.type. For example, if the recipe type were
* "make", then this would reference the directory in which to run make as
* well as which target to use.
*
* @var string
*/
public $entryPoint;
/**
* Any other builder-controlled inputs necessary for correctly evaluating the
* recipe. Usually only needed for reproducing the build but not evaluated as
* part of policy. Since the environment field can greatly vary in structure,
* depending on the builder and recipe type, this is of form "Any".
*
* @var array[]
*/
public $environment;
/**
* URI indicating what type of recipe was performed. It determines the meaning
* of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
*
* @var string
*/
public $type;
/**
* Collection of all external inputs that influenced the build on top of
* recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe
* type were "make", then this might be the flags passed to make aside from
* the target, which is captured in recipe.entryPoint. Since the arguments
* field can greatly vary in structure, depending on the builder and recipe
* type, this is of form "Any".
*
* @param array[] $arguments
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return array[]
*/
public function getArguments()
{
return $this->arguments;
}
/**
* Index in materials containing the recipe steps that are not implied by
* recipe.type. For example, if the recipe type were "make", then this would
* point to the source containing the Makefile, not the make program itself.
* Set to -1 if the recipe doesn't come from a material, as zero is default
* unset value for int64.
*
* @param string $definedInMaterial
*/
public function setDefinedInMaterial($definedInMaterial)
{
$this->definedInMaterial = $definedInMaterial;
}
/**
* @return string
*/
public function getDefinedInMaterial()
{
return $this->definedInMaterial;
}
/**
* String identifying the entry point into the build. This is often a path to
* a configuration file and/or a target label within that file. The syntax and
* meaning are defined by recipe.type. For example, if the recipe type were
* "make", then this would reference the directory in which to run make as
* well as which target to use.
*
* @param string $entryPoint
*/
public function setEntryPoint($entryPoint)
{
$this->entryPoint = $entryPoint;
}
/**
* @return string
*/
public function getEntryPoint()
{
return $this->entryPoint;
}
/**
* Any other builder-controlled inputs necessary for correctly evaluating the
* recipe. Usually only needed for reproducing the build but not evaluated as
* part of policy. Since the environment field can greatly vary in structure,
* depending on the builder and recipe type, this is of form "Any".
*
* @param array[] $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return array[]
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* URI indicating what type of recipe was performed. It determines the meaning
* of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Recipe::class, 'Google_Service_OnDemandScanning_Recipe');
@@ -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\OnDemandScanning;
class RelatedUrl extends \Google\Model
{
/**
* Label to describe usage of the URL.
*
* @var string
*/
public $label;
/**
* Specific URL associated with the resource.
*
* @var string
*/
public $url;
/**
* Label to describe usage of the URL.
*
* @param string $label
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* Specific URL associated with the resource.
*
* @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(RelatedUrl::class, 'Google_Service_OnDemandScanning_RelatedUrl');
@@ -0,0 +1,115 @@
<?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\OnDemandScanning;
class Remediation extends \Google\Model
{
/**
* No remediation type specified.
*/
public const REMEDIATION_TYPE_REMEDIATION_TYPE_UNSPECIFIED = 'REMEDIATION_TYPE_UNSPECIFIED';
/**
* A MITIGATION is available.
*/
public const REMEDIATION_TYPE_MITIGATION = 'MITIGATION';
/**
* No fix is planned.
*/
public const REMEDIATION_TYPE_NO_FIX_PLANNED = 'NO_FIX_PLANNED';
/**
* Not available.
*/
public const REMEDIATION_TYPE_NONE_AVAILABLE = 'NONE_AVAILABLE';
/**
* A vendor fix is available.
*/
public const REMEDIATION_TYPE_VENDOR_FIX = 'VENDOR_FIX';
/**
* A workaround is available.
*/
public const REMEDIATION_TYPE_WORKAROUND = 'WORKAROUND';
/**
* Contains a comprehensive human-readable discussion of the remediation.
*
* @var string
*/
public $details;
/**
* The type of remediation that can be applied.
*
* @var string
*/
public $remediationType;
protected $remediationUriType = RelatedUrl::class;
protected $remediationUriDataType = '';
/**
* Contains a comprehensive human-readable discussion of the remediation.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* The type of remediation that can be applied.
*
* Accepted values: REMEDIATION_TYPE_UNSPECIFIED, MITIGATION, NO_FIX_PLANNED,
* NONE_AVAILABLE, VENDOR_FIX, WORKAROUND
*
* @param self::REMEDIATION_TYPE_* $remediationType
*/
public function setRemediationType($remediationType)
{
$this->remediationType = $remediationType;
}
/**
* @return self::REMEDIATION_TYPE_*
*/
public function getRemediationType()
{
return $this->remediationType;
}
/**
* Contains the URL where to obtain the remediation.
*
* @param RelatedUrl $remediationUri
*/
public function setRemediationUri(RelatedUrl $remediationUri)
{
$this->remediationUri = $remediationUri;
}
/**
* @return RelatedUrl
*/
public function getRemediationUri()
{
return $this->remediationUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Remediation::class, 'Google_Service_OnDemandScanning_Remediation');
@@ -0,0 +1,66 @@
<?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\OnDemandScanning;
class RepoId extends \Google\Model
{
protected $projectRepoIdType = ProjectRepoId::class;
protected $projectRepoIdDataType = '';
/**
* A server-assigned, globally unique identifier.
*
* @var string
*/
public $uid;
/**
* A combination of a project ID and a repo name.
*
* @param ProjectRepoId $projectRepoId
*/
public function setProjectRepoId(ProjectRepoId $projectRepoId)
{
$this->projectRepoId = $projectRepoId;
}
/**
* @return ProjectRepoId
*/
public function getProjectRepoId()
{
return $this->projectRepoId;
}
/**
* A server-assigned, globally unique identifier.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RepoId::class, 'Google_Service_OnDemandScanning_RepoId');
@@ -0,0 +1,33 @@
<?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\OnDemandScanning\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $ondemandscanningService = new Google\Service\OnDemandScanning(...);
* $projects = $ondemandscanningService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_OnDemandScanning_Resource_Projects');
@@ -0,0 +1,33 @@
<?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\OnDemandScanning\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $ondemandscanningService = new Google\Service\OnDemandScanning(...);
* $locations = $ondemandscanningService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_OnDemandScanning_Resource_ProjectsLocations');
@@ -0,0 +1,146 @@
<?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\OnDemandScanning\Resource;
use Google\Service\OnDemandScanning\ListOperationsResponse;
use Google\Service\OnDemandScanning\OndemandscanningEmpty;
use Google\Service\OnDemandScanning\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $ondemandscanningService = new Google\Service\OnDemandScanning(...);
* $operations = $ondemandscanningService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param array $optParams Optional parameters.
* @return OndemandscanningEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], OndemandscanningEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return OndemandscanningEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], OndemandscanningEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
/**
* Waits until the specified long-running operation is done or reaches at most a
* specified timeout, returning the latest state. If the operation is already
* done, the latest state is immediately returned. If the timeout specified is
* greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
* the server does not support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort
* basis. It may return the latest state before the specified timeout (including
* immediately), meaning even an immediate response is no guarantee that the
* operation is done. (operations.wait)
*
* @param string $name The name of the operation resource to wait on.
* @param array $optParams Optional parameters.
*
* @opt_param string timeout The maximum duration to wait before timing out. If
* left blank, the wait will be at most the time permitted by the underlying
* HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one
* will be used.
* @return Operation
* @throws \Google\Service\Exception
*/
public function wait($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('wait', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_OnDemandScanning_Resource_ProjectsLocationsOperations');
@@ -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\OnDemandScanning\Resource;
use Google\Service\OnDemandScanning\AnalyzePackagesRequestV1;
use Google\Service\OnDemandScanning\Operation;
/**
* The "scans" collection of methods.
* Typical usage is:
* <code>
* $ondemandscanningService = new Google\Service\OnDemandScanning(...);
* $scans = $ondemandscanningService->projects_locations_scans;
* </code>
*/
class ProjectsLocationsScans extends \Google\Service\Resource
{
/**
* Initiates an analysis of the provided packages. (scans.analyzePackages)
*
* @param string $parent Required. The parent of the resource for which analysis
* is requested. Format: projects/[project_name]/locations/[location]
* @param AnalyzePackagesRequestV1 $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function analyzePackages($parent, AnalyzePackagesRequestV1 $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('analyzePackages', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsScans::class, 'Google_Service_OnDemandScanning_Resource_ProjectsLocationsScans');
@@ -0,0 +1,56 @@
<?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\OnDemandScanning\Resource;
use Google\Service\OnDemandScanning\ListVulnerabilitiesResponseV1;
/**
* The "vulnerabilities" collection of methods.
* Typical usage is:
* <code>
* $ondemandscanningService = new Google\Service\OnDemandScanning(...);
* $vulnerabilities = $ondemandscanningService->projects_locations_scans_vulnerabilities;
* </code>
*/
class ProjectsLocationsScansVulnerabilities extends \Google\Service\Resource
{
/**
* Lists vulnerabilities resulting from a successfully completed scan.
* (vulnerabilities.listProjectsLocationsScansVulnerabilities)
*
* @param string $parent Required. The parent of the collection of
* Vulnerabilities being requested. Format:
* projects/[project_name]/locations/[location]/scans/[scan_id]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The number of vulnerabilities to retrieve.
* @opt_param string pageToken The page token, resulting from a previous call to
* ListVulnerabilities.
* @return ListVulnerabilitiesResponseV1
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsScansVulnerabilities($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVulnerabilitiesResponseV1::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsScansVulnerabilities::class, 'Google_Service_OnDemandScanning_Resource_ProjectsLocationsScansVulnerabilities');
@@ -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\OnDemandScanning;
class ResourceDescriptor extends \Google\Model
{
/**
* @var array[]
*/
public $annotations;
/**
* @var string
*/
public $content;
/**
* @var string[]
*/
public $digest;
/**
* @var string
*/
public $downloadLocation;
/**
* @var string
*/
public $mediaType;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $uri;
/**
* @param array[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return array[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string[] $digest
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string $downloadLocation
*/
public function setDownloadLocation($downloadLocation)
{
$this->downloadLocation = $downloadLocation;
}
/**
* @return string
*/
public function getDownloadLocation()
{
return $this->downloadLocation;
}
/**
* @param string $mediaType
*/
public function setMediaType($mediaType)
{
$this->mediaType = $mediaType;
}
/**
* @return string
*/
public function getMediaType()
{
return $this->mediaType;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @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(ResourceDescriptor::class, 'Google_Service_OnDemandScanning_ResourceDescriptor');
@@ -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\OnDemandScanning;
class Risk extends \Google\Model
{
protected $cisaKevType = CISAKnownExploitedVulnerabilities::class;
protected $cisaKevDataType = '';
protected $epssType = ExploitPredictionScoringSystem::class;
protected $epssDataType = '';
/**
* CISA maintains the authoritative source of vulnerabilities that have been
* exploited in the wild.
*
* @param CISAKnownExploitedVulnerabilities $cisaKev
*/
public function setCisaKev(CISAKnownExploitedVulnerabilities $cisaKev)
{
$this->cisaKev = $cisaKev;
}
/**
* @return CISAKnownExploitedVulnerabilities
*/
public function getCisaKev()
{
return $this->cisaKev;
}
/**
* The Exploit Prediction Scoring System (EPSS) estimates the likelihood
* (probability) that a software vulnerability will be exploited in the wild.
*
* @param ExploitPredictionScoringSystem $epss
*/
public function setEpss(ExploitPredictionScoringSystem $epss)
{
$this->epss = $epss;
}
/**
* @return ExploitPredictionScoringSystem
*/
public function getEpss()
{
return $this->epss;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Risk::class, 'Google_Service_OnDemandScanning_Risk');
@@ -0,0 +1,75 @@
<?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\OnDemandScanning;
class RunDetails extends \Google\Collection
{
protected $collection_key = 'byproducts';
protected $builderType = ProvenanceBuilder::class;
protected $builderDataType = '';
protected $byproductsType = ResourceDescriptor::class;
protected $byproductsDataType = 'array';
protected $metadataType = BuildMetadata::class;
protected $metadataDataType = '';
/**
* @param ProvenanceBuilder $builder
*/
public function setBuilder(ProvenanceBuilder $builder)
{
$this->builder = $builder;
}
/**
* @return ProvenanceBuilder
*/
public function getBuilder()
{
return $this->builder;
}
/**
* @param ResourceDescriptor[] $byproducts
*/
public function setByproducts($byproducts)
{
$this->byproducts = $byproducts;
}
/**
* @return ResourceDescriptor[]
*/
public function getByproducts()
{
return $this->byproducts;
}
/**
* @param BuildMetadata $metadata
*/
public function setMetadata(BuildMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return BuildMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunDetails::class, 'Google_Service_OnDemandScanning_RunDetails');
@@ -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\OnDemandScanning;
class SBOMReferenceOccurrence extends \Google\Collection
{
protected $collection_key = 'signatures';
protected $payloadDataType = '';
/**
* The kind of payload that SbomReferenceIntotoPayload takes. Since it's in
* the intoto format, this value is expected to be 'application/vnd.in-
* toto+json'.
*
* @var string
*/
public $payloadType;
protected $signaturesType = EnvelopeSignature::class;
protected $signaturesDataType = 'array';
/**
* The actual payload that contains the SBOM reference data.
*
* @param SbomReferenceIntotoPayload $payload
*/
public function setPayload(SbomReferenceIntotoPayload $payload)
{
$this->payload = $payload;
}
/**
* @return SbomReferenceIntotoPayload
*/
public function getPayload()
{
return $this->payload;
}
/**
* The kind of payload that SbomReferenceIntotoPayload takes. Since it's in
* the intoto format, this value is expected to be 'application/vnd.in-
* toto+json'.
*
* @param string $payloadType
*/
public function setPayloadType($payloadType)
{
$this->payloadType = $payloadType;
}
/**
* @return string
*/
public function getPayloadType()
{
return $this->payloadType;
}
/**
* The signatures over the payload.
*
* @param EnvelopeSignature[] $signatures
*/
public function setSignatures($signatures)
{
$this->signatures = $signatures;
}
/**
* @return EnvelopeSignature[]
*/
public function getSignatures()
{
return $this->signatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SBOMReferenceOccurrence::class, 'Google_Service_OnDemandScanning_SBOMReferenceOccurrence');
@@ -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\OnDemandScanning;
class SBOMStatus extends \Google\Model
{
/**
* Default unknown state.
*/
public const SBOM_STATE_SBOM_STATE_UNSPECIFIED = 'SBOM_STATE_UNSPECIFIED';
/**
* SBOM scanning is pending.
*/
public const SBOM_STATE_PENDING = 'PENDING';
/**
* SBOM scanning has completed.
*/
public const SBOM_STATE_COMPLETE = 'COMPLETE';
/**
* If there was an error generating an SBOM, this will indicate what that
* error was.
*
* @var string
*/
public $error;
/**
* The progress of the SBOM generation.
*
* @var string
*/
public $sbomState;
/**
* If there was an error generating an SBOM, this will indicate what that
* error was.
*
* @param string $error
*/
public function setError($error)
{
$this->error = $error;
}
/**
* @return string
*/
public function getError()
{
return $this->error;
}
/**
* The progress of the SBOM generation.
*
* Accepted values: SBOM_STATE_UNSPECIFIED, PENDING, COMPLETE
*
* @param self::SBOM_STATE_* $sbomState
*/
public function setSbomState($sbomState)
{
$this->sbomState = $sbomState;
}
/**
* @return self::SBOM_STATE_*
*/
public function getSbomState()
{
return $this->sbomState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SBOMStatus::class, 'Google_Service_OnDemandScanning_SBOMStatus');
@@ -0,0 +1,111 @@
<?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\OnDemandScanning;
class SbomReferenceIntotoPayload extends \Google\Collection
{
protected $collection_key = 'subject';
protected $internal_gapi_mappings = [
"type" => "_type",
];
/**
* Identifier for the schema of the Statement.
*
* @var string
*/
public $type;
protected $predicateDataType = '';
/**
* URI identifying the type of the Predicate.
*
* @var string
*/
public $predicateType;
protected $subjectType = Subject::class;
protected $subjectDataType = 'array';
/**
* Identifier for the schema of the Statement.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Additional parameters of the Predicate. Includes the actual data about the
* SBOM.
*
* @param SbomReferenceIntotoPredicate $predicate
*/
public function setPredicate(SbomReferenceIntotoPredicate $predicate)
{
$this->predicate = $predicate;
}
/**
* @return SbomReferenceIntotoPredicate
*/
public function getPredicate()
{
return $this->predicate;
}
/**
* URI identifying the type of the Predicate.
*
* @param string $predicateType
*/
public function setPredicateType($predicateType)
{
$this->predicateType = $predicateType;
}
/**
* @return string
*/
public function getPredicateType()
{
return $this->predicateType;
}
/**
* Set of software artifacts that the attestation applies to. Each element
* represents a single software artifact.
*
* @param Subject[] $subject
*/
public function setSubject($subject)
{
$this->subject = $subject;
}
/**
* @return Subject[]
*/
public function getSubject()
{
return $this->subject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SbomReferenceIntotoPayload::class, 'Google_Service_OnDemandScanning_SbomReferenceIntotoPayload');
@@ -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\OnDemandScanning;
class SbomReferenceIntotoPredicate extends \Google\Model
{
/**
* A map of algorithm to digest of the contents of the SBOM.
*
* @var string[]
*/
public $digest;
/**
* The location of the SBOM.
*
* @var string
*/
public $location;
/**
* The mime type of the SBOM.
*
* @var string
*/
public $mimeType;
/**
* The person or system referring this predicate to the consumer.
*
* @var string
*/
public $referrerId;
/**
* A map of algorithm to digest of the contents of the SBOM.
*
* @param string[] $digest
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* The location of the SBOM.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* The mime type of the SBOM.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* The person or system referring this predicate to the consumer.
*
* @param string $referrerId
*/
public function setReferrerId($referrerId)
{
$this->referrerId = $referrerId;
}
/**
* @return string
*/
public function getReferrerId()
{
return $this->referrerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SbomReferenceIntotoPredicate::class, 'Google_Service_OnDemandScanning_SbomReferenceIntotoPredicate');
@@ -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\OnDemandScanning;
class SecretLocation extends \Google\Model
{
protected $fileLocationType = GrafeasV1FileLocation::class;
protected $fileLocationDataType = '';
/**
* The secret is found from a file.
*
* @param GrafeasV1FileLocation $fileLocation
*/
public function setFileLocation(GrafeasV1FileLocation $fileLocation)
{
$this->fileLocation = $fileLocation;
}
/**
* @return GrafeasV1FileLocation
*/
public function getFileLocation()
{
return $this->fileLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SecretLocation::class, 'Google_Service_OnDemandScanning_SecretLocation');

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