google-apis-metastore_v1beta 0.59.0 → 0.61.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: 51a665036ad3e24e7b3a0c29405a4ff94fa64b6e1e0a2138464fb614b2d1fdf2
4
- data.tar.gz: 71dbeeccfc2d4cd00fbc9df8790dc59e52776a62ef508cecd985900429a2fe88
3
+ metadata.gz: 8cb3a390cca2d08dc1bf54d5e69408b20b9f6d462fc1a07607e854b7b9ac5f42
4
+ data.tar.gz: dc4359135ec52dda23053572135438410d69d6c614cbd4cf440cc5190e8c130b
5
5
  SHA512:
6
- metadata.gz: fa001f49ace18ac96a7dd34d8f90b461bd83ca85b5b2110e084dcd7e735b78d99517cdd3a15ea62c9b5381a6a407d08518bc3ca79b757ca2b3fd1ba96d385188
7
- data.tar.gz: 215897172a5cab273435d96455e66938f324361a73e10320a3931aaeba3fc4d08acc1efad3f425ea6c199ba14684125fbacb5c3ea22edc99ab116f3908be7743
6
+ metadata.gz: db6e296476f92b4a5984d191960c1d570d73669bcd47798cee4d99cf2cdafa2659745650d8fbb0db52469578c5b40bcb2d8f1c41f3557466a99f52b71a893d74
7
+ data.tar.gz: eb3f3f0f385912702adfe995b3e38ad13b1ce5f57f2c8c2a0bad6f443a309d0e5e5ac2c76cad186e796db898cb1627c00404d8645d612ff0e0cd019959d7d12f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-metastore_v1beta
2
2
 
3
+ ### v0.61.0 (2024-03-31)
4
+
5
+ * Regenerated from discovery document revision 20240325
6
+
7
+ ### v0.60.0 (2024-03-17)
8
+
9
+ * Regenerated from discovery document revision 20240312
10
+
3
11
  ### v0.59.0 (2024-03-03)
4
12
 
5
13
  * Regenerated from discovery document revision 20240228
@@ -394,6 +394,40 @@ module Google
394
394
  end
395
395
  end
396
396
 
397
+ # Request message for DataprocMetastore.CancelMigration.
398
+ class CancelMigrationRequest
399
+ include Google::Apis::Core::Hashable
400
+
401
+ def initialize(**args)
402
+ update!(**args)
403
+ end
404
+
405
+ # Update properties of this object
406
+ def update!(**args)
407
+ end
408
+ end
409
+
410
+ # Response message for DataprocMetastore.CancelMigration.
411
+ class CancelMigrationResponse
412
+ include Google::Apis::Core::Hashable
413
+
414
+ # The relative resource name of the migration execution, in the following form:
415
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
416
+ # migrationExecutions/`migration_execution_id`.
417
+ # Corresponds to the JSON property `migrationExecution`
418
+ # @return [String]
419
+ attr_accessor :migration_execution
420
+
421
+ def initialize(**args)
422
+ update!(**args)
423
+ end
424
+
425
+ # Update properties of this object
426
+ def update!(**args)
427
+ @migration_execution = args[:migration_execution] if args.key?(:migration_execution)
428
+ end
429
+ end
430
+
397
431
  # The request message for Operations.CancelOperation.
398
432
  class CancelOperationRequest
399
433
  include Google::Apis::Core::Hashable
@@ -407,6 +441,213 @@ module Google
407
441
  end
408
442
  end
409
443
 
