google-apis-datamigration_v1 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1b001f45d6d962cd61039053d0bf618b136d49c1220fde741448db642528a6f
4
- data.tar.gz: 35f0f97d681121d5615387b48b564232d82ddf5ce46cc8df77ed5a872a1bc028
3
+ metadata.gz: 1c9e1c0b62ab13728b12922a96f4eb53bf6de05028bff473e7f1ce599566dd73
4
+ data.tar.gz: 8e23de2368fe397b3d971438b21bddd2c6be10e45c8e74c52d9d8cfd461e3c4d
5
5
  SHA512:
6
- metadata.gz: 4900e4d7aef78d77f046104c77658180164b66ccbca878e19dacbbdabb64ee1233e61f5d6c150bb79663d80ad0439a84f1f5af1852fa60682f6a27c5effd2f9d
7
- data.tar.gz: 6e1d2ff0c10818dc526848df91fdc362d925c4e480ef77232ad091e74e33dce44033c5cc8d6e27f2378fdd951cd31e2c60a1a6bc0d71c4f666d76bad0baf1001
6
+ metadata.gz: 1f56a18c70ccf8bb6a7540e6668fd8799feee11c6897d973b6c56f8b959e91bb603548f078241a4a99b63f1107b973825eb67ce087e311e8808d13d5d20de423
7
+ data.tar.gz: ccd18bdb8de9e5a2d5170ef61f32bac6cd9a6dff18ad99d9bdc2c79fc2ce0e722591e66de2e82359052a0bb44e1ce99a301f740db5a4eb8b785ab80ffd8eac18
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-datamigration_v1
2
2
 
3
+ ### v0.20.0 (2022-08-24)
4
+
5
+ * Regenerated from discovery document revision 20220822
6
+
3
7
  ### v0.19.0 (2022-08-14)
4
8
 
5
9
  * Regenerated from discovery document revision 20220804
@@ -22,6 +22,76 @@ module Google
22
22
  module Apis
23
23
  module DatamigrationV1
24
24
 
25
+ # Specifies required connection parameters, and the parameters required to
26
+ # create an AlloyDB destination cluster.
27
+ class AlloyDbConnectionProfile
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Required. The AlloyDB cluster ID that this connection profile is associated
31
+ # with.
32
+ # Corresponds to the JSON property `clusterId`
33
+ # @return [String]
34
+ attr_accessor :cluster_id
35
+
36
+ # Settings for creating an AlloyDB cluster.
37
+ # Corresponds to the JSON property `settings`
38
+ # @return [Google::Apis::DatamigrationV1::AlloyDbSettings]
39
+ attr_accessor :settings
40
+
41
+ def initialize(**args)
42
+ update!(**args)
43
+ end
44
+
45
+ # Update properties of this object
46
+ def update!(**args)
47
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
48
+ @settings = args[:settings] if args.key?(:settings)
49
+ end
50
+ end
51
+
52
+ # Settings for creating an AlloyDB cluster.
53
+ class AlloyDbSettings
54
+ include Google::Apis::Core::Hashable
55
+
56
+ # The username/password for a database user. Used for specifying initial users
57
+ # at cluster creation time.
58
+ # Corresponds to the JSON property `initialUser`
59
+ # @return [Google::Apis::DatamigrationV1::UserPassword]
60
+ attr_accessor :initial_user
61
+
62
+ # Labels for the AlloyDB cluster created by DMS. An object containing a list of '
63
+ # key', 'value' pairs.
64
+ # Corresponds to the JSON property `labels`
65
+ # @return [Hash<String,String>]
66
+ attr_accessor :labels
67
+
68
+ # Settings for the cluster's primary instance
69
+ # Corresponds to the JSON property `primaryInstanceSettings`
70
+ # @return [Google::Apis::DatamigrationV1::PrimaryInstanceSettings]
71
+ attr_accessor :primary_instance_settings
72
+
73
+ # Required. The resource link for the VPC network in which cluster resources are
74
+ # created and from which they are accessible via Private IP. The network must
75
+ # belong to the same project as the cluster. It is specified in the form: "
76
+ # projects/`project_number`/global/networks/`network_id`". This is required to
77
+ # create a cluster.
78
+ # Corresponds to the JSON property `vpcNetwork`
79
+ # @return [String]
80
+ attr_accessor :vpc_network
81
+
82
+ def initialize(**args)
83
+ update!(**args)
84
+ end
85
+
86
+ # Update properties of this object
87
+ def update!(**args)
88
+ @initial_user = args[:initial_user] if args.key?(:initial_user)
89
+ @labels = args[:labels] if args.key?(:labels)
90
+ @primary_instance_settings = args[:primary_instance_settings] if args.key?(:primary_instance_settings)
91
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
92
+ end
93
+ end
94
+
25
95
  # Specifies the audit configuration for a service. The configuration determines
