google-apis-datamigration_v1 0.37.0 → 0.38.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: 2ddd9d6bc15cc45685898ec59d6158ee0ad3cf1f0ec9438e6579b06ade6c9b72
4
- data.tar.gz: a13385d59ce49c60b0321174b13cd8a214f61cf4e03d95106504b279c1ce6ecb
3
+ metadata.gz: 58fab72f243133871860892ccf957d2b9975b818b53d4ec4827e527565c09de8
4
+ data.tar.gz: e93a7abcd549f9e1cba901b763f3bb4ab3d17b3ad67ee3c4facd5591f722c542
5
5
  SHA512:
6
- metadata.gz: 072ef36d7c89768f825b3269b0330df1e89bce9eddd9641930b78854f9c663fc76dff7259c7763bb80305344014d66abfbcb4e932d9cf837fed56b7e8bc9f134
7
- data.tar.gz: 35416cb7b381d7d9a62066b7d59c430bda60bb5b2fd14d4692e9927abc1a1ab9284b40c7a517657250671b57f0b197ff6a603913fdd0164070879be6041fc33c
6
+ metadata.gz: 0b023162205672d6fdf372b1fc9b1eada035c7105e510ed2abab107ca3788d490b4b2e166c20337724f3b5359b61fef76cefa9a09b139f147ff5141d6954b6cf
7
+ data.tar.gz: c4e2f4a30cda6206ee37dd09b959d8c48c19a71383611d03c9a35aada7fb54bf10bf9fa573660edde00e89e946cc8f06a31eedca18ebe527ae62eb4b9734df57
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-datamigration_v1
2
2
 
3
+ ### v0.38.0 (2023-06-25)
4
+
5
+ * Regenerated from discovery document revision 20230622
6
+
3
7
  ### v0.37.0 (2023-05-21)
4
8
 
5
9
  * Regenerated from discovery document revision 20230517
@@ -503,6 +503,11 @@ module Google
503
503
  # @return [String]
504
504
  attr_accessor :database_version
505
505
 
506
+ # Optional. The edition of the given Cloud SQL instance.
507
+ # Corresponds to the JSON property `edition`
508
+ # @return [String]
509
+ attr_accessor :edition
510
+
506
511
  # IP Management configuration.
507
512
  # Corresponds to the JSON property `ipConfig`
508
513
  # @return [Google::Apis::DatamigrationV1::SqlIpConfig]
@@ -576,6 +581,7 @@ module Google
576
581
  @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
577
582
  @database_flags = args[:database_flags] if args.key?(:database_flags)
578
583
  @database_version = args[:database_version] if args.key?(:database_version)
584
+ @edition = args[:edition] if args.key?(:edition)
579
585
  @ip_config = args[:ip_config] if args.key?(:ip_config)
580
586
  @root_password = args[:root_password] if args.key?(:root_password)
581
587
  @root_password_set = args[:root_password_set] if args.key?(:root_password_set)
@@ -1599,6 +1605,49 @@ module Google
1599
1605
  end
1600
1606
  end
1601
1607
 
