Skip to content

Commit f5b05e2

Browse files
feat: Automated regeneration of datamigration v1 client (googleapis#24201)
Auto-created at 2025-09-07 10:02:04 +0000 using the toys pull request generator.
1 parent ca049d3 commit f5b05e2

File tree

5 files changed

+78
-2
lines changed

5 files changed

+78
-2
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151036,7 +151036,9 @@
151036151036
"/datamigration:v1/SqlServerConnectionProfile": sql_server_connection_profile
151037151037
"/datamigration:v1/SqlServerConnectionProfile/backups": backups
151038151038
"/datamigration:v1/SqlServerConnectionProfile/cloudSqlId": cloud_sql_id
151039+
"/datamigration:v1/SqlServerConnectionProfile/cloudSqlProjectId": cloud_sql_project_id
151039151040
"/datamigration:v1/SqlServerConnectionProfile/database": database
151041+
"/datamigration:v1/SqlServerConnectionProfile/dbmPort": dbm_port
151040151042
"/datamigration:v1/SqlServerConnectionProfile/forwardSshConnectivity": forward_ssh_connectivity
151041151043
"/datamigration:v1/SqlServerConnectionProfile/host": host
151042151044
"/datamigration:v1/SqlServerConnectionProfile/password": password
@@ -151047,6 +151049,9 @@
151047151049
"/datamigration:v1/SqlServerConnectionProfile/ssl": ssl
151048151050
"/datamigration:v1/SqlServerConnectionProfile/staticIpConnectivity": static_ip_connectivity
151049151051
"/datamigration:v1/SqlServerConnectionProfile/username": username
151052+
"/datamigration:v1/SqlServerDagConfig": sql_server_dag_config
151053+
"/datamigration:v1/SqlServerDagConfig/linkedServer": linked_server
151054+
"/datamigration:v1/SqlServerDagConfig/sourceAg": source_ag
151050151055
"/datamigration:v1/SqlServerDatabaseBackup": sql_server_database_backup
151051151056
"/datamigration:v1/SqlServerDatabaseBackup/database": database
151052151057
"/datamigration:v1/SqlServerDatabaseBackup/encryptionOptions": encryption_options
@@ -151056,6 +151061,7 @@
151056151061
"/datamigration:v1/SqlServerEncryptionOptions/pvkPath": pvk_path
151057151062
"/datamigration:v1/SqlServerHomogeneousMigrationJobConfig": sql_server_homogeneous_migration_job_config
151058151063
"/datamigration:v1/SqlServerHomogeneousMigrationJobConfig/backupFilePattern": backup_file_pattern
151064+
"/datamigration:v1/SqlServerHomogeneousMigrationJobConfig/dagConfig": dag_config
151059151065
"/datamigration:v1/SqlServerHomogeneousMigrationJobConfig/databaseBackups": database_backups
151060151066
"/datamigration:v1/SqlServerHomogeneousMigrationJobConfig/databaseBackups/database_backup": database_backup
151061151067
"/datamigration:v1/SqlServerHomogeneousMigrationJobConfig/promoteWhenReady": promote_when_ready

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.80.0 (2025-09-07)
4+
5+
* Regenerated from discovery document revision 20250826
6+
37
### v0.79.0 (2025-08-24)
48

59
* Regenerated from discovery document revision 20250815

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5326,11 +5326,22 @@ class SqlServerConnectionProfile
53265326
# @return [String]
53275327
attr_accessor :cloud_sql_id
53285328

5329+
# Optional. The project id of the Cloud SQL instance. If not provided, the
5330+
# project id of the connection profile will be used.
5331+
# Corresponds to the JSON property `cloudSqlProjectId`
5332+
# @return [String]
5333+
attr_accessor :cloud_sql_project_id
5334+
53295335
# Required. The name of the specific database within the host.
53305336
# Corresponds to the JSON property `database`
53315337
# @return [String]
53325338
attr_accessor :database
53335339

5340+
# Optional. The Database Mirroring (DBM) port of the source SQL Server instance.
5341+
# Corresponds to the JSON property `dbmPort`
5342+
# @return [Fixnum]
5343+
attr_accessor :dbm_port
5344+
53345345
# Forward SSH Tunnel connectivity.
53355346
# Corresponds to the JSON property `forwardSshConnectivity`
53365347
# @return [Google::Apis::DatamigrationV1::ForwardSshTunnelConnectivity]
@@ -5398,7 +5409,9 @@ def initialize(**args)
53985409
def update!(**args)
53995410
@backups = args[:backups] if args.key?(:backups)
54005411
@cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
5412+
@cloud_sql_project_id = args[:cloud_sql_project_id] if args.key?(:cloud_sql_project_id)
54015413
@database = args[:database] if args.key?(:database)
5414+
@dbm_port = args[:dbm_port] if args.key?(:dbm_port)
54025415
@forward_ssh_connectivity = args[:forward_ssh_connectivity] if args.key?(:forward_ssh_connectivity)
54035416
@host = args[:host] if args.key?(:host)
54045417
@password = args[:password] if args.key?(:password)
@@ -5412,6 +5425,34 @@ def update!(**args)
54125425
end
54135426
end
54145427

5428+
# Configuration for distributed availability group (DAG) for the SQL Server
5429+
# homogeneous migration.
5430+
class SqlServerDagConfig
5431+
include Google::Apis::Core::Hashable
5432+
5433+
# Required. The name of the linked server that points to the source SQL Server
5434+
# instance. Only used by DAG migrations.
5435+
# Corresponds to the JSON property `linkedServer`
5436+
# @return [String]
5437+
attr_accessor :linked_server
5438+
5439+
# Required. The name of the source availability group. Only used by DAG
5440+
# migrations.
5441+
# Corresponds to the JSON property `sourceAg`
5442+
# @return [String]
5443+
attr_accessor :source_ag
5444+
5445+
def initialize(**args)
5446+
update!(**args)
5447+
end
5448+
5449+
# Update properties of this object
5450+
def update!(**args)
5451+
@linked_server = args[:linked_server] if args.key?(:linked_server)
5452+
@source_ag = args[:source_ag] if args.key?(:source_ag)
5453+
end
5454+
end
5455+
54155456
# Specifies the backup details for a single database in Cloud Storage for
54165457
# homogeneous migration to Cloud SQL for SQL Server.
54175458
class SqlServerDatabaseBackup
@@ -5491,6 +5532,12 @@ class SqlServerHomogeneousMigrationJobConfig
54915532
# @return [String]
54925533
attr_accessor :backup_file_pattern
54935534

5535+
# Configuration for distributed availability group (DAG) for the SQL Server
5536+
# homogeneous migration.
5537+
# Corresponds to the JSON property `dagConfig`
5538+
# @return [Google::Apis::DatamigrationV1::SqlServerDagConfig]
5539+
attr_accessor :dag_config
5540+
54945541
# Required. Backup details per database in Cloud Storage.
54955542
# Corresponds to the JSON property `databaseBackups`
54965543
# @return [Array<Google::Apis::DatamigrationV1::SqlServerDatabaseBackup>]
@@ -5515,6 +5562,7 @@ def initialize(**args)
55155562
# Update properties of this object
55165563
def update!(**args)
55175564
@backup_file_pattern = args[:backup_file_pattern] if args.key?(:backup_file_pattern)
5565+
@dag_config = args[:dag_config] if args.key?(:dag_config)
55185566
@database_backups = args[:database_backups] if args.key?(:database_backups)
55195567
@promote_when_ready = args[:promote_when_ready] if args.key?(:promote_when_ready)
55205568
@use_diff_backup = args[:use_diff_backup] if args.key?(:use_diff_backup)

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.79.0"
19+
GEM_VERSION = "0.80.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 = "20250815"
25+
REVISION = "20250826"
2626
end
2727
end
2828
end

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
766766
include Google::Apis::Core::JsonObjectSupport
767767
end
768768

769+
class SqlServerDagConfig
770+
class Representation < Google::Apis::Core::JsonRepresentation; end
771+
772+
include Google::Apis::Core::JsonObjectSupport
773+
end
774+
769775
class SqlServerDatabaseBackup
770776
class Representation < Google::Apis::Core::JsonRepresentation; end
771777

@@ -2311,7 +2317,9 @@ class Representation < Google::Apis::Core::JsonRepresentation
23112317
property :backups, as: 'backups', class: Google::Apis::DatamigrationV1::SqlServerBackups, decorator: Google::Apis::DatamigrationV1::SqlServerBackups::Representation
23122318

23132319
property :cloud_sql_id, as: 'cloudSqlId'
2320+
property :cloud_sql_project_id, as: 'cloudSqlProjectId'
23142321
property :database, as: 'database'
2322+
property :dbm_port, as: 'dbmPort'
23152323
property :forward_ssh_connectivity, as: 'forwardSshConnectivity', class: Google::Apis::DatamigrationV1::ForwardSshTunnelConnectivity, decorator: Google::Apis::DatamigrationV1::ForwardSshTunnelConnectivity::Representation
23162324

23172325
property :host, as: 'host'
@@ -2330,6 +2338,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
23302338
end
23312339
end
23322340

2341+
class SqlServerDagConfig
2342+
# @private
2343+
class Representation < Google::Apis::Core::JsonRepresentation
2344+
property :linked_server, as: 'linkedServer'
2345+
property :source_ag, as: 'sourceAg'
2346+
end
2347+
end
2348+
23332349
class SqlServerDatabaseBackup
23342350
# @private
23352351
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2352,6 +2368,8 @@ class SqlServerHomogeneousMigrationJobConfig
23522368
# @private
23532369
class Representation < Google::Apis::Core::JsonRepresentation
23542370
property :backup_file_pattern, as: 'backupFilePattern'
2371+
property :dag_config, as: 'dagConfig', class: Google::Apis::DatamigrationV1::SqlServerDagConfig, decorator: Google::Apis::DatamigrationV1::SqlServerDagConfig::Representation
2372+
23552373
collection :database_backups, as: 'databaseBackups', class: Google::Apis::DatamigrationV1::SqlServerDatabaseBackup, decorator: Google::Apis::DatamigrationV1::SqlServerDatabaseBackup::Representation
23562374

23572375
property :promote_when_ready, as: 'promoteWhenReady'

0 commit comments

Comments
 (0)