google-apis-datamigration_v1 0.45.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 785e749900608b85262a328662f3a48165275f70105aae286e0d7c20ab234a89
4
- data.tar.gz: 0a8e70a847e36bf920dceccb30c811b10344f2103f05c74a10217cc58bf26dae
3
+ metadata.gz: 4844d122502d957176c37327c103ba2ff4207e75c5ab15134eb847f85aeb81ef
4
+ data.tar.gz: cb87cd6c82bd0fdd3c9e5bbc6969f1f4317f7c12eaf1cca42168eceae304059b
5
5
  SHA512:
6
- metadata.gz: 80ded5af6037a923b7bfb4f620a8c9c2c9a2ea66b9cecdae01c8bdd13cdef5bf0170c1929fa47dd5165e332ae62a92b44ffceca9e964daabf011500639fba231
7
- data.tar.gz: f58452121b8f25510555fad149b9e10a2845d6dbe0601651ab4f7757ec8318e9a35be79003f5d3ebfdd3b06553a3bbca1b01f881d33e10053988d6d5be9e621c
6
+ metadata.gz: a9f7febb91d0ad19412f427a22fd62a1abf252baa13acde40a6fff22bff7646c12e896d191e084a65cb5d53d8d1e3da2281cb0e4a74579d44c83e928a2785e37
7
+ data.tar.gz: e29ae0b389d4884022c6bb7edcc4a8b1af6409f3d453778af4422ba08e558a0eaa284b6c4d0fca16347f89098bf3a2f1bfe6478342d9a48baca833093d42602b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-datamigration_v1
2
2
 
3
+ ### v0.47.0 (2023-11-12)
4
+
5
+ * Regenerated from discovery document revision 20231106
6
+
7
+ ### v0.46.0 (2023-11-05)
8
+
9
+ * Regenerated from discovery document revision 20231031
10
+
3
11
  ### v0.45.0 (2023-10-22)
4
12
 
5
13
  * Regenerated from discovery document revision 20231011
@@ -1428,6 +1428,19 @@ module Google
1428
1428
  end
1429
1429
  end
1430
1430
 
1431
+ # Request message for 'DemoteDestination' request.
1432
+ class DemoteDestinationRequest
1433
+ include Google::Apis::Core::Hashable
1434
+
1435
+ def initialize(**args)
1436
+ update!(**args)
1437
+ end
1438
+
1439
+ # Update properties of this object
1440
+ def update!(**args)
1441
+ end
1442
+ end
1443
+
1431
1444
  # Response message for 'DescribeConversionWorkspaceRevisions' request.
1432
1445
  class DescribeConversionWorkspaceRevisionsResponse
1433
1446
  include Google::Apis::Core::Hashable
@@ -3477,6 +3490,12 @@ module Google
3477
3490
  class PostgreSqlConnectionProfile
3478
3491
  include Google::Apis::Core::Hashable
3479
3492
 
3493
+ # Optional. If the destination is an AlloyDB database, use this field to provide
3494
+ # the AlloyDB cluster ID.
3495
+ # Corresponds to the JSON property `alloydbClusterId`
3496
+ # @return [String]
3497
+ attr_accessor :alloydb_cluster_id
3498
+
3480
3499
  # If the source is a Cloud SQL database, use this field to provide the Cloud SQL
3481
3500
  # instance ID of the source.
3482
3501
  # Corresponds to the JSON property `cloudSqlId`
@@ -3544,6 +3563,7 @@ module Google
3544
3563
 
3545
3564
  # Update properties of this object
3546
3565
  def update!(**args)
3566
+ @alloydb_cluster_id = args[:alloydb_cluster_id] if args.key?(:alloydb_cluster_id)
3547
3567
  @cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
3548
3568
  @host = args[:host] if args.key?(:host)
3549
3569
  @network_architecture = args[:network_architecture] if args.key?(:network_architecture)
@@ -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.45.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231011"
25
+ REVISION = "20231106"
26
26
  end
27
27
  end
28
28
  end
@@ -190,6 +190,12 @@ module Google
190
190
  include Google::Apis::Core::JsonObjectSupport
191
191
  end
192
192
 
193
+ class DemoteDestinationRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
193
199
  class DescribeConversionWorkspaceRevisionsResponse
194
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
201
 
@@ -1127,6 +1133,12 @@ module Google
1127
1133
  end
1128
1134
  end
1129
1135
 
1136
+ class DemoteDestinationRequest
1137
+ # @private
1138
+ class Representation < Google::Apis::Core::JsonRepresentation
1139
+ end
1140
+ end
1141
+
1130
1142
  class DescribeConversionWorkspaceRevisionsResponse
1131
1143
  # @private
1132
1144
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1653,6 +1665,7 @@ module Google
1653
1665
  class PostgreSqlConnectionProfile
1654
1666
  # @private
1655
1667
  class Representation < Google::Apis::Core::JsonRepresentation
1668
+ property :alloydb_cluster_id, as: 'alloydbClusterId'
1656
1669
  property :cloud_sql_id, as: 'cloudSqlId'
1657
1670
  property :host, as: 'host'
1658
1671
  property :network_architecture, as: 'networkArchitecture'
@@ -1434,6 +1434,41 @@ module Google
1434
1434
  execute_or_queue_command(command, &block)
1435
1435
  end
1436
1436
 
1437
+ # Demotes the destination database to become a read replica of the source. This
1438
+ # is applicable for the following migrations: 1. MySQL to Cloud SQL (for MySQL)
1439
+ # 2. PostgreSQL to Cloud SQL (for PostgreSQL) 3. PostgreSQL to AlloyDB.
1440
+ # @param [String] name
1441
+ # Name of the migration job resource to demote its destination.
1442
+ # @param [Google::Apis::DatamigrationV1::DemoteDestinationRequest] demote_destination_request_object
1443
+ # @param [String] fields
1444
+ # Selector specifying which fields to include in a partial response.
1445
+ # @param [String] quota_user
1446
+ # Available to use for quota purposes for server-side applications. Can be any
1447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1448
+ # @param [Google::Apis::RequestOptions] options
1449
+ # Request-specific options
1450
+ #
1451
+ # @yield [result, err] Result & error if block supplied
1452
+ # @yieldparam result [Google::Apis::DatamigrationV1::Operation] parsed result object
1453
+ # @yieldparam err [StandardError] error object if request failed
1454
+ #
1455
+ # @return [Google::Apis::DatamigrationV1::Operation]
1456
+ #
1457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1460
+ def demote_migration_job_destination(name, demote_destination_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1461
+ command = make_simple_command(:post, 'v1/{+name}:demoteDestination', options)
1462
+ command.request_representation = Google::Apis::DatamigrationV1::DemoteDestinationRequest::Representation
1463
+ command.request_object = demote_destination_request_object
1464
+ command.response_representation = Google::Apis::DatamigrationV1::Operation::Representation
1465
+ command.response_class = Google::Apis::DatamigrationV1::Operation
1466
+ command.params['name'] = name unless name.nil?
1467
+ command.query['fields'] = fields unless fields.nil?
1468
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1469
+ execute_or_queue_command(command, &block)
1470
+ end
1471
+
1437
1472
  # Generate a SSH configuration script to configure the reverse SSH connectivity.
1438
1473
  # @param [String] migration_job
1439
1474
  # Name of the migration job resource to generate the SSH script.
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.45.0
4
+ version: 0.47.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: 2023-10-22 00:00:00.000000000 Z
11
+ date: 2023-11-12 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.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.47.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: []