1608
+ # Request message for 'GenerateTcpProxyScript' request.
1609
+ class GenerateTcpProxyScriptRequest
1610
+ include Google::Apis::Core::Hashable
1611
+
1612
+ # Required. The type of the Compute instance that will host the proxy.
1613
+ # Corresponds to the JSON property `vmMachineType`
1614
+ # @return [String]
1615
+ attr_accessor :vm_machine_type
1616
+
1617
+ # Required. The name of the Compute instance that will host the proxy.
1618
+ # Corresponds to the JSON property `vmName`
1619
+ # @return [String]
1620
+ attr_accessor :vm_name
1621
+
1622
+ # Required. The name of the subnet the Compute instance will use for private
1623
+ # connectivity. Must be supplied in the form of projects/`project`/regions/`
1624
+ # region`/subnetworks/`subnetwork`. Note: the region for the subnet must match
1625
+ # the Compute instance region.
1626
+ # Corresponds to the JSON property `vmSubnet`
1627
+ # @return [String]
1628
+ attr_accessor :vm_subnet
1629
+
1630
+ # Optional. The Google Cloud Platform zone to create the VM in. The fully
1631
+ # qualified name of the zone must be specified, including the region name, for
1632
+ # example "us-central1-b". If not specified, uses the "-b" zone of the
1633
+ # destination Connection Profile's region.
1634
+ # Corresponds to the JSON property `vmZone`
1635
+ # @return [String]
1636
+ attr_accessor :vm_zone
1637
+
1638
+ def initialize(**args)
1639
+ update!(**args)
1640
+ end
1641
+
1642
+ # Update properties of this object
1643
+ def update!(**args)
1644
+ @vm_machine_type = args[:vm_machine_type] if args.key?(:vm_machine_type)
1645
+ @vm_name = args[:vm_name] if args.key?(:vm_name)
1646
+ @vm_subnet = args[:vm_subnet] if args.key?(:vm_subnet)
1647
+ @vm_zone = args[:vm_zone] if args.key?(:vm_zone)
1648
+ end
1649
+ end
1650
+
1602
1651
  # Represents the metadata of the long-running operation.
1603
1652
  class GoogleCloudClouddmsV1OperationMetadata
1604
1653
  include Google::Apis::Core::Hashable
@@ -3485,6 +3534,25 @@ module Google
3485
3534
  end
3486
3535
  end
3487
3536
 
3537
+ # Response message for 'GenerateTcpProxyScript' request.
3538
+ class TcpProxyScript
3539
+ include Google::Apis::Core::Hashable
3540
+
3541
+ # The TCP Proxy configuration script.
3542
+ # Corresponds to the JSON property `script`
3543
+ # @return [String]
3544
+ attr_accessor :script
3545
+
3546
+ def initialize(**args)
3547
+ update!(**args)
3548
+ end
3549
+
3550
+ # Update properties of this object
3551
+ def update!(**args)
3552
+ @script = args[:script] if args.key?(:script)
3553
+ end
3554
+ end
3555
+
3488
3556
  # Request message for `TestIamPermissions` method.
3489
3557
  class TestIamPermissionsRequest
3490
3558
  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.37.0"
19
+ GEM_VERSION = "0.38.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 = "20230517"
25
+ REVISION = "20230622"
26
26
  end
27
27
  end
28
28
  end
@@ -232,6 +232,12 @@ module Google
232
232
  include Google::Apis::Core::JsonObjectSupport
233
233
  end
234
234
 
235
+ class GenerateTcpProxyScriptRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
235
241
  class GoogleCloudClouddmsV1OperationMetadata
236
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
243
 
@@ -520,6 +526,12 @@ module Google
520
526
  include Google::Apis::Core::JsonObjectSupport
521
527
  end
522
528
 
529
+ class TcpProxyScript
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
523
535
  class TestIamPermissionsRequest
524
536
  class Representation < Google::Apis::Core::JsonRepresentation; end
525
537
 
@@ -697,6 +709,7 @@ module Google
697
709
  property :data_disk_type, as: 'dataDiskType'
698
710
  hash :database_flags, as: 'databaseFlags'
699
711
  property :database_version, as: 'databaseVersion'
712
+ property :edition, as: 'edition'
700
713
  property :ip_config, as: 'ipConfig', class: Google::Apis::DatamigrationV1::SqlIpConfig, decorator: Google::Apis::DatamigrationV1::SqlIpConfig::Representation
701
714
 
702
715
  property :root_password, as: 'rootPassword'
@@ -980,6 +993,16 @@ module Google
980
993
  end
981
994
  end
982
995
 
996
+ class GenerateTcpProxyScriptRequest
997
+ # @private
998
+ class Representation < Google::Apis::Core::JsonRepresentation
999
+ property :vm_machine_type, as: 'vmMachineType'
1000
+ property :vm_name, as: 'vmName'
1001
+ property :vm_subnet, as: 'vmSubnet'
1002
+ property :vm_zone, as: 'vmZone'
1003
+ end
1004
+ end
1005
+
983
1006
  class GoogleCloudClouddmsV1OperationMetadata
984
1007
  # @private