26
96
  # which permission types are logged, and what identities, if any, are exempted
27
97
  # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -355,6 +425,12 @@ module Google
355
425
  class ConnectionProfile
356
426
  include Google::Apis::Core::Hashable
357
427
 
428
+ # Specifies required connection parameters, and the parameters required to
429
+ # create an AlloyDB destination cluster.
430
+ # Corresponds to the JSON property `alloydb`
431
+ # @return [Google::Apis::DatamigrationV1::AlloyDbConnectionProfile]
432
+ attr_accessor :alloydb
433
+
358
434
  # Specifies required connection parameters, and, optionally, the parameters
359
435
  # required to create a Cloud SQL destination database instance.
360
436
  # Corresponds to the JSON property `cloudsql`
@@ -430,6 +506,7 @@ module Google
430
506
 
431
507
  # Update properties of this object
432
508
  def update!(**args)
509
+ @alloydb = args[:alloydb] if args.key?(:alloydb)
433
510
  @cloudsql = args[:cloudsql] if args.key?(:cloudsql)
434
511
  @create_time = args[:create_time] if args.key?(:create_time)
435
512
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -840,6 +917,25 @@ module Google
840
917
  end
841
918
  end
842
919
 
920
+ # MachineConfig describes the configuration of a machine.
921
+ class MachineConfig
922
+ include Google::Apis::Core::Hashable
923
+
924
+ # The number of CPU's in the VM instance.
925
+ # Corresponds to the JSON property `cpuCount`
926
+ # @return [Fixnum]
927
+ attr_accessor :cpu_count
928
+
929
+ def initialize(**args)
930
+ update!(**args)
931
+ end
932
+
933
+ # Update properties of this object
934
+ def update!(**args)
935
+ @cpu_count = args[:cpu_count] if args.key?(:cpu_count)
936
+ end
937
+ end
938
+
843
939
  # Represents a Database Migration Service migration job object.
844
940
  class MigrationJob
845
941
  include Google::Apis::Core::Hashable
@@ -1264,6 +1360,12 @@ module Google
1264
1360
  # @return [String]
1265
1361
  attr_accessor :host
1266
1362
 
1363
+ # Output only. If the source is a Cloud SQL database, this field indicates the
1364
+ # network architecture it's associated with.
1365
+ # Corresponds to the JSON property `networkArchitecture`
1366
+ # @return [String]
1367
+ attr_accessor :network_architecture
1368
+
1267
1369
  # Required. Input only. The password for the user that Database Migration
1268
1370
  # Service will be using to connect to the database. This field is not returned
1269
1371
  # on request, and the value is encrypted when stored in Database Migration
@@ -1302,6 +1404,7 @@ module Google
1302
1404
  def update!(**args)
1303
1405
  @cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
1304
1406
  @host = args[:host] if args.key?(:host)
1407
+ @network_architecture = args[:network_architecture] if args.key?(:network_architecture)
1305
1408
  @password = args[:password] if args.key?(:password)
1306
1409
  @password_set = args[:password_set] if args.key?(:password_set)
1307
1410
  @port = args[:port] if args.key?(:port)
@@ -1310,6 +1413,53 @@ module Google
1310
1413
  end
1311
1414
  end
1312
1415
 