444
+ # Configuration information to start the Change Data Capture (CDC) streams from
445
+ # customer database to backend database of Dataproc Metastore.
446
+ class CdcConfig
447
+ include Google::Apis::Core::Hashable
448
+
449
+ # Optional. The bucket to write the intermediate stream event data in. The
450
+ # bucket name must be without any prefix like "gs://". See the bucket naming
451
+ # requirements (https://cloud.google.com/storage/docs/buckets#naming). This
452
+ # field is optional. If not set, the Artifacts Cloud Storage bucket will be used.
453
+ # Corresponds to the JSON property `bucket`
454
+ # @return [String]
455
+ attr_accessor :bucket
456
+
457
+ # Required. Input only. The password for the user that Datastream service should
458
+ # use for the MySQL connection. This field is not returned on request.
459
+ # Corresponds to the JSON property `password`
460
+ # @return [String]
461
+ attr_accessor :password
462
+
463
+ # Required. The URL of the subnetwork resource to create the VM instance hosting
464
+ # the reverse proxy in. More context in https://cloud.google.com/datastream/docs/
465
+ # private-connectivity#reverse-csql-proxy The subnetwork should reside in the
466
+ # network provided in the request that Datastream will peer to and should be in
467
+ # the same region as Datastream, in the following format. projects/`project_id`/
468
+ # regions/`region_id`/subnetworks/`subnetwork_id`
469
+ # Corresponds to the JSON property `reverseProxySubnet`
470
+ # @return [String]
471
+ attr_accessor :reverse_proxy_subnet
472
+
473
+ # Optional. The root path inside the Cloud Storage bucket. The stream event data
474
+ # will be written to this path. The default value is /migration.
475
+ # Corresponds to the JSON property `rootPath`
476
+ # @return [String]
477
+ attr_accessor :root_path
478
+
479
+ # Required. A /29 CIDR IP range for peering with datastream.
480
+ # Corresponds to the JSON property `subnetIpRange`
481
+ # @return [String]
482
+ attr_accessor :subnet_ip_range
483
+
484
+ # Required. The username that the Datastream service should use for the MySQL
485
+ # connection.
486
+ # Corresponds to the JSON property `username`
487
+ # @return [String]
488
+ attr_accessor :username
489
+
490
+ # Required. Fully qualified name of the Cloud SQL instance's VPC network or the
491
+ # shared VPC network that Datastream will peer to, in the following format:
492
+ # projects/`project_id`/locations/global/networks/`network_id`. More context in
493
+ # https://cloud.google.com/datastream/docs/network-connectivity-options#
494
+ # privateconnectivity
495
+ # Corresponds to the JSON property `vpcNetwork`
496
+ # @return [String]
497
+ attr_accessor :vpc_network
498
+
499
+ def initialize(**args)
500
+ update!(**args)
501
+ end
502
+
503
+ # Update properties of this object
504
+ def update!(**args)
505
+ @bucket = args[:bucket] if args.key?(:bucket)
506
+ @password = args[:password] if args.key?(:password)
507
+ @reverse_proxy_subnet = args[:reverse_proxy_subnet] if args.key?(:reverse_proxy_subnet)
508
+ @root_path = args[:root_path] if args.key?(:root_path)
509
+ @subnet_ip_range = args[:subnet_ip_range] if args.key?(:subnet_ip_range)
510
+ @username = args[:username] if args.key?(:username)
511
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
512
+ end
513
+ end
514
+
515
+ # Configuration information to establish customer database connection before the
516
+ # cutover phase of migration
517
+ class CloudSqlConnectionConfig
518
+ include Google::Apis::Core::Hashable
519
+
520
+ # Required. The hive database name.
521
+ # Corresponds to the JSON property `hiveDatabaseName`
522
+ # @return [String]
523
+ attr_accessor :hive_database_name
524
+
525
+ # Required. Cloud SQL database connection name (project_id:region:instance_name)
526
+ # Corresponds to the JSON property `instanceConnectionName`
527
+ # @return [String]
528
+ attr_accessor :instance_connection_name
529
+
530
+ # Required. The private IP address of the Cloud SQL instance.
531
+ # Corresponds to the JSON property `ipAddress`
532
+ # @return [String]
533
+ attr_accessor :ip_address
534
+
535
+ # Required. The relative resource name of the subnetwork to be used for Private
536
+ # Service Connect. Note that this cannot be a regular subnet and is used only
537
+ # for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-
538
+ # subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet
539
+ # size must be at least /29 and it should reside in a network through which the
540
+ # Cloud SQL instance is accessible. The resource name should be in the format,
541
+ # projects/`project_id`/regions/`region_id`/subnetworks/`subnetwork_id`
542
+ # Corresponds to the JSON property `natSubnet`
543
+ # @return [String]
544
+ attr_accessor :nat_subnet
545
+
546
+ # Required. Input only. The password for the user that Dataproc Metastore
547
+ # service will be using to connect to the database. This field is not returned
548
+ # on request.
549
+ # Corresponds to the JSON property `password`
550
+ # @return [String]
551
+ attr_accessor :password
552
+
553
+ # Required. The network port of the database.
554
+ # Corresponds to the JSON property `port`
555
+ # @return [Fixnum]
556
+ attr_accessor :port
557
+
558
+ # Required. The relative resource name of the subnetwork to deploy the SOCKS5
559
+ # proxy service in. The subnetwork should reside in a network through which the
560
+ # Cloud SQL instance is accessible. The resource name should be in the format,
561
+ # projects/`project_id`/regions/`region_id`/subnetworks/`subnetwork_id`
562
+ # Corresponds to the JSON property `proxySubnet`
563
+ # @return [String]
564
+ attr_accessor :proxy_subnet
565
+
566
+ # Required. The username that Dataproc Metastore service will use to connect to
567
+ # the database.
568
+ # Corresponds to the JSON property `username`
569
+ # @return [String]
570
+ attr_accessor :username
571
+
572
+ def initialize(**args)
573
+ update!(**args)
574
+ end
575
+
576
+ # Update properties of this object
577
+ def update!(**args)
578
+ @hive_database_name = args[:hive_database_name] if args.key?(:hive_database_name)
579
+ @instance_connection_name = args[:instance_connection_name] if args.key?(:instance_connection_name)
580
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
581
+ @nat_subnet = args[:nat_subnet] if args.key?(:nat_subnet)
582
+ @password = args[:password] if args.key?(:password)
583
+ @port = args[:port] if args.key?(:port)
584
+ @proxy_subnet = args[:proxy_subnet] if args.key?(:proxy_subnet)
585
+ @username = args[:username] if args.key?(:username)
586
+ end
587
+ end
588
+
589
+ # Configuration information for migrating from self-managed hive metastore on
590
+ # GCP using Cloud SQL as the backend database to DPMS.
591
+ class CloudSqlMigrationConfig
592
+ include Google::Apis::Core::Hashable
593
+
594
+ # Configuration information to start the Change Data Capture (CDC) streams from
595
+ # customer database to backend database of Dataproc Metastore.
596
+ # Corresponds to the JSON property `cdcConfig`
597
+ # @return [Google::Apis::MetastoreV1beta::CdcConfig]
598
+ attr_accessor :cdc_config
599
+
600
+ # Configuration information to establish customer database connection before the
601
+ # cutover phase of migration
602
+ # Corresponds to the JSON property `cloudSqlConnectionConfig`
603
+ # @return [Google::Apis::MetastoreV1beta::CloudSqlConnectionConfig]
604
+ attr_accessor :cloud_sql_connection_config
605
+
606
+ def initialize(**args)
607
+ update!(**args)
608
+ end
609
+
610
+ # Update properties of this object
611
+ def update!(**args)
612
+ @cdc_config = args[:cdc_config] if args.key?(:cdc_config)
613
+ @cloud_sql_connection_config = args[:cloud_sql_connection_config] if args.key?(:cloud_sql_connection_config)
614
+ end
615
+ end
616
+
617
+ # Request message for DataprocMetastore.CompleteMigration.
618
+ class CompleteMigrationRequest
619
+ include Google::Apis::Core::Hashable
620
+
621
+ def initialize(**args)
622
+ update!(**args)
623
+ end
624
+
625
+ # Update properties of this object
626
+ def update!(**args)
627
+ end
628
+ end
629
+
630
+ # Response message for DataprocMetastore.CompleteMigration.
631
+ class CompleteMigrationResponse
632
+ include Google::Apis::Core::Hashable
633
+
634
+ # The relative resource name of the migration execution, in the following form:
635
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
636
+ # migrationExecutions/`migration_execution_id`.
637
+ # Corresponds to the JSON property `migrationExecution`
638
+ # @return [String]
639
+ attr_accessor :migration_execution
640
+
641
+ def initialize(**args)
642
+ update!(**args)
643
+ end
644
+
645
+ # Update properties of this object
646
+ def update!(**args)
647
+ @migration_execution = args[:migration_execution] if args.key?(:migration_execution)
648
+ end
649
+ end
650
+
410
651
  # Contains information of the customer's network configurations.
