Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-config_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<String>]
attr_accessor :unreachable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down