google-apis-metastore_v1alpha 0.59.0 → 0.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/metastore_v1alpha/classes.rb +428 -1
- data/lib/google/apis/metastore_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/metastore_v1alpha/representations.rb +188 -0
- data/lib/google/apis/metastore_v1alpha/service.rb +234 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d9a45809f463203bea93536dc1b1f6f78c55dc339e015af7d0a96dda1475e4f
|
4
|
+
data.tar.gz: 735fb726f24979b0a734f90fbb301dbcd8489fdce3d61dd601033df04fabd12d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bbd5a90616e86f203cfe7181e49b4ed4707c6273033bca595451ce84ea8ea80c478284d262156bb008466eebe36291a92b663c565da0698e557d23251f4f132
|
7
|
+
data.tar.gz: e704ca468764627af82c0b93b588d5d15ab27111d7b7784b577f8acedd4b1d9e0ea4a5a21e57e87ad62fa841c5dc39326a75c349a7d19e2825f974a2ca8e8af7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-metastore_v1alpha
|
2
2
|
|
3
|
+
### v0.61.0 (2024-04-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240411
|
6
|
+
|
7
|
+
### v0.60.0 (2024-03-31)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240325
|
10
|
+
|
3
11
|
### v0.59.0 (2024-03-17)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240312
|
@@ -173,6 +173,38 @@ module Google
|
|
173
173
|
end
|
174
174
|
end
|
175
175
|
|
176
|
+
# Represents the autoscaling configuration of a metastore service.
|
177
|
+
class AutoscalingConfig
|
178
|
+
include Google::Apis::Core::Hashable
|
179
|
+
|
180
|
+
# Optional. Whether or not autoscaling is enabled for this service.
|
181
|
+
# Corresponds to the JSON property `autoscalingEnabled`
|
182
|
+
# @return [Boolean]
|
183
|
+
attr_accessor :autoscaling_enabled
|
184
|
+
alias_method :autoscaling_enabled?, :autoscaling_enabled
|
185
|
+
|
186
|
+
# Output only. The scaling factor of a service with autoscaling enabled.
|
187
|
+
# Corresponds to the JSON property `autoscalingFactor`
|
188
|
+
# @return [Float]
|
189
|
+
attr_accessor :autoscaling_factor
|
190
|
+
|
191
|
+
# Represents the autoscaling limit configuration of a metastore service.
|
192
|
+
# Corresponds to the JSON property `limitConfig`
|
193
|
+
# @return [Google::Apis::MetastoreV1alpha::LimitConfig]
|
194
|
+
attr_accessor :limit_config
|
195
|
+
|
196
|
+
def initialize(**args)
|
197
|
+
update!(**args)
|
198
|
+
end
|
199
|
+
|
200
|
+
# Update properties of this object
|
201
|
+
def update!(**args)
|
202
|
+
@autoscaling_enabled = args[:autoscaling_enabled] if args.key?(:autoscaling_enabled)
|
203
|
+
@autoscaling_factor = args[:autoscaling_factor] if args.key?(:autoscaling_factor)
|
204
|
+
@limit_config = args[:limit_config] if args.key?(:limit_config)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
176
208
|
# Configuration information for the auxiliary service versions.
|
177
209
|
class AuxiliaryVersionConfig
|
178
210
|
include Google::Apis::Core::Hashable
|
@@ -394,6 +426,40 @@ module Google
|
|
394
426
|
end
|
395
427
|
end
|
396
428
|
|
429
|
+
# Request message for DataprocMetastore.CancelMigration.
|
430
|
+
class CancelMigrationRequest
|
431
|
+
include Google::Apis::Core::Hashable
|
432
|
+
|
433
|
+
def initialize(**args)
|
434
|
+
update!(**args)
|
435
|
+
end
|
436
|
+
|
437
|
+
# Update properties of this object
|
438
|
+
def update!(**args)
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
# Response message for DataprocMetastore.CancelMigration.
|
443
|
+
class CancelMigrationResponse
|
444
|
+
include Google::Apis::Core::Hashable
|
445
|
+
|
446
|
+
# The relative resource name of the migration execution, in the following form:
|
447
|
+
# projects/`project_number`/locations/`location_id`/services/`service_id`/
|
448
|
+
# migrationExecutions/`migration_execution_id`.
|
449
|
+
# Corresponds to the JSON property `migrationExecution`
|
450
|
+
# @return [String]
|
451
|
+
attr_accessor :migration_execution
|
452
|
+
|
453
|
+
def initialize(**args)
|
454
|
+
update!(**args)
|
455
|
+
end
|
456
|
+
|
457
|
+
# Update properties of this object
|
458
|
+
def update!(**args)
|
459
|
+
@migration_execution = args[:migration_execution] if args.key?(:migration_execution)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
397
463
|
# The request message for Operations.CancelOperation.
|
398
464
|
class CancelOperationRequest
|
399
465
|
include Google::Apis::Core::Hashable
|
@@ -407,6 +473,213 @@ module Google
|
|
407
473
|
end
|
408
474
|
end
|
409
475
|
|
476
|
+
# Configuration information to start the Change Data Capture (CDC) streams from
|
477
|
+
# customer database to backend database of Dataproc Metastore.
|
478
|
+
class CdcConfig
|
479
|
+
include Google::Apis::Core::Hashable
|
480
|
+
|
481
|
+
# Optional. The bucket to write the intermediate stream event data in. The
|
482
|
+
# bucket name must be without any prefix like "gs://". See the bucket naming
|
483
|
+
# requirements (https://cloud.google.com/storage/docs/buckets#naming). This
|
484
|
+
# field is optional. If not set, the Artifacts Cloud Storage bucket will be used.
|
485
|
+
# Corresponds to the JSON property `bucket`
|
486
|
+
# @return [String]
|
487
|
+
attr_accessor :bucket
|
488
|
+
|
489
|
+
# Required. Input only. The password for the user that Datastream service should
|
490
|
+
# use for the MySQL connection. This field is not returned on request.
|
491
|
+
# Corresponds to the JSON property `password`
|
492
|
+
# @return [String]
|
493
|
+
attr_accessor :password
|
494
|
+
|
495
|
+
# Required. The URL of the subnetwork resource to create the VM instance hosting
|
496
|
+
# the reverse proxy in. More context in https://cloud.google.com/datastream/docs/
|
497
|
+
# private-connectivity#reverse-csql-proxy The subnetwork should reside in the
|
498
|
+
# network provided in the request that Datastream will peer to and should be in
|
499
|
+
# the same region as Datastream, in the following format. projects/`project_id`/
|
500
|
+
# regions/`region_id`/subnetworks/`subnetwork_id`
|
501
|
+
# Corresponds to the JSON property `reverseProxySubnet`
|
502
|
+
# @return [String]
|
503
|
+
attr_accessor :reverse_proxy_subnet
|
504
|
+
|
505
|
+
# Optional. The root path inside the Cloud Storage bucket. The stream event data
|
506
|
+
# will be written to this path. The default value is /migration.
|
507
|
+
# Corresponds to the JSON property `rootPath`
|
508
|
+
# @return [String]
|
509
|
+
attr_accessor :root_path
|
510
|
+
|
511
|
+
# Required. A /29 CIDR IP range for peering with datastream.
|
512
|
+
# Corresponds to the JSON property `subnetIpRange`
|
513
|
+
# @return [String]
|
514
|
+
attr_accessor :subnet_ip_range
|
515
|
+
|
516
|
+
# Required. The username that the Datastream service should use for the MySQL
|
517
|
+
# connection.
|
518
|
+
# Corresponds to the JSON property `username`
|
519
|
+
# @return [String]
|
520
|
+
attr_accessor :username
|
521
|
+
|
522
|
+
# Required. Fully qualified name of the Cloud SQL instance's VPC network or the
|
523
|
+
# shared VPC network that Datastream will peer to, in the following format:
|
524
|
+
# projects/`project_id`/locations/global/networks/`network_id`. More context in
|
525
|
+
# https://cloud.google.com/datastream/docs/network-connectivity-options#
|
526
|
+
# privateconnectivity
|
527
|
+
# Corresponds to the JSON property `vpcNetwork`
|
528
|
+
# @return [String]
|
529
|
+
attr_accessor :vpc_network
|
530
|
+
|
531
|
+
def initialize(**args)
|
532
|
+
update!(**args)
|
533
|
+
end
|
534
|
+
|
535
|
+
# Update properties of this object
|
536
|
+
def update!(**args)
|
537
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
538
|
+
@password = args[:password] if args.key?(:password)
|
539
|
+
@reverse_proxy_subnet = args[:reverse_proxy_subnet] if args.key?(:reverse_proxy_subnet)
|
540
|
+
@root_path = args[:root_path] if args.key?(:root_path)
|
541
|
+
@subnet_ip_range = args[:subnet_ip_range] if args.key?(:subnet_ip_range)
|
542
|
+
@username = args[:username] if args.key?(:username)
|
543
|
+
@vpc_network = args[:vpc_network] if args.key?(:vpc_network)
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
# Configuration information to establish customer database connection before the
|
548
|
+
# cutover phase of migration
|
549
|
+
class CloudSqlConnectionConfig
|
550
|
+
include Google::Apis::Core::Hashable
|
551
|
+
|
552
|
+
# Required. The hive database name.
|
553
|
+
# Corresponds to the JSON property `hiveDatabaseName`
|
554
|
+
# @return [String]
|
555
|
+
attr_accessor :hive_database_name
|
556
|
+
|
557
|
+
# Required. Cloud SQL database connection name (project_id:region:instance_name)
|
558
|
+
# Corresponds to the JSON property `instanceConnectionName`
|
559
|
+
# @return [String]
|
560
|
+
attr_accessor :instance_connection_name
|
561
|
+
|
562
|
+
# Required. The private IP address of the Cloud SQL instance.
|
563
|
+
# Corresponds to the JSON property `ipAddress`
|
564
|
+
# @return [String]
|
565
|
+
attr_accessor :ip_address
|
566
|
+
|
567
|
+
# Required. The relative resource name of the subnetwork to be used for Private
|
568
|
+
# Service Connect. Note that this cannot be a regular subnet and is used only
|
569
|
+
# for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-
|
570
|
+
# subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet
|
571
|
+
# size must be at least /29 and it should reside in a network through which the
|
572
|
+
# Cloud SQL instance is accessible. The resource name should be in the format,
|
573
|
+
# projects/`project_id`/regions/`region_id`/subnetworks/`subnetwork_id`
|
574
|
+
# Corresponds to the JSON property `natSubnet`
|
575
|
+
# @return [String]
|
576
|
+
attr_accessor :nat_subnet
|
577
|
+
|
578
|
+
# Required. Input only. The password for the user that Dataproc Metastore
|
579
|
+
# service will be using to connect to the database. This field is not returned
|
580
|
+
# on request.
|
581
|
+
# Corresponds to the JSON property `password`
|
582
|
+
# @return [String]
|
583
|
+
attr_accessor :password
|
584
|
+
|
585
|
+
# Required. The network port of the database.
|
586
|
+
# Corresponds to the JSON property `port`
|
587
|
+
# @return [Fixnum]
|
588
|
+
attr_accessor :port
|
589
|
+
|
590
|
+
# Required. The relative resource name of the subnetwork to deploy the SOCKS5
|
591
|
+
# proxy service in. The subnetwork should reside in a network through which the
|
592
|
+
# Cloud SQL instance is accessible. The resource name should be in the format,
|
593
|
+
# projects/`project_id`/regions/`region_id`/subnetworks/`subnetwork_id`
|
594
|
+
# Corresponds to the JSON property `proxySubnet`
|
595
|
+
# @return [String]
|
596
|
+
attr_accessor :proxy_subnet
|
597
|
+
|
598
|
+
# Required. The username that Dataproc Metastore service will use to connect to
|
599
|
+
# the database.
|
600
|
+
# Corresponds to the JSON property `username`
|
601
|
+
# @return [String]
|
602
|
+
attr_accessor :username
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@hive_database_name = args[:hive_database_name] if args.key?(:hive_database_name)
|
611
|
+
@instance_connection_name = args[:instance_connection_name] if args.key?(:instance_connection_name)
|
612
|
+
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
613
|
+
@nat_subnet = args[:nat_subnet] if args.key?(:nat_subnet)
|
614
|
+
@password = args[:password] if args.key?(:password)
|
615
|
+
@port = args[:port] if args.key?(:port)
|
616
|
+
@proxy_subnet = args[:proxy_subnet] if args.key?(:proxy_subnet)
|
617
|
+
@username = args[:username] if args.key?(:username)
|
618
|
+
end
|
619
|
+
end
|
620
|
+
|
621
|
+
# Configuration information for migrating from self-managed hive metastore on
|
622
|
+
# Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.
|
623
|
+
class CloudSqlMigrationConfig
|
624
|
+
include Google::Apis::Core::Hashable
|
625
|
+
|
626
|
+
# Configuration information to start the Change Data Capture (CDC) streams from
|
627
|
+
# customer database to backend database of Dataproc Metastore.
|
628
|
+
# Corresponds to the JSON property `cdcConfig`
|
629
|
+
# @return [Google::Apis::MetastoreV1alpha::CdcConfig]
|
630
|
+
attr_accessor :cdc_config
|
631
|
+
|
632
|
+
# Configuration information to establish customer database connection before the
|
633
|
+
# cutover phase of migration
|
634
|
+
# Corresponds to the JSON property `cloudSqlConnectionConfig`
|
635
|
+
# @return [Google::Apis::MetastoreV1alpha::CloudSqlConnectionConfig]
|
636
|
+
attr_accessor :cloud_sql_connection_config
|
637
|
+
|
638
|
+
def initialize(**args)
|
639
|
+
update!(**args)
|
640
|
+
end
|
641
|
+
|
642
|
+
# Update properties of this object
|
643
|
+
def update!(**args)
|
644
|
+
@cdc_config = args[:cdc_config] if args.key?(:cdc_config)
|
645
|
+
@cloud_sql_connection_config = args[:cloud_sql_connection_config] if args.key?(:cloud_sql_connection_config)
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
649
|
+
# Request message for DataprocMetastore.CompleteMigration.
|
650
|
+
class CompleteMigrationRequest
|
651
|
+
include Google::Apis::Core::Hashable
|
652
|
+
|
653
|
+
def initialize(**args)
|
654
|
+
update!(**args)
|
655
|
+
end
|
656
|
+
|
657
|
+
# Update properties of this object
|
658
|
+
def update!(**args)
|
659
|
+
end
|
660
|
+
end
|
661
|
+
|
662
|
+
# Response message for DataprocMetastore.CompleteMigration.
|
663
|
+
class CompleteMigrationResponse
|
664
|
+
include Google::Apis::Core::Hashable
|
665
|
+
|
666
|
+
# The relative resource name of the migration execution, in the following form:
|
667
|
+
# projects/`project_number`/locations/`location_id`/services/`service_id`/
|
668
|
+
# migrationExecutions/`migration_execution_id`.
|
669
|
+
# Corresponds to the JSON property `migrationExecution`
|
670
|
+
# @return [String]
|
671
|
+
attr_accessor :migration_execution
|
672
|
+
|
673
|
+
def initialize(**args)
|
674
|
+
update!(**args)
|
675
|
+
end
|
676
|
+
|
677
|
+
# Update properties of this object
|
678
|
+
def update!(**args)
|
679
|
+
@migration_execution = args[:migration_execution] if args.key?(:migration_execution)
|
680
|
+
end
|
681
|
+
end
|
682
|
+
|
410
683
|
# Contains information of the customer's network configurations.
|
411
684
|
class Consumer
|
412
685
|
include Google::Apis::Core::Hashable
|
@@ -549,7 +822,7 @@ module Google
|
|
549
822
|
include Google::Apis::Core::Hashable
|
550
823
|
|
551
824
|
# The fully qualified customer provided Cloud KMS key name to use for customer
|
552
|
-
# data encryption, in the following
|
825
|
+
# data encryption, in the following format:projects/`project_number`/locations/`
|
553
826
|
# location_id`/keyRings/`key_ring_id`/cryptoKeys/`crypto_key_id`.
|
554
827
|
# Corresponds to the JSON property `kmsKey`
|
555
828
|
# @return [String]
|
@@ -935,6 +1208,31 @@ module Google
|
|
935
1208
|
end
|
936
1209
|
end
|
937
1210
|
|
1211
|
+
# Represents the autoscaling limit configuration of a metastore service.
|
1212
|
+
class LimitConfig
|
1213
|
+
include Google::Apis::Core::Hashable
|
1214
|
+
|
1215
|
+
# Optional. The highest scaling factor that the service should be autoscaled to.
|
1216
|
+
# Corresponds to the JSON property `maxScalingFactor`
|
1217
|
+
# @return [Float]
|
1218
|
+
attr_accessor :max_scaling_factor
|
1219
|
+
|
1220
|
+
# Optional. The lowest scaling factor that the service should be autoscaled to.
|
1221
|
+
# Corresponds to the JSON property `minScalingFactor`
|
1222
|
+
# @return [Float]
|
1223
|
+
attr_accessor :min_scaling_factor
|
1224
|
+
|
1225
|
+
def initialize(**args)
|
1226
|
+
update!(**args)
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
# Update properties of this object
|
1230
|
+
def update!(**args)
|
1231
|
+
@max_scaling_factor = args[:max_scaling_factor] if args.key?(:max_scaling_factor)
|
1232
|
+
@min_scaling_factor = args[:min_scaling_factor] if args.key?(:min_scaling_factor)
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
938
1236
|
# Response message for DataprocMetastore.ListBackups.
|
939
1237
|
class ListBackupsResponse
|
940
1238
|
include Google::Apis::Core::Hashable
|
@@ -1056,6 +1354,38 @@ module Google
|
|
1056
1354
|
end
|
1057
1355
|
end
|
1058
1356
|
|
1357
|
+
# Response message for DataprocMetastore.ListMigrationExecutions.
|
1358
|
+
class ListMigrationExecutionsResponse
|
1359
|
+
include Google::Apis::Core::Hashable
|
1360
|
+
|
1361
|
+
# The migration executions on the specified service.
|
1362
|
+
# Corresponds to the JSON property `migrationExecutions`
|
1363
|
+
# @return [Array<Google::Apis::MetastoreV1alpha::MigrationExecution>]
|
1364
|
+
attr_accessor :migration_executions
|
1365
|
+
|
1366
|
+
# A token that can be sent as page_token to retrieve the next page. If this
|
1367
|
+
# field is omitted, there are no subsequent pages.
|
1368
|
+
# Corresponds to the JSON property `nextPageToken`
|
1369
|
+
# @return [String]
|
1370
|
+
attr_accessor :next_page_token
|
1371
|
+
|
1372
|
+
# Locations that could not be reached.
|
1373
|
+
# Corresponds to the JSON property `unreachable`
|
1374
|
+
# @return [Array<String>]
|
1375
|
+
attr_accessor :unreachable
|
1376
|
+
|
1377
|
+
def initialize(**args)
|
1378
|
+
update!(**args)
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
# Update properties of this object
|
1382
|
+
def update!(**args)
|
1383
|
+
@migration_executions = args[:migration_executions] if args.key?(:migration_executions)
|
1384
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1385
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1386
|
+
end
|
1387
|
+
end
|
1388
|
+
|
1059
1389
|
# The response message for Operations.ListOperations.
|
1060
1390
|
class ListOperationsResponse
|
1061
1391
|
include Google::Apis::Core::Hashable
|
@@ -1369,6 +1699,65 @@ module Google
|
|
1369
1699
|
end
|
1370
1700
|
end
|
1371
1701
|
|
1702
|
+
# The details of a migration execution resource.
|
1703
|
+
class MigrationExecution
|
1704
|
+
include Google::Apis::Core::Hashable
|
1705
|
+
|
1706
|
+
# Configuration information for migrating from self-managed hive metastore on
|
1707
|
+
# Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.
|
1708
|
+
# Corresponds to the JSON property `cloudSqlMigrationConfig`
|
1709
|
+
# @return [Google::Apis::MetastoreV1alpha::CloudSqlMigrationConfig]
|
1710
|
+
attr_accessor :cloud_sql_migration_config
|
1711
|
+
|
1712
|
+
# Output only. The time when the migration execution was started.
|
1713
|
+
# Corresponds to the JSON property `createTime`
|
1714
|
+
# @return [String]
|
1715
|
+
attr_accessor :create_time
|
1716
|
+
|
1717
|
+
# Output only. The time when the migration execution finished.
|
1718
|
+
# Corresponds to the JSON property `endTime`
|
1719
|
+
# @return [String]
|
1720
|
+
attr_accessor :end_time
|
1721
|
+
|
1722
|
+
# Output only. The relative resource name of the migration execution, in the
|
1723
|
+
# following form: projects/`project_number`/locations/`location_id`/services/`
|
1724
|
+
# service_id`/migrationExecutions/`migration_execution_id`
|
1725
|
+
# Corresponds to the JSON property `name`
|
1726
|
+
# @return [String]
|
1727
|
+
attr_accessor :name
|
1728
|
+
|
1729
|
+
# Output only. The current phase of the migration execution.
|
1730
|
+
# Corresponds to the JSON property `phase`
|
1731
|
+
# @return [String]
|
1732
|
+
attr_accessor :phase
|
1733
|
+
|
1734
|
+
# Output only. The current state of the migration execution.
|
1735
|
+
# Corresponds to the JSON property `state`
|
1736
|
+
# @return [String]
|
1737
|
+
attr_accessor :state
|
1738
|
+
|
1739
|
+
# Output only. Additional information about the current state of the migration
|
1740
|
+
# execution.
|
1741
|
+
# Corresponds to the JSON property `stateMessage`
|
1742
|
+
# @return [String]
|
1743
|
+
attr_accessor :state_message
|
1744
|
+
|
1745
|
+
def initialize(**args)
|
1746
|
+
update!(**args)
|
1747
|
+
end
|
1748
|
+
|
1749
|
+
# Update properties of this object
|
1750
|
+
def update!(**args)
|
1751
|
+
@cloud_sql_migration_config = args[:cloud_sql_migration_config] if args.key?(:cloud_sql_migration_config)
|
1752
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1753
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1754
|
+
@name = args[:name] if args.key?(:name)
|
1755
|
+
@phase = args[:phase] if args.key?(:phase)
|
1756
|
+
@state = args[:state] if args.key?(:state)
|
1757
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
1758
|
+
end
|
1759
|
+
end
|
1760
|
+
|
1372
1761
|
# Request message for DataprocMetastore.MoveTableToDatabase.
|
1373
1762
|
class MoveTableToDatabaseRequest
|
1374
1763
|
include Google::Apis::Core::Hashable
|
@@ -1872,6 +2261,11 @@ module Google
|
|
1872
2261
|
class ScalingConfig
|
1873
2262
|
include Google::Apis::Core::Hashable
|
1874
2263
|
|
2264
|
+
# Represents the autoscaling configuration of a metastore service.
|
2265
|
+
# Corresponds to the JSON property `autoscalingConfig`
|
2266
|
+
# @return [Google::Apis::MetastoreV1alpha::AutoscalingConfig]
|
2267
|
+
attr_accessor :autoscaling_config
|
2268
|
+
|
1875
2269
|
# An enum of readable instance sizes, with each instance size mapping to a float
|
1876
2270
|
# value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
|
1877
2271
|
# Corresponds to the JSON property `instanceSize`
|
@@ -1890,6 +2284,7 @@ module Google
|
|
1890
2284
|
|
1891
2285
|
# Update properties of this object
|
1892
2286
|
def update!(**args)
|
2287
|
+
@autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config)
|
1893
2288
|
@instance_size = args[:instance_size] if args.key?(:instance_size)
|
1894
2289
|
@scaling_factor = args[:scaling_factor] if args.key?(:scaling_factor)
|
1895
2290
|
end
|
@@ -2186,6 +2581,38 @@ module Google
|
|
2186
2581
|
end
|
2187
2582
|
end
|
2188
2583
|
|
2584
|
+
# Request message for DataprocMetastore.StartMigration.
|
2585
|
+
class StartMigrationRequest
|
2586
|
+
include Google::Apis::Core::Hashable
|
2587
|
+
|
2588
|
+
# The details of a migration execution resource.
|
2589
|
+
# Corresponds to the JSON property `migrationExecution`
|
2590
|
+
# @return [Google::Apis::MetastoreV1alpha::MigrationExecution]
|
2591
|
+
attr_accessor :migration_execution
|
2592
|
+
|
2593
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
2594
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
2595
|
+
# requests that provide a duplicate request ID for at least 60 minutes after the
|
2596
|
+
# first request.For example, if an initial request times out, followed by
|
2597
|
+
# another request with the same request ID, the server ignores the second
|
2598
|
+
# request to prevent the creation of duplicate commitments.The request ID must
|
2599
|
+
# be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
|
2600
|
+
# Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
2601
|
+
# Corresponds to the JSON property `requestId`
|
2602
|
+
# @return [String]
|
2603
|
+
attr_accessor :request_id
|
2604
|
+
|
2605
|
+
def initialize(**args)
|
2606
|
+
update!(**args)
|
2607
|
+
end
|
2608
|
+
|
2609
|
+
# Update properties of this object
|
2610
|
+
def update!(**args)
|
2611
|
+
@migration_execution = args[:migration_execution] if args.key?(:migration_execution)
|
2612
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
2613
|
+
end
|
2614
|
+
end
|
2615
|
+
|
2189
2616
|
# The Status type defines a logical error model that is suitable for different
|
2190
2617
|
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
2191
2618
|
# (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 MetastoreV1alpha
|
18
18
|
# Version of the google-apis-metastore_v1alpha gem
|
19
|
-
GEM_VERSION = "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 = "
|
25
|
+
REVISION = "20240411"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,12 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class AutoscalingConfig
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
55
61
|
class AuxiliaryVersionConfig
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
@@ -76,12 +82,54 @@ module Google
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
77
83
|
end
|
78
84
|
|
85
|
+
class CancelMigrationRequest
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class CancelMigrationResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
79
97
|
class CancelOperationRequest
|
80
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
99
|
|
82
100
|
include Google::Apis::Core::JsonObjectSupport
|
83
101
|
end
|
84
102
|
|
103
|
+
class CdcConfig
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class CloudSqlConnectionConfig
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class CloudSqlMigrationConfig
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class CompleteMigrationRequest
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class CompleteMigrationResponse
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
85
133
|
class Consumer
|
86
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
135
|
|
@@ -172,6 +220,12 @@ module Google
|
|
172
220
|
include Google::Apis::Core::JsonObjectSupport
|
173
221
|
end
|
174
222
|
|
223
|
+
class LimitConfig
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
175
229
|
class ListBackupsResponse
|
176
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
231
|
|
@@ -196,6 +250,12 @@ module Google
|
|
196
250
|
include Google::Apis::Core::JsonObjectSupport
|
197
251
|
end
|
198
252
|
|
253
|
+
class ListMigrationExecutionsResponse
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
199
259
|
class ListOperationsResponse
|
200
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
261
|
|
@@ -250,6 +310,12 @@ module Google
|
|
250
310
|
include Google::Apis::Core::JsonObjectSupport
|
251
311
|
end
|
252
312
|
|
313
|
+
class MigrationExecution
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
253
319
|
class MoveTableToDatabaseRequest
|
254
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
321
|
|
@@ -358,6 +424,12 @@ module Google
|
|
358
424
|
include Google::Apis::Core::JsonObjectSupport
|
359
425
|
end
|
360
426
|
|
427
|
+
class StartMigrationRequest
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
361
433
|
class Status
|
362
434
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
435
|
|
@@ -422,6 +494,16 @@ module Google
|
|
422
494
|
end
|
423
495
|
end
|
424
496
|
|
497
|
+
class AutoscalingConfig
|
498
|
+
# @private
|
499
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
500
|
+
property :autoscaling_enabled, as: 'autoscalingEnabled'
|
501
|
+
property :autoscaling_factor, as: 'autoscalingFactor'
|
502
|
+
property :limit_config, as: 'limitConfig', class: Google::Apis::MetastoreV1alpha::LimitConfig, decorator: Google::Apis::MetastoreV1alpha::LimitConfig::Representation
|
503
|
+
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
425
507
|
class AuxiliaryVersionConfig
|
426
508
|
# @private
|
427
509
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -464,12 +546,75 @@ module Google
|
|
464
546
|
end
|
465
547
|
end
|
466
548
|
|
549
|
+
class CancelMigrationRequest
|
550
|
+
# @private
|
551
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
555
|
+
class CancelMigrationResponse
|
556
|
+
# @private
|
557
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
558
|
+
property :migration_execution, as: 'migrationExecution'
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
467
562
|
class CancelOperationRequest
|
468
563
|
# @private
|
469
564
|
class Representation < Google::Apis::Core::JsonRepresentation
|
470
565
|
end
|
471
566
|
end
|
472
567
|
|
568
|
+
class CdcConfig
|
569
|
+
# @private
|
570
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
571
|
+
property :bucket, as: 'bucket'
|
572
|
+
property :password, as: 'password'
|
573
|
+
property :reverse_proxy_subnet, as: 'reverseProxySubnet'
|
574
|
+
property :root_path, as: 'rootPath'
|
575
|
+
property :subnet_ip_range, as: 'subnetIpRange'
|
576
|
+
property :username, as: 'username'
|
577
|
+
property :vpc_network, as: 'vpcNetwork'
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
581
|
+
class CloudSqlConnectionConfig
|
582
|
+
# @private
|
583
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
584
|
+
property :hive_database_name, as: 'hiveDatabaseName'
|
585
|
+
property :instance_connection_name, as: 'instanceConnectionName'
|
586
|
+
property :ip_address, as: 'ipAddress'
|
587
|
+
property :nat_subnet, as: 'natSubnet'
|
588
|
+
property :password, as: 'password'
|
589
|
+
property :port, as: 'port'
|
590
|
+
property :proxy_subnet, as: 'proxySubnet'
|
591
|
+
property :username, as: 'username'
|
592
|
+
end
|
593
|
+
end
|
594
|
+
|
595
|
+
class CloudSqlMigrationConfig
|
596
|
+
# @private
|
597
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
598
|
+
property :cdc_config, as: 'cdcConfig', class: Google::Apis::MetastoreV1alpha::CdcConfig, decorator: Google::Apis::MetastoreV1alpha::CdcConfig::Representation
|
599
|
+
|
600
|
+
property :cloud_sql_connection_config, as: 'cloudSqlConnectionConfig', class: Google::Apis::MetastoreV1alpha::CloudSqlConnectionConfig, decorator: Google::Apis::MetastoreV1alpha::CloudSqlConnectionConfig::Representation
|
601
|
+
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
605
|
+
class CompleteMigrationRequest
|
606
|
+
# @private
|
607
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
611
|
+
class CompleteMigrationResponse
|
612
|
+
# @private
|
613
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
614
|
+
property :migration_execution, as: 'migrationExecution'
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
473
618
|
class Consumer
|
474
619
|
# @private
|
475
620
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -608,6 +753,14 @@ module Google
|
|
608
753
|
end
|
609
754
|
end
|
610
755
|
|
756
|
+
class LimitConfig
|
757
|
+
# @private
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
759
|
+
property :max_scaling_factor, as: 'maxScalingFactor'
|
760
|
+
property :min_scaling_factor, as: 'minScalingFactor'
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
611
764
|
class ListBackupsResponse
|
612
765
|
# @private
|
613
766
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -647,6 +800,16 @@ module Google
|
|
647
800
|
end
|
648
801
|
end
|
649
802
|
|
803
|
+
class ListMigrationExecutionsResponse
|
804
|
+
# @private
|
805
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
806
|
+
collection :migration_executions, as: 'migrationExecutions', class: Google::Apis::MetastoreV1alpha::MigrationExecution, decorator: Google::Apis::MetastoreV1alpha::MigrationExecution::Representation
|
807
|
+
|
808
|
+
property :next_page_token, as: 'nextPageToken'
|
809
|
+
collection :unreachable, as: 'unreachable'
|
810
|
+
end
|
811
|
+
end
|
812
|
+
|
650
813
|
class ListOperationsResponse
|
651
814
|
# @private
|
652
815
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -740,6 +903,20 @@ module Google
|
|
740
903
|
end
|
741
904
|
end
|
742
905
|
|
906
|
+
class MigrationExecution
|
907
|
+
# @private
|
908
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
909
|
+
property :cloud_sql_migration_config, as: 'cloudSqlMigrationConfig', class: Google::Apis::MetastoreV1alpha::CloudSqlMigrationConfig, decorator: Google::Apis::MetastoreV1alpha::CloudSqlMigrationConfig::Representation
|
910
|
+
|
911
|
+
property :create_time, as: 'createTime'
|
912
|
+
property :end_time, as: 'endTime'
|
913
|
+
property :name, as: 'name'
|
914
|
+
property :phase, as: 'phase'
|
915
|
+
property :state, as: 'state'
|
916
|
+
property :state_message, as: 'stateMessage'
|
917
|
+
end
|
918
|
+
end
|
919
|
+
|
743
920
|
class MoveTableToDatabaseRequest
|
744
921
|
# @private
|
745
922
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -862,6 +1039,8 @@ module Google
|
|
862
1039
|
class ScalingConfig
|
863
1040
|
# @private
|
864
1041
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1042
|
+
property :autoscaling_config, as: 'autoscalingConfig', class: Google::Apis::MetastoreV1alpha::AutoscalingConfig, decorator: Google::Apis::MetastoreV1alpha::AutoscalingConfig::Representation
|
1043
|
+
|
865
1044
|
property :instance_size, as: 'instanceSize'
|
866
1045
|
property :scaling_factor, as: 'scalingFactor'
|
867
1046
|
end
|
@@ -934,6 +1113,15 @@ module Google
|
|
934
1113
|
end
|
935
1114
|
end
|
936
1115
|
|
1116
|
+
class StartMigrationRequest
|
1117
|
+
# @private
|
1118
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1119
|
+
property :migration_execution, as: 'migrationExecution', class: Google::Apis::MetastoreV1alpha::MigrationExecution, decorator: Google::Apis::MetastoreV1alpha::MigrationExecution::Representation
|
1120
|
+
|
1121
|
+
property :request_id, as: 'requestId'
|
1122
|
+
end
|
1123
|
+
end
|
1124
|
+
|
937
1125
|
class Status
|
938
1126
|
# @private
|
939
1127
|
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::MetastoreV1alpha::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::MetastoreV1alpha::Operation] parsed result object
|
709
|
+
# @yieldparam err [StandardError] error object if request failed
|
710
|
+
#
|
711
|
+
# @return [Google::Apis::MetastoreV1alpha::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, 'v1alpha/{+service}:cancelMigration', options)
|
718
|
+
command.request_representation = Google::Apis::MetastoreV1alpha::CancelMigrationRequest::Representation
|
719
|
+
command.request_object = cancel_migration_request_object
|
720
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
|
721
|
+
command.response_class = Google::Apis::MetastoreV1alpha::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::MetastoreV1alpha::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::MetastoreV1alpha::Operation] parsed result object
|
745
|
+
# @yieldparam err [StandardError] error object if request failed
|
746
|
+
#
|
747
|
+
# @return [Google::Apis::MetastoreV1alpha::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, 'v1alpha/{+service}:completeMigration', options)
|
754
|
+
command.request_representation = Google::Apis::MetastoreV1alpha::CompleteMigrationRequest::Representation
|
755
|
+
command.request_object = complete_migration_request_object
|
756
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
|
757
|
+
command.response_class = Google::Apis::MetastoreV1alpha::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
|
@@ -1032,7 +1103,7 @@ module Google
|
|
1032
1103
|
execute_or_queue_command(command, &block)
|
1033
1104
|
end
|
1034
1105
|
|
1035
|
-
# Query
|
1106
|
+
# Query Dataproc Metastore metadata.
|
1036
1107
|
# @param [String] service
|
1037
1108
|
# Required. The relative resource name of the metastore service to query
|
1038
1109
|
# metadata, in the following format:projects/`project_id`/locations/`location_id`
|
@@ -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::MetastoreV1alpha::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::MetastoreV1alpha::Operation] parsed result object
|
1266
|
+
# @yieldparam err [StandardError] error object if request failed
|
1267
|
+
#
|
1268
|
+
# @return [Google::Apis::MetastoreV1alpha::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, 'v1alpha/{+service}:startMigration', options)
|
1275
|
+
command.request_representation = Google::Apis::MetastoreV1alpha::StartMigrationRequest::Representation
|
1276
|
+
command.request_object = start_migration_request_object
|
1277
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
|
1278
|
+
command.response_class = Google::Apis::MetastoreV1alpha::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
|
@@ -1940,6 +2046,133 @@ module Google
|
|
1940
2046
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1941
2047
|
execute_or_queue_command(command, &block)
|
1942
2048
|
end
|
2049
|
+
|
2050
|
+
# Deletes a single migration execution.
|
2051
|
+
# @param [String] name
|
2052
|
+
# Required. The relative resource name of the migrationExecution to delete, in
|
2053
|
+
# the following form:projects/`project_number`/locations/`location_id`/services/`
|
2054
|
+
# service_id`/migrationExecutions/`migration_execution_id`.
|
2055
|
+
# @param [String] request_id
|
2056
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
2057
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
2058
|
+
# requests that provide a duplicate request ID for at least 60 minutes after the
|
2059
|
+
# first request.For example, if an initial request times out, followed by
|
2060
|
+
# another request with the same request ID, the server ignores the second
|
2061
|
+
# request to prevent the creation of duplicate commitments.The request ID must
|
2062
|
+
# be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
|
2063
|
+
# Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
|
2064
|
+
# @param [String] fields
|
2065
|
+
# Selector specifying which fields to include in a partial response.
|
2066
|
+
# @param [String] quota_user
|
2067
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2068
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2069
|
+
# @param [Google::Apis::RequestOptions] options
|
2070
|
+
# Request-specific options
|
2071
|
+
#
|
2072
|
+
# @yield [result, err] Result & error if block supplied
|
2073
|
+
# @yieldparam result [Google::Apis::MetastoreV1alpha::Operation] parsed result object
|
2074
|
+
# @yieldparam err [StandardError] error object if request failed
|
2075
|
+
#
|
2076
|
+
# @return [Google::Apis::MetastoreV1alpha::Operation]
|
2077
|
+
#
|
2078
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2079
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2080
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2081
|
+
def delete_project_location_service_migration_execution(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2082
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
2083
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation
|
2084
|
+
command.response_class = Google::Apis::MetastoreV1alpha::Operation
|
2085
|
+
command.params['name'] = name unless name.nil?
|
2086
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2087
|
+
command.query['fields'] = fields unless fields.nil?
|
2088
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2089
|
+
execute_or_queue_command(command, &block)
|
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::MetastoreV1alpha::MigrationExecution] parsed result object
|
2107
|
+
# @yieldparam err [StandardError] error object if request failed
|
2108
|
+
#
|
2109
|
+
# @return [Google::Apis::MetastoreV1alpha::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, 'v1alpha/{+name}', options)
|
2116
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::MigrationExecution::Representation
|
2117
|
+
command.response_class = Google::Apis::MetastoreV1alpha::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::MetastoreV1alpha::ListMigrationExecutionsResponse] parsed result object
|
2156
|
+
# @yieldparam err [StandardError] error object if request failed
|
2157
|
+
#
|
2158
|
+
# @return [Google::Apis::MetastoreV1alpha::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, 'v1alpha/{+parent}/migrationExecutions', options)
|
2165
|
+
command.response_representation = Google::Apis::MetastoreV1alpha::ListMigrationExecutionsResponse::Representation
|
2166
|
+
command.response_class = Google::Apis::MetastoreV1alpha::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
|
1943
2176
|
|
1944
2177
|
protected
|
1945
2178
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-metastore_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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-
|
11
|
+
date: 2024-04-21 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_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1alpha/v0.61.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-metastore_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|