985
1008
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1472,6 +1495,13 @@ module Google
1472
1495
  end
1473
1496
  end
1474
1497
 
1498
+ class TcpProxyScript
1499
+ # @private
1500
+ class Representation < Google::Apis::Core::JsonRepresentation
1501
+ property :script, as: 'script'
1502
+ end
1503
+ end
1504
+
1475
1505
  class TestIamPermissionsRequest
1476
1506
  # @private
1477
1507
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -659,6 +659,9 @@ module Google
659
659
  # Deletes a single conversion workspace.
660
660
  # @param [String] name
661
661
  # Required. Name of the conversion workspace resource to delete.
662
+ # @param [Boolean] force
663
+ # Force delete the conversion workspace, even if there's a running migration
664
+ # that is using the workspace.
662
665
  # @param [String] request_id
663
666
  # A unique ID used to identify the request. If the server receives two requests
664
667
  # with the same ID, then the second request is ignored. It is recommended to
@@ -682,11 +685,12 @@ module Google
682
685
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
683
686
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
684
687
  # @raise [Google::Apis::AuthorizationError] Authorization is required
685
- def delete_project_location_conversion_workspace(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
688
+ def delete_project_location_conversion_workspace(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
686
689
  command = make_simple_command(:delete, 'v1/{+name}', options)
687
690
  command.response_representation = Google::Apis::DatamigrationV1::Operation::Representation
688
691
  command.response_class = Google::Apis::DatamigrationV1::Operation
689
692
  command.params['name'] = name unless name.nil?
693
+ command.query['force'] = force unless force.nil?
690
694
  command.query['requestId'] = request_id unless request_id.nil?
691
695
  command.query['fields'] = fields unless fields.nil?
692
696
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1305,6 +1309,40 @@ module Google
1305
1309
  execute_or_queue_command(command, &block)
1306
1310
  end
1307
1311
 
1312
+ # Generate a TCP Proxy configuration script to configure a cloud-hosted VM
1313
+ # running a TCP Proxy.
1314
+ # @param [String] migration_job
1315
+ # Name of the migration job resource to generate the TCP Proxy script.
1316
+ # @param [Google::Apis::DatamigrationV1::GenerateTcpProxyScriptRequest] generate_tcp_proxy_script_request_object
1317
+ # @param [String] fields
1318
+ # Selector specifying which fields to include in a partial response.
1319
+ # @param [String] quota_user
1320
+ # Available to use for quota purposes for server-side applications. Can be any
1321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1322
+ # @param [Google::Apis::RequestOptions] options
1323
+ # Request-specific options
1324
+ #
1325
+ # @yield [result, err] Result & error if block supplied
1326
+ # @yieldparam result [Google::Apis::DatamigrationV1::TcpProxyScript] parsed result object
1327
+ # @yieldparam err [StandardError] error object if request failed
1328
+ #
1329
+ # @return [Google::Apis::DatamigrationV1::TcpProxyScript]
1330
+ #
1331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1334
+ def generate_migration_job_tcp_proxy_script(migration_job, generate_tcp_proxy_script_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1335
+ command = make_simple_command(:post, 'v1/{+migrationJob}:generateTcpProxyScript', options)
1336
+ command.request_representation = Google::Apis::DatamigrationV1::GenerateTcpProxyScriptRequest::Representation
1337
+ command.request_object = generate_tcp_proxy_script_request_object
1338
+ command.response_representation = Google::Apis::DatamigrationV1::TcpProxyScript::Representation
1339
+ command.response_class = Google::Apis::DatamigrationV1::TcpProxyScript
1340
+ command.params['migrationJob'] = migration_job unless migration_job.nil?
1341
+ command.query['fields'] = fields unless fields.nil?
1342
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1343
+ execute_or_queue_command(command, &block)
1344
+ end
1345
+
1308
1346
  # Gets details of a single migration job.
1309
1347
  # @param [String] name
1310
1348
  # Required. Name of the migration job resource to get.
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.37.0
4
+ version: 0.38.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-05-28 00:00:00.000000000 Z
11
+ date: 2023-07-02 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.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.38.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: []