diff --git a/src/CloudKMS.php b/src/CloudKMS.php index 27bfb4229c..84a053d05f 100644 --- a/src/CloudKMS.php +++ b/src/CloudKMS.php @@ -452,6 +452,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'type' => 'string', ], ], + ],'macSign' => [ + 'path' => 'v1/{+name}:macSign', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'macVerify' => [ + 'path' => 'v1/{+name}:macVerify', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], ],'patch' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', diff --git a/src/CloudKMS/MacSignRequest.php b/src/CloudKMS/MacSignRequest.php new file mode 100644 index 0000000000..fa51c12109 --- /dev/null +++ b/src/CloudKMS/MacSignRequest.php @@ -0,0 +1,44 @@ +data = $data; + } + public function getData() + { + return $this->data; + } + public function setDataCrc32c($dataCrc32c) + { + $this->dataCrc32c = $dataCrc32c; + } + 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'); diff --git a/src/CloudKMS/MacSignResponse.php b/src/CloudKMS/MacSignResponse.php new file mode 100644 index 0000000000..99f94b0877 --- /dev/null +++ b/src/CloudKMS/MacSignResponse.php @@ -0,0 +1,71 @@ +mac = $mac; + } + public function getMac() + { + return $this->mac; + } + public function setMacCrc32c($macCrc32c) + { + $this->macCrc32c = $macCrc32c; + } + public function getMacCrc32c() + { + return $this->macCrc32c; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProtectionLevel($protectionLevel) + { + $this->protectionLevel = $protectionLevel; + } + public function getProtectionLevel() + { + return $this->protectionLevel; + } + public function setVerifiedDataCrc32c($verifiedDataCrc32c) + { + $this->verifiedDataCrc32c = $verifiedDataCrc32c; + } + 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'); diff --git a/src/CloudKMS/MacVerifyRequest.php b/src/CloudKMS/MacVerifyRequest.php new file mode 100644 index 0000000000..235c63813f --- /dev/null +++ b/src/CloudKMS/MacVerifyRequest.php @@ -0,0 +1,62 @@ +data = $data; + } + public function getData() + { + return $this->data; + } + public function setDataCrc32c($dataCrc32c) + { + $this->dataCrc32c = $dataCrc32c; + } + public function getDataCrc32c() + { + return $this->dataCrc32c; + } + public function setMac($mac) + { + $this->mac = $mac; + } + public function getMac() + { + return $this->mac; + } + public function setMacCrc32c($macCrc32c) + { + $this->macCrc32c = $macCrc32c; + } + 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'); diff --git a/src/CloudKMS/MacVerifyResponse.php b/src/CloudKMS/MacVerifyResponse.php new file mode 100644 index 0000000000..3a97b777c4 --- /dev/null +++ b/src/CloudKMS/MacVerifyResponse.php @@ -0,0 +1,80 @@ +name = $name; + } + public function getName() + { + return $this->name; + } + public function setProtectionLevel($protectionLevel) + { + $this->protectionLevel = $protectionLevel; + } + public function getProtectionLevel() + { + return $this->protectionLevel; + } + public function setSuccess($success) + { + $this->success = $success; + } + public function getSuccess() + { + return $this->success; + } + public function setVerifiedDataCrc32c($verifiedDataCrc32c) + { + $this->verifiedDataCrc32c = $verifiedDataCrc32c; + } + public function getVerifiedDataCrc32c() + { + return $this->verifiedDataCrc32c; + } + public function setVerifiedMacCrc32c($verifiedMacCrc32c) + { + $this->verifiedMacCrc32c = $verifiedMacCrc32c; + } + public function getVerifiedMacCrc32c() + { + return $this->verifiedMacCrc32c; + } + public function setVerifiedSuccessIntegrity($verifiedSuccessIntegrity) + { + $this->verifiedSuccessIntegrity = $verifiedSuccessIntegrity; + } + 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'); diff --git a/src/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php b/src/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php index 055828673f..21cc4b186d 100644 --- a/src/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php +++ b/src/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php @@ -25,6 +25,10 @@ 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\RestoreCryptoKeyVersionRequest; @@ -186,6 +190,40 @@ public function listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions($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 + */ + 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 + */ + 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 diff --git a/src/CloudTalentSolution/Resource/ProjectsTenantsJobs.php b/src/CloudTalentSolution/Resource/ProjectsTenantsJobs.php index e8f7448bec..3cbb6dccb1 100644 --- a/src/CloudTalentSolution/Resource/ProjectsTenantsJobs.php +++ b/src/CloudTalentSolution/Resource/ProjectsTenantsJobs.php @@ -150,11 +150,14 @@ public function get($name, $optParams = []) * * @opt_param string filter Required. The filter string specifies the jobs to be * enumerated. Supported operator: =, AND The fields eligible for filtering are: - * * `companyName` (Required) * `requisitionId` * `status` Available values: - * OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. Sample Query: - * * companyName = "projects/foo/tenants/bar/companies/baz" * companyName = - * "projects/foo/tenants/bar/companies/baz" AND requisitionId = "req-1" * - * companyName = "projects/foo/tenants/bar/companies/baz" AND status = "EXPIRED" + * * `companyName` * `requisitionId` * `status` Available values: OPEN, EXPIRED, + * ALL. Defaults to OPEN if no value is specified. At least one of `companyName` + * and `requisitionId` must present or an INVALID_ARGUMENT error is thrown. + * Sample Query: * companyName = "projects/foo/tenants/bar/companies/baz" * + * companyName = "projects/foo/tenants/bar/companies/baz" AND requisitionId = + * "req-1" * companyName = "projects/foo/tenants/bar/companies/baz" AND status = + * "EXPIRED" * requisitionId = "req-1" * requisitionId = "req-1" AND status = + * "EXPIRED" * @opt_param string jobView The desired job attributes returned for jobs in the * search response. Defaults to JobView.JOB_VIEW_FULL if no value is specified. * @opt_param int pageSize The maximum number of jobs to be returned per page of diff --git a/src/Container/ClusterAutoscaling.php b/src/Container/ClusterAutoscaling.php index 7cf6557ab3..eced85fb52 100644 --- a/src/Container/ClusterAutoscaling.php +++ b/src/Container/ClusterAutoscaling.php @@ -23,6 +23,7 @@ class ClusterAutoscaling extends \Google\Collection public $autoprovisioningLocations; protected $autoprovisioningNodePoolDefaultsType = AutoprovisioningNodePoolDefaults::class; protected $autoprovisioningNodePoolDefaultsDataType = ''; + public $autoscalingProfile; public $enableNodeAutoprovisioning; protected $resourceLimitsType = ResourceLimit::class; protected $resourceLimitsDataType = 'array'; @@ -49,6 +50,14 @@ public function getAutoprovisioningNodePoolDefaults() { return $this->autoprovisioningNodePoolDefaults; } + public function setAutoscalingProfile($autoscalingProfile) + { + $this->autoscalingProfile = $autoscalingProfile; + } + public function getAutoscalingProfile() + { + return $this->autoscalingProfile; + } public function setEnableNodeAutoprovisioning($enableNodeAutoprovisioning) { $this->enableNodeAutoprovisioning = $enableNodeAutoprovisioning; diff --git a/synth.metadata b/synth.metadata index ee02781022..656f2785c8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-php-client-services.git", - "sha": "cdce69c7a279be9574f16cc9297c0ae14f0a68ee" + "sha": "9c653d59ab16b2d6b970de862b406535ff0eb7ee" } }, { "git": { "name": "discovery-artifact-manager", "remote": "https://github.com/googleapis/discovery-artifact-manager.git", - "sha": "54d5b833bfbc45884ced254b76d9e936875385c3" + "sha": "c542af134eaf20b46c56e52b861065c2b120be16" } } ]