411
652
  class Consumer
412
653
  include Google::Apis::Core::Hashable
@@ -549,7 +790,7 @@ module Google
549
790
  include Google::Apis::Core::Hashable
550
791
 
551
792
  # The fully qualified customer provided Cloud KMS key name to use for customer
552
- # data encryption, in the following form:projects/`project_number`/locations/`
793
+ # data encryption, in the following format:projects/`project_number`/locations/`
553
794
  # location_id`/keyRings/`key_ring_id`/cryptoKeys/`crypto_key_id`.
554
795
  # Corresponds to the JSON property `kmsKey`
555
796
  # @return [String]
@@ -1056,6 +1297,38 @@ module Google
1056
1297
  end
1057
1298
  end
1058
1299
 
1300
+ # Response message for DataprocMetastore.ListMigrationExecutions.
1301
+ class ListMigrationExecutionsResponse
1302
+ include Google::Apis::Core::Hashable
1303
+
1304
+ # The migration executions on the specified service.
1305
+ # Corresponds to the JSON property `migrationExecutions`
1306
+ # @return [Array<Google::Apis::MetastoreV1beta::MigrationExecution>]
1307
+ attr_accessor :migration_executions
1308
+
1309
+ # A token that can be sent as page_token to retrieve the next page. If this
1310
+ # field is omitted, there are no subsequent pages.
1311
+ # Corresponds to the JSON property `nextPageToken`
1312
+ # @return [String]
1313
+ attr_accessor :next_page_token
1314
+
1315
+ # Locations that could not be reached.
1316
+ # Corresponds to the JSON property `unreachable`
1317
+ # @return [Array<String>]
1318
+ attr_accessor :unreachable
1319
+
1320
+ def initialize(**args)
1321
+ update!(**args)
1322
+ end
1323
+
1324
+ # Update properties of this object
1325
+ def update!(**args)
1326
+ @migration_executions = args[:migration_executions] if args.key?(:migration_executions)
1327
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1328
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1329
+ end
1330
+ end
1331
+
1059
1332
  # The response message for Operations.ListOperations.
