diff --git a/api_names_out.yaml b/api_names_out.yaml index 8e625a4f606..c3d7f568ead 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -131770,6 +131770,10 @@ "/config:v1/AuditLogConfig/exemptedMembers": exempted_members "/config:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/config:v1/AuditLogConfig/logType": log_type +"/config:v1/AutoMigrationConfig": auto_migration_config +"/config:v1/AutoMigrationConfig/autoMigrationEnabled": auto_migration_enabled +"/config:v1/AutoMigrationConfig/name": name +"/config:v1/AutoMigrationConfig/updateTime": update_time "/config:v1/Binding": binding "/config:v1/Binding/condition": condition "/config:v1/Binding/members": members @@ -132135,6 +132139,8 @@ "/config:v1/config.projects.locations.deployments.unlock/name": name "/config:v1/config.projects.locations.get": get_project_location "/config:v1/config.projects.locations.get/name": name +"/config:v1/config.projects.locations.getAutoMigrationConfig": get_project_location_auto_migration_config +"/config:v1/config.projects.locations.getAutoMigrationConfig/name": name "/config:v1/config.projects.locations.list": list_project_locations "/config:v1/config.projects.locations.list/extraLocationTypes": extra_location_types "/config:v1/config.projects.locations.list/filter": filter @@ -132194,6 +132200,9 @@ "/config:v1/config.projects.locations.terraformVersions.list/pageSize": page_size "/config:v1/config.projects.locations.terraformVersions.list/pageToken": page_token "/config:v1/config.projects.locations.terraformVersions.list/parent": parent +"/config:v1/config.projects.locations.updateAutoMigrationConfig": update_project_location_auto_migration_config +"/config:v1/config.projects.locations.updateAutoMigrationConfig/name": name +"/config:v1/config.projects.locations.updateAutoMigrationConfig/updateMask": update_mask "/config:v1/fields": fields "/config:v1/key": key "/config:v1/quotaUser": quota_user diff --git a/generated/google-apis-config_v1/CHANGELOG.md b/generated/google-apis-config_v1/CHANGELOG.md index fd458b8ffa0..9cbd2148570 100644 --- a/generated/google-apis-config_v1/CHANGELOG.md +++ b/generated/google-apis-config_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-config_v1 +### v0.16.0 (2025-12-14) + +* Regenerated from discovery document revision 20251202 + ### v0.15.0 (2025-11-09) * Regenerated from discovery document revision 20251029 diff --git a/generated/google-apis-config_v1/lib/google/apis/config_v1/classes.rb b/generated/google-apis-config_v1/lib/google/apis/config_v1/classes.rb index c85728795ee..89c3e39e2a4 100644 --- a/generated/google-apis-config_v1/lib/google/apis/config_v1/classes.rb +++ b/generated/google-apis-config_v1/lib/google/apis/config_v1/classes.rb @@ -126,6 +126,39 @@ def update!(**args) end end + # AutoMigrationConfig contains the automigration configuration for a project. + class AutoMigrationConfig + include Google::Apis::Core::Hashable + + # Optional. Whether the auto migration is enabled for the project. + # Corresponds to the JSON property `autoMigrationEnabled` + # @return [Boolean] + attr_accessor :auto_migration_enabled + alias_method :auto_migration_enabled?, :auto_migration_enabled + + # Identifier. The name of the AutoMigrationConfig. Format: 'projects/`project_id` + # /locations/`location`/AutoMigrationConfig'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Time the AutoMigrationConfig was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_migration_enabled = args[:auto_migration_enabled] if args.key?(:auto_migration_enabled) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + # Associates `members`, or principals, with a `role`. class Binding include Google::Apis::Core::Hashable @@ -744,8 +777,9 @@ class ListOperationsResponse attr_accessor :operations # Unordered list. Unreachable resources. Populated when the request sets ` - # ListOperationsRequest.return_partial_success` and reads across collections e.g. - # when attempting to list all resources across all supported locations. + # ListOperationsRequest.return_partial_success` and reads across collections. + # For example, when attempting to list all resources across all supported + # locations. # Corresponds to the JSON property `unreachable` # @return [Array] attr_accessor :unreachable diff --git a/generated/google-apis-config_v1/lib/google/apis/config_v1/gem_version.rb b/generated/google-apis-config_v1/lib/google/apis/config_v1/gem_version.rb index 63052156bcf..ea5b4af11f0 100644 --- a/generated/google-apis-config_v1/lib/google/apis/config_v1/gem_version.rb +++ b/generated/google-apis-config_v1/lib/google/apis/config_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ConfigV1 # Version of the google-apis-config_v1 gem - GEM_VERSION = "0.15.0" + GEM_VERSION = "0.16.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251029" + REVISION = "20251202" end end end diff --git a/generated/google-apis-config_v1/lib/google/apis/config_v1/representations.rb b/generated/google-apis-config_v1/lib/google/apis/config_v1/representations.rb index 6a4715a548d..3f3d365dbb0 100644 --- a/generated/google-apis-config_v1/lib/google/apis/config_v1/representations.rb +++ b/generated/google-apis-config_v1/lib/google/apis/config_v1/representations.rb @@ -40,6 +40,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class AutoMigrationConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end @@ -391,6 +397,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class AutoMigrationConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auto_migration_enabled, as: 'autoMigrationEnabled' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-config_v1/lib/google/apis/config_v1/service.rb b/generated/google-apis-config_v1/lib/google/apis/config_v1/service.rb index 9070e71d089..58166414619 100644 --- a/generated/google-apis-config_v1/lib/google/apis/config_v1/service.rb +++ b/generated/google-apis-config_v1/lib/google/apis/config_v1/service.rb @@ -81,6 +81,37 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc execute_or_queue_command(command, &block) end + # Get the AutoMigrationConfig for a given project and location. + # @param [String] name + # Required. The name of the AutoMigrationConfig. Format: 'projects/`project_id`/ + # locations/`location`/AutoMigrationConfig'. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ConfigV1::AutoMigrationConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ConfigV1::AutoMigrationConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_auto_migration_config(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ConfigV1::AutoMigrationConfig::Representation + command.response_class = Google::Apis::ConfigV1::AutoMigrationConfig + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists information about the supported locations for this service. # @param [String] name # 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 execute_or_queue_command(command, &block) end + # Updates the AutoMigrationConfig for a given project and location. + # @param [String] name + # Identifier. The name of the AutoMigrationConfig. Format: 'projects/`project_id` + # /locations/`location`/AutoMigrationConfig'. + # @param [Google::Apis::ConfigV1::AutoMigrationConfig] auto_migration_config_object + # @param [String] update_mask + # Optional. The update mask applies to the resource. See google.protobuf. + # FieldMask. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ConfigV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ConfigV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_location_auto_migration_config(name, auto_migration_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::ConfigV1::AutoMigrationConfig::Representation + command.request_object = auto_migration_config_object + command.response_representation = Google::Apis::ConfigV1::Operation::Representation + command.response_class = Google::Apis::ConfigV1::Operation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a Deployment. # @param [String] parent # 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: # The standard list page token. # @param [Boolean] return_partial_success # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the [ListOperationsResponse. - # unreachable] field. This can only be `true` when reading across collections e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user