Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -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 AliasContext extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
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');

View File

@@ -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[]
*/
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');

View File

@@ -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 AnalyzePackagesMetadata extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $resourceUri;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
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');

View File

@@ -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 AnalyzePackagesMetadataV1 extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $resourceUri;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
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');

View File

@@ -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 AnalyzePackagesRequestV1 extends \Google\Collection
{
protected $collection_key = 'packages';
/**
* @var bool
*/
public $includeOsvData;
protected $packagesType = PackageData::class;
protected $packagesDataType = 'array';
/**
* @var string
*/
public $resourceUri;
/**
* @param bool
*/
public function setIncludeOsvData($includeOsvData)
{
$this->includeOsvData = $includeOsvData;
}
/**
* @return bool
*/
public function getIncludeOsvData()
{
return $this->includeOsvData;
}
/**
* @param PackageData[]
*/
public function setPackages($packages)
{
$this->packages = $packages;
}
/**
* @return PackageData[]
*/
public function getPackages()
{
return $this->packages;
}
/**
* @param string
*/
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');

View File

@@ -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 AnalyzePackagesResponse extends \Google\Model
{
/**
* @var string
*/
public $scan;
/**
* @param string
*/
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');

View File

@@ -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 AnalyzePackagesResponseV1 extends \Google\Model
{
/**
* @var string
*/
public $scan;
/**
* @param string
*/
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');

View File

@@ -0,0 +1,81 @@
<?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';
/**
* @var string
*/
public $checksum;
/**
* @var string
*/
public $id;
/**
* @var string[]
*/
public $names;
/**
* @param string
*/
public function setChecksum($checksum)
{
$this->checksum = $checksum;
}
/**
* @return string
*/
public function getChecksum()
{
return $this->checksum;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string[]
*/
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');

View File

@@ -0,0 +1,77 @@
<?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';
/**
* @var string
*/
public $serializedPayload;
protected $signaturesType = Signature::class;
protected $signaturesDataType = 'array';
/**
* @param Jwt[]
*/
public function setJwts($jwts)
{
$this->jwts = $jwts;
}
/**
* @return Jwt[]
*/
public function getJwts()
{
return $this->jwts;
}
/**
* @param string
*/
public function setSerializedPayload($serializedPayload)
{
$this->serializedPayload = $serializedPayload;
}
/**
* @return string
*/
public function getSerializedPayload()
{
return $this->serializedPayload;
}
/**
* @param Signature[]
*/
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');

View File

@@ -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');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\OnDemandScanning;
class BinarySourceInfo extends \Google\Model
{
protected $binaryVersionType = PackageVersion::class;
protected $binaryVersionDataType = '';
protected $sourceVersionType = PackageVersion::class;
protected $sourceVersionDataType = '';
/**
* @param PackageVersion
*/
public function setBinaryVersion(PackageVersion $binaryVersion)
{
$this->binaryVersion = $binaryVersion;
}
/**
* @return PackageVersion
*/
public function getBinaryVersion()
{
return $this->binaryVersion;
}
/**
* @param PackageVersion
*/
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');

View File

@@ -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
*/
public function setBuildType($buildType)
{
$this->buildType = $buildType;
}
/**
* @return string
*/
public function getBuildType()
{
return $this->buildType;
}
/**
* @param array[]
*/
public function setExternalParameters($externalParameters)
{
$this->externalParameters = $externalParameters;
}
/**
* @return array[]
*/
public function getExternalParameters()
{
return $this->externalParameters;
}
/**
* @param array[]
*/
public function setInternalParameters($internalParameters)
{
$this->internalParameters = $internalParameters;
}
/**
* @return array[]
*/
public function getInternalParameters()
{
return $this->internalParameters;
}
/**
* @param ResourceDescriptor[]
*/
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');

View File

@@ -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
*/
public function setFinishedOn($finishedOn)
{
$this->finishedOn = $finishedOn;
}
/**
* @return string
*/
public function getFinishedOn()
{
return $this->finishedOn;
}
/**
* @param string
*/
public function setInvocationId($invocationId)
{
$this->invocationId = $invocationId;
}
/**
* @return string
*/
public function getInvocationId()
{
return $this->invocationId;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,108 @@
<?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 = '';
/**
* @var string
*/
public $provenanceBytes;
/**
* @param InTotoSlsaProvenanceV1
*/
public function setInTotoSlsaProvenanceV1(InTotoSlsaProvenanceV1 $inTotoSlsaProvenanceV1)
{
$this->inTotoSlsaProvenanceV1 = $inTotoSlsaProvenanceV1;
}
/**
* @return InTotoSlsaProvenanceV1
*/
public function getInTotoSlsaProvenanceV1()
{
return $this->inTotoSlsaProvenanceV1;
}
/**
* @param InTotoProvenance
*/
public function setIntotoProvenance(InTotoProvenance $intotoProvenance)
{
$this->intotoProvenance = $intotoProvenance;
}
/**
* @return InTotoProvenance
*/
public function getIntotoProvenance()
{
return $this->intotoProvenance;
}
/**
* @param InTotoStatement
*/
public function setIntotoStatement(InTotoStatement $intotoStatement)
{
$this->intotoStatement = $intotoStatement;
}
/**
* @return InTotoStatement
*/
public function getIntotoStatement()
{
return $this->intotoStatement;
}
/**
* @param BuildProvenance
*/
public function setProvenance(BuildProvenance $provenance)
{
$this->provenance = $provenance;
}
/**
* @return BuildProvenance
*/
public function getProvenance()
{
return $this->provenance;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,255 @@
<?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';
/**
* @var string[]
*/
public $buildOptions;
/**
* @var string
*/
public $builderVersion;
protected $builtArtifactsType = Artifact::class;
protected $builtArtifactsDataType = 'array';
protected $commandsType = Command::class;
protected $commandsDataType = 'array';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $creator;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $logsUri;
/**
* @var string
*/
public $projectId;
protected $sourceProvenanceType = Source::class;
protected $sourceProvenanceDataType = '';
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $triggerId;
/**
* @param string[]
*/
public function setBuildOptions($buildOptions)
{
$this->buildOptions = $buildOptions;
}
/**
* @return string[]
*/
public function getBuildOptions()
{
return $this->buildOptions;
}
/**
* @param string
*/
public function setBuilderVersion($builderVersion)
{
$this->builderVersion = $builderVersion;
}
/**
* @return string
*/
public function getBuilderVersion()
{
return $this->builderVersion;
}
/**
* @param Artifact[]
*/
public function setBuiltArtifacts($builtArtifacts)
{
$this->builtArtifacts = $builtArtifacts;
}
/**
* @return Artifact[]
*/
public function getBuiltArtifacts()
{
return $this->builtArtifacts;
}
/**
* @param Command[]
*/
public function setCommands($commands)
{
$this->commands = $commands;
}
/**
* @return Command[]
*/
public function getCommands()
{
return $this->commands;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setCreator($creator)
{
$this->creator = $creator;
}
/**
* @return string
*/
public function getCreator()
{
return $this->creator;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setLogsUri($logsUri)
{
$this->logsUri = $logsUri;
}
/**
* @return string
*/
public function getLogsUri()
{
return $this->logsUri;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param Source
*/
public function setSourceProvenance(Source $sourceProvenance)
{
$this->sourceProvenance = $sourceProvenance;
}
/**
* @return Source
*/
public function getSourceProvenance()
{
return $this->sourceProvenance;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
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');

View File

@@ -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
*/
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');

View File

@@ -0,0 +1,242 @@
<?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
{
/**
* @var string
*/
public $attackComplexity;
/**
* @var string
*/
public $attackVector;
/**
* @var string
*/
public $authentication;
/**
* @var string
*/
public $availabilityImpact;
/**
* @var float
*/
public $baseScore;
/**
* @var string
*/
public $confidentialityImpact;
/**
* @var float
*/
public $exploitabilityScore;
/**
* @var float
*/
public $impactScore;
/**
* @var string
*/
public $integrityImpact;
/**
* @var string
*/
public $privilegesRequired;
/**
* @var string
*/
public $scope;
/**
* @var string
*/
public $userInteraction;
/**
* @param string
*/
public function setAttackComplexity($attackComplexity)
{
$this->attackComplexity = $attackComplexity;
}
/**
* @return string
*/
public function getAttackComplexity()
{
return $this->attackComplexity;
}
/**
* @param string
*/
public function setAttackVector($attackVector)
{
$this->attackVector = $attackVector;
}
/**
* @return string
*/
public function getAttackVector()
{
return $this->attackVector;
}
/**
* @param string
*/
public function setAuthentication($authentication)
{
$this->authentication = $authentication;
}
/**
* @return string
*/
public function getAuthentication()
{
return $this->authentication;
}
/**
* @param string
*/
public function setAvailabilityImpact($availabilityImpact)
{
$this->availabilityImpact = $availabilityImpact;
}
/**
* @return string
*/
public function getAvailabilityImpact()
{
return $this->availabilityImpact;
}
/**
* @param float
*/
public function setBaseScore($baseScore)
{
$this->baseScore = $baseScore;
}
/**
* @return float
*/
public function getBaseScore()
{
return $this->baseScore;
}
/**
* @param string
*/
public function setConfidentialityImpact($confidentialityImpact)
{
$this->confidentialityImpact = $confidentialityImpact;
}
/**
* @return string
*/
public function getConfidentialityImpact()
{
return $this->confidentialityImpact;
}
/**
* @param float
*/
public function setExploitabilityScore($exploitabilityScore)
{
$this->exploitabilityScore = $exploitabilityScore;
}
/**
* @return float
*/
public function getExploitabilityScore()
{
return $this->exploitabilityScore;
}
/**
* @param float
*/
public function setImpactScore($impactScore)
{
$this->impactScore = $impactScore;
}
/**
* @return float
*/
public function getImpactScore()
{
return $this->impactScore;
}
/**
* @param string
*/
public function setIntegrityImpact($integrityImpact)
{
$this->integrityImpact = $integrityImpact;
}
/**
* @return string
*/
public function getIntegrityImpact()
{
return $this->integrityImpact;
}
/**
* @param string
*/
public function setPrivilegesRequired($privilegesRequired)
{
$this->privilegesRequired = $privilegesRequired;
}
/**
* @return string
*/
public function getPrivilegesRequired()
{
return $this->privilegesRequired;
}
/**
* @param string
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* @param string
*/
public function setUserInteraction($userInteraction)
{
$this->userInteraction = $userInteraction;
}
/**
* @return string
*/
public function getUserInteraction()
{
return $this->userInteraction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CVSS::class, 'Google_Service_OnDemandScanning_CVSS');

View File

@@ -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 Category extends \Google\Model
{
/**
* @var string
*/
public $categoryId;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setCategoryId($categoryId)
{
$this->categoryId = $categoryId;
}
/**
* @return string
*/
public function getCategoryId()
{
return $this->categoryId;
}
/**
* @param string
*/
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');

View File

@@ -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 CloudRepoSourceContext extends \Google\Model
{
protected $aliasContextType = AliasContext::class;
protected $aliasContextDataType = '';
protected $repoIdType = RepoId::class;
protected $repoIdDataType = '';
/**
* @var string
*/
public $revisionId;
/**
* @param AliasContext
*/
public function setAliasContext(AliasContext $aliasContext)
{
$this->aliasContext = $aliasContext;
}
/**
* @return AliasContext
*/
public function getAliasContext()
{
return $this->aliasContext;
}
/**
* @param RepoId
*/
public function setRepoId(RepoId $repoId)
{
$this->repoId = $repoId;
}
/**
* @return RepoId
*/
public function getRepoId()
{
return $this->repoId;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,135 @@
<?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';
/**
* @var string[]
*/
public $args;
/**
* @var string
*/
public $dir;
/**
* @var string[]
*/
public $env;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $waitFor;
/**
* @param string[]
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* @param string
*/
public function setDir($dir)
{
$this->dir = $dir;
}
/**
* @return string
*/
public function getDir()
{
return $this->dir;
}
/**
* @param string[]
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string[]
*/
public function getEnv()
{
return $this->env;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
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');

View File

@@ -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 Completeness extends \Google\Model
{
/**
* @var bool
*/
public $arguments;
/**
* @var bool
*/
public $environment;
/**
* @var bool
*/
public $materials;
/**
* @param bool
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return bool
*/
public function getArguments()
{
return $this->arguments;
}
/**
* @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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Completeness::class, 'Google_Service_OnDemandScanning_Completeness');

View File

@@ -0,0 +1,77 @@
<?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
*/
public function setNonComplianceReason($nonComplianceReason)
{
$this->nonComplianceReason = $nonComplianceReason;
}
/**
* @return string
*/
public function getNonComplianceReason()
{
return $this->nonComplianceReason;
}
/**
* @param NonCompliantFile[]
*/
public function setNonCompliantFiles($nonCompliantFiles)
{
$this->nonCompliantFiles = $nonCompliantFiles;
}
/**
* @return NonCompliantFile[]
*/
public function getNonCompliantFiles()
{
return $this->nonCompliantFiles;
}
/**
* @param ComplianceVersion
*/
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');

View File

@@ -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 ComplianceVersion extends \Google\Model
{
/**
* @var string
*/
public $benchmarkDocument;
/**
* @var string
*/
public $cpeUri;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setBenchmarkDocument($benchmarkDocument)
{
$this->benchmarkDocument = $benchmarkDocument;
}
/**
* @return string
*/
public function getBenchmarkDocument()
{
return $this->benchmarkDocument;
}
/**
* @param string
*/
public function setCpeUri($cpeUri)
{
$this->cpeUri = $cpeUri;
}
/**
* @return string
*/
public function getCpeUri()
{
return $this->cpeUri;
}
/**
* @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(ComplianceVersion::class, 'Google_Service_OnDemandScanning_ComplianceVersion');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\OnDemandScanning;
class DSSEAttestationOccurrence extends \Google\Model
{
protected $envelopeType = Envelope::class;
protected $envelopeDataType = '';
protected $statementType = InTotoStatement::class;
protected $statementDataType = '';
/**
* @param Envelope
*/
public function setEnvelope(Envelope $envelope)
{
$this->envelope = $envelope;
}
/**
* @return Envelope
*/
public function getEnvelope()
{
return $this->envelope;
}
/**
* @param InTotoStatement
*/
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');

View File

@@ -0,0 +1,153 @@
<?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
{
protected $collection_key = 'resourceUri';
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $config;
/**
* @var string
*/
public $deployTime;
/**
* @var string
*/
public $platform;
/**
* @var string[]
*/
public $resourceUri;
/**
* @var string
*/
public $undeployTime;
/**
* @var string
*/
public $userEmail;
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setConfig($config)
{
$this->config = $config;
}
/**
* @return string
*/
public function getConfig()
{
return $this->config;
}
/**
* @param string
*/
public function setDeployTime($deployTime)
{
$this->deployTime = $deployTime;
}
/**
* @return string
*/
public function getDeployTime()
{
return $this->deployTime;
}
/**
* @param string
*/
public function setPlatform($platform)
{
$this->platform = $platform;
}
/**
* @return string
*/
public function getPlatform()
{
return $this->platform;
}
/**
* @param string[]
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string[]
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* @param string
*/
public function setUndeployTime($undeployTime)
{
$this->undeployTime = $undeployTime;
}
/**
* @return string
*/
public function getUndeployTime()
{
return $this->undeployTime;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,181 @@
<?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
{
protected $collection_key = 'analysisError';
protected $analysisCompletedType = AnalysisCompleted::class;
protected $analysisCompletedDataType = '';
protected $analysisErrorType = Status::class;
protected $analysisErrorDataType = 'array';
/**
* @var string
*/
public $analysisStatus;
protected $analysisStatusErrorType = Status::class;
protected $analysisStatusErrorDataType = '';
/**
* @var string
*/
public $archiveTime;
/**
* @var string
*/
public $continuousAnalysis;
/**
* @var string
*/
public $cpe;
/**
* @var string
*/
public $lastScanTime;
protected $sbomStatusType = SBOMStatus::class;
protected $sbomStatusDataType = '';
/**
* @param AnalysisCompleted
*/
public function setAnalysisCompleted(AnalysisCompleted $analysisCompleted)
{
$this->analysisCompleted = $analysisCompleted;
}
/**
* @return AnalysisCompleted
*/
public function getAnalysisCompleted()
{
return $this->analysisCompleted;
}
/**
* @param Status[]
*/
public function setAnalysisError($analysisError)
{
$this->analysisError = $analysisError;
}
/**
* @return Status[]
*/
public function getAnalysisError()
{
return $this->analysisError;
}
/**
* @param string
*/
public function setAnalysisStatus($analysisStatus)
{
$this->analysisStatus = $analysisStatus;
}
/**
* @return string
*/
public function getAnalysisStatus()
{
return $this->analysisStatus;
}
/**
* @param Status
*/
public function setAnalysisStatusError(Status $analysisStatusError)
{
$this->analysisStatusError = $analysisStatusError;
}
/**
* @return Status
*/
public function getAnalysisStatusError()
{
return $this->analysisStatusError;
}
/**
* @param string
*/
public function setArchiveTime($archiveTime)
{
$this->archiveTime = $archiveTime;
}
/**
* @return string
*/
public function getArchiveTime()
{
return $this->archiveTime;
}
/**
* @param string
*/
public function setContinuousAnalysis($continuousAnalysis)
{
$this->continuousAnalysis = $continuousAnalysis;
}
/**
* @return string
*/
public function getContinuousAnalysis()
{
return $this->continuousAnalysis;
}
/**
* @param string
*/
public function setCpe($cpe)
{
$this->cpe = $cpe;
}
/**
* @return string
*/
public function getCpe()
{
return $this->cpe;
}
/**
* @param string
*/
public function setLastScanTime($lastScanTime)
{
$this->lastScanTime = $lastScanTime;
}
/**
* @return string
*/
public function getLastScanTime()
{
return $this->lastScanTime;
}
/**
* @param 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');

View File

@@ -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
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return string
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string
*/
public function setPayloadType($payloadType)
{
$this->payloadType = $payloadType;
}
/**
* @return string
*/
public function getPayloadType()
{
return $this->payloadType;
}
/**
* @param EnvelopeSignature[]
*/
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');

View File

@@ -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
*/
public function setKeyid($keyid)
{
$this->keyid = $keyid;
}
/**
* @return string
*/
public function getKeyid()
{
return $this->keyid;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,43 @@
<?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';
/**
* @param Hash[]
*/
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');

View File

@@ -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 FileLocation extends \Google\Model
{
/**
* @var string
*/
public $filePath;
/**
* @param string
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileLocation::class, 'Google_Service_OnDemandScanning_FileLocation');

View File

@@ -0,0 +1,81 @@
<?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';
/**
* @var string
*/
public $v1Name;
/**
* @var string[]
*/
public $v2Blob;
/**
* @var string
*/
public $v2Name;
/**
* @param string
*/
public function setV1Name($v1Name)
{
$this->v1Name = $v1Name;
}
/**
* @return string
*/
public function getV1Name()
{
return $this->v1Name;
}
/**
* @param string[]
*/
public function setV2Blob($v2Blob)
{
$this->v2Blob = $v2Blob;
}
/**
* @return string[]
*/
public function getV2Blob()
{
return $this->v2Blob;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\OnDemandScanning;
class GerritSourceContext extends \Google\Model
{
protected $aliasContextType = AliasContext::class;
protected $aliasContextDataType = '';
/**
* @var string
*/
public $gerritProject;
/**
* @var string
*/
public $hostUri;
/**
* @var string
*/
public $revisionId;
/**
* @param AliasContext
*/
public function setAliasContext(AliasContext $aliasContext)
{
$this->aliasContext = $aliasContext;
}
/**
* @return AliasContext
*/
public function getAliasContext()
{
return $this->aliasContext;
}
/**
* @param string
*/
public function setGerritProject($gerritProject)
{
$this->gerritProject = $gerritProject;
}
/**
* @return string
*/
public function getGerritProject()
{
return $this->gerritProject;
}
/**
* @param string
*/
public function setHostUri($hostUri)
{
$this->hostUri = $hostUri;
}
/**
* @return string
*/
public function getHostUri()
{
return $this->hostUri;
}
/**
* @param string
*/
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');

View File

@@ -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 GitSourceContext extends \Google\Model
{
/**
* @var string
*/
public $revisionId;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* @param string
*/
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');

View File

@@ -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 GrafeasV1FileLocation extends \Google\Model
{
/**
* @var string
*/
public $filePath;
/**
* @param string
*/
public function setFilePath($filePath)
{
$this->filePath = $filePath;
}
/**
* @return string
*/
public function getFilePath()
{
return $this->filePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrafeasV1FileLocation::class, 'Google_Service_OnDemandScanning_GrafeasV1FileLocation');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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
*/
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');

View File

@@ -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
*/
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(GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness');

View File

@@ -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[]
*/
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(GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource');

View File

@@ -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
*/
public function setConfigSource(GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource $configSource)
{
$this->configSource = $configSource;
}
/**
* @return GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource
*/
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(GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation');

View File

@@ -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[]
*/
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(GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial');

View File

@@ -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
*/
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 GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness
*/
public function setCompleteness(GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness $completeness)
{
$this->completeness = $completeness;
}
/**
* @return GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness
*/
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(GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata::class, 'Google_Service_OnDemandScanning_GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata');

View File

@@ -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 Hash extends \Google\Model
{
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
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');

View File

@@ -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 Identity extends \Google\Model
{
/**
* @var int
*/
public $revision;
/**
* @var string
*/
public $updateId;
/**
* @param int
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return int
*/
public function getRevision()
{
return $this->revision;
}
/**
* @param string
*/
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');

View File

@@ -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 ImageOccurrence extends \Google\Collection
{
protected $collection_key = 'layerInfo';
/**
* @var string
*/
public $baseResourceUrl;
/**
* @var int
*/
public $distance;
protected $fingerprintType = Fingerprint::class;
protected $fingerprintDataType = '';
protected $layerInfoType = Layer::class;
protected $layerInfoDataType = 'array';
/**
* @param string
*/
public function setBaseResourceUrl($baseResourceUrl)
{
$this->baseResourceUrl = $baseResourceUrl;
}
/**
* @return string
*/
public function getBaseResourceUrl()
{
return $this->baseResourceUrl;
}
/**
* @param int
*/
public function setDistance($distance)
{
$this->distance = $distance;
}
/**
* @return int
*/
public function getDistance()
{
return $this->distance;
}
/**
* @param Fingerprint
*/
public function setFingerprint(Fingerprint $fingerprint)
{
$this->fingerprint = $fingerprint;
}
/**
* @return Fingerprint
*/
public function getFingerprint()
{
return $this->fingerprint;
}
/**
* @param Layer[]
*/
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');

View File

@@ -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 InTotoProvenance extends \Google\Collection
{
protected $collection_key = 'materials';
protected $builderConfigType = BuilderConfig::class;
protected $builderConfigDataType = '';
/**
* @var string[]
*/
public $materials;
protected $metadataType = Metadata::class;
protected $metadataDataType = '';
protected $recipeType = Recipe::class;
protected $recipeDataType = '';
/**
* @param BuilderConfig
*/
public function setBuilderConfig(BuilderConfig $builderConfig)
{
$this->builderConfig = $builderConfig;
}
/**
* @return BuilderConfig
*/
public function getBuilderConfig()
{
return $this->builderConfig;
}
/**
* @param string[]
*/
public function setMaterials($materials)
{
$this->materials = $materials;
}
/**
* @return string[]
*/
public function getMaterials()
{
return $this->materials;
}
/**
* @param Metadata
*/
public function setMetadata(Metadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param 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');

View File

@@ -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 InTotoSlsaProvenanceV1 extends \Google\Collection
{
protected $collection_key = 'subject';
protected $internal_gapi_mappings = [
"type" => "_type",
];
/**
* @var string
*/
public $type;
protected $predicateDataType = '';
/**
* @var string
*/
public $predicateType;
protected $subjectType = Subject::class;
protected $subjectDataType = 'array';
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param SlsaProvenanceV1
*/
public function setPredicate(SlsaProvenanceV1 $predicate)
{
$this->predicate = $predicate;
}
/**
* @return SlsaProvenanceV1
*/
public function getPredicate()
{
return $this->predicate;
}
/**
* @param string
*/
public function setPredicateType($predicateType)
{
$this->predicateType = $predicateType;
}
/**
* @return string
*/
public function getPredicateType()
{
return $this->predicateType;
}
/**
* @param 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');

View File

@@ -0,0 +1,130 @@
<?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",
];
/**
* @var string
*/
public $type;
/**
* @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';
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setPredicateType($predicateType)
{
$this->predicateType = $predicateType;
}
/**
* @return string
*/
public function getPredicateType()
{
return $this->predicateType;
}
/**
* @param InTotoProvenance
*/
public function setProvenance(InTotoProvenance $provenance)
{
$this->provenance = $provenance;
}
/**
* @return InTotoProvenance
*/
public function getProvenance()
{
return $this->provenance;
}
/**
* @param SlsaProvenance
*/
public function setSlsaProvenance(SlsaProvenance $slsaProvenance)
{
$this->slsaProvenance = $slsaProvenance;
}
/**
* @return SlsaProvenance
*/
public function getSlsaProvenance()
{
return $this->slsaProvenance;
}
/**
* @param SlsaProvenanceZeroTwo
*/
public function setSlsaProvenanceZeroTwo(SlsaProvenanceZeroTwo $slsaProvenanceZeroTwo)
{
$this->slsaProvenanceZeroTwo = $slsaProvenanceZeroTwo;
}
/**
* @return SlsaProvenanceZeroTwo
*/
public function getSlsaProvenanceZeroTwo()
{
return $this->slsaProvenanceZeroTwo;
}
/**
* @param 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');

View File

@@ -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 Justification extends \Google\Model
{
/**
* @var string
*/
public $details;
/**
* @var string
*/
public $justificationType;
/**
* @param string
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setJustificationType($justificationType)
{
$this->justificationType = $justificationType;
}
/**
* @return string
*/
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');

View File

@@ -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 Jwt extends \Google\Model
{
/**
* @var string
*/
public $compactJwt;
/**
* @param string
*/
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');

View File

@@ -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
*/
public function setPackage($package)
{
$this->package = $package;
}
/**
* @return string
*/
public function getPackage()
{
return $this->package;
}
/**
* @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(LanguagePackageDependency::class, 'Google_Service_OnDemandScanning_LanguagePackageDependency');

View File

@@ -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 Layer extends \Google\Model
{
/**
* @var string
*/
public $arguments;
/**
* @var string
*/
public $directive;
/**
* @param string
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return string
*/
public function getArguments()
{
return $this->arguments;
}
/**
* @param string
*/
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');

View File

@@ -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 License extends \Google\Model
{
/**
* @var string
*/
public $comments;
/**
* @var string
*/
public $expression;
/**
* @param string
*/
public function setComments($comments)
{
$this->comments = $comments;
}
/**
* @return string
*/
public function getComments()
{
return $this->comments;
}
/**
* @param string
*/
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');

View File

@@ -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 ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_OnDemandScanning_ListOperationsResponse');

View File

@@ -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 ListVulnerabilitiesResponseV1 extends \Google\Collection
{
protected $collection_key = 'occurrences';
/**
* @var string
*/
public $nextPageToken;
protected $occurrencesType = Occurrence::class;
protected $occurrencesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Occurrence[]
*/
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');

View File

@@ -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 Location extends \Google\Model
{
/**
* @var string
*/
public $cpeUri;
/**
* @var string
*/
public $path;
protected $versionType = Version::class;
protected $versionDataType = '';
/**
* @param string
*/
public function setCpeUri($cpeUri)
{
$this->cpeUri = $cpeUri;
}
/**
* @return string
*/
public function getCpeUri()
{
return $this->cpeUri;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param 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');

View File

@@ -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
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
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');

View File

@@ -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[]
*/
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(Material::class, 'Google_Service_OnDemandScanning_Material');

View File

@@ -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 Metadata extends \Google\Model
{
/**
* @var string
*/
public $buildFinishedOn;
/**
* @var string
*/
public $buildInvocationId;
/**
* @var string
*/
public $buildStartedOn;
protected $completenessType = Completeness::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 Completeness
*/
public function setCompleteness(Completeness $completeness)
{
$this->completeness = $completeness;
}
/**
* @return Completeness
*/
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(Metadata::class, 'Google_Service_OnDemandScanning_Metadata');

View File

@@ -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 NonCompliantFile extends \Google\Model
{
/**
* @var string
*/
public $displayCommand;
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $reason;
/**
* @param string
*/
public function setDisplayCommand($displayCommand)
{
$this->displayCommand = $displayCommand;
}
/**
* @return string
*/
public function getDisplayCommand()
{
return $this->displayCommand;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,344 @@
<?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
{
protected $attestationType = AttestationOccurrence::class;
protected $attestationDataType = '';
protected $buildType = BuildOccurrence::class;
protected $buildDataType = '';
protected $complianceType = ComplianceOccurrence::class;
protected $complianceDataType = '';
/**
* @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 = '';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $noteName;
protected $packageType = PackageOccurrence::class;
protected $packageDataType = '';
/**
* @var string
*/
public $remediation;
/**
* @var string
*/
public $resourceUri;
protected $sbomReferenceType = SBOMReferenceOccurrence::class;
protected $sbomReferenceDataType = '';
/**
* @var string
*/
public $updateTime;
protected $upgradeType = UpgradeOccurrence::class;
protected $upgradeDataType = '';
protected $vulnerabilityType = VulnerabilityOccurrence::class;
protected $vulnerabilityDataType = '';
/**
* @param AttestationOccurrence
*/
public function setAttestation(AttestationOccurrence $attestation)
{
$this->attestation = $attestation;
}
/**
* @return AttestationOccurrence
*/
public function getAttestation()
{
return $this->attestation;
}
/**
* @param BuildOccurrence
*/
public function setBuild(BuildOccurrence $build)
{
$this->build = $build;
}
/**
* @return BuildOccurrence
*/
public function getBuild()
{
return $this->build;
}
/**
* @param ComplianceOccurrence
*/
public function setCompliance(ComplianceOccurrence $compliance)
{
$this->compliance = $compliance;
}
/**
* @return ComplianceOccurrence
*/
public function getCompliance()
{
return $this->compliance;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param DeploymentOccurrence
*/
public function setDeployment(DeploymentOccurrence $deployment)
{
$this->deployment = $deployment;
}
/**
* @return DeploymentOccurrence
*/
public function getDeployment()
{
return $this->deployment;
}
/**
* @param DiscoveryOccurrence
*/
public function setDiscovery(DiscoveryOccurrence $discovery)
{
$this->discovery = $discovery;
}
/**
* @return DiscoveryOccurrence
*/
public function getDiscovery()
{
return $this->discovery;
}
/**
* @param DSSEAttestationOccurrence
*/
public function setDsseAttestation(DSSEAttestationOccurrence $dsseAttestation)
{
$this->dsseAttestation = $dsseAttestation;
}
/**
* @return DSSEAttestationOccurrence
*/
public function getDsseAttestation()
{
return $this->dsseAttestation;
}
/**
* @param Envelope
*/
public function setEnvelope(Envelope $envelope)
{
$this->envelope = $envelope;
}
/**
* @return Envelope
*/
public function getEnvelope()
{
return $this->envelope;
}
/**
* @param ImageOccurrence
*/
public function setImage(ImageOccurrence $image)
{
$this->image = $image;
}
/**
* @return ImageOccurrence
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNoteName($noteName)
{
$this->noteName = $noteName;
}
/**
* @return string
*/
public function getNoteName()
{
return $this->noteName;
}
/**
* @param PackageOccurrence
*/
public function setPackage(PackageOccurrence $package)
{
$this->package = $package;
}
/**
* @return PackageOccurrence
*/
public function getPackage()
{
return $this->package;
}
/**
* @param string
*/
public function setRemediation($remediation)
{
$this->remediation = $remediation;
}
/**
* @return string
*/
public function getRemediation()
{
return $this->remediation;
}
/**
* @param string
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* @param SBOMReferenceOccurrence
*/
public function setSbomReference(SBOMReferenceOccurrence $sbomReference)
{
$this->sbomReference = $sbomReference;
}
/**
* @return SBOMReferenceOccurrence
*/
public function getSbomReference()
{
return $this->sbomReference;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param UpgradeOccurrence
*/
public function setUpgrade(UpgradeOccurrence $upgrade)
{
$this->upgrade = $upgrade;
}
/**
* @return UpgradeOccurrence
*/
public function getUpgrade()
{
return $this->upgrade;
}
/**
* @param VulnerabilityOccurrence
*/
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');

View File

@@ -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');

View File

@@ -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 Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
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');

View File

@@ -0,0 +1,321 @@
<?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
{
protected $collection_key = 'patchedCve';
/**
* @var string
*/
public $architecture;
protected $binarySourceInfoType = BinarySourceInfo::class;
protected $binarySourceInfoDataType = 'array';
protected $binaryVersionType = PackageVersion::class;
protected $binaryVersionDataType = '';
/**
* @var string
*/
public $cpeUri;
protected $dependencyChainType = LanguagePackageDependency::class;
protected $dependencyChainDataType = 'array';
protected $fileLocationType = FileLocation::class;
protected $fileLocationDataType = 'array';
/**
* @var string
*/
public $hashDigest;
/**
* @var string[]
*/
public $licenses;
protected $maintainerType = Maintainer::class;
protected $maintainerDataType = '';
/**
* @var string
*/
public $os;
/**
* @var string
*/
public $osVersion;
/**
* @var string
*/
public $package;
/**
* @var string
*/
public $packageType;
/**
* @var string[]
*/
public $patchedCve;
protected $sourceVersionType = PackageVersion::class;
protected $sourceVersionDataType = '';
/**
* @var string
*/
public $unused;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return string
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* @param BinarySourceInfo[]
*/
public function setBinarySourceInfo($binarySourceInfo)
{
$this->binarySourceInfo = $binarySourceInfo;
}
/**
* @return BinarySourceInfo[]
*/
public function getBinarySourceInfo()
{
return $this->binarySourceInfo;
}
/**
* @param PackageVersion
*/
public function setBinaryVersion(PackageVersion $binaryVersion)
{
$this->binaryVersion = $binaryVersion;
}
/**
* @return PackageVersion
*/
public function getBinaryVersion()
{
return $this->binaryVersion;
}
/**
* @param string
*/
public function setCpeUri($cpeUri)
{
$this->cpeUri = $cpeUri;
}
/**
* @return string
*/
public function getCpeUri()
{
return $this->cpeUri;
}
/**
* @param LanguagePackageDependency[]
*/
public function setDependencyChain($dependencyChain)
{
$this->dependencyChain = $dependencyChain;
}
/**
* @return LanguagePackageDependency[]
*/
public function getDependencyChain()
{
return $this->dependencyChain;
}
/**
* @param FileLocation[]
*/
public function setFileLocation($fileLocation)
{
$this->fileLocation = $fileLocation;
}
/**
* @return FileLocation[]
*/
public function getFileLocation()
{
return $this->fileLocation;
}
/**
* @param string
*/
public function setHashDigest($hashDigest)
{
$this->hashDigest = $hashDigest;
}
/**
* @return string
*/
public function getHashDigest()
{
return $this->hashDigest;
}
/**
* @param string[]
*/
public function setLicenses($licenses)
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
public function getLicenses()
{
return $this->licenses;
}
/**
* @param Maintainer
*/
public function setMaintainer(Maintainer $maintainer)
{
$this->maintainer = $maintainer;
}
/**
* @return Maintainer
*/
public function getMaintainer()
{
return $this->maintainer;
}
/**
* @param string
*/
public function setOs($os)
{
$this->os = $os;
}
/**
* @return string
*/
public function getOs()
{
return $this->os;
}
/**
* @param string
*/
public function setOsVersion($osVersion)
{
$this->osVersion = $osVersion;
}
/**
* @return string
*/
public function getOsVersion()
{
return $this->osVersion;
}
/**
* @param string
*/
public function setPackage($package)
{
$this->package = $package;
}
/**
* @return string
*/
public function getPackage()
{
return $this->package;
}
/**
* @param string
*/
public function setPackageType($packageType)
{
$this->packageType = $packageType;
}
/**
* @return string
*/
public function getPackageType()
{
return $this->packageType;
}
/**
* @param string[]
*/
public function setPatchedCve($patchedCve)
{
$this->patchedCve = $patchedCve;
}
/**
* @return string[]
*/
public function getPatchedCve()
{
return $this->patchedCve;
}
/**
* @param PackageVersion
*/
public function setSourceVersion(PackageVersion $sourceVersion)
{
$this->sourceVersion = $sourceVersion;
}
/**
* @return PackageVersion
*/
public function getSourceVersion()
{
return $this->sourceVersion;
}
/**
* @param string
*/
public function setUnused($unused)
{
$this->unused = $unused;
}
/**
* @return string
*/
public function getUnused()
{
return $this->unused;
}
/**
* @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(PackageData::class, 'Google_Service_OnDemandScanning_PackageData');

View File

@@ -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 PackageIssue extends \Google\Collection
{
protected $collection_key = 'fileLocation';
/**
* @var string
*/
public $affectedCpeUri;
/**
* @var string
*/
public $affectedPackage;
protected $affectedVersionType = Version::class;
protected $affectedVersionDataType = '';
/**
* @var string
*/
public $effectiveSeverity;
protected $fileLocationType = GrafeasV1FileLocation::class;
protected $fileLocationDataType = 'array';
/**
* @var bool
*/
public $fixAvailable;
/**
* @var string
*/
public $fixedCpeUri;
/**
* @var string
*/
public $fixedPackage;
protected $fixedVersionType = Version::class;
protected $fixedVersionDataType = '';
/**
* @var string
*/
public $packageType;
/**
* @param string
*/
public function setAffectedCpeUri($affectedCpeUri)
{
$this->affectedCpeUri = $affectedCpeUri;
}
/**
* @return string
*/
public function getAffectedCpeUri()
{
return $this->affectedCpeUri;
}
/**
* @param string
*/
public function setAffectedPackage($affectedPackage)
{
$this->affectedPackage = $affectedPackage;
}
/**
* @return string
*/
public function getAffectedPackage()
{
return $this->affectedPackage;
}
/**
* @param Version
*/
public function setAffectedVersion(Version $affectedVersion)
{
$this->affectedVersion = $affectedVersion;
}
/**
* @return Version
*/
public function getAffectedVersion()
{
return $this->affectedVersion;
}
/**
* @param string
*/
public function setEffectiveSeverity($effectiveSeverity)
{
$this->effectiveSeverity = $effectiveSeverity;
}
/**
* @return string
*/
public function getEffectiveSeverity()
{
return $this->effectiveSeverity;
}
/**
* @param GrafeasV1FileLocation[]
*/
public function setFileLocation($fileLocation)
{
$this->fileLocation = $fileLocation;
}
/**
* @return GrafeasV1FileLocation[]
*/
public function getFileLocation()
{
return $this->fileLocation;
}
/**
* @param bool
*/
public function setFixAvailable($fixAvailable)
{
$this->fixAvailable = $fixAvailable;
}
/**
* @return bool
*/
public function getFixAvailable()
{
return $this->fixAvailable;
}
/**
* @param string
*/
public function setFixedCpeUri($fixedCpeUri)
{
$this->fixedCpeUri = $fixedCpeUri;
}
/**
* @return string
*/
public function getFixedCpeUri()
{
return $this->fixedCpeUri;
}
/**
* @param string
*/
public function setFixedPackage($fixedPackage)
{
$this->fixedPackage = $fixedPackage;
}
/**
* @return string
*/
public function getFixedPackage()
{
return $this->fixedPackage;
}
/**
* @param Version
*/
public function setFixedVersion(Version $fixedVersion)
{
$this->fixedVersion = $fixedVersion;
}
/**
* @return Version
*/
public function getFixedVersion()
{
return $this->fixedVersion;
}
/**
* @param string
*/
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');

View File

@@ -0,0 +1,147 @@
<?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
{
protected $collection_key = 'location';
/**
* @var string
*/
public $architecture;
/**
* @var string
*/
public $cpeUri;
protected $licenseType = License::class;
protected $licenseDataType = '';
protected $locationType = Location::class;
protected $locationDataType = 'array';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $packageType;
protected $versionType = Version::class;
protected $versionDataType = '';
/**
* @param string
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return string
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* @param string
*/
public function setCpeUri($cpeUri)
{
$this->cpeUri = $cpeUri;
}
/**
* @return string
*/
public function getCpeUri()
{
return $this->cpeUri;
}
/**
* @param License
*/
public function setLicense(License $license)
{
$this->license = $license;
}
/**
* @return License
*/
public function getLicense()
{
return $this->license;
}
/**
* @param Location[]
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return Location[]
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPackageType($packageType)
{
$this->packageType = $packageType;
}
/**
* @return string
*/
public function getPackageType()
{
return $this->packageType;
}
/**
* @param 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');

View File

@@ -0,0 +1,81 @@
<?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';
/**
* @var string[]
*/
public $licenses;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $version;
/**
* @param string[]
*/
public function setLicenses($licenses)
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
public function getLicenses()
{
return $this->licenses;
}
/**
* @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(PackageVersion::class, 'Google_Service_OnDemandScanning_PackageVersion');

View File

@@ -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 ProjectRepoId extends \Google\Model
{
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $repoName;
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
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');

View File

@@ -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[]
*/
public function setBuilderDependencies($builderDependencies)
{
$this->builderDependencies = $builderDependencies;
}
/**
* @return ResourceDescriptor[]
*/
public function getBuilderDependencies()
{
return $this->builderDependencies;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @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(ProvenanceBuilder::class, 'Google_Service_OnDemandScanning_ProvenanceBuilder');

View File

@@ -0,0 +1,117 @@
<?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';
/**
* @var array[]
*/
public $arguments;
/**
* @var string
*/
public $definedInMaterial;
/**
* @var string
*/
public $entryPoint;
/**
* @var array[]
*/
public $environment;
/**
* @var string
*/
public $type;
/**
* @param array[]
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return array[]
*/
public function getArguments()
{
return $this->arguments;
}
/**
* @param string
*/
public function setDefinedInMaterial($definedInMaterial)
{
$this->definedInMaterial = $definedInMaterial;
}
/**
* @return string
*/
public function getDefinedInMaterial()
{
return $this->definedInMaterial;
}
/**
* @param string
*/
public function setEntryPoint($entryPoint)
{
$this->entryPoint = $entryPoint;
}
/**
* @return string
*/
public function getEntryPoint()
{
return $this->entryPoint;
}
/**
* @param array[]
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return array[]
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param string
*/
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');

View File

@@ -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 RelatedUrl extends \Google\Model
{
/**
* @var string
*/
public $label;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* @param string
*/
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');

View File

@@ -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 Remediation extends \Google\Model
{
/**
* @var string
*/
public $details;
/**
* @var string
*/
public $remediationType;
protected $remediationUriType = RelatedUrl::class;
protected $remediationUriDataType = '';
/**
* @param string
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setRemediationType($remediationType)
{
$this->remediationType = $remediationType;
}
/**
* @return string
*/
public function getRemediationType()
{
return $this->remediationType;
}
/**
* @param RelatedUrl
*/
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');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\OnDemandScanning;
class RepoId extends \Google\Model
{
protected $projectRepoIdType = ProjectRepoId::class;
protected $projectRepoIdDataType = '';
/**
* @var string
*/
public $uid;
/**
* @param ProjectRepoId
*/
public function setProjectRepoId(ProjectRepoId $projectRepoId)
{
$this->projectRepoId = $projectRepoId;
}
/**
* @return ProjectRepoId
*/
public function getProjectRepoId()
{
return $this->projectRepoId;
}
/**
* @param string
*/
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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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\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.
* @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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return array[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string[]
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string
*/
public function setDownloadLocation($downloadLocation)
{
$this->downloadLocation = $downloadLocation;
}
/**
* @return string
*/
public function getDownloadLocation()
{
return $this->downloadLocation;
}
/**
* @param string
*/
public function setMediaType($mediaType)
{
$this->mediaType = $mediaType;
}
/**
* @return string
*/
public function getMediaType()
{
return $this->mediaType;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @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(ResourceDescriptor::class, 'Google_Service_OnDemandScanning_ResourceDescriptor');

View File

@@ -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
*/
public function setBuilder(ProvenanceBuilder $builder)
{
$this->builder = $builder;
}
/**
* @return ProvenanceBuilder
*/
public function getBuilder()
{
return $this->builder;
}
/**
* @param ResourceDescriptor[]
*/
public function setByproducts($byproducts)
{
$this->byproducts = $byproducts;
}
/**
* @return ResourceDescriptor[]
*/
public function getByproducts()
{
return $this->byproducts;
}
/**
* @param BuildMetadata
*/
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');

View File

@@ -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 SBOMReferenceOccurrence extends \Google\Collection
{
protected $collection_key = 'signatures';
protected $payloadDataType = '';
/**
* @var string
*/
public $payloadType;
protected $signaturesType = EnvelopeSignature::class;
protected $signaturesDataType = 'array';
/**
* @param SbomReferenceIntotoPayload
*/
public function setPayload(SbomReferenceIntotoPayload $payload)
{
$this->payload = $payload;
}
/**
* @return SbomReferenceIntotoPayload
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string
*/
public function setPayloadType($payloadType)
{
$this->payloadType = $payloadType;
}
/**
* @return string
*/
public function getPayloadType()
{
return $this->payloadType;
}
/**
* @param EnvelopeSignature[]
*/
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');

View File

@@ -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 SBOMStatus extends \Google\Model
{
/**
* @var string
*/
public $error;
/**
* @var string
*/
public $sbomState;
/**
* @param string
*/
public function setError($error)
{
$this->error = $error;
}
/**
* @return string
*/
public function getError()
{
return $this->error;
}
/**
* @param string
*/
public function setSbomState($sbomState)
{
$this->sbomState = $sbomState;
}
/**
* @return string
*/
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');

View File

@@ -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 SbomReferenceIntotoPayload extends \Google\Collection
{
protected $collection_key = 'subject';
protected $internal_gapi_mappings = [
"type" => "_type",
];
/**
* @var string
*/
public $type;
protected $predicateDataType = '';
/**
* @var string
*/
public $predicateType;
protected $subjectType = Subject::class;
protected $subjectDataType = 'array';
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param SbomReferenceIntotoPredicate
*/
public function setPredicate(SbomReferenceIntotoPredicate $predicate)
{
$this->predicate = $predicate;
}
/**
* @return SbomReferenceIntotoPredicate
*/
public function getPredicate()
{
return $this->predicate;
}
/**
* @param string
*/
public function setPredicateType($predicateType)
{
$this->predicateType = $predicateType;
}
/**
* @return string
*/
public function getPredicateType()
{
return $this->predicateType;
}
/**
* @param 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');

View File

@@ -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 SbomReferenceIntotoPredicate extends \Google\Model
{
/**
* @var string[]
*/
public $digest;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $mimeType;
/**
* @var string
*/
public $referrerId;
/**
* @param string[]
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string[]
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* @param string
*/
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');

View File

@@ -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 Signature extends \Google\Model
{
/**
* @var string
*/
public $publicKeyId;
/**
* @var string
*/
public $signature;
/**
* @param string
*/
public function setPublicKeyId($publicKeyId)
{
$this->publicKeyId = $publicKeyId;
}
/**
* @return string
*/
public function getPublicKeyId()
{
return $this->publicKeyId;
}
/**
* @param string
*/
public function setSignature($signature)
{
$this->signature = $signature;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Signature::class, 'Google_Service_OnDemandScanning_Signature');

View File

@@ -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 SlsaBuilder 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(SlsaBuilder::class, 'Google_Service_OnDemandScanning_SlsaBuilder');

View File

@@ -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 SlsaCompleteness extends \Google\Model
{
/**
* @var bool
*/
public $arguments;
/**
* @var bool
*/
public $environment;
/**
* @var bool
*/
public $materials;
/**
* @param bool
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return bool
*/
public function getArguments()
{
return $this->arguments;
}
/**
* @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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SlsaCompleteness::class, 'Google_Service_OnDemandScanning_SlsaCompleteness');

View File

@@ -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 SlsaMetadata extends \Google\Model
{
/**
* @var string
*/
public $buildFinishedOn;
/**
* @var string
*/
public $buildInvocationId;
/**
* @var string
*/
public $buildStartedOn;
protected $completenessType = SlsaCompleteness::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 SlsaCompleteness
*/
public function setCompleteness(SlsaCompleteness $completeness)
{
$this->completeness = $completeness;
}
/**
* @return SlsaCompleteness
*/
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(SlsaMetadata::class, 'Google_Service_OnDemandScanning_SlsaMetadata');

View File

@@ -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 SlsaProvenance extends \Google\Collection
{
protected $collection_key = 'materials';
protected $builderType = SlsaBuilder::class;
protected $builderDataType = '';
protected $materialsType = Material::class;
protected $materialsDataType = 'array';
protected $metadataType = SlsaMetadata::class;
protected $metadataDataType = '';
protected $recipeType = SlsaRecipe::class;
protected $recipeDataType = '';
/**
* @param SlsaBuilder
*/
public function setBuilder(SlsaBuilder $builder)
{
$this->builder = $builder;
}
/**
* @return SlsaBuilder
*/
public function getBuilder()
{
return $this->builder;
}
/**
* @param Material[]
*/
public function setMaterials($materials)
{
$this->materials = $materials;
}
/**
* @return Material[]
*/
public function getMaterials()
{
return $this->materials;
}
/**
* @param SlsaMetadata
*/
public function setMetadata(SlsaMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return SlsaMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param SlsaRecipe
*/
public function setRecipe(SlsaRecipe $recipe)
{
$this->recipe = $recipe;
}
/**
* @return SlsaRecipe
*/
public function getRecipe()
{
return $this->recipe;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SlsaProvenance::class, 'Google_Service_OnDemandScanning_SlsaProvenance');

View File

@@ -0,0 +1,127 @@
<?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 SlsaProvenance02 extends \Google\Collection
{
protected $collection_key = 'materials';
/**
* @var array[]
*/
public $buildConfig;
/**
* @var string
*/
public $buildType;
protected $builderType = GrafeasV1SlsaProvenance02SlsaBuilder::class;
protected $builderDataType = '';
protected $invocationType = GrafeasV1SlsaProvenance02SlsaInvocation::class;
protected $invocationDataType = '';
protected $materialsType = GrafeasV1SlsaProvenance02SlsaMaterial::class;
protected $materialsDataType = 'array';
protected $metadataType = GrafeasV1SlsaProvenance02SlsaMetadata::class;
protected $metadataDataType = '';
/**
* @param array[]
*/
public function setBuildConfig($buildConfig)
{
$this->buildConfig = $buildConfig;
}
/**
* @return array[]
*/
public function getBuildConfig()
{
return $this->buildConfig;
}
/**
* @param string
*/
public function setBuildType($buildType)
{
$this->buildType = $buildType;
}
/**
* @return string
*/
public function getBuildType()
{
return $this->buildType;
}
/**
* @param GrafeasV1SlsaProvenance02SlsaBuilder
*/
public function setBuilder(GrafeasV1SlsaProvenance02SlsaBuilder $builder)
{
$this->builder = $builder;
}
/**
* @return GrafeasV1SlsaProvenance02SlsaBuilder
*/
public function getBuilder()
{
return $this->builder;
}
/**
* @param GrafeasV1SlsaProvenance02SlsaInvocation
*/
public function setInvocation(GrafeasV1SlsaProvenance02SlsaInvocation $invocation)
{
$this->invocation = $invocation;
}
/**
* @return GrafeasV1SlsaProvenance02SlsaInvocation
*/
public function getInvocation()
{
return $this->invocation;
}
/**
* @param GrafeasV1SlsaProvenance02SlsaMaterial[]
*/
public function setMaterials($materials)
{
$this->materials = $materials;
}
/**
* @return GrafeasV1SlsaProvenance02SlsaMaterial[]
*/
public function getMaterials()
{
return $this->materials;
}
/**
* @param GrafeasV1SlsaProvenance02SlsaMetadata
*/
public function setMetadata(GrafeasV1SlsaProvenance02SlsaMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return GrafeasV1SlsaProvenance02SlsaMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SlsaProvenance02::class, 'Google_Service_OnDemandScanning_SlsaProvenance02');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\OnDemandScanning;
class SlsaProvenanceV1 extends \Google\Model
{
protected $buildDefinitionType = BuildDefinition::class;
protected $buildDefinitionDataType = '';
protected $runDetailsType = RunDetails::class;
protected $runDetailsDataType = '';
/**
* @param BuildDefinition
*/
public function setBuildDefinition(BuildDefinition $buildDefinition)
{
$this->buildDefinition = $buildDefinition;
}
/**
* @return BuildDefinition
*/
public function getBuildDefinition()
{
return $this->buildDefinition;
}
/**
* @param RunDetails
*/
public function setRunDetails(RunDetails $runDetails)
{
$this->runDetails = $runDetails;
}
/**
* @return RunDetails
*/
public function getRunDetails()
{
return $this->runDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SlsaProvenanceV1::class, 'Google_Service_OnDemandScanning_SlsaProvenanceV1');

View File

@@ -0,0 +1,127 @@
<?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 SlsaProvenanceZeroTwo extends \Google\Collection
{
protected $collection_key = 'materials';
/**
* @var array[]
*/
public $buildConfig;
/**
* @var string
*/
public $buildType;
protected $builderType = GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder::class;
protected $builderDataType = '';
protected $invocationType = GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation::class;
protected $invocationDataType = '';
protected $materialsType = GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial::class;
protected $materialsDataType = 'array';
protected $metadataType = GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata::class;
protected $metadataDataType = '';
/**
* @param array[]
*/
public function setBuildConfig($buildConfig)
{
$this->buildConfig = $buildConfig;
}
/**
* @return array[]
*/
public function getBuildConfig()
{
return $this->buildConfig;
}
/**
* @param string
*/
public function setBuildType($buildType)
{
$this->buildType = $buildType;
}
/**
* @return string
*/
public function getBuildType()
{
return $this->buildType;
}
/**
* @param GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder
*/
public function setBuilder(GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder $builder)
{
$this->builder = $builder;
}
/**
* @return GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder
*/
public function getBuilder()
{
return $this->builder;
}
/**
* @param GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation
*/
public function setInvocation(GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation $invocation)
{
$this->invocation = $invocation;
}
/**
* @return GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation
*/
public function getInvocation()
{
return $this->invocation;
}
/**
* @param GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial[]
*/
public function setMaterials($materials)
{
$this->materials = $materials;
}
/**
* @return GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial[]
*/
public function getMaterials()
{
return $this->materials;
}
/**
* @param GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata
*/
public function setMetadata(GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SlsaProvenanceZeroTwo::class, 'Google_Service_OnDemandScanning_SlsaProvenanceZeroTwo');

View File

@@ -0,0 +1,116 @@
<?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 SlsaRecipe extends \Google\Model
{
/**
* @var array[]
*/
public $arguments;
/**
* @var string
*/
public $definedInMaterial;
/**
* @var string
*/
public $entryPoint;
/**
* @var array[]
*/
public $environment;
/**
* @var string
*/
public $type;
/**
* @param array[]
*/
public function setArguments($arguments)
{
$this->arguments = $arguments;
}
/**
* @return array[]
*/
public function getArguments()
{
return $this->arguments;
}
/**
* @param string
*/
public function setDefinedInMaterial($definedInMaterial)
{
$this->definedInMaterial = $definedInMaterial;
}
/**
* @return string
*/
public function getDefinedInMaterial()
{
return $this->definedInMaterial;
}
/**
* @param string
*/
public function setEntryPoint($entryPoint)
{
$this->entryPoint = $entryPoint;
}
/**
* @return string
*/
public function getEntryPoint()
{
return $this->entryPoint;
}
/**
* @param array[]
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return array[]
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param string
*/
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(SlsaRecipe::class, 'Google_Service_OnDemandScanning_SlsaRecipe');

View File

@@ -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 Source extends \Google\Collection
{
protected $collection_key = 'additionalContexts';
protected $additionalContextsType = SourceContext::class;
protected $additionalContextsDataType = 'array';
/**
* @var string
*/
public $artifactStorageSourceUri;
protected $contextType = SourceContext::class;
protected $contextDataType = '';
protected $fileHashesType = FileHashes::class;
protected $fileHashesDataType = 'map';
/**
* @param SourceContext[]
*/
public function setAdditionalContexts($additionalContexts)
{
$this->additionalContexts = $additionalContexts;
}
/**
* @return SourceContext[]
*/
public function getAdditionalContexts()
{
return $this->additionalContexts;
}
/**
* @param string
*/
public function setArtifactStorageSourceUri($artifactStorageSourceUri)
{
$this->artifactStorageSourceUri = $artifactStorageSourceUri;
}
/**
* @return string
*/
public function getArtifactStorageSourceUri()
{
return $this->artifactStorageSourceUri;
}
/**
* @param SourceContext
*/
public function setContext(SourceContext $context)
{
$this->context = $context;
}
/**
* @return SourceContext
*/
public function getContext()
{
return $this->context;
}
/**
* @param FileHashes[]
*/
public function setFileHashes($fileHashes)
{
$this->fileHashes = $fileHashes;
}
/**
* @return FileHashes[]
*/
public function getFileHashes()
{
return $this->fileHashes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Source::class, 'Google_Service_OnDemandScanning_Source');

View File

@@ -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 SourceContext extends \Google\Model
{
protected $cloudRepoType = CloudRepoSourceContext::class;
protected $cloudRepoDataType = '';
protected $gerritType = GerritSourceContext::class;
protected $gerritDataType = '';
protected $gitType = GitSourceContext::class;
protected $gitDataType = '';
/**
* @var string[]
*/
public $labels;
/**
* @param CloudRepoSourceContext
*/
public function setCloudRepo(CloudRepoSourceContext $cloudRepo)
{
$this->cloudRepo = $cloudRepo;
}
/**
* @return CloudRepoSourceContext
*/
public function getCloudRepo()
{
return $this->cloudRepo;
}
/**
* @param GerritSourceContext
*/
public function setGerrit(GerritSourceContext $gerrit)
{
$this->gerrit = $gerrit;
}
/**
* @return GerritSourceContext
*/
public function getGerrit()
{
return $this->gerrit;
}
/**
* @param GitSourceContext
*/
public function setGit(GitSourceContext $git)
{
$this->git = $git;
}
/**
* @return GitSourceContext
*/
public function getGit()
{
return $this->git;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SourceContext::class, 'Google_Service_OnDemandScanning_SourceContext');

View File

@@ -0,0 +1,81 @@
<?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 Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_OnDemandScanning_Status');

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