1060
1333
  class ListOperationsResponse
1061
1334
  include Google::Apis::Core::Hashable
@@ -1369,6 +1642,65 @@ module Google
1369
1642
  end
1370
1643
  end
1371
1644
 
1645
+ # The details of a migration execution resource.
1646
+ class MigrationExecution
1647
+ include Google::Apis::Core::Hashable
1648
+
1649
+ # Configuration information for migrating from self-managed hive metastore on
1650
+ # GCP using Cloud SQL as the backend database to DPMS.
1651
+ # Corresponds to the JSON property `cloudSqlMigrationConfig`
1652
+ # @return [Google::Apis::MetastoreV1beta::CloudSqlMigrationConfig]
1653
+ attr_accessor :cloud_sql_migration_config
1654
+
1655
+ # Output only. The time when the migration execution was started.
1656
+ # Corresponds to the JSON property `createTime`
1657
+ # @return [String]
1658
+ attr_accessor :create_time
1659
+
1660
+ # Output only. The time when the migration execution finished.
1661
+ # Corresponds to the JSON property `endTime`
1662
+ # @return [String]
1663
+ attr_accessor :end_time
1664
+
1665
+ # Output only. The relative resource name of the migration execution, in the
1666
+ # following form: projects/`project_number`/locations/`location_id`/services/`
1667
+ # service_id`/migrationExecutions/`migration_execution_id`
1668
+ # Corresponds to the JSON property `name`
1669
+ # @return [String]
1670
+ attr_accessor :name
1671
+
1672
+ # Output only. The current phase of the migration execution.
1673
+ # Corresponds to the JSON property `phase`
1674
+ # @return [String]
1675
+ attr_accessor :phase
1676
+
1677
+ # Output only. The current state of the migration execution.
1678
+ # Corresponds to the JSON property `state`
1679
+ # @return [String]
1680
+ attr_accessor :state
1681
+
1682
+ # Output only. Additional information about the current state of the migration
1683
+ # execution.
1684
+ # Corresponds to the JSON property `stateMessage`
1685
+ # @return [String]
1686
+ attr_accessor :state_message
1687
+
1688
+ def initialize(**args)
1689
+ update!(**args)
1690
+ end
1691
+
1692
+ # Update properties of this object
1693
+ def update!(**args)
1694
+ @cloud_sql_migration_config = args[:cloud_sql_migration_config] if args.key?(:cloud_sql_migration_config)
1695
+ @create_time = args[:create_time] if args.key?(:create_time)
1696
+ @end_time = args[:end_time] if args.key?(:end_time)
1697
+ @name = args[:name] if args.key?(:name)
1698
+ @phase = args[:phase] if args.key?(:phase)
1699
+ @state = args[:state] if args.key?(:state)
1700
+ @state_message = args[:state_message] if args.key?(:state_message)
1701
+ end
1702
+ end
1703
+
1372
1704
  # Request message for DataprocMetastore.MoveTableToDatabase.
1373
1705
  class MoveTableToDatabaseRequest
1374
1706
  include Google::Apis::Core::Hashable
@@ -2186,6 +2518,38 @@ module Google
2186
2518
  end
2187
2519
  end
2188
2520
 
