Initial commit

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

View File

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

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\CloudKMS;
class AsymmetricDecryptResponse extends \Google\Model
{
/**
* @var string
*/
public $plaintext;
/**
* @var string
*/
public $plaintextCrc32c;
/**
* @var string
*/
public $protectionLevel;
/**
* @var bool
*/
public $verifiedCiphertextCrc32c;
/**
* @param string
*/
public function setPlaintext($plaintext)
{
$this->plaintext = $plaintext;
}
/**
* @return string
*/
public function getPlaintext()
{
return $this->plaintext;
}
/**
* @param string
*/
public function setPlaintextCrc32c($plaintextCrc32c)
{
$this->plaintextCrc32c = $plaintextCrc32c;
}
/**
* @return string
*/
public function getPlaintextCrc32c()
{
return $this->plaintextCrc32c;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param bool
*/
public function setVerifiedCiphertextCrc32c($verifiedCiphertextCrc32c)
{
$this->verifiedCiphertextCrc32c = $verifiedCiphertextCrc32c;
}
/**
* @return bool
*/
public function getVerifiedCiphertextCrc32c()
{
return $this->verifiedCiphertextCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsymmetricDecryptResponse::class, 'Google_Service_CloudKMS_AsymmetricDecryptResponse');

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\CloudKMS;
class AsymmetricSignRequest extends \Google\Model
{
/**
* @var string
*/
public $data;
/**
* @var string
*/
public $dataCrc32c;
protected $digestType = Digest::class;
protected $digestDataType = '';
/**
* @var string
*/
public $digestCrc32c;
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param string
*/
public function setDataCrc32c($dataCrc32c)
{
$this->dataCrc32c = $dataCrc32c;
}
/**
* @return string
*/
public function getDataCrc32c()
{
return $this->dataCrc32c;
}
/**
* @param Digest
*/
public function setDigest(Digest $digest)
{
$this->digest = $digest;
}
/**
* @return Digest
*/
public function getDigest()
{
return $this->digest;
}
/**
* @param string
*/
public function setDigestCrc32c($digestCrc32c)
{
$this->digestCrc32c = $digestCrc32c;
}
/**
* @return string
*/
public function getDigestCrc32c()
{
return $this->digestCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsymmetricSignRequest::class, 'Google_Service_CloudKMS_AsymmetricSignRequest');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class AsymmetricSignResponse extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $protectionLevel;
/**
* @var string
*/
public $signature;
/**
* @var string
*/
public $signatureCrc32c;
/**
* @var bool
*/
public $verifiedDataCrc32c;
/**
* @var bool
*/
public $verifiedDigestCrc32c;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param string
*/
public function setSignature($signature)
{
$this->signature = $signature;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
/**
* @param string
*/
public function setSignatureCrc32c($signatureCrc32c)
{
$this->signatureCrc32c = $signatureCrc32c;
}
/**
* @return string
*/
public function getSignatureCrc32c()
{
return $this->signatureCrc32c;
}
/**
* @param bool
*/
public function setVerifiedDataCrc32c($verifiedDataCrc32c)
{
$this->verifiedDataCrc32c = $verifiedDataCrc32c;
}
/**
* @return bool
*/
public function getVerifiedDataCrc32c()
{
return $this->verifiedDataCrc32c;
}
/**
* @param bool
*/
public function setVerifiedDigestCrc32c($verifiedDigestCrc32c)
{
$this->verifiedDigestCrc32c = $verifiedDigestCrc32c;
}
/**
* @return bool
*/
public function getVerifiedDigestCrc32c()
{
return $this->verifiedDigestCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsymmetricSignResponse::class, 'Google_Service_CloudKMS_AsymmetricSignResponse');

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\CloudKMS;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_CloudKMS_AuditConfig');

View File

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

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\CloudKMS;
class AutokeyConfig extends \Google\Model
{
/**
* @var string
*/
public $keyProject;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setKeyProject($keyProject)
{
$this->keyProject = $keyProject;
}
/**
* @return string
*/
public function getKeyProject()
{
return $this->keyProject;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutokeyConfig::class, 'Google_Service_CloudKMS_AutokeyConfig');

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\CloudKMS;
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_CloudKMS_Binding');

View File

@@ -0,0 +1,189 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class Certificate extends \Google\Collection
{
protected $collection_key = 'subjectAlternativeDnsNames';
/**
* @var string
*/
public $issuer;
/**
* @var string
*/
public $notAfterTime;
/**
* @var string
*/
public $notBeforeTime;
/**
* @var bool
*/
public $parsed;
/**
* @var string
*/
public $rawDer;
/**
* @var string
*/
public $serialNumber;
/**
* @var string
*/
public $sha256Fingerprint;
/**
* @var string
*/
public $subject;
/**
* @var string[]
*/
public $subjectAlternativeDnsNames;
/**
* @param string
*/
public function setIssuer($issuer)
{
$this->issuer = $issuer;
}
/**
* @return string
*/
public function getIssuer()
{
return $this->issuer;
}
/**
* @param string
*/
public function setNotAfterTime($notAfterTime)
{
$this->notAfterTime = $notAfterTime;
}
/**
* @return string
*/
public function getNotAfterTime()
{
return $this->notAfterTime;
}
/**
* @param string
*/
public function setNotBeforeTime($notBeforeTime)
{
$this->notBeforeTime = $notBeforeTime;
}
/**
* @return string
*/
public function getNotBeforeTime()
{
return $this->notBeforeTime;
}
/**
* @param bool
*/
public function setParsed($parsed)
{
$this->parsed = $parsed;
}
/**
* @return bool
*/
public function getParsed()
{
return $this->parsed;
}
/**
* @param string
*/
public function setRawDer($rawDer)
{
$this->rawDer = $rawDer;
}
/**
* @return string
*/
public function getRawDer()
{
return $this->rawDer;
}
/**
* @param string
*/
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
}
/**
* @return string
*/
public function getSerialNumber()
{
return $this->serialNumber;
}
/**
* @param string
*/
public function setSha256Fingerprint($sha256Fingerprint)
{
$this->sha256Fingerprint = $sha256Fingerprint;
}
/**
* @return string
*/
public function getSha256Fingerprint()
{
return $this->sha256Fingerprint;
}
/**
* @param string
*/
public function setSubject($subject)
{
$this->subject = $subject;
}
/**
* @return string
*/
public function getSubject()
{
return $this->subject;
}
/**
* @param string[]
*/
public function setSubjectAlternativeDnsNames($subjectAlternativeDnsNames)
{
$this->subjectAlternativeDnsNames = $subjectAlternativeDnsNames;
}
/**
* @return string[]
*/
public function getSubjectAlternativeDnsNames()
{
return $this->subjectAlternativeDnsNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Certificate::class, 'Google_Service_CloudKMS_Certificate');

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\CloudKMS;
class CertificateChains extends \Google\Collection
{
protected $collection_key = 'googlePartitionCerts';
/**
* @var string[]
*/
public $caviumCerts;
/**
* @var string[]
*/
public $googleCardCerts;
/**
* @var string[]
*/
public $googlePartitionCerts;
/**
* @param string[]
*/
public function setCaviumCerts($caviumCerts)
{
$this->caviumCerts = $caviumCerts;
}
/**
* @return string[]
*/
public function getCaviumCerts()
{
return $this->caviumCerts;
}
/**
* @param string[]
*/
public function setGoogleCardCerts($googleCardCerts)
{
$this->googleCardCerts = $googleCardCerts;
}
/**
* @return string[]
*/
public function getGoogleCardCerts()
{
return $this->googleCardCerts;
}
/**
* @param string[]
*/
public function setGooglePartitionCerts($googlePartitionCerts)
{
$this->googlePartitionCerts = $googlePartitionCerts;
}
/**
* @return string[]
*/
public function getGooglePartitionCerts()
{
return $this->googlePartitionCerts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertificateChains::class, 'Google_Service_CloudKMS_CertificateChains');

View File

@@ -0,0 +1,236 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class CryptoKey extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $cryptoKeyBackend;
/**
* @var string
*/
public $destroyScheduledDuration;
/**
* @var bool
*/
public $importOnly;
protected $keyAccessJustificationsPolicyType = KeyAccessJustificationsPolicy::class;
protected $keyAccessJustificationsPolicyDataType = '';
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $nextRotationTime;
protected $primaryType = CryptoKeyVersion::class;
protected $primaryDataType = '';
/**
* @var string
*/
public $purpose;
/**
* @var string
*/
public $rotationPeriod;
protected $versionTemplateType = CryptoKeyVersionTemplate::class;
protected $versionTemplateDataType = '';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setCryptoKeyBackend($cryptoKeyBackend)
{
$this->cryptoKeyBackend = $cryptoKeyBackend;
}
/**
* @return string
*/
public function getCryptoKeyBackend()
{
return $this->cryptoKeyBackend;
}
/**
* @param string
*/
public function setDestroyScheduledDuration($destroyScheduledDuration)
{
$this->destroyScheduledDuration = $destroyScheduledDuration;
}
/**
* @return string
*/
public function getDestroyScheduledDuration()
{
return $this->destroyScheduledDuration;
}
/**
* @param bool
*/
public function setImportOnly($importOnly)
{
$this->importOnly = $importOnly;
}
/**
* @return bool
*/
public function getImportOnly()
{
return $this->importOnly;
}
/**
* @param KeyAccessJustificationsPolicy
*/
public function setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy $keyAccessJustificationsPolicy)
{
$this->keyAccessJustificationsPolicy = $keyAccessJustificationsPolicy;
}
/**
* @return KeyAccessJustificationsPolicy
*/
public function getKeyAccessJustificationsPolicy()
{
return $this->keyAccessJustificationsPolicy;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNextRotationTime($nextRotationTime)
{
$this->nextRotationTime = $nextRotationTime;
}
/**
* @return string
*/
public function getNextRotationTime()
{
return $this->nextRotationTime;
}
/**
* @param CryptoKeyVersion
*/
public function setPrimary(CryptoKeyVersion $primary)
{
$this->primary = $primary;
}
/**
* @return CryptoKeyVersion
*/
public function getPrimary()
{
return $this->primary;
}
/**
* @param string
*/
public function setPurpose($purpose)
{
$this->purpose = $purpose;
}
/**
* @return string
*/
public function getPurpose()
{
return $this->purpose;
}
/**
* @param string
*/
public function setRotationPeriod($rotationPeriod)
{
$this->rotationPeriod = $rotationPeriod;
}
/**
* @return string
*/
public function getRotationPeriod()
{
return $this->rotationPeriod;
}
/**
* @param CryptoKeyVersionTemplate
*/
public function setVersionTemplate(CryptoKeyVersionTemplate $versionTemplate)
{
$this->versionTemplate = $versionTemplate;
}
/**
* @return CryptoKeyVersionTemplate
*/
public function getVersionTemplate()
{
return $this->versionTemplate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CryptoKey::class, 'Google_Service_CloudKMS_CryptoKey');

View File

@@ -0,0 +1,310 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class CryptoKeyVersion extends \Google\Model
{
/**
* @var string
*/
public $algorithm;
protected $attestationType = KeyOperationAttestation::class;
protected $attestationDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $destroyEventTime;
/**
* @var string
*/
public $destroyTime;
/**
* @var string
*/
public $externalDestructionFailureReason;
protected $externalProtectionLevelOptionsType = ExternalProtectionLevelOptions::class;
protected $externalProtectionLevelOptionsDataType = '';
/**
* @var string
*/
public $generateTime;
/**
* @var string
*/
public $generationFailureReason;
/**
* @var string
*/
public $importFailureReason;
/**
* @var string
*/
public $importJob;
/**
* @var string
*/
public $importTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $protectionLevel;
/**
* @var bool
*/
public $reimportEligible;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return string
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* @param KeyOperationAttestation
*/
public function setAttestation(KeyOperationAttestation $attestation)
{
$this->attestation = $attestation;
}
/**
* @return KeyOperationAttestation
*/
public function getAttestation()
{
return $this->attestation;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDestroyEventTime($destroyEventTime)
{
$this->destroyEventTime = $destroyEventTime;
}
/**
* @return string
*/
public function getDestroyEventTime()
{
return $this->destroyEventTime;
}
/**
* @param string
*/
public function setDestroyTime($destroyTime)
{
$this->destroyTime = $destroyTime;
}
/**
* @return string
*/
public function getDestroyTime()
{
return $this->destroyTime;
}
/**
* @param string
*/
public function setExternalDestructionFailureReason($externalDestructionFailureReason)
{
$this->externalDestructionFailureReason = $externalDestructionFailureReason;
}
/**
* @return string
*/
public function getExternalDestructionFailureReason()
{
return $this->externalDestructionFailureReason;
}
/**
* @param ExternalProtectionLevelOptions
*/
public function setExternalProtectionLevelOptions(ExternalProtectionLevelOptions $externalProtectionLevelOptions)
{
$this->externalProtectionLevelOptions = $externalProtectionLevelOptions;
}
/**
* @return ExternalProtectionLevelOptions
*/
public function getExternalProtectionLevelOptions()
{
return $this->externalProtectionLevelOptions;
}
/**
* @param string
*/
public function setGenerateTime($generateTime)
{
$this->generateTime = $generateTime;
}
/**
* @return string
*/
public function getGenerateTime()
{
return $this->generateTime;
}
/**
* @param string
*/
public function setGenerationFailureReason($generationFailureReason)
{
$this->generationFailureReason = $generationFailureReason;
}
/**
* @return string
*/
public function getGenerationFailureReason()
{
return $this->generationFailureReason;
}
/**
* @param string
*/
public function setImportFailureReason($importFailureReason)
{
$this->importFailureReason = $importFailureReason;
}
/**
* @return string
*/
public function getImportFailureReason()
{
return $this->importFailureReason;
}
/**
* @param string
*/
public function setImportJob($importJob)
{
$this->importJob = $importJob;
}
/**
* @return string
*/
public function getImportJob()
{
return $this->importJob;
}
/**
* @param string
*/
public function setImportTime($importTime)
{
$this->importTime = $importTime;
}
/**
* @return string
*/
public function getImportTime()
{
return $this->importTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param bool
*/
public function setReimportEligible($reimportEligible)
{
$this->reimportEligible = $reimportEligible;
}
/**
* @return bool
*/
public function getReimportEligible()
{
return $this->reimportEligible;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CryptoKeyVersion::class, 'Google_Service_CloudKMS_CryptoKeyVersion');

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\CloudKMS;
class CryptoKeyVersionTemplate extends \Google\Model
{
/**
* @var string
*/
public $algorithm;
/**
* @var string
*/
public $protectionLevel;
/**
* @param string
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return string
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CryptoKeyVersionTemplate::class, 'Google_Service_CloudKMS_CryptoKeyVersionTemplate');

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\CloudKMS;
class DecryptRequest extends \Google\Model
{
/**
* @var string
*/
public $additionalAuthenticatedData;
/**
* @var string
*/
public $additionalAuthenticatedDataCrc32c;
/**
* @var string
*/
public $ciphertext;
/**
* @var string
*/
public $ciphertextCrc32c;
/**
* @param string
*/
public function setAdditionalAuthenticatedData($additionalAuthenticatedData)
{
$this->additionalAuthenticatedData = $additionalAuthenticatedData;
}
/**
* @return string
*/
public function getAdditionalAuthenticatedData()
{
return $this->additionalAuthenticatedData;
}
/**
* @param string
*/
public function setAdditionalAuthenticatedDataCrc32c($additionalAuthenticatedDataCrc32c)
{
$this->additionalAuthenticatedDataCrc32c = $additionalAuthenticatedDataCrc32c;
}
/**
* @return string
*/
public function getAdditionalAuthenticatedDataCrc32c()
{
return $this->additionalAuthenticatedDataCrc32c;
}
/**
* @param string
*/
public function setCiphertext($ciphertext)
{
$this->ciphertext = $ciphertext;
}
/**
* @return string
*/
public function getCiphertext()
{
return $this->ciphertext;
}
/**
* @param string
*/
public function setCiphertextCrc32c($ciphertextCrc32c)
{
$this->ciphertextCrc32c = $ciphertextCrc32c;
}
/**
* @return string
*/
public function getCiphertextCrc32c()
{
return $this->ciphertextCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DecryptRequest::class, 'Google_Service_CloudKMS_DecryptRequest');

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\CloudKMS;
class DecryptResponse extends \Google\Model
{
/**
* @var string
*/
public $plaintext;
/**
* @var string
*/
public $plaintextCrc32c;
/**
* @var string
*/
public $protectionLevel;
/**
* @var bool
*/
public $usedPrimary;
/**
* @param string
*/
public function setPlaintext($plaintext)
{
$this->plaintext = $plaintext;
}
/**
* @return string
*/
public function getPlaintext()
{
return $this->plaintext;
}
/**
* @param string
*/
public function setPlaintextCrc32c($plaintextCrc32c)
{
$this->plaintextCrc32c = $plaintextCrc32c;
}
/**
* @return string
*/
public function getPlaintextCrc32c()
{
return $this->plaintextCrc32c;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param bool
*/
public function setUsedPrimary($usedPrimary)
{
$this->usedPrimary = $usedPrimary;
}
/**
* @return bool
*/
public function getUsedPrimary()
{
return $this->usedPrimary;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DecryptResponse::class, 'Google_Service_CloudKMS_DecryptResponse');

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

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\CloudKMS;
class Digest extends \Google\Model
{
/**
* @var string
*/
public $sha256;
/**
* @var string
*/
public $sha384;
/**
* @var string
*/
public $sha512;
/**
* @param string
*/
public function setSha256($sha256)
{
$this->sha256 = $sha256;
}
/**
* @return string
*/
public function getSha256()
{
return $this->sha256;
}
/**
* @param string
*/
public function setSha384($sha384)
{
$this->sha384 = $sha384;
}
/**
* @return string
*/
public function getSha384()
{
return $this->sha384;
}
/**
* @param string
*/
public function setSha512($sha512)
{
$this->sha512 = $sha512;
}
/**
* @return string
*/
public function getSha512()
{
return $this->sha512;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Digest::class, 'Google_Service_CloudKMS_Digest');

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\CloudKMS;
class EkmConfig extends \Google\Model
{
/**
* @var string
*/
public $defaultEkmConnection;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDefaultEkmConnection($defaultEkmConnection)
{
$this->defaultEkmConnection = $defaultEkmConnection;
}
/**
* @return string
*/
public function getDefaultEkmConnection()
{
return $this->defaultEkmConnection;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EkmConfig::class, 'Google_Service_CloudKMS_EkmConfig');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class EkmConnection extends \Google\Collection
{
protected $collection_key = 'serviceResolvers';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $cryptoSpacePath;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $keyManagementMode;
/**
* @var string
*/
public $name;
protected $serviceResolversType = ServiceResolver::class;
protected $serviceResolversDataType = 'array';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setCryptoSpacePath($cryptoSpacePath)
{
$this->cryptoSpacePath = $cryptoSpacePath;
}
/**
* @return string
*/
public function getCryptoSpacePath()
{
return $this->cryptoSpacePath;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setKeyManagementMode($keyManagementMode)
{
$this->keyManagementMode = $keyManagementMode;
}
/**
* @return string
*/
public function getKeyManagementMode()
{
return $this->keyManagementMode;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param ServiceResolver[]
*/
public function setServiceResolvers($serviceResolvers)
{
$this->serviceResolvers = $serviceResolvers;
}
/**
* @return ServiceResolver[]
*/
public function getServiceResolvers()
{
return $this->serviceResolvers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EkmConnection::class, 'Google_Service_CloudKMS_EkmConnection');

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\CloudKMS;
class EncryptRequest extends \Google\Model
{
/**
* @var string
*/
public $additionalAuthenticatedData;
/**
* @var string
*/
public $additionalAuthenticatedDataCrc32c;
/**
* @var string
*/
public $plaintext;
/**
* @var string
*/
public $plaintextCrc32c;
/**
* @param string
*/
public function setAdditionalAuthenticatedData($additionalAuthenticatedData)
{
$this->additionalAuthenticatedData = $additionalAuthenticatedData;
}
/**
* @return string
*/
public function getAdditionalAuthenticatedData()
{
return $this->additionalAuthenticatedData;
}
/**
* @param string
*/
public function setAdditionalAuthenticatedDataCrc32c($additionalAuthenticatedDataCrc32c)
{
$this->additionalAuthenticatedDataCrc32c = $additionalAuthenticatedDataCrc32c;
}
/**
* @return string
*/
public function getAdditionalAuthenticatedDataCrc32c()
{
return $this->additionalAuthenticatedDataCrc32c;
}
/**
* @param string
*/
public function setPlaintext($plaintext)
{
$this->plaintext = $plaintext;
}
/**
* @return string
*/
public function getPlaintext()
{
return $this->plaintext;
}
/**
* @param string
*/
public function setPlaintextCrc32c($plaintextCrc32c)
{
$this->plaintextCrc32c = $plaintextCrc32c;
}
/**
* @return string
*/
public function getPlaintextCrc32c()
{
return $this->plaintextCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptRequest::class, 'Google_Service_CloudKMS_EncryptRequest');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class EncryptResponse extends \Google\Model
{
/**
* @var string
*/
public $ciphertext;
/**
* @var string
*/
public $ciphertextCrc32c;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $protectionLevel;
/**
* @var bool
*/
public $verifiedAdditionalAuthenticatedDataCrc32c;
/**
* @var bool
*/
public $verifiedPlaintextCrc32c;
/**
* @param string
*/
public function setCiphertext($ciphertext)
{
$this->ciphertext = $ciphertext;
}
/**
* @return string
*/
public function getCiphertext()
{
return $this->ciphertext;
}
/**
* @param string
*/
public function setCiphertextCrc32c($ciphertextCrc32c)
{
$this->ciphertextCrc32c = $ciphertextCrc32c;
}
/**
* @return string
*/
public function getCiphertextCrc32c()
{
return $this->ciphertextCrc32c;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param bool
*/
public function setVerifiedAdditionalAuthenticatedDataCrc32c($verifiedAdditionalAuthenticatedDataCrc32c)
{
$this->verifiedAdditionalAuthenticatedDataCrc32c = $verifiedAdditionalAuthenticatedDataCrc32c;
}
/**
* @return bool
*/
public function getVerifiedAdditionalAuthenticatedDataCrc32c()
{
return $this->verifiedAdditionalAuthenticatedDataCrc32c;
}
/**
* @param bool
*/
public function setVerifiedPlaintextCrc32c($verifiedPlaintextCrc32c)
{
$this->verifiedPlaintextCrc32c = $verifiedPlaintextCrc32c;
}
/**
* @return bool
*/
public function getVerifiedPlaintextCrc32c()
{
return $this->verifiedPlaintextCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptResponse::class, 'Google_Service_CloudKMS_EncryptResponse');

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\CloudKMS;
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_CloudKMS_Expr');

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\CloudKMS;
class ExternalProtectionLevelOptions extends \Google\Model
{
/**
* @var string
*/
public $ekmConnectionKeyPath;
/**
* @var string
*/
public $externalKeyUri;
/**
* @param string
*/
public function setEkmConnectionKeyPath($ekmConnectionKeyPath)
{
$this->ekmConnectionKeyPath = $ekmConnectionKeyPath;
}
/**
* @return string
*/
public function getEkmConnectionKeyPath()
{
return $this->ekmConnectionKeyPath;
}
/**
* @param string
*/
public function setExternalKeyUri($externalKeyUri)
{
$this->externalKeyUri = $externalKeyUri;
}
/**
* @return string
*/
public function getExternalKeyUri()
{
return $this->externalKeyUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalProtectionLevelOptions::class, 'Google_Service_CloudKMS_ExternalProtectionLevelOptions');

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\CloudKMS;
class GenerateRandomBytesRequest extends \Google\Model
{
/**
* @var int
*/
public $lengthBytes;
/**
* @var string
*/
public $protectionLevel;
/**
* @param int
*/
public function setLengthBytes($lengthBytes)
{
$this->lengthBytes = $lengthBytes;
}
/**
* @return int
*/
public function getLengthBytes()
{
return $this->lengthBytes;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateRandomBytesRequest::class, 'Google_Service_CloudKMS_GenerateRandomBytesRequest');

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\CloudKMS;
class GenerateRandomBytesResponse extends \Google\Model
{
/**
* @var string
*/
public $data;
/**
* @var string
*/
public $dataCrc32c;
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param string
*/
public function setDataCrc32c($dataCrc32c)
{
$this->dataCrc32c = $dataCrc32c;
}
/**
* @return string
*/
public function getDataCrc32c()
{
return $this->dataCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateRandomBytesResponse::class, 'Google_Service_CloudKMS_GenerateRandomBytesResponse');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class ImportCryptoKeyVersionRequest extends \Google\Model
{
/**
* @var string
*/
public $algorithm;
/**
* @var string
*/
public $cryptoKeyVersion;
/**
* @var string
*/
public $importJob;
/**
* @var string
*/
public $rsaAesWrappedKey;
/**
* @var string
*/
public $wrappedKey;
/**
* @param string
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return string
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* @param string
*/
public function setCryptoKeyVersion($cryptoKeyVersion)
{
$this->cryptoKeyVersion = $cryptoKeyVersion;
}
/**
* @return string
*/
public function getCryptoKeyVersion()
{
return $this->cryptoKeyVersion;
}
/**
* @param string
*/
public function setImportJob($importJob)
{
$this->importJob = $importJob;
}
/**
* @return string
*/
public function getImportJob()
{
return $this->importJob;
}
/**
* @param string
*/
public function setRsaAesWrappedKey($rsaAesWrappedKey)
{
$this->rsaAesWrappedKey = $rsaAesWrappedKey;
}
/**
* @return string
*/
public function getRsaAesWrappedKey()
{
return $this->rsaAesWrappedKey;
}
/**
* @param string
*/
public function setWrappedKey($wrappedKey)
{
$this->wrappedKey = $wrappedKey;
}
/**
* @return string
*/
public function getWrappedKey()
{
return $this->wrappedKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportCryptoKeyVersionRequest::class, 'Google_Service_CloudKMS_ImportCryptoKeyVersionRequest');

View File

@@ -0,0 +1,202 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class ImportJob extends \Google\Model
{
protected $attestationType = KeyOperationAttestation::class;
protected $attestationDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $expireEventTime;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $generateTime;
/**
* @var string
*/
public $importMethod;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $protectionLevel;
protected $publicKeyType = WrappingPublicKey::class;
protected $publicKeyDataType = '';
/**
* @var string
*/
public $state;
/**
* @param KeyOperationAttestation
*/
public function setAttestation(KeyOperationAttestation $attestation)
{
$this->attestation = $attestation;
}
/**
* @return KeyOperationAttestation
*/
public function getAttestation()
{
return $this->attestation;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setExpireEventTime($expireEventTime)
{
$this->expireEventTime = $expireEventTime;
}
/**
* @return string
*/
public function getExpireEventTime()
{
return $this->expireEventTime;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setGenerateTime($generateTime)
{
$this->generateTime = $generateTime;
}
/**
* @return string
*/
public function getGenerateTime()
{
return $this->generateTime;
}
/**
* @param string
*/
public function setImportMethod($importMethod)
{
$this->importMethod = $importMethod;
}
/**
* @return string
*/
public function getImportMethod()
{
return $this->importMethod;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param WrappingPublicKey
*/
public function setPublicKey(WrappingPublicKey $publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return WrappingPublicKey
*/
public function getPublicKey()
{
return $this->publicKey;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportJob::class, 'Google_Service_CloudKMS_ImportJob');

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

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\CloudKMS;
class KeyHandle extends \Google\Model
{
/**
* @var string
*/
public $kmsKey;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $resourceTypeSelector;
/**
* @param string
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setResourceTypeSelector($resourceTypeSelector)
{
$this->resourceTypeSelector = $resourceTypeSelector;
}
/**
* @return string
*/
public function getResourceTypeSelector()
{
return $this->resourceTypeSelector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeyHandle::class, 'Google_Service_CloudKMS_KeyHandle');

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\CloudKMS;
class KeyOperationAttestation extends \Google\Model
{
protected $certChainsType = CertificateChains::class;
protected $certChainsDataType = '';
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $format;
/**
* @param CertificateChains
*/
public function setCertChains(CertificateChains $certChains)
{
$this->certChains = $certChains;
}
/**
* @return CertificateChains
*/
public function getCertChains()
{
return $this->certChains;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setFormat($format)
{
$this->format = $format;
}
/**
* @return string
*/
public function getFormat()
{
return $this->format;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeyOperationAttestation::class, 'Google_Service_CloudKMS_KeyOperationAttestation');

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\CloudKMS;
class KeyRing extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeyRing::class, 'Google_Service_CloudKMS_KeyRing');

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\CloudKMS;
class ListCryptoKeyVersionsResponse extends \Google\Collection
{
protected $collection_key = 'cryptoKeyVersions';
protected $cryptoKeyVersionsType = CryptoKeyVersion::class;
protected $cryptoKeyVersionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param CryptoKeyVersion[]
*/
public function setCryptoKeyVersions($cryptoKeyVersions)
{
$this->cryptoKeyVersions = $cryptoKeyVersions;
}
/**
* @return CryptoKeyVersion[]
*/
public function getCryptoKeyVersions()
{
return $this->cryptoKeyVersions;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCryptoKeyVersionsResponse::class, 'Google_Service_CloudKMS_ListCryptoKeyVersionsResponse');

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\CloudKMS;
class ListCryptoKeysResponse extends \Google\Collection
{
protected $collection_key = 'cryptoKeys';
protected $cryptoKeysType = CryptoKey::class;
protected $cryptoKeysDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param CryptoKey[]
*/
public function setCryptoKeys($cryptoKeys)
{
$this->cryptoKeys = $cryptoKeys;
}
/**
* @return CryptoKey[]
*/
public function getCryptoKeys()
{
return $this->cryptoKeys;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCryptoKeysResponse::class, 'Google_Service_CloudKMS_ListCryptoKeysResponse');

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\CloudKMS;
class ListEkmConnectionsResponse extends \Google\Collection
{
protected $collection_key = 'ekmConnections';
protected $ekmConnectionsType = EkmConnection::class;
protected $ekmConnectionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param EkmConnection[]
*/
public function setEkmConnections($ekmConnections)
{
$this->ekmConnections = $ekmConnections;
}
/**
* @return EkmConnection[]
*/
public function getEkmConnections()
{
return $this->ekmConnections;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListEkmConnectionsResponse::class, 'Google_Service_CloudKMS_ListEkmConnectionsResponse');

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\CloudKMS;
class ListImportJobsResponse extends \Google\Collection
{
protected $collection_key = 'importJobs';
protected $importJobsType = ImportJob::class;
protected $importJobsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param ImportJob[]
*/
public function setImportJobs($importJobs)
{
$this->importJobs = $importJobs;
}
/**
* @return ImportJob[]
*/
public function getImportJobs()
{
return $this->importJobs;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListImportJobsResponse::class, 'Google_Service_CloudKMS_ListImportJobsResponse');

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\CloudKMS;
class ListKeyHandlesResponse extends \Google\Collection
{
protected $collection_key = 'keyHandles';
protected $keyHandlesType = KeyHandle::class;
protected $keyHandlesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param KeyHandle[]
*/
public function setKeyHandles($keyHandles)
{
$this->keyHandles = $keyHandles;
}
/**
* @return KeyHandle[]
*/
public function getKeyHandles()
{
return $this->keyHandles;
}
/**
* @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(ListKeyHandlesResponse::class, 'Google_Service_CloudKMS_ListKeyHandlesResponse');

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\CloudKMS;
class ListKeyRingsResponse extends \Google\Collection
{
protected $collection_key = 'keyRings';
protected $keyRingsType = KeyRing::class;
protected $keyRingsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param KeyRing[]
*/
public function setKeyRings($keyRings)
{
$this->keyRings = $keyRings;
}
/**
* @return KeyRing[]
*/
public function getKeyRings()
{
return $this->keyRings;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListKeyRingsResponse::class, 'Google_Service_CloudKMS_ListKeyRingsResponse');

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\CloudKMS;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @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(ListLocationsResponse::class, 'Google_Service_CloudKMS_ListLocationsResponse');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_CloudKMS_Location');

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\CloudKMS;
class LocationMetadata extends \Google\Model
{
/**
* @var bool
*/
public $ekmAvailable;
/**
* @var bool
*/
public $hsmAvailable;
/**
* @param bool
*/
public function setEkmAvailable($ekmAvailable)
{
$this->ekmAvailable = $ekmAvailable;
}
/**
* @return bool
*/
public function getEkmAvailable()
{
return $this->ekmAvailable;
}
/**
* @param bool
*/
public function setHsmAvailable($hsmAvailable)
{
$this->hsmAvailable = $hsmAvailable;
}
/**
* @return bool
*/
public function getHsmAvailable()
{
return $this->hsmAvailable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationMetadata::class, 'Google_Service_CloudKMS_LocationMetadata');

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\CloudKMS;
class MacSignRequest extends \Google\Model
{
/**
* @var string
*/
public $data;
/**
* @var string
*/
public $dataCrc32c;
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param string
*/
public function setDataCrc32c($dataCrc32c)
{
$this->dataCrc32c = $dataCrc32c;
}
/**
* @return string
*/
public function getDataCrc32c()
{
return $this->dataCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MacSignRequest::class, 'Google_Service_CloudKMS_MacSignRequest');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class MacSignResponse extends \Google\Model
{
/**
* @var string
*/
public $mac;
/**
* @var string
*/
public $macCrc32c;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $protectionLevel;
/**
* @var bool
*/
public $verifiedDataCrc32c;
/**
* @param string
*/
public function setMac($mac)
{
$this->mac = $mac;
}
/**
* @return string
*/
public function getMac()
{
return $this->mac;
}
/**
* @param string
*/
public function setMacCrc32c($macCrc32c)
{
$this->macCrc32c = $macCrc32c;
}
/**
* @return string
*/
public function getMacCrc32c()
{
return $this->macCrc32c;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param bool
*/
public function setVerifiedDataCrc32c($verifiedDataCrc32c)
{
$this->verifiedDataCrc32c = $verifiedDataCrc32c;
}
/**
* @return bool
*/
public function getVerifiedDataCrc32c()
{
return $this->verifiedDataCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MacSignResponse::class, 'Google_Service_CloudKMS_MacSignResponse');

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\CloudKMS;
class MacVerifyRequest extends \Google\Model
{
/**
* @var string
*/
public $data;
/**
* @var string
*/
public $dataCrc32c;
/**
* @var string
*/
public $mac;
/**
* @var string
*/
public $macCrc32c;
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param string
*/
public function setDataCrc32c($dataCrc32c)
{
$this->dataCrc32c = $dataCrc32c;
}
/**
* @return string
*/
public function getDataCrc32c()
{
return $this->dataCrc32c;
}
/**
* @param string
*/
public function setMac($mac)
{
$this->mac = $mac;
}
/**
* @return string
*/
public function getMac()
{
return $this->mac;
}
/**
* @param string
*/
public function setMacCrc32c($macCrc32c)
{
$this->macCrc32c = $macCrc32c;
}
/**
* @return string
*/
public function getMacCrc32c()
{
return $this->macCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MacVerifyRequest::class, 'Google_Service_CloudKMS_MacVerifyRequest');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class MacVerifyResponse extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $protectionLevel;
/**
* @var bool
*/
public $success;
/**
* @var bool
*/
public $verifiedDataCrc32c;
/**
* @var bool
*/
public $verifiedMacCrc32c;
/**
* @var bool
*/
public $verifiedSuccessIntegrity;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param bool
*/
public function setSuccess($success)
{
$this->success = $success;
}
/**
* @return bool
*/
public function getSuccess()
{
return $this->success;
}
/**
* @param bool
*/
public function setVerifiedDataCrc32c($verifiedDataCrc32c)
{
$this->verifiedDataCrc32c = $verifiedDataCrc32c;
}
/**
* @return bool
*/
public function getVerifiedDataCrc32c()
{
return $this->verifiedDataCrc32c;
}
/**
* @param bool
*/
public function setVerifiedMacCrc32c($verifiedMacCrc32c)
{
$this->verifiedMacCrc32c = $verifiedMacCrc32c;
}
/**
* @return bool
*/
public function getVerifiedMacCrc32c()
{
return $this->verifiedMacCrc32c;
}
/**
* @param bool
*/
public function setVerifiedSuccessIntegrity($verifiedSuccessIntegrity)
{
$this->verifiedSuccessIntegrity = $verifiedSuccessIntegrity;
}
/**
* @return bool
*/
public function getVerifiedSuccessIntegrity()
{
return $this->verifiedSuccessIntegrity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MacVerifyResponse::class, 'Google_Service_CloudKMS_MacVerifyResponse');

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\CloudKMS;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_CloudKMS_Operation');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @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(Policy::class, 'Google_Service_CloudKMS_Policy');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class PublicKey extends \Google\Model
{
/**
* @var string
*/
public $algorithm;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $pem;
/**
* @var string
*/
public $pemCrc32c;
/**
* @var string
*/
public $protectionLevel;
/**
* @param string
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return string
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPem($pem)
{
$this->pem = $pem;
}
/**
* @return string
*/
public function getPem()
{
return $this->pem;
}
/**
* @param string
*/
public function setPemCrc32c($pemCrc32c)
{
$this->pemCrc32c = $pemCrc32c;
}
/**
* @return string
*/
public function getPemCrc32c()
{
return $this->pemCrc32c;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublicKey::class, 'Google_Service_CloudKMS_PublicKey');

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class RawDecryptRequest extends \Google\Model
{
/**
* @var string
*/
public $additionalAuthenticatedData;
/**
* @var string
*/
public $additionalAuthenticatedDataCrc32c;
/**
* @var string
*/
public $ciphertext;
/**
* @var string
*/
public $ciphertextCrc32c;
/**
* @var string
*/
public $initializationVector;
/**
* @var string
*/
public $initializationVectorCrc32c;
/**
* @var int
*/
public $tagLength;
/**
* @param string
*/
public function setAdditionalAuthenticatedData($additionalAuthenticatedData)
{
$this->additionalAuthenticatedData = $additionalAuthenticatedData;
}
/**
* @return string
*/
public function getAdditionalAuthenticatedData()
{
return $this->additionalAuthenticatedData;
}
/**
* @param string
*/
public function setAdditionalAuthenticatedDataCrc32c($additionalAuthenticatedDataCrc32c)
{
$this->additionalAuthenticatedDataCrc32c = $additionalAuthenticatedDataCrc32c;
}
/**
* @return string
*/
public function getAdditionalAuthenticatedDataCrc32c()
{
return $this->additionalAuthenticatedDataCrc32c;
}
/**
* @param string
*/
public function setCiphertext($ciphertext)
{
$this->ciphertext = $ciphertext;
}
/**
* @return string
*/
public function getCiphertext()
{
return $this->ciphertext;
}
/**
* @param string
*/
public function setCiphertextCrc32c($ciphertextCrc32c)
{
$this->ciphertextCrc32c = $ciphertextCrc32c;
}
/**
* @return string
*/
public function getCiphertextCrc32c()
{
return $this->ciphertextCrc32c;
}
/**
* @param string
*/
public function setInitializationVector($initializationVector)
{
$this->initializationVector = $initializationVector;
}
/**
* @return string
*/
public function getInitializationVector()
{
return $this->initializationVector;
}
/**
* @param string
*/
public function setInitializationVectorCrc32c($initializationVectorCrc32c)
{
$this->initializationVectorCrc32c = $initializationVectorCrc32c;
}
/**
* @return string
*/
public function getInitializationVectorCrc32c()
{
return $this->initializationVectorCrc32c;
}
/**
* @param int
*/
public function setTagLength($tagLength)
{
$this->tagLength = $tagLength;
}
/**
* @return int
*/
public function getTagLength()
{
return $this->tagLength;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RawDecryptRequest::class, 'Google_Service_CloudKMS_RawDecryptRequest');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class RawDecryptResponse extends \Google\Model
{
/**
* @var string
*/
public $plaintext;
/**
* @var string
*/
public $plaintextCrc32c;
/**
* @var string
*/
public $protectionLevel;
/**
* @var bool
*/
public $verifiedAdditionalAuthenticatedDataCrc32c;
/**
* @var bool
*/
public $verifiedCiphertextCrc32c;
/**
* @var bool
*/
public $verifiedInitializationVectorCrc32c;
/**
* @param string
*/
public function setPlaintext($plaintext)
{
$this->plaintext = $plaintext;
}
/**
* @return string
*/
public function getPlaintext()
{
return $this->plaintext;
}
/**
* @param string
*/
public function setPlaintextCrc32c($plaintextCrc32c)
{
$this->plaintextCrc32c = $plaintextCrc32c;
}
/**
* @return string
*/
public function getPlaintextCrc32c()
{
return $this->plaintextCrc32c;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param bool
*/
public function setVerifiedAdditionalAuthenticatedDataCrc32c($verifiedAdditionalAuthenticatedDataCrc32c)
{
$this->verifiedAdditionalAuthenticatedDataCrc32c = $verifiedAdditionalAuthenticatedDataCrc32c;
}
/**
* @return bool
*/
public function getVerifiedAdditionalAuthenticatedDataCrc32c()
{
return $this->verifiedAdditionalAuthenticatedDataCrc32c;
}
/**
* @param bool
*/
public function setVerifiedCiphertextCrc32c($verifiedCiphertextCrc32c)
{
$this->verifiedCiphertextCrc32c = $verifiedCiphertextCrc32c;
}
/**
* @return bool
*/
public function getVerifiedCiphertextCrc32c()
{
return $this->verifiedCiphertextCrc32c;
}
/**
* @param bool
*/
public function setVerifiedInitializationVectorCrc32c($verifiedInitializationVectorCrc32c)
{
$this->verifiedInitializationVectorCrc32c = $verifiedInitializationVectorCrc32c;
}
/**
* @return bool
*/
public function getVerifiedInitializationVectorCrc32c()
{
return $this->verifiedInitializationVectorCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RawDecryptResponse::class, 'Google_Service_CloudKMS_RawDecryptResponse');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class RawEncryptRequest extends \Google\Model
{
/**
* @var string
*/
public $additionalAuthenticatedData;
/**
* @var string
*/
public $additionalAuthenticatedDataCrc32c;
/**
* @var string
*/
public $initializationVector;
/**
* @var string
*/
public $initializationVectorCrc32c;
/**
* @var string
*/
public $plaintext;
/**
* @var string
*/
public $plaintextCrc32c;
/**
* @param string
*/
public function setAdditionalAuthenticatedData($additionalAuthenticatedData)
{
$this->additionalAuthenticatedData = $additionalAuthenticatedData;
}
/**
* @return string
*/
public function getAdditionalAuthenticatedData()
{
return $this->additionalAuthenticatedData;
}
/**
* @param string
*/
public function setAdditionalAuthenticatedDataCrc32c($additionalAuthenticatedDataCrc32c)
{
$this->additionalAuthenticatedDataCrc32c = $additionalAuthenticatedDataCrc32c;
}
/**
* @return string
*/
public function getAdditionalAuthenticatedDataCrc32c()
{
return $this->additionalAuthenticatedDataCrc32c;
}
/**
* @param string
*/
public function setInitializationVector($initializationVector)
{
$this->initializationVector = $initializationVector;
}
/**
* @return string
*/
public function getInitializationVector()
{
return $this->initializationVector;
}
/**
* @param string
*/
public function setInitializationVectorCrc32c($initializationVectorCrc32c)
{
$this->initializationVectorCrc32c = $initializationVectorCrc32c;
}
/**
* @return string
*/
public function getInitializationVectorCrc32c()
{
return $this->initializationVectorCrc32c;
}
/**
* @param string
*/
public function setPlaintext($plaintext)
{
$this->plaintext = $plaintext;
}
/**
* @return string
*/
public function getPlaintext()
{
return $this->plaintext;
}
/**
* @param string
*/
public function setPlaintextCrc32c($plaintextCrc32c)
{
$this->plaintextCrc32c = $plaintextCrc32c;
}
/**
* @return string
*/
public function getPlaintextCrc32c()
{
return $this->plaintextCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RawEncryptRequest::class, 'Google_Service_CloudKMS_RawEncryptRequest');

View File

@@ -0,0 +1,206 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS;
class RawEncryptResponse extends \Google\Model
{
/**
* @var string
*/
public $ciphertext;
/**
* @var string
*/
public $ciphertextCrc32c;
/**
* @var string
*/
public $initializationVector;
/**
* @var string
*/
public $initializationVectorCrc32c;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $protectionLevel;
/**
* @var int
*/
public $tagLength;
/**
* @var bool
*/
public $verifiedAdditionalAuthenticatedDataCrc32c;
/**
* @var bool
*/
public $verifiedInitializationVectorCrc32c;
/**
* @var bool
*/
public $verifiedPlaintextCrc32c;
/**
* @param string
*/
public function setCiphertext($ciphertext)
{
$this->ciphertext = $ciphertext;
}
/**
* @return string
*/
public function getCiphertext()
{
return $this->ciphertext;
}
/**
* @param string
*/
public function setCiphertextCrc32c($ciphertextCrc32c)
{
$this->ciphertextCrc32c = $ciphertextCrc32c;
}
/**
* @return string
*/
public function getCiphertextCrc32c()
{
return $this->ciphertextCrc32c;
}
/**
* @param string
*/
public function setInitializationVector($initializationVector)
{
$this->initializationVector = $initializationVector;
}
/**
* @return string
*/
public function getInitializationVector()
{
return $this->initializationVector;
}
/**
* @param string
*/
public function setInitializationVectorCrc32c($initializationVectorCrc32c)
{
$this->initializationVectorCrc32c = $initializationVectorCrc32c;
}
/**
* @return string
*/
public function getInitializationVectorCrc32c()
{
return $this->initializationVectorCrc32c;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProtectionLevel($protectionLevel)
{
$this->protectionLevel = $protectionLevel;
}
/**
* @return string
*/
public function getProtectionLevel()
{
return $this->protectionLevel;
}
/**
* @param int
*/
public function setTagLength($tagLength)
{
$this->tagLength = $tagLength;
}
/**
* @return int
*/
public function getTagLength()
{
return $this->tagLength;
}
/**
* @param bool
*/
public function setVerifiedAdditionalAuthenticatedDataCrc32c($verifiedAdditionalAuthenticatedDataCrc32c)
{
$this->verifiedAdditionalAuthenticatedDataCrc32c = $verifiedAdditionalAuthenticatedDataCrc32c;
}
/**
* @return bool
*/
public function getVerifiedAdditionalAuthenticatedDataCrc32c()
{
return $this->verifiedAdditionalAuthenticatedDataCrc32c;
}
/**
* @param bool
*/
public function setVerifiedInitializationVectorCrc32c($verifiedInitializationVectorCrc32c)
{
$this->verifiedInitializationVectorCrc32c = $verifiedInitializationVectorCrc32c;
}
/**
* @return bool
*/
public function getVerifiedInitializationVectorCrc32c()
{
return $this->verifiedInitializationVectorCrc32c;
}
/**
* @param bool
*/
public function setVerifiedPlaintextCrc32c($verifiedPlaintextCrc32c)
{
$this->verifiedPlaintextCrc32c = $verifiedPlaintextCrc32c;
}
/**
* @return bool
*/
public function getVerifiedPlaintextCrc32c()
{
return $this->verifiedPlaintextCrc32c;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RawEncryptResponse::class, 'Google_Service_CloudKMS_RawEncryptResponse');

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\CloudKMS\Resource;
use Google\Service\CloudKMS\AutokeyConfig;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $folders = $cloudkmsService->folders;
* </code>
*/
class Folders extends \Google\Service\Resource
{
/**
* Returns the AutokeyConfig for a folder. (folders.getAutokeyConfig)
*
* @param string $name Required. Name of the AutokeyConfig resource, e.g.
* `folders/{FOLDER_NUMBER}/autokeyConfig`.
* @param array $optParams Optional parameters.
* @return AutokeyConfig
* @throws \Google\Service\Exception
*/
public function getAutokeyConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAutokeyConfig', [$params], AutokeyConfig::class);
}
/**
* Updates the AutokeyConfig for a folder. The caller must have both
* `cloudkms.autokeyConfigs.update` permission on the parent folder and
* `cloudkms.cryptoKeys.setIamPolicy` permission on the provided key project. A
* KeyHandle creation in the folder's descendant projects will use this
* configuration to determine where to create the resulting CryptoKey.
* (folders.updateAutokeyConfig)
*
* @param string $name Identifier. Name of the AutokeyConfig resource, e.g.
* `folders/{FOLDER_NUMBER}/autokeyConfig`.
* @param AutokeyConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Masks which fields of the
* AutokeyConfig to update, e.g. `keyProject`.
* @return AutokeyConfig
* @throws \Google\Service\Exception
*/
public function updateAutokeyConfig($name, AutokeyConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateAutokeyConfig', [$params], AutokeyConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folders::class, 'Google_Service_CloudKMS_Resource_Folders');

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\ShowEffectiveAutokeyConfigResponse;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $projects = $cloudkmsService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Returns the effective Cloud KMS Autokey configuration for a given project.
* (projects.showEffectiveAutokeyConfig)
*
* @param string $parent Required. Name of the resource project to the show
* effective Cloud KMS Autokey configuration for. This may be helpful for
* interrogating the effect of nested folder configurations on a given resource
* project.
* @param array $optParams Optional parameters.
* @return ShowEffectiveAutokeyConfigResponse
* @throws \Google\Service\Exception
*/
public function showEffectiveAutokeyConfig($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('showEffectiveAutokeyConfig', [$params], ShowEffectiveAutokeyConfigResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CloudKMS_Resource_Projects');

View File

@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\EkmConfig;
use Google\Service\CloudKMS\GenerateRandomBytesRequest;
use Google\Service\CloudKMS\GenerateRandomBytesResponse;
use Google\Service\CloudKMS\ListLocationsResponse;
use Google\Service\CloudKMS\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $locations = $cloudkmsService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Generate random bytes using the Cloud KMS randomness source in the provided
* location. (locations.generateRandomBytes)
*
* @param string $location The project-specific location in which to generate
* random bytes. For example, "projects/my-project/locations/us-central1".
* @param GenerateRandomBytesRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateRandomBytesResponse
* @throws \Google\Service\Exception
*/
public function generateRandomBytes($location, GenerateRandomBytesRequest $postBody, $optParams = [])
{
$params = ['location' => $location, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generateRandomBytes', [$params], GenerateRandomBytesResponse::class);
}
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Returns the EkmConfig singleton resource for a given project and location.
* (locations.getEkmConfig)
*
* @param string $name Required. The name of the EkmConfig to get.
* @param array $optParams Optional parameters.
* @return EkmConfig
* @throws \Google\Service\Exception
*/
public function getEkmConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getEkmConfig', [$params], EkmConfig::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
/**
* Updates the EkmConfig singleton resource for a given project and location.
* (locations.updateEkmConfig)
*
* @param string $name Output only. The resource name for the EkmConfig in the
* format `projects/locations/ekmConfig`.
* @param EkmConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. List of fields to be updated in this
* request.
* @return EkmConfig
* @throws \Google\Service\Exception
*/
public function updateEkmConfig($name, EkmConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateEkmConfig', [$params], EkmConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudKMS_Resource_ProjectsLocations');

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\CloudKMS\Resource;
use Google\Service\CloudKMS\Policy;
use Google\Service\CloudKMS\SetIamPolicyRequest;
use Google\Service\CloudKMS\TestIamPermissionsRequest;
use Google\Service\CloudKMS\TestIamPermissionsResponse;
/**
* The "ekmConfig" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $ekmConfig = $cloudkmsService->projects_locations_ekmConfig;
* </code>
*/
class ProjectsLocationsEkmConfig 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. (ekmConfig.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 Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (ekmConfig.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 Policy
* @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], Policy::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.
* (ekmConfig.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(ProjectsLocationsEkmConfig::class, 'Google_Service_CloudKMS_Resource_ProjectsLocationsEkmConfig');

View File

@@ -0,0 +1,217 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\EkmConnection;
use Google\Service\CloudKMS\ListEkmConnectionsResponse;
use Google\Service\CloudKMS\Policy;
use Google\Service\CloudKMS\SetIamPolicyRequest;
use Google\Service\CloudKMS\TestIamPermissionsRequest;
use Google\Service\CloudKMS\TestIamPermissionsResponse;
use Google\Service\CloudKMS\VerifyConnectivityResponse;
/**
* The "ekmConnections" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $ekmConnections = $cloudkmsService->projects_locations_ekmConnections;
* </code>
*/
class ProjectsLocationsEkmConnections extends \Google\Service\Resource
{
/**
* Creates a new EkmConnection in a given Project and Location.
* (ekmConnections.create)
*
* @param string $parent Required. The resource name of the location associated
* with the EkmConnection, in the format `projects/locations`.
* @param EkmConnection $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string ekmConnectionId Required. It must be unique within a
* location and match the regular expression `[a-zA-Z0-9_-]{1,63}`.
* @return EkmConnection
* @throws \Google\Service\Exception
*/
public function create($parent, EkmConnection $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], EkmConnection::class);
}
/**
* Returns metadata for a given EkmConnection. (ekmConnections.get)
*
* @param string $name Required. The name of the EkmConnection to get.
* @param array $optParams Optional parameters.
* @return EkmConnection
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], EkmConnection::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (ekmConnections.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 Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists EkmConnections. (ekmConnections.listProjectsLocationsEkmConnections)
*
* @param string $parent Required. The resource name of the location associated
* with the EkmConnections to list, in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Only include resources that match the
* filter in the response. For more information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param string orderBy Optional. Specify how the results should be sorted.
* If not specified, the results will be sorted in the default order. For more
* information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param int pageSize Optional. Optional limit on the number of
* EkmConnections to include in the response. Further EkmConnections can
* subsequently be obtained by including the
* ListEkmConnectionsResponse.next_page_token in a subsequent request. If
* unspecified, the server will pick an appropriate default.
* @opt_param string pageToken Optional. Optional pagination token, returned
* earlier via ListEkmConnectionsResponse.next_page_token.
* @return ListEkmConnectionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEkmConnections($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEkmConnectionsResponse::class);
}
/**
* Updates an EkmConnection's metadata. (ekmConnections.patch)
*
* @param string $name Output only. The resource name for the EkmConnection in
* the format `projects/locations/ekmConnections`.
* @param EkmConnection $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. List of fields to be updated in this
* request.
* @return EkmConnection
* @throws \Google\Service\Exception
*/
public function patch($name, EkmConnection $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], EkmConnection::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (ekmConnections.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 Policy
* @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], Policy::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.
* (ekmConnections.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);
}
/**
* Verifies that Cloud KMS can successfully connect to the external key manager
* specified by an EkmConnection. If there is an error connecting to the EKM,
* this method returns a FAILED_PRECONDITION status containing structured
* information as described at
* https://cloud.google.com/kms/docs/reference/ekm_errors.
* (ekmConnections.verifyConnectivity)
*
* @param string $name Required. The name of the EkmConnection to verify.
* @param array $optParams Optional parameters.
* @return VerifyConnectivityResponse
* @throws \Google\Service\Exception
*/
public function verifyConnectivity($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('verifyConnectivity', [$params], VerifyConnectivityResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEkmConnections::class, 'Google_Service_CloudKMS_Resource_ProjectsLocationsEkmConnections');

View File

@@ -0,0 +1,102 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\KeyHandle;
use Google\Service\CloudKMS\ListKeyHandlesResponse;
use Google\Service\CloudKMS\Operation;
/**
* The "keyHandles" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $keyHandles = $cloudkmsService->projects_locations_keyHandles;
* </code>
*/
class ProjectsLocationsKeyHandles extends \Google\Service\Resource
{
/**
* Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for
* CMEK use with the given resource type in the configured key project and the
* same location. GetOperation should be used to resolve the resulting long-
* running operation and get the resulting KeyHandle and CryptoKey.
* (keyHandles.create)
*
* @param string $parent Required. Name of the resource project and location to
* create the KeyHandle in, e.g. `projects/{PROJECT_ID}/locations/{LOCATION}`.
* @param KeyHandle $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string keyHandleId Optional. Id of the KeyHandle. Must be unique
* to the resource project and location. If not provided by the caller, a new
* UUID is used.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, KeyHandle $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Returns the KeyHandle. (keyHandles.get)
*
* @param string $name Required. Name of the KeyHandle resource, e.g.
* `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`.
* @param array $optParams Optional parameters.
* @return KeyHandle
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], KeyHandle::class);
}
/**
* Lists KeyHandles. (keyHandles.listProjectsLocationsKeyHandles)
*
* @param string $parent Required. Name of the resource project and location
* from which to list KeyHandles, e.g.
* `projects/{PROJECT_ID}/locations/{LOCATION}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter to apply when listing KeyHandles,
* e.g. `resource_type_selector="{SERVICE}.googleapis.com/{TYPE}"`.
* @opt_param int pageSize Optional. Optional limit on the number of KeyHandles
* to include in the response. The service may return fewer than this value.
* Further KeyHandles can subsequently be obtained by including the
* ListKeyHandlesResponse.next_page_token in a subsequent request. If
* unspecified, at most 100 KeyHandles will be returned.
* @opt_param string pageToken Optional. Optional pagination token, returned
* earlier via ListKeyHandlesResponse.next_page_token.
* @return ListKeyHandlesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsKeyHandles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListKeyHandlesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsKeyHandles::class, 'Google_Service_CloudKMS_Resource_ProjectsLocationsKeyHandles');

View File

@@ -0,0 +1,175 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\KeyRing;
use Google\Service\CloudKMS\ListKeyRingsResponse;
use Google\Service\CloudKMS\Policy;
use Google\Service\CloudKMS\SetIamPolicyRequest;
use Google\Service\CloudKMS\TestIamPermissionsRequest;
use Google\Service\CloudKMS\TestIamPermissionsResponse;
/**
* The "keyRings" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $keyRings = $cloudkmsService->projects_locations_keyRings;
* </code>
*/
class ProjectsLocationsKeyRings extends \Google\Service\Resource
{
/**
* Create a new KeyRing in a given Project and Location. (keyRings.create)
*
* @param string $parent Required. The resource name of the location associated
* with the KeyRings, in the format `projects/locations`.
* @param KeyRing $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string keyRingId Required. It must be unique within a location and
* match the regular expression `[a-zA-Z0-9_-]{1,63}`
* @return KeyRing
* @throws \Google\Service\Exception
*/
public function create($parent, KeyRing $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], KeyRing::class);
}
/**
* Returns metadata for a given KeyRing. (keyRings.get)
*
* @param string $name Required. The name of the KeyRing to get.
* @param array $optParams Optional parameters.
* @return KeyRing
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], KeyRing::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (keyRings.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 Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists KeyRings. (keyRings.listProjectsLocationsKeyRings)
*
* @param string $parent Required. The resource name of the location associated
* with the KeyRings, in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Only include resources that match the
* filter in the response. For more information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param string orderBy Optional. Specify how the results should be sorted.
* If not specified, the results will be sorted in the default order. For more
* information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param int pageSize Optional. Optional limit on the number of KeyRings to
* include in the response. Further KeyRings can subsequently be obtained by
* including the ListKeyRingsResponse.next_page_token in a subsequent request.
* If unspecified, the server will pick an appropriate default.
* @opt_param string pageToken Optional. Optional pagination token, returned
* earlier via ListKeyRingsResponse.next_page_token.
* @return ListKeyRingsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsKeyRings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListKeyRingsResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (keyRings.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 Policy
* @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], Policy::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. (keyRings.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(ProjectsLocationsKeyRings::class, 'Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRings');

View File

@@ -0,0 +1,260 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\CryptoKey;
use Google\Service\CloudKMS\DecryptRequest;
use Google\Service\CloudKMS\DecryptResponse;
use Google\Service\CloudKMS\EncryptRequest;
use Google\Service\CloudKMS\EncryptResponse;
use Google\Service\CloudKMS\ListCryptoKeysResponse;
use Google\Service\CloudKMS\Policy;
use Google\Service\CloudKMS\SetIamPolicyRequest;
use Google\Service\CloudKMS\TestIamPermissionsRequest;
use Google\Service\CloudKMS\TestIamPermissionsResponse;
use Google\Service\CloudKMS\UpdateCryptoKeyPrimaryVersionRequest;
/**
* The "cryptoKeys" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $cryptoKeys = $cloudkmsService->projects_locations_keyRings_cryptoKeys;
* </code>
*/
class ProjectsLocationsKeyRingsCryptoKeys extends \Google\Service\Resource
{
/**
* Create a new CryptoKey within a KeyRing. CryptoKey.purpose and
* CryptoKey.version_template.algorithm are required. (cryptoKeys.create)
*
* @param string $parent Required. The name of the KeyRing associated with the
* CryptoKeys.
* @param CryptoKey $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string cryptoKeyId Required. It must be unique within a KeyRing
* and match the regular expression `[a-zA-Z0-9_-]{1,63}`
* @opt_param bool skipInitialVersionCreation If set to true, the request will
* create a CryptoKey without any CryptoKeyVersions. You must manually call
* CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this
* CryptoKey.
* @return CryptoKey
* @throws \Google\Service\Exception
*/
public function create($parent, CryptoKey $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], CryptoKey::class);
}
/**
* Decrypts data that was protected by Encrypt. The CryptoKey.purpose must be
* ENCRYPT_DECRYPT. (cryptoKeys.decrypt)
*
* @param string $name Required. The resource name of the CryptoKey to use for
* decryption. The server will choose the appropriate version.
* @param DecryptRequest $postBody
* @param array $optParams Optional parameters.
* @return DecryptResponse
* @throws \Google\Service\Exception
*/
public function decrypt($name, DecryptRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('decrypt', [$params], DecryptResponse::class);
}
/**
* Encrypts data, so that it can only be recovered by a call to Decrypt. The
* CryptoKey.purpose must be ENCRYPT_DECRYPT. (cryptoKeys.encrypt)
*
* @param string $name Required. The resource name of the CryptoKey or
* CryptoKeyVersion to use for encryption. If a CryptoKey is specified, the
* server will use its primary version.
* @param EncryptRequest $postBody
* @param array $optParams Optional parameters.
* @return EncryptResponse
* @throws \Google\Service\Exception
*/
public function encrypt($name, EncryptRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('encrypt', [$params], EncryptResponse::class);
}
/**
* Returns metadata for a given CryptoKey, as well as its primary
* CryptoKeyVersion. (cryptoKeys.get)
*
* @param string $name Required. The name of the CryptoKey to get.
* @param array $optParams Optional parameters.
* @return CryptoKey
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CryptoKey::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (cryptoKeys.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 Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists CryptoKeys. (cryptoKeys.listProjectsLocationsKeyRingsCryptoKeys)
*
* @param string $parent Required. The resource name of the KeyRing to list, in
* the format `projects/locations/keyRings`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Only include resources that match the
* filter in the response. For more information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param string orderBy Optional. Specify how the results should be sorted.
* If not specified, the results will be sorted in the default order. For more
* information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param int pageSize Optional. Optional limit on the number of CryptoKeys
* to include in the response. Further CryptoKeys can subsequently be obtained
* by including the ListCryptoKeysResponse.next_page_token in a subsequent
* request. If unspecified, the server will pick an appropriate default.
* @opt_param string pageToken Optional. Optional pagination token, returned
* earlier via ListCryptoKeysResponse.next_page_token.
* @opt_param string versionView The fields of the primary version to include in
* the response.
* @return ListCryptoKeysResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsKeyRingsCryptoKeys($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCryptoKeysResponse::class);
}
/**
* Update a CryptoKey. (cryptoKeys.patch)
*
* @param string $name Output only. The resource name for this CryptoKey in the
* format `projects/locations/keyRings/cryptoKeys`.
* @param CryptoKey $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. List of fields to be updated in this
* request.
* @return CryptoKey
* @throws \Google\Service\Exception
*/
public function patch($name, CryptoKey $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CryptoKey::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (cryptoKeys.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 Policy
* @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], Policy::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.
* (cryptoKeys.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);
}
/**
* Update the version of a CryptoKey that will be used in Encrypt. Returns an
* error if called on a key whose purpose is not ENCRYPT_DECRYPT.
* (cryptoKeys.updatePrimaryVersion)
*
* @param string $name Required. The resource name of the CryptoKey to update.
* @param UpdateCryptoKeyPrimaryVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return CryptoKey
* @throws \Google\Service\Exception
*/
public function updatePrimaryVersion($name, UpdateCryptoKeyPrimaryVersionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updatePrimaryVersion', [$params], CryptoKey::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsKeyRingsCryptoKeys::class, 'Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys');

View File

@@ -0,0 +1,324 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\AsymmetricDecryptRequest;
use Google\Service\CloudKMS\AsymmetricDecryptResponse;
use Google\Service\CloudKMS\AsymmetricSignRequest;
use Google\Service\CloudKMS\AsymmetricSignResponse;
use Google\Service\CloudKMS\CryptoKeyVersion;
use Google\Service\CloudKMS\DestroyCryptoKeyVersionRequest;
use Google\Service\CloudKMS\ImportCryptoKeyVersionRequest;
use Google\Service\CloudKMS\ListCryptoKeyVersionsResponse;
use Google\Service\CloudKMS\MacSignRequest;
use Google\Service\CloudKMS\MacSignResponse;
use Google\Service\CloudKMS\MacVerifyRequest;
use Google\Service\CloudKMS\MacVerifyResponse;
use Google\Service\CloudKMS\PublicKey;
use Google\Service\CloudKMS\RawDecryptRequest;
use Google\Service\CloudKMS\RawDecryptResponse;
use Google\Service\CloudKMS\RawEncryptRequest;
use Google\Service\CloudKMS\RawEncryptResponse;
use Google\Service\CloudKMS\RestoreCryptoKeyVersionRequest;
/**
* The "cryptoKeyVersions" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $cryptoKeyVersions = $cloudkmsService->projects_locations_keyRings_cryptoKeys_cryptoKeyVersions;
* </code>
*/
class ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions extends \Google\Service\Resource
{
/**
* Decrypts data that was encrypted with a public key retrieved from
* GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose
* ASYMMETRIC_DECRYPT. (cryptoKeyVersions.asymmetricDecrypt)
*
* @param string $name Required. The resource name of the CryptoKeyVersion to
* use for decryption.
* @param AsymmetricDecryptRequest $postBody
* @param array $optParams Optional parameters.
* @return AsymmetricDecryptResponse
* @throws \Google\Service\Exception
*/
public function asymmetricDecrypt($name, AsymmetricDecryptRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('asymmetricDecrypt', [$params], AsymmetricDecryptResponse::class);
}
/**
* Signs data using a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_SIGN,
* producing a signature that can be verified with the public key retrieved from
* GetPublicKey. (cryptoKeyVersions.asymmetricSign)
*
* @param string $name Required. The resource name of the CryptoKeyVersion to
* use for signing.
* @param AsymmetricSignRequest $postBody
* @param array $optParams Optional parameters.
* @return AsymmetricSignResponse
* @throws \Google\Service\Exception
*/
public function asymmetricSign($name, AsymmetricSignRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('asymmetricSign', [$params], AsymmetricSignResponse::class);
}
/**
* Create a new CryptoKeyVersion in a CryptoKey. The server will assign the next
* sequential id. If unset, state will be set to ENABLED.
* (cryptoKeyVersions.create)
*
* @param string $parent Required. The name of the CryptoKey associated with the
* CryptoKeyVersions.
* @param CryptoKeyVersion $postBody
* @param array $optParams Optional parameters.
* @return CryptoKeyVersion
* @throws \Google\Service\Exception
*/
public function create($parent, CryptoKeyVersion $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], CryptoKeyVersion::class);
}
/**
* Schedule a CryptoKeyVersion for destruction. Upon calling this method,
* CryptoKeyVersion.state will be set to DESTROY_SCHEDULED, and destroy_time
* will be set to the time destroy_scheduled_duration in the future. At that
* time, the state will automatically change to DESTROYED, and the key material
* will be irrevocably destroyed. Before the destroy_time is reached,
* RestoreCryptoKeyVersion may be called to reverse the process.
* (cryptoKeyVersions.destroy)
*
* @param string $name Required. The resource name of the CryptoKeyVersion to
* destroy.
* @param DestroyCryptoKeyVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return CryptoKeyVersion
* @throws \Google\Service\Exception
*/
public function destroy($name, DestroyCryptoKeyVersionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('destroy', [$params], CryptoKeyVersion::class);
}
/**
* Returns metadata for a given CryptoKeyVersion. (cryptoKeyVersions.get)
*
* @param string $name Required. The name of the CryptoKeyVersion to get.
* @param array $optParams Optional parameters.
* @return CryptoKeyVersion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CryptoKeyVersion::class);
}
/**
* Returns the public key for the given CryptoKeyVersion. The CryptoKey.purpose
* must be ASYMMETRIC_SIGN or ASYMMETRIC_DECRYPT.
* (cryptoKeyVersions.getPublicKey)
*
* @param string $name Required. The name of the CryptoKeyVersion public key to
* get.
* @param array $optParams Optional parameters.
* @return PublicKey
* @throws \Google\Service\Exception
*/
public function getPublicKey($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getPublicKey', [$params], PublicKey::class);
}
/**
* Import wrapped key material into a CryptoKeyVersion. All requests must
* specify a CryptoKey. If a CryptoKeyVersion is additionally specified in the
* request, key material will be reimported into that version. Otherwise, a new
* version will be created, and will be assigned the next sequential id within
* the CryptoKey. (cryptoKeyVersions.import)
*
* @param string $parent Required. The name of the CryptoKey to be imported
* into. The create permission is only required on this key when creating a new
* CryptoKeyVersion.
* @param ImportCryptoKeyVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return CryptoKeyVersion
* @throws \Google\Service\Exception
*/
public function import($parent, ImportCryptoKeyVersionRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], CryptoKeyVersion::class);
}
/**
* Lists CryptoKeyVersions.
* (cryptoKeyVersions.listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions)
*
* @param string $parent Required. The resource name of the CryptoKey to list,
* in the format `projects/locations/keyRings/cryptoKeys`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Only include resources that match the
* filter in the response. For more information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param string orderBy Optional. Specify how the results should be sorted.
* If not specified, the results will be sorted in the default order. For more
* information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param int pageSize Optional. Optional limit on the number of
* CryptoKeyVersions to include in the response. Further CryptoKeyVersions can
* subsequently be obtained by including the
* ListCryptoKeyVersionsResponse.next_page_token in a subsequent request. If
* unspecified, the server will pick an appropriate default.
* @opt_param string pageToken Optional. Optional pagination token, returned
* earlier via ListCryptoKeyVersionsResponse.next_page_token.
* @opt_param string view The fields to include in the response.
* @return ListCryptoKeyVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCryptoKeyVersionsResponse::class);
}
/**
* Signs data using a CryptoKeyVersion with CryptoKey.purpose MAC, producing a
* tag that can be verified by another source with the same key.
* (cryptoKeyVersions.macSign)
*
* @param string $name Required. The resource name of the CryptoKeyVersion to
* use for signing.
* @param MacSignRequest $postBody
* @param array $optParams Optional parameters.
* @return MacSignResponse
* @throws \Google\Service\Exception
*/
public function macSign($name, MacSignRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('macSign', [$params], MacSignResponse::class);
}
/**
* Verifies MAC tag using a CryptoKeyVersion with CryptoKey.purpose MAC, and
* returns a response that indicates whether or not the verification was
* successful. (cryptoKeyVersions.macVerify)
*
* @param string $name Required. The resource name of the CryptoKeyVersion to
* use for verification.
* @param MacVerifyRequest $postBody
* @param array $optParams Optional parameters.
* @return MacVerifyResponse
* @throws \Google\Service\Exception
*/
public function macVerify($name, MacVerifyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('macVerify', [$params], MacVerifyResponse::class);
}
/**
* Update a CryptoKeyVersion's metadata. state may be changed between ENABLED
* and DISABLED using this method. See DestroyCryptoKeyVersion and
* RestoreCryptoKeyVersion to move between other states.
* (cryptoKeyVersions.patch)
*
* @param string $name Output only. The resource name for this CryptoKeyVersion
* in the format `projects/locations/keyRings/cryptoKeys/cryptoKeyVersions`.
* @param CryptoKeyVersion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. List of fields to be updated in this
* request.
* @return CryptoKeyVersion
* @throws \Google\Service\Exception
*/
public function patch($name, CryptoKeyVersion $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CryptoKeyVersion::class);
}
/**
* Decrypts data that was originally encrypted using a raw cryptographic
* mechanism. The CryptoKey.purpose must be RAW_ENCRYPT_DECRYPT.
* (cryptoKeyVersions.rawDecrypt)
*
* @param string $name Required. The resource name of the CryptoKeyVersion to
* use for decryption.
* @param RawDecryptRequest $postBody
* @param array $optParams Optional parameters.
* @return RawDecryptResponse
* @throws \Google\Service\Exception
*/
public function rawDecrypt($name, RawDecryptRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rawDecrypt', [$params], RawDecryptResponse::class);
}
/**
* Encrypts data using portable cryptographic primitives. Most users should
* choose Encrypt and Decrypt rather than their raw counterparts. The
* CryptoKey.purpose must be RAW_ENCRYPT_DECRYPT. (cryptoKeyVersions.rawEncrypt)
*
* @param string $name Required. The resource name of the CryptoKeyVersion to
* use for encryption.
* @param RawEncryptRequest $postBody
* @param array $optParams Optional parameters.
* @return RawEncryptResponse
* @throws \Google\Service\Exception
*/
public function rawEncrypt($name, RawEncryptRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rawEncrypt', [$params], RawEncryptResponse::class);
}
/**
* Restore a CryptoKeyVersion in the DESTROY_SCHEDULED state. Upon restoration
* of the CryptoKeyVersion, state will be set to DISABLED, and destroy_time will
* be cleared. (cryptoKeyVersions.restore)
*
* @param string $name Required. The resource name of the CryptoKeyVersion to
* restore.
* @param RestoreCryptoKeyVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return CryptoKeyVersion
* @throws \Google\Service\Exception
*/
public function restore($name, RestoreCryptoKeyVersionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restore', [$params], CryptoKeyVersion::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions::class, 'Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions');

View File

@@ -0,0 +1,177 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\ImportJob;
use Google\Service\CloudKMS\ListImportJobsResponse;
use Google\Service\CloudKMS\Policy;
use Google\Service\CloudKMS\SetIamPolicyRequest;
use Google\Service\CloudKMS\TestIamPermissionsRequest;
use Google\Service\CloudKMS\TestIamPermissionsResponse;
/**
* The "importJobs" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $importJobs = $cloudkmsService->projects_locations_keyRings_importJobs;
* </code>
*/
class ProjectsLocationsKeyRingsImportJobs extends \Google\Service\Resource
{
/**
* Create a new ImportJob within a KeyRing. ImportJob.import_method is required.
* (importJobs.create)
*
* @param string $parent Required. The name of the KeyRing associated with the
* ImportJobs.
* @param ImportJob $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string importJobId Required. It must be unique within a KeyRing
* and match the regular expression `[a-zA-Z0-9_-]{1,63}`
* @return ImportJob
* @throws \Google\Service\Exception
*/
public function create($parent, ImportJob $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ImportJob::class);
}
/**
* Returns metadata for a given ImportJob. (importJobs.get)
*
* @param string $name Required. The name of the ImportJob to get.
* @param array $optParams Optional parameters.
* @return ImportJob
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ImportJob::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (importJobs.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 Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists ImportJobs. (importJobs.listProjectsLocationsKeyRingsImportJobs)
*
* @param string $parent Required. The resource name of the KeyRing to list, in
* the format `projects/locations/keyRings`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Only include resources that match the
* filter in the response. For more information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param string orderBy Optional. Specify how the results should be sorted.
* If not specified, the results will be sorted in the default order. For more
* information, see [Sorting and filtering list
* results](https://cloud.google.com/kms/docs/sorting-and-filtering).
* @opt_param int pageSize Optional. Optional limit on the number of ImportJobs
* to include in the response. Further ImportJobs can subsequently be obtained
* by including the ListImportJobsResponse.next_page_token in a subsequent
* request. If unspecified, the server will pick an appropriate default.
* @opt_param string pageToken Optional. Optional pagination token, returned
* earlier via ListImportJobsResponse.next_page_token.
* @return ListImportJobsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsKeyRingsImportJobs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListImportJobsResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (importJobs.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 Policy
* @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], Policy::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.
* (importJobs.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(ProjectsLocationsKeyRingsImportJobs::class, 'Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsImportJobs');

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudKMS\Resource;
use Google\Service\CloudKMS\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $cloudkmsService = new Google\Service\CloudKMS(...);
* $operations = $cloudkmsService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_CloudKMS_Resource_ProjectsLocationsOperations');

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

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\CloudKMS;
class ServiceResolver extends \Google\Collection
{
protected $collection_key = 'serverCertificates';
/**
* @var string
*/
public $endpointFilter;
/**
* @var string
*/
public $hostname;
protected $serverCertificatesType = Certificate::class;
protected $serverCertificatesDataType = 'array';
/**
* @var string
*/
public $serviceDirectoryService;
/**
* @param string
*/
public function setEndpointFilter($endpointFilter)
{
$this->endpointFilter = $endpointFilter;
}
/**
* @return string
*/
public function getEndpointFilter()
{
return $this->endpointFilter;
}
/**
* @param string
*/
public function setHostname($hostname)
{
$this->hostname = $hostname;
}
/**
* @return string
*/
public function getHostname()
{
return $this->hostname;
}
/**
* @param Certificate[]
*/
public function setServerCertificates($serverCertificates)
{
$this->serverCertificates = $serverCertificates;
}
/**
* @return Certificate[]
*/
public function getServerCertificates()
{
return $this->serverCertificates;
}
/**
* @param string
*/
public function setServiceDirectoryService($serviceDirectoryService)
{
$this->serviceDirectoryService = $serviceDirectoryService;
}
/**
* @return string
*/
public function getServiceDirectoryService()
{
return $this->serviceDirectoryService;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceResolver::class, 'Google_Service_CloudKMS_ServiceResolver');

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\CloudKMS;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_CloudKMS_SetIamPolicyRequest');

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

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

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\CloudKMS;
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_CloudKMS_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\CloudKMS;
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_CloudKMS_TestIamPermissionsResponse');

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

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

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