1416
+ # Settings for the cluster's primary instance
1417
+ class PrimaryInstanceSettings
1418
+ include Google::Apis::Core::Hashable
1419
+
1420
+ # Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and
1421
+ # instances. See the AlloyDB documentation for how these can be used.
1422
+ # Corresponds to the JSON property `databaseFlags`
1423
+ # @return [Hash<String,String>]
1424
+ attr_accessor :database_flags
1425
+
1426
+ # Required. The ID of the AlloyDB primary instance. The ID must satisfy the
1427
+ # regex expression "[a-z0-9-]+".
1428
+ # Corresponds to the JSON property `id`
1429
+ # @return [String]
1430
+ attr_accessor :id
1431
+
1432
+ # Labels for the AlloyDB primary instance created by DMS. An object containing a
1433
+ # list of 'key', 'value' pairs.
1434
+ # Corresponds to the JSON property `labels`
1435
+ # @return [Hash<String,String>]
1436
+ attr_accessor :labels
1437
+
1438
+ # MachineConfig describes the configuration of a machine.
1439
+ # Corresponds to the JSON property `machineConfig`
1440
+ # @return [Google::Apis::DatamigrationV1::MachineConfig]
1441
+ attr_accessor :machine_config
1442
+
1443
+ # Output only. The private IP address for the Instance. This is the connection
1444
+ # endpoint for an end-user application.
1445
+ # Corresponds to the JSON property `privateIp`
1446
+ # @return [String]
1447
+ attr_accessor :private_ip
1448
+
1449
+ def initialize(**args)
1450
+ update!(**args)
1451
+ end
1452
+
1453
+ # Update properties of this object
1454
+ def update!(**args)
1455
+ @database_flags = args[:database_flags] if args.key?(:database_flags)
1456
+ @id = args[:id] if args.key?(:id)
1457
+ @labels = args[:labels] if args.key?(:labels)
1458
+ @machine_config = args[:machine_config] if args.key?(:machine_config)
1459
+ @private_ip = args[:private_ip] if args.key?(:private_ip)
1460
+ end
1461
+ end
1462
+
1313
1463
  # Request message for 'PromoteMigrationJob' request.
1314
1464
  class PromoteMigrationJobRequest
1315
1465
  include Google::Apis::Core::Hashable
@@ -1713,6 +1863,39 @@ module Google
1713
1863
  end
1714
1864
  end
1715
1865
 
1866
+ # The username/password for a database user. Used for specifying initial users
1867
+ # at cluster creation time.
1868
+ class UserPassword
1869
+ include Google::Apis::Core::Hashable
1870
+
1871
+ # The initial password for the user.
1872
+ # Corresponds to the JSON property `password`
1873
+ # @return [String]
1874
+ attr_accessor :password
1875
+
1876
+ # Output only. Indicates if the initial_user.password field has been set.
1877
+ # Corresponds to the JSON property `passwordSet`
1878
+ # @return [Boolean]
1879
+ attr_accessor :password_set
1880
+ alias_method :password_set?, :password_set
1881
+
1882
+ # The database username.
1883
+ # Corresponds to the JSON property `user`
1884
+ # @return [String]
1885
+ attr_accessor :user
1886
+
1887
+ def initialize(**args)
1888
+ update!(**args)
1889
+ end
1890
+
1891
+ # Update properties of this object
1892
+ def update!(**args)
1893
+ @password = args[:password] if args.key?(:password)
1894
+ @password_set = args[:password_set] if args.key?(:password_set)
1895
+ @user = args[:user] if args.key?(:user)
1896
+ end
1897
+ end
1898
+
1716
1899
  # Request message for 'VerifyMigrationJob' request.
1717
1900
  class VerifyMigrationJobRequest
1718
1901
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DatamigrationV1
18
18
  # Version of the google-apis-datamigration_v1 gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220804"
25
+ REVISION = "20220822"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module DatamigrationV1
24
24
 
25
+ class AlloyDbConnectionProfile
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AlloyDbSettings
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class AuditConfig
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -136,6 +148,12 @@ module Google
136
148
  include Google::Apis::Core::JsonObjectSupport
137
149
  end
138
150
 
151
+ class MachineConfig
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
139
157
  class MigrationJob
140
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
159
 
@@ -172,6 +190,12 @@ module Google
172
190
  include Google::Apis::Core::JsonObjectSupport
173
191
  end
174
192
 
193
+ class PrimaryInstanceSettings
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
175
199
  class PromoteMigrationJobRequest
176
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
201
 
@@ -262,6 +286,12 @@ module Google
262
286
  include Google::Apis::Core::JsonObjectSupport