2521
+ # Request message for DataprocMetastore.StartMigration.
2522
+ class StartMigrationRequest
2523
+ include Google::Apis::Core::Hashable
2524
+
2525
+ # The details of a migration execution resource.
2526
+ # Corresponds to the JSON property `migrationExecution`
2527
+ # @return [Google::Apis::MetastoreV1beta::MigrationExecution]
2528
+ attr_accessor :migration_execution
2529
+
2530
+ # Optional. A request ID. Specify a unique request ID to allow the server to
2531
+ # ignore the request if it has completed. The server will ignore subsequent
2532
+ # requests that provide a duplicate request ID for at least 60 minutes after the
2533
+ # first request.For example, if an initial request times out, followed by
2534
+ # another request with the same request ID, the server ignores the second
2535
+ # request to prevent the creation of duplicate commitments.The request ID must
2536
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
2537
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
2538
+ # Corresponds to the JSON property `requestId`
2539
+ # @return [String]
2540
+ attr_accessor :request_id
2541
+
2542
+ def initialize(**args)
2543
+ update!(**args)
2544
+ end
2545
+
2546
+ # Update properties of this object
2547
+ def update!(**args)
2548
+ @migration_execution = args[:migration_execution] if args.key?(:migration_execution)
2549
+ @request_id = args[:request_id] if args.key?(:request_id)
2550
+ end
2551
+ end
2552
+
2189
2553
  # The Status type defines a logical error model that is suitable for different
2190
2554
  # programming environments, including REST APIs and RPC APIs. It is used by gRPC
2191
2555
  # (https://github.com/grpc). Each Status message contains three pieces of data:
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MetastoreV1beta
18
18
  # Version of the google-apis-metastore_v1beta gem
19
- GEM_VERSION = "0.59.0"
19
+ GEM_VERSION = "0.61.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240228"
25
+ REVISION = "20240325"
26
26
  end
27
27
  end
28
28
  end
@@ -76,12 +76,54 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class CancelMigrationRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class CancelMigrationResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class CancelOperationRequest
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
82
94
  include Google::Apis::Core::JsonObjectSupport
83
95
  end
84
96
 
97
+ class CdcConfig
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class CloudSqlConnectionConfig
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class CloudSqlMigrationConfig
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class CompleteMigrationRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class CompleteMigrationResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
85
127
  class Consumer
86
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
129
 
@@ -196,6 +238,12 @@ module Google
196
238
  include Google::Apis::Core::JsonObjectSupport
197
239
  end
198
240
 
241
+ class ListMigrationExecutionsResponse
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
199
247
  class ListOperationsResponse
200
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
249
 
@@ -250,6 +298,12 @@ module Google
250
298
  include Google::Apis::Core::JsonObjectSupport
251
299
  end
252
300
 
301
+ class MigrationExecution
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
253
307
  class MoveTableToDatabaseRequest
254
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
309
 
@@ -358,6 +412,12 @@ module Google
358
412
  include Google::Apis::Core::JsonObjectSupport
359
413
  end
360
414
 
415
+ class StartMigrationRequest
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
361
421
  class Status
362
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
423
 
@@ -464,12 +524,75 @@ module Google
464
524
  end
465
525
  end
466
526
 
527
+ class CancelMigrationRequest
528
+ # @private
529
+ class Representation < Google::Apis::Core::JsonRepresentation
530
+ end
531
+ end
532
+
533
+ class CancelMigrationResponse
534
+ # @private
535
+ class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :migration_execution, as: 'migrationExecution'
537
+ end
538
+ end
539
+
467
540
  class CancelOperationRequest
468
541
  # @private
469
542
  class Representation < Google::Apis::Core::JsonRepresentation
470
543
  end
471
544
  end
472
545
 
