Skip to content

Commit 4847c25

Browse files
feat: Automated regeneration of datamigration v1 client (googleapis#23636)
Auto-created at 2025-07-06 10:38:38 +0000 using the toys pull request generator.
1 parent 15e958a commit 4847c25

File tree

6 files changed

+59
-3
lines changed

6 files changed

+59
-3
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148253,6 +148253,7 @@
148253148253
"/datamigration:v1/PrivateConnection/labels": labels
148254148254
"/datamigration:v1/PrivateConnection/labels/label": label
148255148255
"/datamigration:v1/PrivateConnection/name": name
148256+
"/datamigration:v1/PrivateConnection/pscInterfaceConfig": psc_interface_config
148256148257
"/datamigration:v1/PrivateConnection/satisfiesPzi": satisfies_pzi
148257148258
"/datamigration:v1/PrivateConnection/satisfiesPzs": satisfies_pzs
148258148259
"/datamigration:v1/PrivateConnection/state": state
@@ -148264,6 +148265,8 @@
148264148265
"/datamigration:v1/PrivateServiceConnectConnectivity/serviceAttachment": service_attachment
148265148266
"/datamigration:v1/PromoteMigrationJobRequest": promote_migration_job_request
148266148267
"/datamigration:v1/PromoteMigrationJobRequest/objectsFilter": objects_filter
148268+
"/datamigration:v1/PscInterfaceConfig": psc_interface_config
148269+
"/datamigration:v1/PscInterfaceConfig/networkAttachment": network_attachment
148267148270
"/datamigration:v1/RestartMigrationJobRequest": restart_migration_job_request
148268148271
"/datamigration:v1/RestartMigrationJobRequest/objectsFilter": objects_filter
148269148272
"/datamigration:v1/RestartMigrationJobRequest/restartFailedObjects": restart_failed_objects
@@ -148695,6 +148698,7 @@
148695148698
"/datamigration:v1/datamigration.projects.locations.privateConnections.create/privateConnectionId": private_connection_id
148696148699
"/datamigration:v1/datamigration.projects.locations.privateConnections.create/requestId": request_id
148697148700
"/datamigration:v1/datamigration.projects.locations.privateConnections.create/skipValidation": skip_validation
148701+
"/datamigration:v1/datamigration.projects.locations.privateConnections.create/validateOnly": validate_only
148698148702
"/datamigration:v1/datamigration.projects.locations.privateConnections.delete": delete_project_location_private_connection
148699148703
"/datamigration:v1/datamigration.projects.locations.privateConnections.delete/name": name
148700148704
"/datamigration:v1/datamigration.projects.locations.privateConnections.delete/requestId": request_id

generated/google-apis-datamigration_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-datamigration_v1
22

3+
### v0.78.0 (2025-07-06)
4+
5+
* Regenerated from discovery document revision 20250625
6+
37
### v0.77.0 (2025-06-01)
48

59
* Regenerated from discovery document revision 20250521

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4290,6 +4290,12 @@ class PrivateConnection
42904290
# @return [String]
42914291
attr_accessor :name
42924292

4293+
# The PSC Interface configuration is used to create PSC Interface between DMS's
4294+
# internal VPC and the consumer's PSC.
4295+
# Corresponds to the JSON property `pscInterfaceConfig`
4296+
# @return [Google::Apis::DatamigrationV1::PscInterfaceConfig]
4297+
attr_accessor :psc_interface_config
4298+
42934299
# Output only. Reserved for future use.
42944300
# Corresponds to the JSON property `satisfiesPzi`
42954301
# @return [Boolean]
@@ -4329,6 +4335,7 @@ def update!(**args)
43294335
@error = args[:error] if args.key?(:error)
43304336
@labels = args[:labels] if args.key?(:labels)
43314337
@name = args[:name] if args.key?(:name)
4338+
@psc_interface_config = args[:psc_interface_config] if args.key?(:psc_interface_config)
43324339
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
43334340
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
43344341
@state = args[:state] if args.key?(:state)
@@ -4397,6 +4404,28 @@ def update!(**args)
43974404
end
43984405
end
43994406

4407+
# The PSC Interface configuration is used to create PSC Interface between DMS's
4408+
# internal VPC and the consumer's PSC.
4409+
class PscInterfaceConfig
4410+
include Google::Apis::Core::Hashable
4411+
4412+
# Required. Fully qualified name of the Network Attachment that DMS will connect
4413+
# to. Format: `projects/``project``/regions/``region``/networkAttachments/``name`
4414+
# ``
4415+
# Corresponds to the JSON property `networkAttachment`
4416+
# @return [String]
4417+
attr_accessor :network_attachment
4418+
4419+
def initialize(**args)
4420+
update!(**args)
4421+
end
4422+
4423+
# Update properties of this object
4424+
def update!(**args)
4425+
@network_attachment = args[:network_attachment] if args.key?(:network_attachment)
4426+
end
4427+
end
4428+
44004429
# Request message for 'RestartMigrationJob' request.
44014430
class RestartMigrationJobRequest
44024431
include Google::Apis::Core::Hashable

generated/google-apis-datamigration_v1/lib/google/apis/datamigration_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 DatamigrationV1
1818
# Version of the google-apis-datamigration_v1 gem
19-
GEM_VERSION = "0.77.0"
19+
GEM_VERSION = "0.78.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 = "20250521"
25+
REVISION = "20250625"
2626
end
2727
end
2828
end

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
598598
include Google::Apis::Core::JsonObjectSupport
599599
end
600600

601+
class PscInterfaceConfig
602+
class Representation < Google::Apis::Core::JsonRepresentation; end
603+
604+
include Google::Apis::Core::JsonObjectSupport
605+
end
606+
601607
class RestartMigrationJobRequest
602608
class Representation < Google::Apis::Core::JsonRepresentation; end
603609

@@ -2016,6 +2022,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
20162022

20172023
hash :labels, as: 'labels'
20182024
property :name, as: 'name'
2025+
property :psc_interface_config, as: 'pscInterfaceConfig', class: Google::Apis::DatamigrationV1::PscInterfaceConfig, decorator: Google::Apis::DatamigrationV1::PscInterfaceConfig::Representation
2026+
20192027
property :satisfies_pzi, as: 'satisfiesPzi'
20202028
property :satisfies_pzs, as: 'satisfiesPzs'
20212029
property :state, as: 'state'
@@ -2047,6 +2055,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
20472055
end
20482056
end
20492057

2058+
class PscInterfaceConfig
2059+
# @private
2060+
class Representation < Google::Apis::Core::JsonRepresentation
2061+
property :network_attachment, as: 'networkAttachment'
2062+
end
2063+
end
2064+
20502065
class RestartMigrationJobRequest
20512066
# @private
20522067
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2411,6 +2411,9 @@ def list_project_location_operations(name, filter: nil, page_size: nil, page_tok
24112411
# maximum length is 40 characters.
24122412
# @param [Boolean] skip_validation
24132413
# Optional. If set to true, will skip validations.
2414+
# @param [Boolean] validate_only
2415+
# Optional. For PSC Interface only - get the tenant project before creating the
2416+
# resource.
24142417
# @param [String] fields
24152418
# Selector specifying which fields to include in a partial response.
24162419
# @param [String] quota_user
@@ -2428,7 +2431,7 @@ def list_project_location_operations(name, filter: nil, page_size: nil, page_tok
24282431
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24292432
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24302433
# @raise [Google::Apis::AuthorizationError] Authorization is required
2431-
def create_project_location_private_connection(parent, private_connection_object = nil, private_connection_id: nil, request_id: nil, skip_validation: nil, fields: nil, quota_user: nil, options: nil, &block)
2434+
def create_project_location_private_connection(parent, private_connection_object = nil, private_connection_id: nil, request_id: nil, skip_validation: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
24322435
command = make_simple_command(:post, 'v1/{+parent}/privateConnections', options)
24332436
command.request_representation = Google::Apis::DatamigrationV1::PrivateConnection::Representation
24342437
command.request_object = private_connection_object
@@ -2438,6 +2441,7 @@ def create_project_location_private_connection(parent, private_connection_object
24382441
command.query['privateConnectionId'] = private_connection_id unless private_connection_id.nil?
24392442
command.query['requestId'] = request_id unless request_id.nil?
24402443
command.query['skipValidation'] = skip_validation unless skip_validation.nil?
2444+
command.query['validateOnly'] = validate_only unless validate_only.nil?
24412445
command.query['fields'] = fields unless fields.nil?
24422446
command.query['quotaUser'] = quota_user unless quota_user.nil?
24432447
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)