Skip to content

Commit 9e2ab61

Browse files
feat: Automated regeneration of config v1 client (googleapis#25267)
Auto-created at 2025-12-14 11:22:02 +0000 using the toys pull request generator.
1 parent d00249b commit 9e2ab61

File tree

6 files changed

+141
-9
lines changed

6 files changed

+141
-9
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132254,6 +132254,10 @@
132254132254
"/config:v1/AuditLogConfig/exemptedMembers": exempted_members
132255132255
"/config:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
132256132256
"/config:v1/AuditLogConfig/logType": log_type
132257+
"/config:v1/AutoMigrationConfig": auto_migration_config
132258+
"/config:v1/AutoMigrationConfig/autoMigrationEnabled": auto_migration_enabled
132259+
"/config:v1/AutoMigrationConfig/name": name
132260+
"/config:v1/AutoMigrationConfig/updateTime": update_time
132257132261
"/config:v1/Binding": binding
132258132262
"/config:v1/Binding/condition": condition
132259132263
"/config:v1/Binding/members": members
@@ -132619,6 +132623,8 @@
132619132623
"/config:v1/config.projects.locations.deployments.unlock/name": name
132620132624
"/config:v1/config.projects.locations.get": get_project_location
132621132625
"/config:v1/config.projects.locations.get/name": name
132626+
"/config:v1/config.projects.locations.getAutoMigrationConfig": get_project_location_auto_migration_config
132627+
"/config:v1/config.projects.locations.getAutoMigrationConfig/name": name
132622132628
"/config:v1/config.projects.locations.list": list_project_locations
132623132629
"/config:v1/config.projects.locations.list/extraLocationTypes": extra_location_types
132624132630
"/config:v1/config.projects.locations.list/filter": filter
@@ -132678,6 +132684,9 @@
132678132684
"/config:v1/config.projects.locations.terraformVersions.list/pageSize": page_size
132679132685
"/config:v1/config.projects.locations.terraformVersions.list/pageToken": page_token
132680132686
"/config:v1/config.projects.locations.terraformVersions.list/parent": parent
132687+
"/config:v1/config.projects.locations.updateAutoMigrationConfig": update_project_location_auto_migration_config
132688+
"/config:v1/config.projects.locations.updateAutoMigrationConfig/name": name
132689+
"/config:v1/config.projects.locations.updateAutoMigrationConfig/updateMask": update_mask
132681132690
"/config:v1/fields": fields
132682132691
"/config:v1/key": key
132683132692
"/config:v1/quotaUser": quota_user

generated/google-apis-config_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-config_v1
22

3+
### v0.16.0 (2025-12-14)
4+
5+
* Regenerated from discovery document revision 20251202
6+
37
### v0.15.0 (2025-11-09)
48

59
* Regenerated from discovery document revision 20251029

generated/google-apis-config_v1/lib/google/apis/config_v1/classes.rb

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,39 @@ def update!(**args)
126126
end
127127
end
128128

129+
# AutoMigrationConfig contains the automigration configuration for a project.
130+
class AutoMigrationConfig
131+
include Google::Apis::Core::Hashable
132+
133+
# Optional. Whether the auto migration is enabled for the project.
134+
# Corresponds to the JSON property `autoMigrationEnabled`
135+
# @return [Boolean]
136+
attr_accessor :auto_migration_enabled
137+
alias_method :auto_migration_enabled?, :auto_migration_enabled
138+
139+
# Identifier. The name of the AutoMigrationConfig. Format: 'projects/`project_id`
140+
# /locations/`location`/AutoMigrationConfig'.
141+
# Corresponds to the JSON property `name`
142+
# @return [String]
143+
attr_accessor :name
144+
145+
# Output only. Time the AutoMigrationConfig was last updated.
146+
# Corresponds to the JSON property `updateTime`
147+
# @return [String]
148+
attr_accessor :update_time
149+
150+
def initialize(**args)
151+
update!(**args)
152+
end
153+
154+
# Update properties of this object
155+
def update!(**args)
156+
@auto_migration_enabled = args[:auto_migration_enabled] if args.key?(:auto_migration_enabled)
157+
@name = args[:name] if args.key?(:name)
158+
@update_time = args[:update_time] if args.key?(:update_time)
159+
end
160+
end
161+
129162
# Associates `members`, or principals, with a `role`.
130163
class Binding
131164
include Google::Apis::Core::Hashable
@@ -744,8 +777,9 @@ class ListOperationsResponse
744777
attr_accessor :operations
745778

746779
# Unordered list. Unreachable resources. Populated when the request sets `
747-
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
748-
# when attempting to list all resources across all supported locations.
780+
# ListOperationsRequest.return_partial_success` and reads across collections.
781+
# For example, when attempting to list all resources across all supported
782+
# locations.
749783
# Corresponds to the JSON property `unreachable`
750784
# @return [Array<String>]
751785
attr_accessor :unreachable

generated/google-apis-config_v1/lib/google/apis/config_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 ConfigV1
1818
# Version of the google-apis-config_v1 gem
19-
GEM_VERSION = "0.15.0"
19+
GEM_VERSION = "0.16.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 = "20251029"
25+
REVISION = "20251202"
2626
end
2727
end
2828
end

generated/google-apis-config_v1/lib/google/apis/config_v1/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4040
include Google::Apis::Core::JsonObjectSupport
4141
end
4242

43+
class AutoMigrationConfig
44+
class Representation < Google::Apis::Core::JsonRepresentation; end
45+
46+
include Google::Apis::Core::JsonObjectSupport
47+
end
48+
4349
class Binding
4450
class Representation < Google::Apis::Core::JsonRepresentation; end
4551

@@ -391,6 +397,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
391397
end
392398
end
393399

400+
class AutoMigrationConfig
401+
# @private
402+
class Representation < Google::Apis::Core::JsonRepresentation
403+
property :auto_migration_enabled, as: 'autoMigrationEnabled'
404+
property :name, as: 'name'
405+
property :update_time, as: 'updateTime'
406+
end
407+
end
408+
394409
class Binding
395410
# @private
396411
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 75 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,37 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
8181
execute_or_queue_command(command, &block)
8282
end
8383

84+
# Get the AutoMigrationConfig for a given project and location.
85+
# @param [String] name
86+
# Required. The name of the AutoMigrationConfig. Format: 'projects/`project_id`/
87+
# locations/`location`/AutoMigrationConfig'.
88+
# @param [String] fields
89+
# Selector specifying which fields to include in a partial response.
90+
# @param [String] quota_user
91+
# Available to use for quota purposes for server-side applications. Can be any
92+
# arbitrary string assigned to a user, but should not exceed 40 characters.
93+
# @param [Google::Apis::RequestOptions] options
94+
# Request-specific options
95+
#
96+
# @yield [result, err] Result & error if block supplied
97+
# @yieldparam result [Google::Apis::ConfigV1::AutoMigrationConfig] parsed result object
98+
# @yieldparam err [StandardError] error object if request failed
99+
#
100+
# @return [Google::Apis::ConfigV1::AutoMigrationConfig]
101+
#
102+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104+
# @raise [Google::Apis::AuthorizationError] Authorization is required
105+
def get_project_location_auto_migration_config(name, fields: nil, quota_user: nil, options: nil, &block)
106+
command = make_simple_command(:get, 'v1/{+name}', options)
107+
command.response_representation = Google::Apis::ConfigV1::AutoMigrationConfig::Representation
108+
command.response_class = Google::Apis::ConfigV1::AutoMigrationConfig
109+
command.params['name'] = name unless name.nil?
110+
command.query['fields'] = fields unless fields.nil?
111+
command.query['quotaUser'] = quota_user unless quota_user.nil?
112+
execute_or_queue_command(command, &block)
113+
end
114+
84115
# Lists information about the supported locations for this service.
85116
# @param [String] name
86117
# The resource that owns the locations collection, if applicable.
@@ -128,6 +159,44 @@ def list_project_locations(name, extra_location_types: nil, filter: nil, page_si
128159
execute_or_queue_command(command, &block)
129160
end
130161

162+
# Updates the AutoMigrationConfig for a given project and location.
163+
# @param [String] name
164+
# Identifier. The name of the AutoMigrationConfig. Format: 'projects/`project_id`
165+
# /locations/`location`/AutoMigrationConfig'.
166+
# @param [Google::Apis::ConfigV1::AutoMigrationConfig] auto_migration_config_object
167+
# @param [String] update_mask
168+
# Optional. The update mask applies to the resource. See google.protobuf.
169+
# FieldMask.
170+
# @param [String] fields
171+
# Selector specifying which fields to include in a partial response.
172+
# @param [String] quota_user
173+
# Available to use for quota purposes for server-side applications. Can be any
174+
# arbitrary string assigned to a user, but should not exceed 40 characters.
175+
# @param [Google::Apis::RequestOptions] options
176+
# Request-specific options
177+
#
178+
# @yield [result, err] Result & error if block supplied
179+
# @yieldparam result [Google::Apis::ConfigV1::Operation] parsed result object
180+
# @yieldparam err [StandardError] error object if request failed
181+
#
182+
# @return [Google::Apis::ConfigV1::Operation]
183+
#
184+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
185+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
186+
# @raise [Google::Apis::AuthorizationError] Authorization is required
187+
def update_project_location_auto_migration_config(name, auto_migration_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
188+
command = make_simple_command(:patch, 'v1/{+name}', options)
189+
command.request_representation = Google::Apis::ConfigV1::AutoMigrationConfig::Representation
190+
command.request_object = auto_migration_config_object
191+
command.response_representation = Google::Apis::ConfigV1::Operation::Representation
192+
command.response_class = Google::Apis::ConfigV1::Operation
193+
command.params['name'] = name unless name.nil?
194+
command.query['updateMask'] = update_mask unless update_mask.nil?
195+
command.query['fields'] = fields unless fields.nil?
196+
command.query['quotaUser'] = quota_user unless quota_user.nil?
197+
execute_or_queue_command(command, &block)
198+
end
199+
131200
# Creates a Deployment.
132201
# @param [String] parent
133202
# Required. The parent in whose context the Deployment is created. The parent
@@ -1018,11 +1087,12 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
10181087
# The standard list page token.
10191088
# @param [Boolean] return_partial_success
10201089
# When set to `true`, operations that are reachable are returned as normal, and
1021-
# those that are unreachable are returned in the [ListOperationsResponse.
1022-
# unreachable] field. This can only be `true` when reading across collections e.
1023-
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
1024-
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
1025-
# explicitly documented otherwise in service or product specific documentation.
1090+
# those that are unreachable are returned in the ListOperationsResponse.
1091+
# unreachable field. This can only be `true` when reading across collections.
1092+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
1093+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
1094+
# if set unless explicitly documented otherwise in service or product specific
1095+
# documentation.
10261096
# @param [String] fields
10271097
# Selector specifying which fields to include in a partial response.
10281098
# @param [String] quota_user

0 commit comments

Comments
 (0)