546
+ class CdcConfig
547
+ # @private
548
+ class Representation < Google::Apis::Core::JsonRepresentation
549
+ property :bucket, as: 'bucket'
550
+ property :password, as: 'password'
551
+ property :reverse_proxy_subnet, as: 'reverseProxySubnet'
552
+ property :root_path, as: 'rootPath'
553
+ property :subnet_ip_range, as: 'subnetIpRange'
554
+ property :username, as: 'username'
555
+ property :vpc_network, as: 'vpcNetwork'
556
+ end
557
+ end
558
+
559
+ class CloudSqlConnectionConfig
560
+ # @private
561
+ class Representation < Google::Apis::Core::JsonRepresentation
562
+ property :hive_database_name, as: 'hiveDatabaseName'
563
+ property :instance_connection_name, as: 'instanceConnectionName'
564
+ property :ip_address, as: 'ipAddress'
565
+ property :nat_subnet, as: 'natSubnet'
566
+ property :password, as: 'password'
567
+ property :port, as: 'port'
568
+ property :proxy_subnet, as: 'proxySubnet'
569
+ property :username, as: 'username'
570
+ end
571
+ end
572
+
573
+ class CloudSqlMigrationConfig
574
+ # @private
575
+ class Representation < Google::Apis::Core::JsonRepresentation
576
+ property :cdc_config, as: 'cdcConfig', class: Google::Apis::MetastoreV1beta::CdcConfig, decorator: Google::Apis::MetastoreV1beta::CdcConfig::Representation
577
+
578
+ property :cloud_sql_connection_config, as: 'cloudSqlConnectionConfig', class: Google::Apis::MetastoreV1beta::CloudSqlConnectionConfig, decorator: Google::Apis::MetastoreV1beta::CloudSqlConnectionConfig::Representation
579
+
580
+ end
581
+ end
582
+
583
+ class CompleteMigrationRequest
584
+ # @private
585
+ class Representation < Google::Apis::Core::JsonRepresentation
586
+ end
587
+ end
588
+
589
+ class CompleteMigrationResponse
590
+ # @private
591
+ class Representation < Google::Apis::Core::JsonRepresentation
592
+ property :migration_execution, as: 'migrationExecution'
593
+ end
594
+ end
595
+
473
596
  class Consumer
474
597
  # @private
475
598
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -647,6 +770,16 @@ module Google
647
770
  end
648
771
  end
649
772
 
773
+ class ListMigrationExecutionsResponse
774
+ # @private
775
+ class Representation < Google::Apis::Core::JsonRepresentation
776
+ collection :migration_executions, as: 'migrationExecutions', class: Google::Apis::MetastoreV1beta::MigrationExecution, decorator: Google::Apis::MetastoreV1beta::MigrationExecution::Representation
777
+
778
+ property :next_page_token, as: 'nextPageToken'
779
+ collection :unreachable, as: 'unreachable'
780
+ end
781
+ end
782
+
650
783
  class ListOperationsResponse
651
784
  # @private
652
785
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -740,6 +873,20 @@ module Google
740
873
  end
741
874
  end
742
875
 
876
+ class MigrationExecution
877
+ # @private
878
+ class Representation < Google::Apis::Core::JsonRepresentation
879
+ property :cloud_sql_migration_config, as: 'cloudSqlMigrationConfig', class: Google::Apis::MetastoreV1beta::CloudSqlMigrationConfig, decorator: Google::Apis::MetastoreV1beta::CloudSqlMigrationConfig::Representation
880
+
881
+ property :create_time, as: 'createTime'
882
+ property :end_time, as: 'endTime'
883
+ property :name, as: 'name'
884
+ property :phase, as: 'phase'
885
+ property :state, as: 'state'
886
+ property :state_message, as: 'stateMessage'
887
+ end
888
+ end
889
+
743
890
  class MoveTableToDatabaseRequest
744
891
  # @private
745
892
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -934,6 +1081,15 @@ module Google
934
1081
  end
935
1082
  end
936
1083
 
1084
+ class StartMigrationRequest
1085
+ # @private
1086
+ class Representation < Google::Apis::Core::JsonRepresentation
1087
+ property :migration_execution, as: 'migrationExecution', class: Google::Apis::MetastoreV1beta::MigrationExecution, decorator: Google::Apis::MetastoreV1beta::MigrationExecution::Representation
1088
+
1089
+ property :request_id, as: 'requestId'
1090
+ end
1091
+ end
1092
+
937
1093
  class Status
938
1094
  # @private
939
1095
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -690,6 +690,77 @@ module Google
690
690
  execute_or_queue_command(command, &block)
691
691
  end
692
692
 
