Skip to content

Commit da042a3

Browse files
feat: Automated regeneration of cloudkms v1 client (#24315)
Auto-created at 2025-09-21 09:17:01 +0000 using the toys pull request generator.
1 parent 377e877 commit da042a3

File tree

4 files changed

+87
-6
lines changed

4 files changed

+87
-6
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76526,6 +76526,8 @@
7652676526
"/cloudkms:v1/cloudkms.organizations.updateKajPolicyConfig": update_organization_kaj_policy_config
7652776527
"/cloudkms:v1/cloudkms.organizations.updateKajPolicyConfig/name": name
7652876528
"/cloudkms:v1/cloudkms.organizations.updateKajPolicyConfig/updateMask": update_mask
76529+
"/cloudkms:v1/cloudkms.projects.getAutokeyConfig": get_project_autokey_config
76530+
"/cloudkms:v1/cloudkms.projects.getAutokeyConfig/name": name
7652976531
"/cloudkms:v1/cloudkms.projects.getKajPolicyConfig": get_project_kaj_policy_config
7653076532
"/cloudkms:v1/cloudkms.projects.getKajPolicyConfig/name": name
7653176533
"/cloudkms:v1/cloudkms.projects.locations.ekmConfig.getIamPolicy": get_project_location_ekm_config_iam_policy
@@ -76693,6 +76695,9 @@
7669376695
"/cloudkms:v1/cloudkms.projects.showEffectiveKeyAccessJustificationsEnrollmentConfig/project": project
7669476696
"/cloudkms:v1/cloudkms.projects.showEffectiveKeyAccessJustificationsPolicyConfig": show_project_effective_key_access_justifications_policy_config
7669576697
"/cloudkms:v1/cloudkms.projects.showEffectiveKeyAccessJustificationsPolicyConfig/project": project
76698+
"/cloudkms:v1/cloudkms.projects.updateAutokeyConfig": update_project_autokey_config
76699+
"/cloudkms:v1/cloudkms.projects.updateAutokeyConfig/name": name
76700+
"/cloudkms:v1/cloudkms.projects.updateAutokeyConfig/updateMask": update_mask
7669676701
"/cloudkms:v1/cloudkms.projects.updateKajPolicyConfig": update_project_kaj_policy_config
7669776702
"/cloudkms:v1/cloudkms.projects.updateKajPolicyConfig/name": name
7669876703
"/cloudkms:v1/cloudkms.projects.updateKajPolicyConfig/updateMask": update_mask

generated/google-apis-cloudkms_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-cloudkms_v1
22

3+
### v0.62.0 (2025-09-21)
4+
5+
* Regenerated from discovery document revision 20250911
6+
37
### v0.61.0 (2025-08-24)
48

59
* Regenerated from discovery document revision 20250818

generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudkmsV1
1818
# Version of the google-apis-cloudkms_v1 gem
19-
GEM_VERSION = "0.61.0"
19+
GEM_VERSION = "0.62.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250818"
25+
REVISION = "20250911"
2626
end
2727
end
2828
end

generated/google-apis-cloudkms_v1/lib/google/apis/cloudkms_v1/service.rb

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def initialize
5252
@batch_path = 'batch'
5353
end
5454

55-
# Returns the AutokeyConfig for a folder.
55+
# Returns the AutokeyConfig for a folder or project.
5656
# @param [String] name
5757
# Required. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
58-
# autokeyConfig`.
58+
# autokeyConfig` or `projects/`PROJECT_NUMBER`/autokeyConfig`.
5959
# @param [String] fields
6060
# Selector specifying which fields to include in a partial response.
6161
# @param [String] quota_user
@@ -262,6 +262,37 @@ def update_organization_kaj_policy_config(name, key_access_justifications_policy
262262
execute_or_queue_command(command, &block)
263263
end
264264

265+
# Returns the AutokeyConfig for a folder or project.
266+
# @param [String] name
267+
# Required. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
268+
# autokeyConfig` or `projects/`PROJECT_NUMBER`/autokeyConfig`.
269+
# @param [String] fields
270+
# Selector specifying which fields to include in a partial response.
271+
# @param [String] quota_user
272+
# Available to use for quota purposes for server-side applications. Can be any
273+
# arbitrary string assigned to a user, but should not exceed 40 characters.
274+
# @param [Google::Apis::RequestOptions] options
275+
# Request-specific options
276+
#
277+
# @yield [result, err] Result & error if block supplied
278+
# @yieldparam result [Google::Apis::CloudkmsV1::AutokeyConfig] parsed result object
279+
# @yieldparam err [StandardError] error object if request failed
280+
#
281+
# @return [Google::Apis::CloudkmsV1::AutokeyConfig]
282+
#
283+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
284+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
285+
# @raise [Google::Apis::AuthorizationError] Authorization is required
286+
def get_project_autokey_config(name, fields: nil, quota_user: nil, options: nil, &block)
287+
command = make_simple_command(:get, 'v1/{+name}', options)
288+
command.response_representation = Google::Apis::CloudkmsV1::AutokeyConfig::Representation
289+
command.response_class = Google::Apis::CloudkmsV1::AutokeyConfig
290+
command.params['name'] = name unless name.nil?
291+
command.query['fields'] = fields unless fields.nil?
292+
command.query['quotaUser'] = quota_user unless quota_user.nil?
293+
execute_or_queue_command(command, &block)
294+
end
295+
265296
# Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/
266297
# projects.
267298
# @param [String] name
@@ -389,6 +420,47 @@ def show_project_effective_key_access_justifications_policy_config(project, fiel
389420
execute_or_queue_command(command, &block)
390421
end
391422

423+
# Updates the AutokeyConfig for a folder. The caller must have both `cloudkms.
424+
# autokeyConfigs.update` permission on the parent folder and `cloudkms.
425+
# cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle
426+
# creation in the folder's descendant projects will use this configuration to
427+
# determine where to create the resulting CryptoKey.
428+
# @param [String] name
429+
# Identifier. Name of the AutokeyConfig resource, e.g. `folders/`FOLDER_NUMBER`/
430+
# autokeyConfig` `projects/`PROJECT_NUMBER`/autokeyConfig`.
431+
# @param [Google::Apis::CloudkmsV1::AutokeyConfig] autokey_config_object
432+
# @param [String] update_mask
433+
# Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`.
434+
# @param [String] fields
435+
# Selector specifying which fields to include in a partial response.
436+
# @param [String] quota_user
437+
# Available to use for quota purposes for server-side applications. Can be any
438+
# arbitrary string assigned to a user, but should not exceed 40 characters.
439+
# @param [Google::Apis::RequestOptions] options
440+
# Request-specific options
441+
#
442+
# @yield [result, err] Result & error if block supplied
443+
# @yieldparam result [Google::Apis::CloudkmsV1::AutokeyConfig] parsed result object
444+
# @yieldparam err [StandardError] error object if request failed
445+
#
446+
# @return [Google::Apis::CloudkmsV1::AutokeyConfig]
447+
#
448+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450+
# @raise [Google::Apis::AuthorizationError] Authorization is required
451+
def update_project_autokey_config(name, autokey_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
452+
command = make_simple_command(:patch, 'v1/{+name}', options)
453+
command.request_representation = Google::Apis::CloudkmsV1::AutokeyConfig::Representation
454+
command.request_object = autokey_config_object
455+
command.response_representation = Google::Apis::CloudkmsV1::AutokeyConfig::Representation
456+
command.response_class = Google::Apis::CloudkmsV1::AutokeyConfig
457+
command.params['name'] = name unless name.nil?
458+
command.query['updateMask'] = update_mask unless update_mask.nil?
459+
command.query['fields'] = fields unless fields.nil?
460+
command.query['quotaUser'] = quota_user unless quota_user.nil?
461+
execute_or_queue_command(command, &block)
462+
end
463+
392464
# Updates the KeyAccessJustificationsPolicyConfig for a given organization/
393465
# folder/projects.
394466
# @param [String] name
@@ -526,8 +598,8 @@ def get_project_location_ekm_config(name, fields: nil, quota_user: nil, options:
526598
# @param [String] name
527599
# The resource that owns the locations collection, if applicable.
528600
# @param [Array<String>, String] extra_location_types
529-
# Optional. Do not use this field. It is unsupported and is ignored unless
530-
# explicitly documented otherwise. This is primarily for internal usage.
601+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
602+
# field which is primarily intended for internal usage.
531603
# @param [String] filter
532604
# A filter to narrow down results to a preferred subset. The filtering language
533605
# accepts strings like `"displayName=tokyo"`, and is documented in more detail

0 commit comments

Comments
 (0)