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,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\Kmsinventory;
class GoogleCloudKmsInventoryV1ListCryptoKeysResponse extends \Google\Collection
{
protected $collection_key = 'cryptoKeys';
protected $cryptoKeysType = GoogleCloudKmsV1CryptoKey::class;
protected $cryptoKeysDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudKmsV1CryptoKey[]
*/
public function setCryptoKeys($cryptoKeys)
{
$this->cryptoKeys = $cryptoKeys;
}
/**
* @return GoogleCloudKmsV1CryptoKey[]
*/
public function getCryptoKeys()
{
return $this->cryptoKeys;
}
/**
* @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(GoogleCloudKmsInventoryV1ListCryptoKeysResponse::class, 'Google_Service_Kmsinventory_GoogleCloudKmsInventoryV1ListCryptoKeysResponse');

View File

@@ -0,0 +1,207 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Kmsinventory;
class GoogleCloudKmsInventoryV1ProtectedResource extends \Google\Collection
{
protected $collection_key = 'cryptoKeyVersions';
/**
* @var string
*/
public $cloudProduct;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $cryptoKeyVersion;
/**
* @var string[]
*/
public $cryptoKeyVersions;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $project;
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $resourceType;
/**
* @param string
*/
public function setCloudProduct($cloudProduct)
{
$this->cloudProduct = $cloudProduct;
}
/**
* @return string
*/
public function getCloudProduct()
{
return $this->cloudProduct;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setCryptoKeyVersion($cryptoKeyVersion)
{
$this->cryptoKeyVersion = $cryptoKeyVersion;
}
/**
* @return string
*/
public function getCryptoKeyVersion()
{
return $this->cryptoKeyVersion;
}
/**
* @param string[]
*/
public function setCryptoKeyVersions($cryptoKeyVersions)
{
$this->cryptoKeyVersions = $cryptoKeyVersions;
}
/**
* @return string[]
*/
public function getCryptoKeyVersions()
{
return $this->cryptoKeyVersions;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudKmsInventoryV1ProtectedResource::class, 'Google_Service_Kmsinventory_GoogleCloudKmsInventoryV1ProtectedResource');

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\Kmsinventory;
class GoogleCloudKmsInventoryV1ProtectedResourcesSummary extends \Google\Model
{
/**
* @var string[]
*/
public $cloudProducts;
/**
* @var string[]
*/
public $locations;
/**
* @var string
*/
public $name;
/**
* @var int
*/
public $projectCount;
/**
* @var string
*/
public $resourceCount;
/**
* @var string[]
*/
public $resourceTypes;
/**
* @param string[]
*/
public function setCloudProducts($cloudProducts)
{
$this->cloudProducts = $cloudProducts;
}
/**
* @return string[]
*/
public function getCloudProducts()
{
return $this->cloudProducts;
}
/**
* @param string[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return string[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param int
*/
public function setProjectCount($projectCount)
{
$this->projectCount = $projectCount;
}
/**
* @return int
*/
public function getProjectCount()
{
return $this->projectCount;
}
/**
* @param string
*/
public function setResourceCount($resourceCount)
{
$this->resourceCount = $resourceCount;
}
/**
* @return string
*/
public function getResourceCount()
{
return $this->resourceCount;
}
/**
* @param string[]
*/
public function setResourceTypes($resourceTypes)
{
$this->resourceTypes = $resourceTypes;
}
/**
* @return string[]
*/
public function getResourceTypes()
{
return $this->resourceTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudKmsInventoryV1ProtectedResourcesSummary::class, 'Google_Service_Kmsinventory_GoogleCloudKmsInventoryV1ProtectedResourcesSummary');

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\Kmsinventory;
class GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse extends \Google\Collection
{
protected $collection_key = 'protectedResources';
/**
* @var string
*/
public $nextPageToken;
protected $protectedResourcesType = GoogleCloudKmsInventoryV1ProtectedResource::class;
protected $protectedResourcesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudKmsInventoryV1ProtectedResource[]
*/
public function setProtectedResources($protectedResources)
{
$this->protectedResources = $protectedResources;
}
/**
* @return GoogleCloudKmsInventoryV1ProtectedResource[]
*/
public function getProtectedResources()
{
return $this->protectedResources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse::class, 'Google_Service_Kmsinventory_GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse');

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\Kmsinventory;
class GoogleCloudKmsV1CryptoKey extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $cryptoKeyBackend;
/**
* @var string
*/
public $destroyScheduledDuration;
/**
* @var bool
*/
public $importOnly;
protected $keyAccessJustificationsPolicyType = GoogleCloudKmsV1KeyAccessJustificationsPolicy::class;
protected $keyAccessJustificationsPolicyDataType = '';
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $nextRotationTime;
protected $primaryType = GoogleCloudKmsV1CryptoKeyVersion::class;
protected $primaryDataType = '';
/**
* @var string
*/
public $purpose;
/**
* @var string
*/
public $rotationPeriod;
protected $versionTemplateType = GoogleCloudKmsV1CryptoKeyVersionTemplate::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 GoogleCloudKmsV1KeyAccessJustificationsPolicy
*/
public function setKeyAccessJustificationsPolicy(GoogleCloudKmsV1KeyAccessJustificationsPolicy $keyAccessJustificationsPolicy)
{
$this->keyAccessJustificationsPolicy = $keyAccessJustificationsPolicy;
}
/**
* @return GoogleCloudKmsV1KeyAccessJustificationsPolicy
*/
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 GoogleCloudKmsV1CryptoKeyVersion
*/
public function setPrimary(GoogleCloudKmsV1CryptoKeyVersion $primary)
{
$this->primary = $primary;
}
/**
* @return GoogleCloudKmsV1CryptoKeyVersion
*/
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 GoogleCloudKmsV1CryptoKeyVersionTemplate
*/
public function setVersionTemplate(GoogleCloudKmsV1CryptoKeyVersionTemplate $versionTemplate)
{
$this->versionTemplate = $versionTemplate;
}
/**
* @return GoogleCloudKmsV1CryptoKeyVersionTemplate
*/
public function getVersionTemplate()
{
return $this->versionTemplate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudKmsV1CryptoKey::class, 'Google_Service_Kmsinventory_GoogleCloudKmsV1CryptoKey');

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\Kmsinventory;
class GoogleCloudKmsV1CryptoKeyVersion extends \Google\Model
{
/**
* @var string
*/
public $algorithm;
protected $attestationType = GoogleCloudKmsV1KeyOperationAttestation::class;
protected $attestationDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $destroyEventTime;
/**
* @var string
*/
public $destroyTime;
/**
* @var string
*/
public $externalDestructionFailureReason;
protected $externalProtectionLevelOptionsType = GoogleCloudKmsV1ExternalProtectionLevelOptions::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 GoogleCloudKmsV1KeyOperationAttestation
*/
public function setAttestation(GoogleCloudKmsV1KeyOperationAttestation $attestation)
{
$this->attestation = $attestation;
}
/**
* @return GoogleCloudKmsV1KeyOperationAttestation
*/
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 GoogleCloudKmsV1ExternalProtectionLevelOptions
*/
public function setExternalProtectionLevelOptions(GoogleCloudKmsV1ExternalProtectionLevelOptions $externalProtectionLevelOptions)
{
$this->externalProtectionLevelOptions = $externalProtectionLevelOptions;
}
/**
* @return GoogleCloudKmsV1ExternalProtectionLevelOptions
*/
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(GoogleCloudKmsV1CryptoKeyVersion::class, 'Google_Service_Kmsinventory_GoogleCloudKmsV1CryptoKeyVersion');

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\Kmsinventory;
class GoogleCloudKmsV1CryptoKeyVersionTemplate 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(GoogleCloudKmsV1CryptoKeyVersionTemplate::class, 'Google_Service_Kmsinventory_GoogleCloudKmsV1CryptoKeyVersionTemplate');

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\Kmsinventory;
class GoogleCloudKmsV1ExternalProtectionLevelOptions 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(GoogleCloudKmsV1ExternalProtectionLevelOptions::class, 'Google_Service_Kmsinventory_GoogleCloudKmsV1ExternalProtectionLevelOptions');

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\Kmsinventory;
class GoogleCloudKmsV1KeyAccessJustificationsPolicy 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(GoogleCloudKmsV1KeyAccessJustificationsPolicy::class, 'Google_Service_Kmsinventory_GoogleCloudKmsV1KeyAccessJustificationsPolicy');

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\Kmsinventory;
class GoogleCloudKmsV1KeyOperationAttestation extends \Google\Model
{
protected $certChainsType = GoogleCloudKmsV1KeyOperationAttestationCertificateChains::class;
protected $certChainsDataType = '';
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $format;
/**
* @param GoogleCloudKmsV1KeyOperationAttestationCertificateChains
*/
public function setCertChains(GoogleCloudKmsV1KeyOperationAttestationCertificateChains $certChains)
{
$this->certChains = $certChains;
}
/**
* @return GoogleCloudKmsV1KeyOperationAttestationCertificateChains
*/
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(GoogleCloudKmsV1KeyOperationAttestation::class, 'Google_Service_Kmsinventory_GoogleCloudKmsV1KeyOperationAttestation');

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\Kmsinventory;
class GoogleCloudKmsV1KeyOperationAttestationCertificateChains 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(GoogleCloudKmsV1KeyOperationAttestationCertificateChains::class, 'Google_Service_Kmsinventory_GoogleCloudKmsV1KeyOperationAttestationCertificateChains');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Kmsinventory\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $kmsinventoryService = new Google\Service\Kmsinventory(...);
* $organizations = $kmsinventoryService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_Kmsinventory_Resource_Organizations');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Kmsinventory\Resource;
use Google\Service\Kmsinventory\GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse;
/**
* The "protectedResources" collection of methods.
* Typical usage is:
* <code>
* $kmsinventoryService = new Google\Service\Kmsinventory(...);
* $protectedResources = $kmsinventoryService->organizations_protectedResources;
* </code>
*/
class OrganizationsProtectedResources extends \Google\Service\Resource
{
/**
* Returns metadata about the resources protected by the given Cloud KMS
* CryptoKey in the given Cloud organization. (protectedResources.search)
*
* @param string $scope Required. Resource name of the organization. Example:
* organizations/123
* @param array $optParams Optional parameters.
*
* @opt_param string cryptoKey Required. The resource name of the CryptoKey.
* @opt_param int pageSize The maximum number of resources to return. The
* service may return fewer than this value. If unspecified, at most 500
* resources will be returned. The maximum value is 500; values above 500 will
* be coerced to 500.
* @opt_param string pageToken A page token, received from a previous
* KeyTrackingService.SearchProtectedResources call. Provide this to retrieve
* the subsequent page. When paginating, all other parameters provided to
* KeyTrackingService.SearchProtectedResources must match the call that provided
* the page token.
* @opt_param string resourceTypes Optional. A list of resource types that this
* request searches for. If empty, it will search all the [trackable resource
* types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-
* types). Regular expressions are also supported. For example: *
* `compute.googleapis.com.*` snapshots resources whose type starts with
* `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends
* with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`.
* See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
* regular expression syntax. If the regular expression does not match any
* supported resource type, an INVALID_ARGUMENT error will be returned.
* @return GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse
* @throws \Google\Service\Exception
*/
public function search($scope, $optParams = [])
{
$params = ['scope' => $scope];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsProtectedResources::class, 'Google_Service_Kmsinventory_Resource_OrganizationsProtectedResources');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Kmsinventory\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $kmsinventoryService = new Google\Service\Kmsinventory(...);
* $projects = $kmsinventoryService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Kmsinventory_Resource_Projects');

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\Kmsinventory\Resource;
use Google\Service\Kmsinventory\GoogleCloudKmsInventoryV1ListCryptoKeysResponse;
/**
* The "cryptoKeys" collection of methods.
* Typical usage is:
* <code>
* $kmsinventoryService = new Google\Service\Kmsinventory(...);
* $cryptoKeys = $kmsinventoryService->projects_cryptoKeys;
* </code>
*/
class ProjectsCryptoKeys extends \Google\Service\Resource
{
/**
* Returns cryptographic keys managed by Cloud KMS in a given Cloud project.
* Note that this data is sourced from snapshots, meaning it may not completely
* reflect the actual state of key metadata at call time.
* (cryptoKeys.listProjectsCryptoKeys)
*
* @param string $parent Required. The Google Cloud project for which to
* retrieve key metadata, in the format `projects`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of keys to return. The
* service may return fewer than this value. If unspecified, at most 1000 keys
* will be returned. The maximum value is 1000; values above 1000 will be
* coerced to 1000.
* @opt_param string pageToken Optional. Pass this into a subsequent request in
* order to receive the next page of results.
* @return GoogleCloudKmsInventoryV1ListCryptoKeysResponse
* @throws \Google\Service\Exception
*/
public function listProjectsCryptoKeys($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudKmsInventoryV1ListCryptoKeysResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsCryptoKeys::class, 'Google_Service_Kmsinventory_Resource_ProjectsCryptoKeys');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Kmsinventory\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $kmsinventoryService = new Google\Service\Kmsinventory(...);
* $locations = $kmsinventoryService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Kmsinventory_Resource_ProjectsLocations');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Kmsinventory\Resource;
/**
* The "keyRings" collection of methods.
* Typical usage is:
* <code>
* $kmsinventoryService = new Google\Service\Kmsinventory(...);
* $keyRings = $kmsinventoryService->projects_locations_keyRings;
* </code>
*/
class ProjectsLocationsKeyRings extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsKeyRings::class, 'Google_Service_Kmsinventory_Resource_ProjectsLocationsKeyRings');

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\Kmsinventory\Resource;
use Google\Service\Kmsinventory\GoogleCloudKmsInventoryV1ProtectedResourcesSummary;
/**
* The "cryptoKeys" collection of methods.
* Typical usage is:
* <code>
* $kmsinventoryService = new Google\Service\Kmsinventory(...);
* $cryptoKeys = $kmsinventoryService->projects_locations_keyRings_cryptoKeys;
* </code>
*/
class ProjectsLocationsKeyRingsCryptoKeys extends \Google\Service\Resource
{
/**
* Returns aggregate information about the resources protected by the given
* Cloud KMS CryptoKey. Only resources within the same Cloud organization as the
* key will be returned. The project that holds the key must be part of an
* organization in order for this call to succeed.
* (cryptoKeys.getProtectedResourcesSummary)
*
* @param string $name Required. The resource name of the CryptoKey.
* @param array $optParams Optional parameters.
* @return GoogleCloudKmsInventoryV1ProtectedResourcesSummary
* @throws \Google\Service\Exception
*/
public function getProtectedResourcesSummary($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getProtectedResourcesSummary', [$params], GoogleCloudKmsInventoryV1ProtectedResourcesSummary::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsKeyRingsCryptoKeys::class, 'Google_Service_Kmsinventory_Resource_ProjectsLocationsKeyRingsCryptoKeys');