693
+ # Cancels the ongoing Managed Migration process.
694
+ # @param [String] service
695
+ # Required. The relative resource name of the metastore service to cancel the
696
+ # ongoing migration to, in the following format:projects/`project_id`/locations/`
697
+ # location_id`/services/`service_id`.
698
+ # @param [Google::Apis::MetastoreV1beta::CancelMigrationRequest] cancel_migration_request_object
699
+ # @param [String] fields
700
+ # Selector specifying which fields to include in a partial response.
701
+ # @param [String] quota_user
702
+ # Available to use for quota purposes for server-side applications. Can be any
703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
704
+ # @param [Google::Apis::RequestOptions] options
705
+ # Request-specific options
706
+ #
707
+ # @yield [result, err] Result & error if block supplied
708
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
709
+ # @yieldparam err [StandardError] error object if request failed
710
+ #
711
+ # @return [Google::Apis::MetastoreV1beta::Operation]
712
+ #
713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
716
+ def cancel_service_migration(service, cancel_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
717
+ command = make_simple_command(:post, 'v1beta/{+service}:cancelMigration', options)
718
+ command.request_representation = Google::Apis::MetastoreV1beta::CancelMigrationRequest::Representation
719
+ command.request_object = cancel_migration_request_object
720
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
721
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
722
+ command.params['service'] = service unless service.nil?
723
+ command.query['fields'] = fields unless fields.nil?
724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
725
+ execute_or_queue_command(command, &block)
726
+ end
727
+
728
+ # Completes the managed migration process. The Dataproc Metastore service will
729
+ # switch to using its own backend database after successful migration.
730
+ # @param [String] service
731
+ # Required. The relative resource name of the metastore service to complete the
732
+ # migration to, in the following format:projects/`project_id`/locations/`
733
+ # location_id`/services/`service_id`.
734
+ # @param [Google::Apis::MetastoreV1beta::CompleteMigrationRequest] complete_migration_request_object
735
+ # @param [String] fields
736
+ # Selector specifying which fields to include in a partial response.
737
+ # @param [String] quota_user
738
+ # Available to use for quota purposes for server-side applications. Can be any
739
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
740
+ # @param [Google::Apis::RequestOptions] options
741
+ # Request-specific options
742
+ #
743
+ # @yield [result, err] Result & error if block supplied
744
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
745
+ # @yieldparam err [StandardError] error object if request failed
746
+ #
747
+ # @return [Google::Apis::MetastoreV1beta::Operation]
748
+ #
749
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
750
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
751
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
752
+ def complete_service_migration(service, complete_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
753
+ command = make_simple_command(:post, 'v1beta/{+service}:completeMigration', options)
754
+ command.request_representation = Google::Apis::MetastoreV1beta::CompleteMigrationRequest::Representation
755
+ command.request_object = complete_migration_request_object
756
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
757
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
758
+ command.params['service'] = service unless service.nil?
759
+ command.query['fields'] = fields unless fields.nil?
760
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
761
+ execute_or_queue_command(command, &block)
762
+ end
763
+
693
764
  # Creates a metastore service in a project and location.
694
765
  # @param [String] parent
695
766
  # Required. The relative resource name of the location in which to create a
@@ -1176,6 +1247,41 @@ module Google
1176
1247
  execute_or_queue_command(command, &block)
1177
1248
  end
1178
1249
 
1250
+ # Starts the Managed Migration process.
1251
+ # @param [String] service
1252
+ # Required. The relative resource name of the metastore service to start
1253
+ # migrating to, in the following format:projects/`project_id`/locations/`
1254
+ # location_id`/services/`service_id`.
1255
+ # @param [Google::Apis::MetastoreV1beta::StartMigrationRequest] start_migration_request_object
1256
+ # @param [String] fields
1257
+ # Selector specifying which fields to include in a partial response.
1258
+ # @param [String] quota_user
1259
+ # Available to use for quota purposes for server-side applications. Can be any
1260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1261
+ # @param [Google::Apis::RequestOptions] options
1262
+ # Request-specific options
1263
+ #
1264
+ # @yield [result, err] Result & error if block supplied
1265
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
1266
+ # @yieldparam err [StandardError] error object if request failed
1267
+ #
1268
+ # @return [Google::Apis::MetastoreV1beta::Operation]
1269
+ #
1270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1273
+ def start_service_migration(service, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1274
+ command = make_simple_command(:post, 'v1beta/{+service}:startMigration', options)
1275
+ command.request_representation = Google::Apis::MetastoreV1beta::StartMigrationRequest::Representation
1276
+ command.request_object = start_migration_request_object
1277
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
1278
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
1279
+ command.params['service'] = service unless service.nil?
1280
+ command.query['fields'] = fields unless fields.nil?
1281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1282
+ execute_or_queue_command(command, &block)
1283
+ end
1284
+
1179
1285
  # Returns permissions that a caller has on the specified resource. If the
1180
1286
  # resource does not exist, this will return an empty set of permissions, not a
1181
1287
  # NOT_FOUND error.Note: This operation is designed to be used for building
@@ -1982,6 +2088,91 @@ module Google
1982
2088
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1983
2089
  execute_or_queue_command(command, &block)
1984
2090
  end
2091
+
2092
+ # Gets details of a single migration execution.
2093
+ # @param [String] name
2094
+ # Required. The relative resource name of the migration execution to retrieve,
2095
+ # in the following form:projects/`project_number`/locations/`location_id`/
2096
+ # services/`service_id`/migrationExecutions/`migration_execution_id`.
2097
+ # @param [String] fields
2098
+ # Selector specifying which fields to include in a partial response.
2099
+ # @param [String] quota_user
2100
+ # Available to use for quota purposes for server-side applications. Can be any
2101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2102
+ # @param [Google::Apis::RequestOptions] options
2103
+ # Request-specific options
2104
+ #
2105
+ # @yield [result, err] Result & error if block supplied
2106
+ # @yieldparam result [Google::Apis::MetastoreV1beta::MigrationExecution] parsed result object
2107
+ # @yieldparam err [StandardError] error object if request failed
2108
+ #
2109
+ # @return [Google::Apis::MetastoreV1beta::MigrationExecution]
2110
+ #
2111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2114
+ def get_project_location_service_migration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
2115
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
2116
+ command.response_representation = Google::Apis::MetastoreV1beta::MigrationExecution::Representation
2117
+ command.response_class = Google::Apis::MetastoreV1beta::MigrationExecution
2118
+ command.params['name'] = name unless name.nil?
2119
+ command.query['fields'] = fields unless fields.nil?
2120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2121
+ execute_or_queue_command(command, &block)
2122
+ end
2123
+
2124
+ # Lists migration executions on a service.
2125
+ # @param [String] parent
2126
+ # Required. The relative resource name of the service whose migration executions
2127
+ # to list, in the following form:projects/`project_number`/locations/`
2128
+ # location_id`/services/`service_id`/migrationExecutions.
2129
+ # @param [String] filter
2130
+ # Optional. The filter to apply to list results.
2131
+ # @param [String] order_by
2132
+ # Optional. Specify the ordering of results as described in Sorting Order (https:
2133
+ # //cloud.google.com/apis/design/design_patterns#sorting_order). If not
2134
+ # specified, the results will be sorted in the default order.
2135
+ # @param [Fixnum] page_size
2136
+ # Optional. The maximum number of migration executions to return. The response
2137
+ # may contain less than the maximum number. If unspecified, no more than 500
2138
+ # migration executions are returned. The maximum value is 1000; values above
2139
+ # 1000 are changed to 1000.
2140
+ # @param [String] page_token
2141
+ # Optional. A page token, received from a previous DataprocMetastore.
2142
+ # ListMigrationExecutions call. Provide this token to retrieve the subsequent
2143
+ # page.To retrieve the first page, supply an empty page token.When paginating,
2144
+ # other parameters provided to DataprocMetastore.ListMigrationExecutions must
2145
+ # match the call that provided the page token.
2146
+ # @param [String] fields
2147
+ # Selector specifying which fields to include in a partial response.
2148
+ # @param [String] quota_user
2149
+ # Available to use for quota purposes for server-side applications. Can be any
2150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2151
+ # @param [Google::Apis::RequestOptions] options
2152
+ # Request-specific options
2153
+ #
2154
+ # @yield [result, err] Result & error if block supplied
2155
+ # @yieldparam result [Google::Apis::MetastoreV1beta::ListMigrationExecutionsResponse] parsed result object
2156
+ # @yieldparam err [StandardError] error object if request failed
2157
+ #
2158
+ # @return [Google::Apis::MetastoreV1beta::ListMigrationExecutionsResponse]
2159
+ #
2160
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2161
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2162
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2163
+ def list_project_location_service_migration_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2164
+ command = make_simple_command(:get, 'v1beta/{+parent}/migrationExecutions', options)
2165
+ command.response_representation = Google::Apis::MetastoreV1beta::ListMigrationExecutionsResponse::Representation
2166
+ command.response_class = Google::Apis::MetastoreV1beta::ListMigrationExecutionsResponse
2167
+ command.params['parent'] = parent unless parent.nil?
2168
+ command.query['filter'] = filter unless filter.nil?
2169
+ command.query['orderBy'] = order_by unless order_by.nil?
2170
+ command.query['pageSize'] = page_size unless page_size.nil?
2171
+ command.query['pageToken'] = page_token unless page_token.nil?
2172
+ command.query['fields'] = fields unless fields.nil?
2173
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2174
+ execute_or_queue_command(command, &block)
2175
+ end
1985
2176
 
1986
2177
  protected
1987
2178
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-metastore_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.61.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: 2024-03-03 00:00:00.000000000 Z
11
+ date: 2024-03-31 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-metastore_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.59.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1beta/v0.61.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-metastore_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []