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,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\BinaryAuthorization;
class AdmissionRule extends \Google\Collection
{
protected $collection_key = 'requireAttestationsBy';
/**
* @var string
*/
public $enforcementMode;
/**
* @var string
*/
public $evaluationMode;
/**
* @var string[]
*/
public $requireAttestationsBy;
/**
* @param string
*/
public function setEnforcementMode($enforcementMode)
{
$this->enforcementMode = $enforcementMode;
}
/**
* @return string
*/
public function getEnforcementMode()
{
return $this->enforcementMode;
}
/**
* @param string
*/
public function setEvaluationMode($evaluationMode)
{
$this->evaluationMode = $evaluationMode;
}
/**
* @return string
*/
public function getEvaluationMode()
{
return $this->evaluationMode;
}
/**
* @param string[]
*/
public function setRequireAttestationsBy($requireAttestationsBy)
{
$this->requireAttestationsBy = $requireAttestationsBy;
}
/**
* @return string[]
*/
public function getRequireAttestationsBy()
{
return $this->requireAttestationsBy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdmissionRule::class, 'Google_Service_BinaryAuthorization_AdmissionRule');

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

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

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\BinaryAuthorization;
class AttestationAuthenticator extends \Google\Model
{
/**
* @var string
*/
public $displayName;
protected $pkixPublicKeySetType = PkixPublicKeySet::class;
protected $pkixPublicKeySetDataType = '';
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param PkixPublicKeySet
*/
public function setPkixPublicKeySet(PkixPublicKeySet $pkixPublicKeySet)
{
$this->pkixPublicKeySet = $pkixPublicKeySet;
}
/**
* @return PkixPublicKeySet
*/
public function getPkixPublicKeySet()
{
return $this->pkixPublicKeySet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttestationAuthenticator::class, 'Google_Service_BinaryAuthorization_AttestationAuthenticator');

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\BinaryAuthorization;
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_BinaryAuthorization_AttestationOccurrence');

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\BinaryAuthorization;
class AttestationSource extends \Google\Collection
{
protected $collection_key = 'containerAnalysisAttestationProjects';
/**
* @var string[]
*/
public $containerAnalysisAttestationProjects;
/**
* @param string[]
*/
public function setContainerAnalysisAttestationProjects($containerAnalysisAttestationProjects)
{
$this->containerAnalysisAttestationProjects = $containerAnalysisAttestationProjects;
}
/**
* @return string[]
*/
public function getContainerAnalysisAttestationProjects()
{
return $this->containerAnalysisAttestationProjects;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttestationSource::class, 'Google_Service_BinaryAuthorization_AttestationSource');

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\BinaryAuthorization;
class Attestor extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
protected $userOwnedGrafeasNoteType = UserOwnedGrafeasNote::class;
protected $userOwnedGrafeasNoteDataType = '';
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param UserOwnedGrafeasNote
*/
public function setUserOwnedGrafeasNote(UserOwnedGrafeasNote $userOwnedGrafeasNote)
{
$this->userOwnedGrafeasNote = $userOwnedGrafeasNote;
}
/**
* @return UserOwnedGrafeasNote
*/
public function getUserOwnedGrafeasNote()
{
return $this->userOwnedGrafeasNote;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attestor::class, 'Google_Service_BinaryAuthorization_Attestor');

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\BinaryAuthorization;
class AttestorPublicKey extends \Google\Model
{
/**
* @var string
*/
public $asciiArmoredPgpPublicKey;
/**
* @var string
*/
public $comment;
/**
* @var string
*/
public $id;
protected $pkixPublicKeyType = PkixPublicKey::class;
protected $pkixPublicKeyDataType = '';
/**
* @param string
*/
public function setAsciiArmoredPgpPublicKey($asciiArmoredPgpPublicKey)
{
$this->asciiArmoredPgpPublicKey = $asciiArmoredPgpPublicKey;
}
/**
* @return string
*/
public function getAsciiArmoredPgpPublicKey()
{
return $this->asciiArmoredPgpPublicKey;
}
/**
* @param string
*/
public function setComment($comment)
{
$this->comment = $comment;
}
/**
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param PkixPublicKey
*/
public function setPkixPublicKey(PkixPublicKey $pkixPublicKey)
{
$this->pkixPublicKey = $pkixPublicKey;
}
/**
* @return PkixPublicKey
*/
public function getPkixPublicKey()
{
return $this->pkixPublicKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttestorPublicKey::class, 'Google_Service_BinaryAuthorization_AttestorPublicKey');

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\BinaryAuthorization;
class BinaryauthorizationEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BinaryauthorizationEmpty::class, 'Google_Service_BinaryAuthorization_BinaryauthorizationEmpty');

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\BinaryAuthorization;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_BinaryAuthorization_Binding');

View File

@@ -0,0 +1,174 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization;
class Check extends \Google\Model
{
/**
* @var bool
*/
public $alwaysDeny;
/**
* @var string
*/
public $displayName;
protected $imageAllowlistType = ImageAllowlist::class;
protected $imageAllowlistDataType = '';
protected $imageFreshnessCheckType = ImageFreshnessCheck::class;
protected $imageFreshnessCheckDataType = '';
protected $sigstoreSignatureCheckType = SigstoreSignatureCheck::class;
protected $sigstoreSignatureCheckDataType = '';
protected $simpleSigningAttestationCheckType = SimpleSigningAttestationCheck::class;
protected $simpleSigningAttestationCheckDataType = '';
protected $slsaCheckType = SlsaCheck::class;
protected $slsaCheckDataType = '';
protected $trustedDirectoryCheckType = TrustedDirectoryCheck::class;
protected $trustedDirectoryCheckDataType = '';
protected $vulnerabilityCheckType = VulnerabilityCheck::class;
protected $vulnerabilityCheckDataType = '';
/**
* @param bool
*/
public function setAlwaysDeny($alwaysDeny)
{
$this->alwaysDeny = $alwaysDeny;
}
/**
* @return bool
*/
public function getAlwaysDeny()
{
return $this->alwaysDeny;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param ImageAllowlist
*/
public function setImageAllowlist(ImageAllowlist $imageAllowlist)
{
$this->imageAllowlist = $imageAllowlist;
}
/**
* @return ImageAllowlist
*/
public function getImageAllowlist()
{
return $this->imageAllowlist;
}
/**
* @param ImageFreshnessCheck
*/
public function setImageFreshnessCheck(ImageFreshnessCheck $imageFreshnessCheck)
{
$this->imageFreshnessCheck = $imageFreshnessCheck;
}
/**
* @return ImageFreshnessCheck
*/
public function getImageFreshnessCheck()
{
return $this->imageFreshnessCheck;
}
/**
* @param SigstoreSignatureCheck
*/
public function setSigstoreSignatureCheck(SigstoreSignatureCheck $sigstoreSignatureCheck)
{
$this->sigstoreSignatureCheck = $sigstoreSignatureCheck;
}
/**
* @return SigstoreSignatureCheck
*/
public function getSigstoreSignatureCheck()
{
return $this->sigstoreSignatureCheck;
}
/**
* @param SimpleSigningAttestationCheck
*/
public function setSimpleSigningAttestationCheck(SimpleSigningAttestationCheck $simpleSigningAttestationCheck)
{
$this->simpleSigningAttestationCheck = $simpleSigningAttestationCheck;
}
/**
* @return SimpleSigningAttestationCheck
*/
public function getSimpleSigningAttestationCheck()
{
return $this->simpleSigningAttestationCheck;
}
/**
* @param SlsaCheck
*/
public function setSlsaCheck(SlsaCheck $slsaCheck)
{
$this->slsaCheck = $slsaCheck;
}
/**
* @return SlsaCheck
*/
public function getSlsaCheck()
{
return $this->slsaCheck;
}
/**
* @param TrustedDirectoryCheck
*/
public function setTrustedDirectoryCheck(TrustedDirectoryCheck $trustedDirectoryCheck)
{
$this->trustedDirectoryCheck = $trustedDirectoryCheck;
}
/**
* @return TrustedDirectoryCheck
*/
public function getTrustedDirectoryCheck()
{
return $this->trustedDirectoryCheck;
}
/**
* @param VulnerabilityCheck
*/
public function setVulnerabilityCheck(VulnerabilityCheck $vulnerabilityCheck)
{
$this->vulnerabilityCheck = $vulnerabilityCheck;
}
/**
* @return VulnerabilityCheck
*/
public function getVulnerabilityCheck()
{
return $this->vulnerabilityCheck;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Check::class, 'Google_Service_BinaryAuthorization_Check');

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\BinaryAuthorization;
class CheckResult extends \Google\Model
{
protected $allowlistResultType = AllowlistResult::class;
protected $allowlistResultDataType = '';
/**
* @var string
*/
public $displayName;
protected $evaluationResultType = EvaluationResult::class;
protected $evaluationResultDataType = '';
/**
* @var string
*/
public $explanation;
/**
* @var string
*/
public $index;
/**
* @var string
*/
public $type;
/**
* @param AllowlistResult
*/
public function setAllowlistResult(AllowlistResult $allowlistResult)
{
$this->allowlistResult = $allowlistResult;
}
/**
* @return AllowlistResult
*/
public function getAllowlistResult()
{
return $this->allowlistResult;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param EvaluationResult
*/
public function setEvaluationResult(EvaluationResult $evaluationResult)
{
$this->evaluationResult = $evaluationResult;
}
/**
* @return EvaluationResult
*/
public function getEvaluationResult()
{
return $this->evaluationResult;
}
/**
* @param string
*/
public function setExplanation($explanation)
{
$this->explanation = $explanation;
}
/**
* @return string
*/
public function getExplanation()
{
return $this->explanation;
}
/**
* @param string
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return string
*/
public function getIndex()
{
return $this->index;
}
/**
* @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(CheckResult::class, 'Google_Service_BinaryAuthorization_CheckResult');

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\BinaryAuthorization;
class CheckResults extends \Google\Collection
{
protected $collection_key = 'results';
protected $resultsType = CheckResult::class;
protected $resultsDataType = 'array';
/**
* @param CheckResult[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return CheckResult[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckResults::class, 'Google_Service_BinaryAuthorization_CheckResults');

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\BinaryAuthorization;
class CheckSet extends \Google\Collection
{
protected $collection_key = 'checks';
protected $checksType = Check::class;
protected $checksDataType = 'array';
/**
* @var string
*/
public $displayName;
protected $imageAllowlistType = ImageAllowlist::class;
protected $imageAllowlistDataType = '';
protected $scopeType = Scope::class;
protected $scopeDataType = '';
/**
* @param Check[]
*/
public function setChecks($checks)
{
$this->checks = $checks;
}
/**
* @return Check[]
*/
public function getChecks()
{
return $this->checks;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param ImageAllowlist
*/
public function setImageAllowlist(ImageAllowlist $imageAllowlist)
{
$this->imageAllowlist = $imageAllowlist;
}
/**
* @return ImageAllowlist
*/
public function getImageAllowlist()
{
return $this->imageAllowlist;
}
/**
* @param Scope
*/
public function setScope(Scope $scope)
{
$this->scope = $scope;
}
/**
* @return Scope
*/
public function getScope()
{
return $this->scope;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckSet::class, 'Google_Service_BinaryAuthorization_CheckSet');

View File

@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization;
class CheckSetResult extends \Google\Model
{
protected $allowlistResultType = AllowlistResult::class;
protected $allowlistResultDataType = '';
protected $checkResultsType = CheckResults::class;
protected $checkResultsDataType = '';
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $explanation;
/**
* @var string
*/
public $index;
protected $scopeType = Scope::class;
protected $scopeDataType = '';
/**
* @param AllowlistResult
*/
public function setAllowlistResult(AllowlistResult $allowlistResult)
{
$this->allowlistResult = $allowlistResult;
}
/**
* @return AllowlistResult
*/
public function getAllowlistResult()
{
return $this->allowlistResult;
}
/**
* @param CheckResults
*/
public function setCheckResults(CheckResults $checkResults)
{
$this->checkResults = $checkResults;
}
/**
* @return CheckResults
*/
public function getCheckResults()
{
return $this->checkResults;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setExplanation($explanation)
{
$this->explanation = $explanation;
}
/**
* @return string
*/
public function getExplanation()
{
return $this->explanation;
}
/**
* @param string
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return string
*/
public function getIndex()
{
return $this->index;
}
/**
* @param Scope
*/
public function setScope(Scope $scope)
{
$this->scope = $scope;
}
/**
* @return Scope
*/
public function getScope()
{
return $this->scope;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckSetResult::class, 'Google_Service_BinaryAuthorization_CheckSetResult');

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\BinaryAuthorization;
class EvaluateGkePolicyRequest extends \Google\Model
{
/**
* @var array[]
*/
public $resource;
/**
* @param array[]
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return array[]
*/
public function getResource()
{
return $this->resource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EvaluateGkePolicyRequest::class, 'Google_Service_BinaryAuthorization_EvaluateGkePolicyRequest');

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\BinaryAuthorization;
class EvaluateGkePolicyResponse extends \Google\Collection
{
protected $collection_key = 'results';
protected $resultsType = PodResult::class;
protected $resultsDataType = 'array';
/**
* @var string
*/
public $verdict;
/**
* @param PodResult[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return PodResult[]
*/
public function getResults()
{
return $this->results;
}
/**
* @param string
*/
public function setVerdict($verdict)
{
$this->verdict = $verdict;
}
/**
* @return string
*/
public function getVerdict()
{
return $this->verdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EvaluateGkePolicyResponse::class, 'Google_Service_BinaryAuthorization_EvaluateGkePolicyResponse');

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

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\BinaryAuthorization;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_BinaryAuthorization_Expr');

View File

@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization;
class GkePolicy extends \Google\Collection
{
protected $collection_key = 'checkSets';
protected $checkSetsType = CheckSet::class;
protected $checkSetsDataType = 'array';
protected $imageAllowlistType = ImageAllowlist::class;
protected $imageAllowlistDataType = '';
/**
* @param CheckSet[]
*/
public function setCheckSets($checkSets)
{
$this->checkSets = $checkSets;
}
/**
* @return CheckSet[]
*/
public function getCheckSets()
{
return $this->checkSets;
}
/**
* @param ImageAllowlist
*/
public function setImageAllowlist(ImageAllowlist $imageAllowlist)
{
$this->imageAllowlist = $imageAllowlist;
}
/**
* @return ImageAllowlist
*/
public function getImageAllowlist()
{
return $this->imageAllowlist;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkePolicy::class, 'Google_Service_BinaryAuthorization_GkePolicy');

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\BinaryAuthorization;
class IamPolicy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IamPolicy::class, 'Google_Service_BinaryAuthorization_IamPolicy');

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\BinaryAuthorization;
class ImageAllowlist extends \Google\Collection
{
protected $collection_key = 'allowPattern';
/**
* @var string[]
*/
public $allowPattern;
/**
* @param string[]
*/
public function setAllowPattern($allowPattern)
{
$this->allowPattern = $allowPattern;
}
/**
* @return string[]
*/
public function getAllowPattern()
{
return $this->allowPattern;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageAllowlist::class, 'Google_Service_BinaryAuthorization_ImageAllowlist');

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\BinaryAuthorization;
class ImageFreshnessCheck extends \Google\Model
{
/**
* @var int
*/
public $maxUploadAgeDays;
/**
* @param int
*/
public function setMaxUploadAgeDays($maxUploadAgeDays)
{
$this->maxUploadAgeDays = $maxUploadAgeDays;
}
/**
* @return int
*/
public function getMaxUploadAgeDays()
{
return $this->maxUploadAgeDays;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageFreshnessCheck::class, 'Google_Service_BinaryAuthorization_ImageFreshnessCheck');

View File

@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization;
class ImageResult extends \Google\Model
{
protected $allowlistResultType = AllowlistResult::class;
protected $allowlistResultDataType = '';
protected $checkSetResultType = CheckSetResult::class;
protected $checkSetResultDataType = '';
/**
* @var string
*/
public $explanation;
/**
* @var string
*/
public $imageUri;
/**
* @var string
*/
public $verdict;
/**
* @param AllowlistResult
*/
public function setAllowlistResult(AllowlistResult $allowlistResult)
{
$this->allowlistResult = $allowlistResult;
}
/**
* @return AllowlistResult
*/
public function getAllowlistResult()
{
return $this->allowlistResult;
}
/**
* @param CheckSetResult
*/
public function setCheckSetResult(CheckSetResult $checkSetResult)
{
$this->checkSetResult = $checkSetResult;
}
/**
* @return CheckSetResult
*/
public function getCheckSetResult()
{
return $this->checkSetResult;
}
/**
* @param string
*/
public function setExplanation($explanation)
{
$this->explanation = $explanation;
}
/**
* @return string
*/
public function getExplanation()
{
return $this->explanation;
}
/**
* @param string
*/
public function setImageUri($imageUri)
{
$this->imageUri = $imageUri;
}
/**
* @return string
*/
public function getImageUri()
{
return $this->imageUri;
}
/**
* @param string
*/
public function setVerdict($verdict)
{
$this->verdict = $verdict;
}
/**
* @return string
*/
public function getVerdict()
{
return $this->verdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageResult::class, 'Google_Service_BinaryAuthorization_ImageResult');

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\BinaryAuthorization;
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_BinaryAuthorization_Jwt');

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\BinaryAuthorization;
class ListAttestorsResponse extends \Google\Collection
{
protected $collection_key = 'attestors';
protected $attestorsType = Attestor::class;
protected $attestorsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Attestor[]
*/
public function setAttestors($attestors)
{
$this->attestors = $attestors;
}
/**
* @return Attestor[]
*/
public function getAttestors()
{
return $this->attestors;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAttestorsResponse::class, 'Google_Service_BinaryAuthorization_ListAttestorsResponse');

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\BinaryAuthorization;
class ListPlatformPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'platformPolicies';
/**
* @var string
*/
public $nextPageToken;
protected $platformPoliciesType = PlatformPolicy::class;
protected $platformPoliciesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PlatformPolicy[]
*/
public function setPlatformPolicies($platformPolicies)
{
$this->platformPolicies = $platformPolicies;
}
/**
* @return PlatformPolicy[]
*/
public function getPlatformPolicies()
{
return $this->platformPolicies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPlatformPoliciesResponse::class, 'Google_Service_BinaryAuthorization_ListPlatformPoliciesResponse');

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\BinaryAuthorization;
class PkixPublicKey extends \Google\Model
{
/**
* @var string
*/
public $keyId;
/**
* @var string
*/
public $publicKeyPem;
/**
* @var string
*/
public $signatureAlgorithm;
/**
* @param string
*/
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
/**
* @return string
*/
public function getKeyId()
{
return $this->keyId;
}
/**
* @param string
*/
public function setPublicKeyPem($publicKeyPem)
{
$this->publicKeyPem = $publicKeyPem;
}
/**
* @return string
*/
public function getPublicKeyPem()
{
return $this->publicKeyPem;
}
/**
* @param string
*/
public function setSignatureAlgorithm($signatureAlgorithm)
{
$this->signatureAlgorithm = $signatureAlgorithm;
}
/**
* @return string
*/
public function getSignatureAlgorithm()
{
return $this->signatureAlgorithm;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PkixPublicKey::class, 'Google_Service_BinaryAuthorization_PkixPublicKey');

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\BinaryAuthorization;
class PkixPublicKeySet extends \Google\Collection
{
protected $collection_key = 'pkixPublicKeys';
protected $pkixPublicKeysType = PkixPublicKey::class;
protected $pkixPublicKeysDataType = 'array';
/**
* @param PkixPublicKey[]
*/
public function setPkixPublicKeys($pkixPublicKeys)
{
$this->pkixPublicKeys = $pkixPublicKeys;
}
/**
* @return PkixPublicKey[]
*/
public function getPkixPublicKeys()
{
return $this->pkixPublicKeys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PkixPublicKeySet::class, 'Google_Service_BinaryAuthorization_PkixPublicKeySet');

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\BinaryAuthorization;
class PlatformPolicy extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
protected $gkePolicyType = GkePolicy::class;
protected $gkePolicyDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param GkePolicy
*/
public function setGkePolicy(GkePolicy $gkePolicy)
{
$this->gkePolicy = $gkePolicy;
}
/**
* @return GkePolicy
*/
public function getGkePolicy()
{
return $this->gkePolicy;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformPolicy::class, 'Google_Service_BinaryAuthorization_PlatformPolicy');

View File

@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization;
class PodResult extends \Google\Collection
{
protected $collection_key = 'imageResults';
protected $imageResultsType = ImageResult::class;
protected $imageResultsDataType = 'array';
/**
* @var string
*/
public $kubernetesNamespace;
/**
* @var string
*/
public $kubernetesServiceAccount;
/**
* @var string
*/
public $podName;
/**
* @var string
*/
public $verdict;
/**
* @param ImageResult[]
*/
public function setImageResults($imageResults)
{
$this->imageResults = $imageResults;
}
/**
* @return ImageResult[]
*/
public function getImageResults()
{
return $this->imageResults;
}
/**
* @param string
*/
public function setKubernetesNamespace($kubernetesNamespace)
{
$this->kubernetesNamespace = $kubernetesNamespace;
}
/**
* @return string
*/
public function getKubernetesNamespace()
{
return $this->kubernetesNamespace;
}
/**
* @param string
*/
public function setKubernetesServiceAccount($kubernetesServiceAccount)
{
$this->kubernetesServiceAccount = $kubernetesServiceAccount;
}
/**
* @return string
*/
public function getKubernetesServiceAccount()
{
return $this->kubernetesServiceAccount;
}
/**
* @param string
*/
public function setPodName($podName)
{
$this->podName = $podName;
}
/**
* @return string
*/
public function getPodName()
{
return $this->podName;
}
/**
* @param string
*/
public function setVerdict($verdict)
{
$this->verdict = $verdict;
}
/**
* @return string
*/
public function getVerdict()
{
return $this->verdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PodResult::class, 'Google_Service_BinaryAuthorization_PodResult');

View File

@@ -0,0 +1,213 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization;
class Policy extends \Google\Collection
{
protected $collection_key = 'admissionWhitelistPatterns';
protected $admissionWhitelistPatternsType = AdmissionWhitelistPattern::class;
protected $admissionWhitelistPatternsDataType = 'array';
protected $clusterAdmissionRulesType = AdmissionRule::class;
protected $clusterAdmissionRulesDataType = 'map';
protected $defaultAdmissionRuleType = AdmissionRule::class;
protected $defaultAdmissionRuleDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $globalPolicyEvaluationMode;
protected $istioServiceIdentityAdmissionRulesType = AdmissionRule::class;
protected $istioServiceIdentityAdmissionRulesDataType = 'map';
protected $kubernetesNamespaceAdmissionRulesType = AdmissionRule::class;
protected $kubernetesNamespaceAdmissionRulesDataType = 'map';
protected $kubernetesServiceAccountAdmissionRulesType = AdmissionRule::class;
protected $kubernetesServiceAccountAdmissionRulesDataType = 'map';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @param AdmissionWhitelistPattern[]
*/
public function setAdmissionWhitelistPatterns($admissionWhitelistPatterns)
{
$this->admissionWhitelistPatterns = $admissionWhitelistPatterns;
}
/**
* @return AdmissionWhitelistPattern[]
*/
public function getAdmissionWhitelistPatterns()
{
return $this->admissionWhitelistPatterns;
}
/**
* @param AdmissionRule[]
*/
public function setClusterAdmissionRules($clusterAdmissionRules)
{
$this->clusterAdmissionRules = $clusterAdmissionRules;
}
/**
* @return AdmissionRule[]
*/
public function getClusterAdmissionRules()
{
return $this->clusterAdmissionRules;
}
/**
* @param AdmissionRule
*/
public function setDefaultAdmissionRule(AdmissionRule $defaultAdmissionRule)
{
$this->defaultAdmissionRule = $defaultAdmissionRule;
}
/**
* @return AdmissionRule
*/
public function getDefaultAdmissionRule()
{
return $this->defaultAdmissionRule;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setGlobalPolicyEvaluationMode($globalPolicyEvaluationMode)
{
$this->globalPolicyEvaluationMode = $globalPolicyEvaluationMode;
}
/**
* @return string
*/
public function getGlobalPolicyEvaluationMode()
{
return $this->globalPolicyEvaluationMode;
}
/**
* @param AdmissionRule[]
*/
public function setIstioServiceIdentityAdmissionRules($istioServiceIdentityAdmissionRules)
{
$this->istioServiceIdentityAdmissionRules = $istioServiceIdentityAdmissionRules;
}
/**
* @return AdmissionRule[]
*/
public function getIstioServiceIdentityAdmissionRules()
{
return $this->istioServiceIdentityAdmissionRules;
}
/**
* @param AdmissionRule[]
*/
public function setKubernetesNamespaceAdmissionRules($kubernetesNamespaceAdmissionRules)
{
$this->kubernetesNamespaceAdmissionRules = $kubernetesNamespaceAdmissionRules;
}
/**
* @return AdmissionRule[]
*/
public function getKubernetesNamespaceAdmissionRules()
{
return $this->kubernetesNamespaceAdmissionRules;
}
/**
* @param AdmissionRule[]
*/
public function setKubernetesServiceAccountAdmissionRules($kubernetesServiceAccountAdmissionRules)
{
$this->kubernetesServiceAccountAdmissionRules = $kubernetesServiceAccountAdmissionRules;
}
/**
* @return AdmissionRule[]
*/
public function getKubernetesServiceAccountAdmissionRules()
{
return $this->kubernetesServiceAccountAdmissionRules;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_BinaryAuthorization_Policy');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization\Resource;
use Google\Service\BinaryAuthorization\Policy;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
* $projects = $binaryauthorizationService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* A policy specifies the attestors that must attest to a container image,
* before the project is allowed to deploy that image. There is at most one
* policy per project. All image admission requests are permitted if a project
* has no policy. Gets the policy for this project. Returns a default policy if
* the project does not have one. (projects.getPolicy)
*
* @param string $name Required. The resource name of the policy to retrieve, in
* the format `projects/policy`.
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getPolicy($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getPolicy', [$params], Policy::class);
}
/**
* Creates or updates a project's policy, and returns a copy of the new policy.
* A policy is always updated as a whole, to avoid race conditions with
* concurrent policy enforcement (or management!) requests. Returns `NOT_FOUND`
* if the project does not exist, `INVALID_ARGUMENT` if the request is
* malformed. (projects.updatePolicy)
*
* @param string $name Output only. The resource name, in the format
* `projects/policy`. There is at most one policy per project.
* @param Policy $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function updatePolicy($name, Policy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updatePolicy', [$params], Policy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_BinaryAuthorization_Resource_Projects');

View File

@@ -0,0 +1,227 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization\Resource;
use Google\Service\BinaryAuthorization\Attestor;
use Google\Service\BinaryAuthorization\BinaryauthorizationEmpty;
use Google\Service\BinaryAuthorization\IamPolicy;
use Google\Service\BinaryAuthorization\ListAttestorsResponse;
use Google\Service\BinaryAuthorization\SetIamPolicyRequest;
use Google\Service\BinaryAuthorization\TestIamPermissionsRequest;
use Google\Service\BinaryAuthorization\TestIamPermissionsResponse;
use Google\Service\BinaryAuthorization\ValidateAttestationOccurrenceRequest;
use Google\Service\BinaryAuthorization\ValidateAttestationOccurrenceResponse;
/**
* The "attestors" collection of methods.
* Typical usage is:
* <code>
* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
* $attestors = $binaryauthorizationService->projects_attestors;
* </code>
*/
class ProjectsAttestors extends \Google\Service\Resource
{
/**
* Creates an attestor, and returns a copy of the new attestor. Returns
* `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the request
* is malformed, `ALREADY_EXISTS` if the attestor already exists.
* (attestors.create)
*
* @param string $parent Required. The parent of this attestor.
* @param Attestor $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string attestorId Required. The attestors ID.
* @return Attestor
* @throws \Google\Service\Exception
*/
public function create($parent, Attestor $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Attestor::class);
}
/**
* Deletes an attestor. Returns `NOT_FOUND` if the attestor does not exist.
* (attestors.delete)
*
* @param string $name Required. The name of the attestors to delete, in the
* format `projects/attestors`.
* @param array $optParams Optional parameters.
* @return BinaryauthorizationEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BinaryauthorizationEmpty::class);
}
/**
* Gets an attestor. Returns `NOT_FOUND` if the attestor does not exist.
* (attestors.get)
*
* @param string $name Required. The name of the attestor to retrieve, in the
* format `projects/attestors`.
* @param array $optParams Optional parameters.
* @return Attestor
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Attestor::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (attestors.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return IamPolicy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], IamPolicy::class);
}
/**
* Lists attestors. Returns `INVALID_ARGUMENT` if the project does not exist.
* (attestors.listProjectsAttestors)
*
* @param string $parent Required. The resource name of the project associated
* with the attestors, in the format `projects`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server may return fewer
* results than requested. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListAttestorsResponse.next_page_token returned from the previous call to the
* `ListAttestors` method.
* @return ListAttestorsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsAttestors($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAttestorsResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (attestors.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return IamPolicy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], IamPolicy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (attestors.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Updates an attestor. Returns `NOT_FOUND` if the attestor does not exist.
* (attestors.update)
*
* @param string $name Required. The resource name, in the format:
* `projects/attestors`. This field may not be updated.
* @param Attestor $postBody
* @param array $optParams Optional parameters.
* @return Attestor
* @throws \Google\Service\Exception
*/
public function update($name, Attestor $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Attestor::class);
}
/**
* Returns whether the given `Attestation` for the given image URI was signed by
* the given `Attestor` (attestors.validateAttestationOccurrence)
*
* @param string $attestor Required. The resource name of the Attestor of the
* occurrence, in the format `projects/attestors`.
* @param ValidateAttestationOccurrenceRequest $postBody
* @param array $optParams Optional parameters.
* @return ValidateAttestationOccurrenceResponse
* @throws \Google\Service\Exception
*/
public function validateAttestationOccurrence($attestor, ValidateAttestationOccurrenceRequest $postBody, $optParams = [])
{
$params = ['attestor' => $attestor, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('validateAttestationOccurrence', [$params], ValidateAttestationOccurrenceResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsAttestors::class, 'Google_Service_BinaryAuthorization_Resource_ProjectsAttestors');

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\BinaryAuthorization\Resource;
/**
* The "platforms" collection of methods.
* Typical usage is:
* <code>
* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
* $platforms = $binaryauthorizationService->projects_platforms;
* </code>
*/
class ProjectsPlatforms extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsPlatforms::class, 'Google_Service_BinaryAuthorization_Resource_ProjectsPlatforms');

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\BinaryAuthorization\Resource;
/**
* The "gke" collection of methods.
* Typical usage is:
* <code>
* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
* $gke = $binaryauthorizationService->projects_platforms_gke;
* </code>
*/
class ProjectsPlatformsGke extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsPlatformsGke::class, 'Google_Service_BinaryAuthorization_Resource_ProjectsPlatformsGke');

View File

@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization\Resource;
use Google\Service\BinaryAuthorization\EvaluateGkePolicyRequest;
use Google\Service\BinaryAuthorization\EvaluateGkePolicyResponse;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
* $policies = $binaryauthorizationService->projects_platforms_gke_policies;
* </code>
*/
class ProjectsPlatformsGkePolicies extends \Google\Service\Resource
{
/**
* Evaluates a Kubernetes object versus a GKE platform policy. Returns
* `NOT_FOUND` if the policy doesn't exist, `INVALID_ARGUMENT` if the policy or
* request is malformed and `PERMISSION_DENIED` if the client does not have
* sufficient permissions. (policies.evaluate)
*
* @param string $name Required. The name of the platform policy to evaluate in
* the format `projects/platforms/policies`.
* @param EvaluateGkePolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return EvaluateGkePolicyResponse
* @throws \Google\Service\Exception
*/
public function evaluate($name, EvaluateGkePolicyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('evaluate', [$params], EvaluateGkePolicyResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsPlatformsGkePolicies::class, 'Google_Service_BinaryAuthorization_Resource_ProjectsPlatformsGkePolicies');

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\BinaryAuthorization\Resource;
use Google\Service\BinaryAuthorization\BinaryauthorizationEmpty;
use Google\Service\BinaryAuthorization\ListPlatformPoliciesResponse;
use Google\Service\BinaryAuthorization\PlatformPolicy;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
* $policies = $binaryauthorizationService->projects_platforms_policies;
* </code>
*/
class ProjectsPlatformsPolicies extends \Google\Service\Resource
{
/**
* Creates a platform policy, and returns a copy of it. Returns `NOT_FOUND` if
* the project or platform doesn't exist, `INVALID_ARGUMENT` if the request is
* malformed, `ALREADY_EXISTS` if the policy already exists, and
* `INVALID_ARGUMENT` if the policy contains a platform-specific policy that
* does not match the platform value specified in the URL. (policies.create)
*
* @param string $parent Required. The parent of this platform policy.
* @param PlatformPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string policyId Required. The platform policy ID.
* @return PlatformPolicy
* @throws \Google\Service\Exception
*/
public function create($parent, PlatformPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], PlatformPolicy::class);
}
/**
* Deletes a platform policy. Returns `NOT_FOUND` if the policy doesn't exist.
* (policies.delete)
*
* @param string $name Required. The name of the platform policy to delete, in
* the format `projects/platforms/policies`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. Used to prevent deleting the policy when
* another request has updated it since it was retrieved.
* @return BinaryauthorizationEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BinaryauthorizationEmpty::class);
}
/**
* Gets a platform policy. Returns `NOT_FOUND` if the policy doesn't exist.
* (policies.get)
*
* @param string $name Required. The name of the platform policy to retrieve in
* the format `projects/platforms/policies`.
* @param array $optParams Optional parameters.
* @return PlatformPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PlatformPolicy::class);
}
/**
* Lists platform policies owned by a project in the specified platform. Returns
* `INVALID_ARGUMENT` if the project or the platform doesn't exist.
* (policies.listProjectsPlatformsPolicies)
*
* @param string $parent Required. The resource name of the platform associated
* with the platform policies using the format `projects/platforms`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server may return fewer
* results than requested. If unspecified, the server picks an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return. Typically, this is the value of
* ListPlatformPoliciesResponse.next_page_token returned from the previous call
* to the `ListPlatformPolicies` method.
* @return ListPlatformPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsPlatformsPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPlatformPoliciesResponse::class);
}
/**
* Replaces a platform policy. Returns `NOT_FOUND` if the policy doesn't exist.
* (policies.replacePlatformPolicy)
*
* @param string $name Output only. The relative resource name of the Binary
* Authorization platform policy, in the form of `projects/platforms/policies`.
* @param PlatformPolicy $postBody
* @param array $optParams Optional parameters.
* @return PlatformPolicy
* @throws \Google\Service\Exception
*/
public function replacePlatformPolicy($name, PlatformPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('replacePlatformPolicy', [$params], PlatformPolicy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsPlatformsPolicies::class, 'Google_Service_BinaryAuthorization_Resource_ProjectsPlatformsPolicies');

View File

@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BinaryAuthorization\Resource;
use Google\Service\BinaryAuthorization\IamPolicy;
use Google\Service\BinaryAuthorization\SetIamPolicyRequest;
use Google\Service\BinaryAuthorization\TestIamPermissionsRequest;
use Google\Service\BinaryAuthorization\TestIamPermissionsResponse;
/**
* The "policy" collection of methods.
* Typical usage is:
* <code>
* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
* $policy = $binaryauthorizationService->projects_policy;
* </code>
*/
class ProjectsPolicy extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (policy.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return IamPolicy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], IamPolicy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (policy.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return IamPolicy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], IamPolicy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (policy.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsPolicy::class, 'Google_Service_BinaryAuthorization_Resource_ProjectsPolicy');

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\BinaryAuthorization\Resource;
use Google\Service\BinaryAuthorization\Policy;
/**
* The "systempolicy" collection of methods.
* Typical usage is:
* <code>
* $binaryauthorizationService = new Google\Service\BinaryAuthorization(...);
* $systempolicy = $binaryauthorizationService->systempolicy;
* </code>
*/
class Systempolicy extends \Google\Service\Resource
{
/**
* Gets the current system policy in the specified location.
* (systempolicy.getPolicy)
*
* @param string $name Required. The resource name, in the format
* `locations/policy`. Note that the system policy is not associated with a
* project.
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getPolicy($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getPolicy', [$params], Policy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Systempolicy::class, 'Google_Service_BinaryAuthorization_Resource_Systempolicy');

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\BinaryAuthorization;
class Scope extends \Google\Model
{
/**
* @var string
*/
public $kubernetesNamespace;
/**
* @var string
*/
public $kubernetesServiceAccount;
/**
* @param string
*/
public function setKubernetesNamespace($kubernetesNamespace)
{
$this->kubernetesNamespace = $kubernetesNamespace;
}
/**
* @return string
*/
public function getKubernetesNamespace()
{
return $this->kubernetesNamespace;
}
/**
* @param string
*/
public function setKubernetesServiceAccount($kubernetesServiceAccount)
{
$this->kubernetesServiceAccount = $kubernetesServiceAccount;
}
/**
* @return string
*/
public function getKubernetesServiceAccount()
{
return $this->kubernetesServiceAccount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Scope::class, 'Google_Service_BinaryAuthorization_Scope');

View File

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

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\BinaryAuthorization;
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_BinaryAuthorization_Signature');

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\BinaryAuthorization;
class SigstoreAuthority extends \Google\Model
{
/**
* @var string
*/
public $displayName;
protected $publicKeySetType = SigstorePublicKeySet::class;
protected $publicKeySetDataType = '';
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param SigstorePublicKeySet
*/
public function setPublicKeySet(SigstorePublicKeySet $publicKeySet)
{
$this->publicKeySet = $publicKeySet;
}
/**
* @return SigstorePublicKeySet
*/
public function getPublicKeySet()
{
return $this->publicKeySet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SigstoreAuthority::class, 'Google_Service_BinaryAuthorization_SigstoreAuthority');

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

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\BinaryAuthorization;
class SigstorePublicKeySet extends \Google\Collection
{
protected $collection_key = 'publicKeys';
protected $publicKeysType = SigstorePublicKey::class;
protected $publicKeysDataType = 'array';
/**
* @param SigstorePublicKey[]
*/
public function setPublicKeys($publicKeys)
{
$this->publicKeys = $publicKeys;
}
/**
* @return SigstorePublicKey[]
*/
public function getPublicKeys()
{
return $this->publicKeys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SigstorePublicKeySet::class, 'Google_Service_BinaryAuthorization_SigstorePublicKeySet');

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\BinaryAuthorization;
class SigstoreSignatureCheck extends \Google\Collection
{
protected $collection_key = 'sigstoreAuthorities';
protected $sigstoreAuthoritiesType = SigstoreAuthority::class;
protected $sigstoreAuthoritiesDataType = 'array';
/**
* @param SigstoreAuthority[]
*/
public function setSigstoreAuthorities($sigstoreAuthorities)
{
$this->sigstoreAuthorities = $sigstoreAuthorities;
}
/**
* @return SigstoreAuthority[]
*/
public function getSigstoreAuthorities()
{
return $this->sigstoreAuthorities;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SigstoreSignatureCheck::class, 'Google_Service_BinaryAuthorization_SigstoreSignatureCheck');

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\BinaryAuthorization;
class SimpleSigningAttestationCheck extends \Google\Collection
{
protected $collection_key = 'containerAnalysisAttestationProjects';
protected $attestationAuthenticatorsType = AttestationAuthenticator::class;
protected $attestationAuthenticatorsDataType = 'array';
/**
* @var string[]
*/
public $containerAnalysisAttestationProjects;
/**
* @param AttestationAuthenticator[]
*/
public function setAttestationAuthenticators($attestationAuthenticators)
{
$this->attestationAuthenticators = $attestationAuthenticators;
}
/**
* @return AttestationAuthenticator[]
*/
public function getAttestationAuthenticators()
{
return $this->attestationAuthenticators;
}
/**
* @param string[]
*/
public function setContainerAnalysisAttestationProjects($containerAnalysisAttestationProjects)
{
$this->containerAnalysisAttestationProjects = $containerAnalysisAttestationProjects;
}
/**
* @return string[]
*/
public function getContainerAnalysisAttestationProjects()
{
return $this->containerAnalysisAttestationProjects;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SimpleSigningAttestationCheck::class, 'Google_Service_BinaryAuthorization_SimpleSigningAttestationCheck');

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\BinaryAuthorization;
class SlsaCheck extends \Google\Collection
{
protected $collection_key = 'rules';
protected $rulesType = VerificationRule::class;
protected $rulesDataType = 'array';
/**
* @param VerificationRule[]
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return VerificationRule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SlsaCheck::class, 'Google_Service_BinaryAuthorization_SlsaCheck');

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\BinaryAuthorization;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_BinaryAuthorization_TestIamPermissionsRequest');

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\BinaryAuthorization;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_BinaryAuthorization_TestIamPermissionsResponse');

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\BinaryAuthorization;
class TrustedDirectoryCheck extends \Google\Collection
{
protected $collection_key = 'trustedDirPatterns';
/**
* @var string[]
*/
public $trustedDirPatterns;
/**
* @param string[]
*/
public function setTrustedDirPatterns($trustedDirPatterns)
{
$this->trustedDirPatterns = $trustedDirPatterns;
}
/**
* @return string[]
*/
public function getTrustedDirPatterns()
{
return $this->trustedDirPatterns;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrustedDirectoryCheck::class, 'Google_Service_BinaryAuthorization_TrustedDirectoryCheck');

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\BinaryAuthorization;
class UserOwnedGrafeasNote extends \Google\Collection
{
protected $collection_key = 'publicKeys';
/**
* @var string
*/
public $delegationServiceAccountEmail;
/**
* @var string
*/
public $noteReference;
protected $publicKeysType = AttestorPublicKey::class;
protected $publicKeysDataType = 'array';
/**
* @param string
*/
public function setDelegationServiceAccountEmail($delegationServiceAccountEmail)
{
$this->delegationServiceAccountEmail = $delegationServiceAccountEmail;
}
/**
* @return string
*/
public function getDelegationServiceAccountEmail()
{
return $this->delegationServiceAccountEmail;
}
/**
* @param string
*/
public function setNoteReference($noteReference)
{
$this->noteReference = $noteReference;
}
/**
* @return string
*/
public function getNoteReference()
{
return $this->noteReference;
}
/**
* @param AttestorPublicKey[]
*/
public function setPublicKeys($publicKeys)
{
$this->publicKeys = $publicKeys;
}
/**
* @return AttestorPublicKey[]
*/
public function getPublicKeys()
{
return $this->publicKeys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserOwnedGrafeasNote::class, 'Google_Service_BinaryAuthorization_UserOwnedGrafeasNote');

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\BinaryAuthorization;
class ValidateAttestationOccurrenceRequest extends \Google\Model
{
protected $attestationType = AttestationOccurrence::class;
protected $attestationDataType = '';
/**
* @var string
*/
public $occurrenceNote;
/**
* @var string
*/
public $occurrenceResourceUri;
/**
* @param AttestationOccurrence
*/
public function setAttestation(AttestationOccurrence $attestation)
{
$this->attestation = $attestation;
}
/**
* @return AttestationOccurrence
*/
public function getAttestation()
{
return $this->attestation;
}
/**
* @param string
*/
public function setOccurrenceNote($occurrenceNote)
{
$this->occurrenceNote = $occurrenceNote;
}
/**
* @return string
*/
public function getOccurrenceNote()
{
return $this->occurrenceNote;
}
/**
* @param string
*/
public function setOccurrenceResourceUri($occurrenceResourceUri)
{
$this->occurrenceResourceUri = $occurrenceResourceUri;
}
/**
* @return string
*/
public function getOccurrenceResourceUri()
{
return $this->occurrenceResourceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValidateAttestationOccurrenceRequest::class, 'Google_Service_BinaryAuthorization_ValidateAttestationOccurrenceRequest');

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\BinaryAuthorization;
class ValidateAttestationOccurrenceResponse extends \Google\Model
{
/**
* @var string
*/
public $denialReason;
/**
* @var string
*/
public $result;
/**
* @param string
*/
public function setDenialReason($denialReason)
{
$this->denialReason = $denialReason;
}
/**
* @return string
*/
public function getDenialReason()
{
return $this->denialReason;
}
/**
* @param string
*/
public function setResult($result)
{
$this->result = $result;
}
/**
* @return string
*/
public function getResult()
{
return $this->result;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValidateAttestationOccurrenceResponse::class, 'Google_Service_BinaryAuthorization_ValidateAttestationOccurrenceResponse');

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\BinaryAuthorization;
class VerificationRule extends \Google\Collection
{
protected $collection_key = 'trustedSourceRepoPatterns';
protected $attestationSourceType = AttestationSource::class;
protected $attestationSourceDataType = '';
/**
* @var bool
*/
public $configBasedBuildRequired;
/**
* @var string
*/
public $trustedBuilder;
/**
* @var string[]
*/
public $trustedSourceRepoPatterns;
/**
* @param AttestationSource
*/
public function setAttestationSource(AttestationSource $attestationSource)
{
$this->attestationSource = $attestationSource;
}
/**
* @return AttestationSource
*/
public function getAttestationSource()
{
return $this->attestationSource;
}
/**
* @param bool
*/
public function setConfigBasedBuildRequired($configBasedBuildRequired)
{
$this->configBasedBuildRequired = $configBasedBuildRequired;
}
/**
* @return bool
*/
public function getConfigBasedBuildRequired()
{
return $this->configBasedBuildRequired;
}
/**
* @param string
*/
public function setTrustedBuilder($trustedBuilder)
{
$this->trustedBuilder = $trustedBuilder;
}
/**
* @return string
*/
public function getTrustedBuilder()
{
return $this->trustedBuilder;
}
/**
* @param string[]
*/
public function setTrustedSourceRepoPatterns($trustedSourceRepoPatterns)
{
$this->trustedSourceRepoPatterns = $trustedSourceRepoPatterns;
}
/**
* @return string[]
*/
public function getTrustedSourceRepoPatterns()
{
return $this->trustedSourceRepoPatterns;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerificationRule::class, 'Google_Service_BinaryAuthorization_VerificationRule');

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\BinaryAuthorization;
class VulnerabilityCheck extends \Google\Collection
{
protected $collection_key = 'containerAnalysisVulnerabilityProjects';
/**
* @var string[]
*/
public $allowedCves;
/**
* @var string[]
*/
public $blockedCves;
/**
* @var string[]
*/
public $containerAnalysisVulnerabilityProjects;
/**
* @var string
*/
public $maximumFixableSeverity;
/**
* @var string
*/
public $maximumUnfixableSeverity;
/**
* @param string[]
*/
public function setAllowedCves($allowedCves)
{
$this->allowedCves = $allowedCves;
}
/**
* @return string[]
*/
public function getAllowedCves()
{
return $this->allowedCves;
}
/**
* @param string[]
*/
public function setBlockedCves($blockedCves)
{
$this->blockedCves = $blockedCves;
}
/**
* @return string[]
*/
public function getBlockedCves()
{
return $this->blockedCves;
}
/**
* @param string[]
*/
public function setContainerAnalysisVulnerabilityProjects($containerAnalysisVulnerabilityProjects)
{
$this->containerAnalysisVulnerabilityProjects = $containerAnalysisVulnerabilityProjects;
}
/**
* @return string[]
*/
public function getContainerAnalysisVulnerabilityProjects()
{
return $this->containerAnalysisVulnerabilityProjects;
}
/**
* @param string
*/
public function setMaximumFixableSeverity($maximumFixableSeverity)
{
$this->maximumFixableSeverity = $maximumFixableSeverity;
}
/**
* @return string
*/
public function getMaximumFixableSeverity()
{
return $this->maximumFixableSeverity;
}
/**
* @param string
*/
public function setMaximumUnfixableSeverity($maximumUnfixableSeverity)
{
$this->maximumUnfixableSeverity = $maximumUnfixableSeverity;
}
/**
* @return string
*/
public function getMaximumUnfixableSeverity()
{
return $this->maximumUnfixableSeverity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VulnerabilityCheck::class, 'Google_Service_BinaryAuthorization_VulnerabilityCheck');