263
287
  end
264
288
 
289
+ class UserPassword
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
265
295
  class VerifyMigrationJobRequest
266
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
297
 
@@ -286,6 +316,27 @@ module Google
286
316
  include Google::Apis::Core::JsonObjectSupport
287
317
  end
288
318
 
319
+ class AlloyDbConnectionProfile
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :cluster_id, as: 'clusterId'
323
+ property :settings, as: 'settings', class: Google::Apis::DatamigrationV1::AlloyDbSettings, decorator: Google::Apis::DatamigrationV1::AlloyDbSettings::Representation
324
+
325
+ end
326
+ end
327
+
328
+ class AlloyDbSettings
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ property :initial_user, as: 'initialUser', class: Google::Apis::DatamigrationV1::UserPassword, decorator: Google::Apis::DatamigrationV1::UserPassword::Representation
332
+
333
+ hash :labels, as: 'labels'
334
+ property :primary_instance_settings, as: 'primaryInstanceSettings', class: Google::Apis::DatamigrationV1::PrimaryInstanceSettings, decorator: Google::Apis::DatamigrationV1::PrimaryInstanceSettings::Representation
335
+
336
+ property :vpc_network, as: 'vpcNetwork'
337
+ end
338
+ end
339
+
289
340
  class AuditConfig
290
341
  # @private
291
342
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -356,6 +407,8 @@ module Google
356
407
  class ConnectionProfile
357
408
  # @private
358
409
  class Representation < Google::Apis::Core::JsonRepresentation
410
+ property :alloydb, as: 'alloydb', class: Google::Apis::DatamigrationV1::AlloyDbConnectionProfile, decorator: Google::Apis::DatamigrationV1::AlloyDbConnectionProfile::Representation
411
+
359
412
  property :cloudsql, as: 'cloudsql', class: Google::Apis::DatamigrationV1::CloudSqlConnectionProfile, decorator: Google::Apis::DatamigrationV1::CloudSqlConnectionProfile::Representation
360
413
 
361
414
  property :create_time, as: 'createTime'
@@ -488,6 +541,13 @@ module Google
488
541
  end
489
542
  end
490
543
 
544
+ class MachineConfig
545
+ # @private
546
+ class Representation < Google::Apis::Core::JsonRepresentation
547
+ property :cpu_count, as: 'cpuCount'
548
+ end
549
+ end
550
+
491
551
  class MigrationJob
492
552
  # @private
493
553
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -573,6 +633,7 @@ module Google
573
633
  class Representation < Google::Apis::Core::JsonRepresentation
574
634
  property :cloud_sql_id, as: 'cloudSqlId'
575
635
  property :host, as: 'host'
636
+ property :network_architecture, as: 'networkArchitecture'
576
637
  property :password, as: 'password'
577
638
  property :password_set, as: 'passwordSet'
578
639
  property :port, as: 'port'
@@ -582,6 +643,18 @@ module Google
582
643
  end
583
644
  end
584
645
 
646
+ class PrimaryInstanceSettings
647
+ # @private
648
+ class Representation < Google::Apis::Core::JsonRepresentation
649
+ hash :database_flags, as: 'databaseFlags'
650
+ property :id, as: 'id'
651
+ hash :labels, as: 'labels'
652
+ property :machine_config, as: 'machineConfig', class: Google::Apis::DatamigrationV1::MachineConfig, decorator: Google::Apis::DatamigrationV1::MachineConfig::Representation
653
+
654
+ property :private_ip, as: 'privateIp'
655
+ end
656
+ end
657
+
585
658
  class PromoteMigrationJobRequest
586
659
  # @private
587
660
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -698,6 +771,15 @@ module Google
698
771
  end
699
772
  end
700
773
 
774
+ class UserPassword
775
+ # @private
776
+ class Representation < Google::Apis::Core::JsonRepresentation
777
+ property :password, as: 'password'
778
+ property :password_set, as: 'passwordSet'
779
+ property :user, as: 'user'
780
+ end
781
+ end
782
+
701
783
  class VerifyMigrationJobRequest
702
784
  # @private
703
785
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-datamigration_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-15 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datamigration_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.20.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datamigration_v1
63
63
  post_install_message:
64
64
  rdoc_options: []