google-apis-metastore_v1 0.27.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30e72db392f1246ca199824b269dcbe21190f291b7a7a310864106ef9ecca051
4
- data.tar.gz: '0910942e4cd23f35cc215063f3f1402a4fcc8b39ba9667e2790573acc5e3e6e8'
3
+ metadata.gz: d7e7b830686d9d21e2cf7e9d9e66f29b5efb6a71034a973d694ea1d2adc842b1
4
+ data.tar.gz: ce72c20117ec248ec21413d693672e3ec0697d6554afe19d9f99800bd42108d4
5
5
  SHA512:
6
- metadata.gz: c5bde93be16c6f0504147e2e0ea59d2eb6aa5cfb231c8ad61bfee1107bed82ec48854bc723835a2b6ede7d4bb6c6fa96e6fd1499aceedb8f2228a52947e38d4b
7
- data.tar.gz: 6462e118818f6ec58f5d690f9e4598d3a44f59de2064192a32d218e05198936900979262c4cd7af35ab0d23b23a4aed6e0e2c283d29c5f4233f07300dd05125e
6
+ metadata.gz: 9c8bbe75acd2c400fee71a105d22121b1101e7f213b2b10548633a04129a42bc0117bccde98ed863dcf31e08759b7aa8a1319af31a8803acc5aaaa4ff016ad35
7
+ data.tar.gz: 0f236ca7e108c33d9d4c63566a864d038027ed579ca845100139b74de3e8041a48b336fb18cc6277851d77a2d6debf6bd2cfb8832dee04860b52cda7daada538
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-metastore_v1
2
2
 
3
+ ### v0.28.0 (2024-07-07)
4
+
5
+ * Regenerated from discovery document revision 20240627
6
+
3
7
  ### v0.27.0 (2024-06-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20240611
@@ -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::MetastoreV1::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,19 @@ 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
+
397
442
  # The request message for Operations.CancelOperation.
398
443
  class CancelOperationRequest
399
444
  include Google::Apis::Core::Hashable
@@ -407,6 +452,192 @@ module Google
407
452
  end
408
453
  end
409
454
 
455
+ # Configuration information to start the Change Data Capture (CDC) streams from
456
+ # customer database to backend database of Dataproc Metastore.
457
+ class CdcConfig
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # Optional. The bucket to write the intermediate stream event data in. The
461
+ # bucket name must be without any prefix like "gs://". See the bucket naming
462
+ # requirements (https://cloud.google.com/storage/docs/buckets#naming). This
463
+ # field is optional. If not set, the Artifacts Cloud Storage bucket will be used.
464
+ # Corresponds to the JSON property `bucket`
465
+ # @return [String]
466
+ attr_accessor :bucket
467
+
468
+ # Required. Input only. The password for the user that Datastream service should
469
+ # use for the MySQL connection. This field is not returned on request.
470
+ # Corresponds to the JSON property `password`
471
+ # @return [String]
472
+ attr_accessor :password
473
+
474
+ # Required. The URL of the subnetwork resource to create the VM instance hosting
475
+ # the reverse proxy in. More context in https://cloud.google.com/datastream/docs/
476
+ # private-connectivity#reverse-csql-proxy The subnetwork should reside in the
477
+ # network provided in the request that Datastream will peer to and should be in
478
+ # the same region as Datastream, in the following format. projects/`project_id`/
479
+ # regions/`region_id`/subnetworks/`subnetwork_id`
480
+ # Corresponds to the JSON property `reverseProxySubnet`
481
+ # @return [String]
482
+ attr_accessor :reverse_proxy_subnet
483
+
484
+ # Optional. The root path inside the Cloud Storage bucket. The stream event data
485
+ # will be written to this path. The default value is /migration.
486
+ # Corresponds to the JSON property `rootPath`
487
+ # @return [String]
488
+ attr_accessor :root_path
489
+
490
+ # Required. A /29 CIDR IP range for peering with datastream.
491
+ # Corresponds to the JSON property `subnetIpRange`
492
+ # @return [String]
493
+ attr_accessor :subnet_ip_range
494
+
495
+ # Required. The username that the Datastream service should use for the MySQL
496
+ # connection.
497
+ # Corresponds to the JSON property `username`
498
+ # @return [String]
499
+ attr_accessor :username
500
+
501
+ # Required. Fully qualified name of the Cloud SQL instance's VPC network or the
502
+ # shared VPC network that Datastream will peer to, in the following format:
503
+ # projects/`project_id`/locations/global/networks/`network_id`. More context in
504
+ # https://cloud.google.com/datastream/docs/network-connectivity-options#
505
+ # privateconnectivity
506
+ # Corresponds to the JSON property `vpcNetwork`
507
+ # @return [String]
508
+ attr_accessor :vpc_network
509
+
510
+ def initialize(**args)
511
+ update!(**args)
512
+ end
513
+
514
+ # Update properties of this object
515
+ def update!(**args)
516
+ @bucket = args[:bucket] if args.key?(:bucket)
517
+ @password = args[:password] if args.key?(:password)
518
+ @reverse_proxy_subnet = args[:reverse_proxy_subnet] if args.key?(:reverse_proxy_subnet)
519
+ @root_path = args[:root_path] if args.key?(:root_path)
520
+ @subnet_ip_range = args[:subnet_ip_range] if args.key?(:subnet_ip_range)
521
+ @username = args[:username] if args.key?(:username)
522
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
523
+ end
524
+ end
525
+
526
+ # Configuration information to establish customer database connection before the
527
+ # cutover phase of migration
528
+ class CloudSqlConnectionConfig
529
+ include Google::Apis::Core::Hashable
530
+
531
+ # Required. The hive database name.
532
+ # Corresponds to the JSON property `hiveDatabaseName`
533
+ # @return [String]
534
+ attr_accessor :hive_database_name
535
+
536
+ # Required. Cloud SQL database connection name (project_id:region:instance_name)
537
+ # Corresponds to the JSON property `instanceConnectionName`
538
+ # @return [String]
539
+ attr_accessor :instance_connection_name
540
+
541
+ # Required. The private IP address of the Cloud SQL instance.
542
+ # Corresponds to the JSON property `ipAddress`
543
+ # @return [String]
544
+ attr_accessor :ip_address
545
+
546
+ # Required. The relative resource name of the subnetwork to be used for Private
547
+ # Service Connect. Note that this cannot be a regular subnet and is used only
548
+ # for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-
549
+ # subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet
550
+ # size must be at least /29 and it should reside in a network through which the
551
+ # Cloud SQL instance is accessible. The resource name should be in the format,
552
+ # projects/`project_id`/regions/`region_id`/subnetworks/`subnetwork_id`
553
+ # Corresponds to the JSON property `natSubnet`
554
+ # @return [String]
555
+ attr_accessor :nat_subnet
556
+
557
+ # Required. Input only. The password for the user that Dataproc Metastore
558
+ # service will be using to connect to the database. This field is not returned
559
+ # on request.
560
+ # Corresponds to the JSON property `password`
561
+ # @return [String]
562
+ attr_accessor :password
563
+
564
+ # Required. The network port of the database.
565
+ # Corresponds to the JSON property `port`
566
+ # @return [Fixnum]
567
+ attr_accessor :port
568
+
569
+ # Required. The relative resource name of the subnetwork to deploy the SOCKS5
570
+ # proxy service in. The subnetwork should reside in a network through which the
571
+ # Cloud SQL instance is accessible. The resource name should be in the format,
572
+ # projects/`project_id`/regions/`region_id`/subnetworks/`subnetwork_id`
573
+ # Corresponds to the JSON property `proxySubnet`
574
+ # @return [String]
575
+ attr_accessor :proxy_subnet
576
+
577
+ # Required. The username that Dataproc Metastore service will use to connect to
578
+ # the database.
579
+ # Corresponds to the JSON property `username`
580
+ # @return [String]
581
+ attr_accessor :username
582
+
583
+ def initialize(**args)
584
+ update!(**args)
585
+ end
586
+
587
+ # Update properties of this object
588
+ def update!(**args)
589
+ @hive_database_name = args[:hive_database_name] if args.key?(:hive_database_name)
590
+ @instance_connection_name = args[:instance_connection_name] if args.key?(:instance_connection_name)
591
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
592
+ @nat_subnet = args[:nat_subnet] if args.key?(:nat_subnet)
593
+ @password = args[:password] if args.key?(:password)
594
+ @port = args[:port] if args.key?(:port)
595
+ @proxy_subnet = args[:proxy_subnet] if args.key?(:proxy_subnet)
596
+ @username = args[:username] if args.key?(:username)
597
+ end
598
+ end
599
+
600
+ # Configuration information for migrating from self-managed hive metastore on
601
+ # Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.
602
+ class CloudSqlMigrationConfig
603
+ include Google::Apis::Core::Hashable
604
+
605
+ # Configuration information to start the Change Data Capture (CDC) streams from
606
+ # customer database to backend database of Dataproc Metastore.
607
+ # Corresponds to the JSON property `cdcConfig`
608
+ # @return [Google::Apis::MetastoreV1::CdcConfig]
609
+ attr_accessor :cdc_config
610
+
611
+ # Configuration information to establish customer database connection before the
612
+ # cutover phase of migration
613
+ # Corresponds to the JSON property `cloudSqlConnectionConfig`
614
+ # @return [Google::Apis::MetastoreV1::CloudSqlConnectionConfig]
615
+ attr_accessor :cloud_sql_connection_config
616
+
617
+ def initialize(**args)
618
+ update!(**args)
619
+ end
620
+
621
+ # Update properties of this object
622
+ def update!(**args)
623
+ @cdc_config = args[:cdc_config] if args.key?(:cdc_config)
624
+ @cloud_sql_connection_config = args[:cloud_sql_connection_config] if args.key?(:cloud_sql_connection_config)
625
+ end
626
+ end
627
+
628
+ # Request message for DataprocMetastore.CompleteMigration.
629
+ class CompleteMigrationRequest
630
+ include Google::Apis::Core::Hashable
631
+
632
+ def initialize(**args)
633
+ update!(**args)
634
+ end
635
+
636
+ # Update properties of this object
637
+ def update!(**args)
638
+ end
639
+ end
640
+
410
641
  # Contains information of the customer's network configurations.
411
642
  class Consumer
412
643
  include Google::Apis::Core::Hashable
@@ -893,6 +1124,31 @@ module Google
893
1124
  end
894
1125
  end
895
1126
 
1127
+ # Represents the autoscaling limit configuration of a metastore service.
1128
+ class LimitConfig
1129
+ include Google::Apis::Core::Hashable
1130
+
1131
+ # Optional. The highest scaling factor that the service should be autoscaled to.
1132
+ # Corresponds to the JSON property `maxScalingFactor`
1133
+ # @return [Float]
1134
+ attr_accessor :max_scaling_factor
1135
+
1136
+ # Optional. The lowest scaling factor that the service should be autoscaled to.
1137
+ # Corresponds to the JSON property `minScalingFactor`
1138
+ # @return [Float]
1139
+ attr_accessor :min_scaling_factor
1140
+
1141
+ def initialize(**args)
1142
+ update!(**args)
1143
+ end
1144
+
1145
+ # Update properties of this object
1146
+ def update!(**args)
1147
+ @max_scaling_factor = args[:max_scaling_factor] if args.key?(:max_scaling_factor)
1148
+ @min_scaling_factor = args[:min_scaling_factor] if args.key?(:min_scaling_factor)
1149
+ end
1150
+ end
1151
+
896
1152
  # Response message for DataprocMetastore.ListBackups.
897
1153
  class ListBackupsResponse
898
1154
  include Google::Apis::Core::Hashable
@@ -1014,6 +1270,38 @@ module Google
1014
1270
  end
1015
1271
  end
1016
1272
 
1273
+ # Response message for DataprocMetastore.ListMigrationExecutions.
1274
+ class ListMigrationExecutionsResponse
1275
+ include Google::Apis::Core::Hashable
1276
+
1277
+ # The migration executions on the specified service.
1278
+ # Corresponds to the JSON property `migrationExecutions`
1279
+ # @return [Array<Google::Apis::MetastoreV1::MigrationExecution>]
1280
+ attr_accessor :migration_executions
1281
+
1282
+ # A token that can be sent as page_token to retrieve the next page. If this
1283
+ # field is omitted, there are no subsequent pages.
1284
+ # Corresponds to the JSON property `nextPageToken`
1285
+ # @return [String]
1286
+ attr_accessor :next_page_token
1287
+
1288
+ # Locations that could not be reached.
1289
+ # Corresponds to the JSON property `unreachable`
1290
+ # @return [Array<String>]
1291
+ attr_accessor :unreachable
1292
+
1293
+ def initialize(**args)
1294
+ update!(**args)
1295
+ end
1296
+
1297
+ # Update properties of this object
1298
+ def update!(**args)
1299
+ @migration_executions = args[:migration_executions] if args.key?(:migration_executions)
1300
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1301
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1302
+ end
1303
+ end
1304
+
1017
1305
  # The response message for Operations.ListOperations.
1018
1306
  class ListOperationsResponse
1019
1307
  include Google::Apis::Core::Hashable
@@ -1320,6 +1608,65 @@ module Google
1320
1608
  end
1321
1609
  end
1322
1610
 
1611
+ # The details of a migration execution resource.
1612
+ class MigrationExecution
1613
+ include Google::Apis::Core::Hashable
1614
+
1615
+ # Configuration information for migrating from self-managed hive metastore on
1616
+ # Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.
1617
+ # Corresponds to the JSON property `cloudSqlMigrationConfig`
1618
+ # @return [Google::Apis::MetastoreV1::CloudSqlMigrationConfig]
1619
+ attr_accessor :cloud_sql_migration_config
1620
+
1621
+ # Output only. The time when the migration execution was started.
1622
+ # Corresponds to the JSON property `createTime`
1623
+ # @return [String]
1624
+ attr_accessor :create_time
1625
+
1626
+ # Output only. The time when the migration execution finished.
1627
+ # Corresponds to the JSON property `endTime`
1628
+ # @return [String]
1629
+ attr_accessor :end_time
1630
+
1631
+ # Output only. The relative resource name of the migration execution, in the
1632
+ # following form: projects/`project_number`/locations/`location_id`/services/`
1633
+ # service_id`/migrationExecutions/`migration_execution_id`
1634
+ # Corresponds to the JSON property `name`
1635
+ # @return [String]
1636
+ attr_accessor :name
1637
+
1638
+ # Output only. The current phase of the migration execution.
1639
+ # Corresponds to the JSON property `phase`
1640
+ # @return [String]
1641
+ attr_accessor :phase
1642
+
1643
+ # Output only. The current state of the migration execution.
1644
+ # Corresponds to the JSON property `state`
1645
+ # @return [String]
1646
+ attr_accessor :state
1647
+
1648
+ # Output only. Additional information about the current state of the migration
1649
+ # execution.
1650
+ # Corresponds to the JSON property `stateMessage`
1651
+ # @return [String]
1652
+ attr_accessor :state_message
1653
+
1654
+ def initialize(**args)
1655
+ update!(**args)
1656
+ end
1657
+
1658
+ # Update properties of this object
1659
+ def update!(**args)
1660
+ @cloud_sql_migration_config = args[:cloud_sql_migration_config] if args.key?(:cloud_sql_migration_config)
1661
+ @create_time = args[:create_time] if args.key?(:create_time)
1662
+ @end_time = args[:end_time] if args.key?(:end_time)
1663
+ @name = args[:name] if args.key?(:name)
1664
+ @phase = args[:phase] if args.key?(:phase)
1665
+ @state = args[:state] if args.key?(:state)
1666
+ @state_message = args[:state_message] if args.key?(:state_message)
1667
+ end
1668
+ end
1669
+
1323
1670
  # Request message for DataprocMetastore.MoveTableToDatabase.
1324
1671
  class MoveTableToDatabaseRequest
1325
1672
  include Google::Apis::Core::Hashable
@@ -1774,6 +2121,11 @@ module Google
1774
2121
  class ScalingConfig
1775
2122
  include Google::Apis::Core::Hashable
1776
2123
 
2124
+ # Represents the autoscaling configuration of a metastore service.
2125
+ # Corresponds to the JSON property `autoscalingConfig`
2126
+ # @return [Google::Apis::MetastoreV1::AutoscalingConfig]
2127
+ attr_accessor :autoscaling_config
2128
+
1777
2129
  # An enum of readable instance sizes, with each instance size mapping to a float
1778
2130
  # value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
1779
2131
  # Corresponds to the JSON property `instanceSize`
@@ -1792,6 +2144,7 @@ module Google
1792
2144
 
1793
2145
  # Update properties of this object
1794
2146
  def update!(**args)
2147
+ @autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config)
1795
2148
  @instance_size = args[:instance_size] if args.key?(:instance_size)
1796
2149
  @scaling_factor = args[:scaling_factor] if args.key?(:scaling_factor)
1797
2150
  end
@@ -2096,6 +2449,38 @@ module Google
2096
2449
  end
2097
2450
  end
2098
2451
 
2452
+ # Request message for DataprocMetastore.StartMigration.
2453
+ class StartMigrationRequest
2454
+ include Google::Apis::Core::Hashable
2455
+
2456
+ # The details of a migration execution resource.
2457
+ # Corresponds to the JSON property `migrationExecution`
2458
+ # @return [Google::Apis::MetastoreV1::MigrationExecution]
2459
+ attr_accessor :migration_execution
2460
+
2461
+ # Optional. A request ID. Specify a unique request ID to allow the server to
2462
+ # ignore the request if it has completed. The server will ignore subsequent
2463
+ # requests that provide a duplicate request ID for at least 60 minutes after the
2464
+ # first request.For example, if an initial request times out, followed by
2465
+ # another request with the same request ID, the server ignores the second
2466
+ # request to prevent the creation of duplicate commitments.The request ID must
2467
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
2468
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
2469
+ # Corresponds to the JSON property `requestId`
2470
+ # @return [String]
2471
+ attr_accessor :request_id
2472
+
2473
+ def initialize(**args)
2474
+ update!(**args)
2475
+ end
2476
+
2477
+ # Update properties of this object
2478
+ def update!(**args)
2479
+ @migration_execution = args[:migration_execution] if args.key?(:migration_execution)
2480
+ @request_id = args[:request_id] if args.key?(:request_id)
2481
+ end
2482
+ end
2483
+
2099
2484
  # The Status type defines a logical error model that is suitable for different
2100
2485
  # programming environments, including REST APIs and RPC APIs. It is used by gRPC
2101
2486
  # (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 MetastoreV1
18
18
  # Version of the google-apis-metastore_v1 gem
19
- GEM_VERSION = "0.27.0"
19
+ GEM_VERSION = "0.28.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240611"
25
+ REVISION = "20240627"
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,42 @@ 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
+
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
+
85
121
  class Consumer
86
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
123
 
@@ -160,6 +196,12 @@ module Google
160
196
  include Google::Apis::Core::JsonObjectSupport
161
197
  end
162
198
 
199
+ class LimitConfig
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
163
205
  class ListBackupsResponse
164
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
207
 
@@ -184,6 +226,12 @@ module Google
184
226
  include Google::Apis::Core::JsonObjectSupport
185
227
  end
186
228
 
229
+ class ListMigrationExecutionsResponse
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
187
235
  class ListOperationsResponse
188
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
237
 
@@ -238,6 +286,12 @@ module Google
238
286
  include Google::Apis::Core::JsonObjectSupport
239
287
  end
240
288
 
289
+ class MigrationExecution
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
241
295
  class MoveTableToDatabaseRequest
242
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
297
 
@@ -334,6 +388,12 @@ module Google
334
388
  include Google::Apis::Core::JsonObjectSupport
335
389
  end
336
390
 
391
+ class StartMigrationRequest
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
337
397
  class Status
338
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
339
399
 
@@ -398,6 +458,16 @@ module Google
398
458
  end
399
459
  end
400
460
 
461
+ class AutoscalingConfig
462
+ # @private
463
+ class Representation < Google::Apis::Core::JsonRepresentation
464
+ property :autoscaling_enabled, as: 'autoscalingEnabled'
465
+ property :autoscaling_factor, as: 'autoscalingFactor'
466
+ property :limit_config, as: 'limitConfig', class: Google::Apis::MetastoreV1::LimitConfig, decorator: Google::Apis::MetastoreV1::LimitConfig::Representation
467
+
468
+ end
469
+ end
470
+
401
471
  class AuxiliaryVersionConfig
402
472
  # @private
403
473
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -440,12 +510,61 @@ module Google
440
510
  end
441
511
  end
442
512
 
513
+ class CancelMigrationRequest
514
+ # @private
515
+ class Representation < Google::Apis::Core::JsonRepresentation
516
+ end
517
+ end
518
+
443
519
  class CancelOperationRequest
444
520
  # @private
445
521
  class Representation < Google::Apis::Core::JsonRepresentation
446
522
  end
447
523
  end
448
524
 
525
+ class CdcConfig
526
+ # @private
527
+ class Representation < Google::Apis::Core::JsonRepresentation
528
+ property :bucket, as: 'bucket'
529
+ property :password, as: 'password'
530
+ property :reverse_proxy_subnet, as: 'reverseProxySubnet'
531
+ property :root_path, as: 'rootPath'
532
+ property :subnet_ip_range, as: 'subnetIpRange'
533
+ property :username, as: 'username'
534
+ property :vpc_network, as: 'vpcNetwork'
535
+ end
536
+ end
537
+
538
+ class CloudSqlConnectionConfig
539
+ # @private
540
+ class Representation < Google::Apis::Core::JsonRepresentation
541
+ property :hive_database_name, as: 'hiveDatabaseName'
542
+ property :instance_connection_name, as: 'instanceConnectionName'
543
+ property :ip_address, as: 'ipAddress'
544
+ property :nat_subnet, as: 'natSubnet'
545
+ property :password, as: 'password'
546
+ property :port, as: 'port'
547
+ property :proxy_subnet, as: 'proxySubnet'
548
+ property :username, as: 'username'
549
+ end
550
+ end
551
+
552
+ class CloudSqlMigrationConfig
553
+ # @private
554
+ class Representation < Google::Apis::Core::JsonRepresentation
555
+ property :cdc_config, as: 'cdcConfig', class: Google::Apis::MetastoreV1::CdcConfig, decorator: Google::Apis::MetastoreV1::CdcConfig::Representation
556
+
557
+ property :cloud_sql_connection_config, as: 'cloudSqlConnectionConfig', class: Google::Apis::MetastoreV1::CloudSqlConnectionConfig, decorator: Google::Apis::MetastoreV1::CloudSqlConnectionConfig::Representation
558
+
559
+ end
560
+ end
561
+
562
+ class CompleteMigrationRequest
563
+ # @private
564
+ class Representation < Google::Apis::Core::JsonRepresentation
565
+ end
566
+ end
567
+
449
568
  class Consumer
450
569
  # @private
451
570
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -569,6 +688,14 @@ module Google
569
688
  end
570
689
  end
571
690
 
691
+ class LimitConfig
692
+ # @private
693
+ class Representation < Google::Apis::Core::JsonRepresentation
694
+ property :max_scaling_factor, as: 'maxScalingFactor'
695
+ property :min_scaling_factor, as: 'minScalingFactor'
696
+ end
697
+ end
698
+
572
699
  class ListBackupsResponse
573
700
  # @private
574
701
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -608,6 +735,16 @@ module Google
608
735
  end
609
736
  end
610
737
 
738
+ class ListMigrationExecutionsResponse
739
+ # @private
740
+ class Representation < Google::Apis::Core::JsonRepresentation
741
+ collection :migration_executions, as: 'migrationExecutions', class: Google::Apis::MetastoreV1::MigrationExecution, decorator: Google::Apis::MetastoreV1::MigrationExecution::Representation
742
+
743
+ property :next_page_token, as: 'nextPageToken'
744
+ collection :unreachable, as: 'unreachable'
745
+ end
746
+ end
747
+
611
748
  class ListOperationsResponse
612
749
  # @private
613
750
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -699,6 +836,20 @@ module Google
699
836
  end
700
837
  end
701
838
 
839
+ class MigrationExecution
840
+ # @private
841
+ class Representation < Google::Apis::Core::JsonRepresentation
842
+ property :cloud_sql_migration_config, as: 'cloudSqlMigrationConfig', class: Google::Apis::MetastoreV1::CloudSqlMigrationConfig, decorator: Google::Apis::MetastoreV1::CloudSqlMigrationConfig::Representation
843
+
844
+ property :create_time, as: 'createTime'
845
+ property :end_time, as: 'endTime'
846
+ property :name, as: 'name'
847
+ property :phase, as: 'phase'
848
+ property :state, as: 'state'
849
+ property :state_message, as: 'stateMessage'
850
+ end
851
+ end
852
+
702
853
  class MoveTableToDatabaseRequest
703
854
  # @private
704
855
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -806,6 +957,8 @@ module Google
806
957
  class ScalingConfig
807
958
  # @private
808
959
  class Representation < Google::Apis::Core::JsonRepresentation
960
+ property :autoscaling_config, as: 'autoscalingConfig', class: Google::Apis::MetastoreV1::AutoscalingConfig, decorator: Google::Apis::MetastoreV1::AutoscalingConfig::Representation
961
+
809
962
  property :instance_size, as: 'instanceSize'
810
963
  property :scaling_factor, as: 'scalingFactor'
811
964
  end
@@ -879,6 +1032,15 @@ module Google
879
1032
  end
880
1033
  end
881
1034
 
1035
+ class StartMigrationRequest
1036
+ # @private
1037
+ class Representation < Google::Apis::Core::JsonRepresentation
1038
+ property :migration_execution, as: 'migrationExecution', class: Google::Apis::MetastoreV1::MigrationExecution, decorator: Google::Apis::MetastoreV1::MigrationExecution::Representation
1039
+
1040
+ property :request_id, as: 'requestId'
1041
+ end
1042
+ end
1043
+
882
1044
  class Status
883
1045
  # @private
884
1046
  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::MetastoreV1::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::MetastoreV1::Operation] parsed result object
709
+ # @yieldparam err [StandardError] error object if request failed
710
+ #
711
+ # @return [Google::Apis::MetastoreV1::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, 'v1/{+service}:cancelMigration', options)
718
+ command.request_representation = Google::Apis::MetastoreV1::CancelMigrationRequest::Representation
719
+ command.request_object = cancel_migration_request_object
720
+ command.response_representation = Google::Apis::MetastoreV1::Operation::Representation
721
+ command.response_class = Google::Apis::MetastoreV1::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::MetastoreV1::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::MetastoreV1::Operation] parsed result object
745
+ # @yieldparam err [StandardError] error object if request failed
746
+ #
747
+ # @return [Google::Apis::MetastoreV1::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, 'v1/{+service}:completeMigration', options)
754
+ command.request_representation = Google::Apis::MetastoreV1::CompleteMigrationRequest::Representation
755
+ command.request_object = complete_migration_request_object
756
+ command.response_representation = Google::Apis::MetastoreV1::Operation::Representation
757
+ command.response_class = Google::Apis::MetastoreV1::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
@@ -1139,6 +1210,41 @@ module Google
1139
1210
  execute_or_queue_command(command, &block)
1140
1211
  end
1141
1212
 
1213
+ # Starts the Managed Migration process.
1214
+ # @param [String] service
1215
+ # Required. The relative resource name of the metastore service to start
1216
+ # migrating to, in the following format:projects/`project_id`/locations/`
1217
+ # location_id`/services/`service_id`.
1218
+ # @param [Google::Apis::MetastoreV1::StartMigrationRequest] start_migration_request_object
1219
+ # @param [String] fields
1220
+ # Selector specifying which fields to include in a partial response.
1221
+ # @param [String] quota_user
1222
+ # Available to use for quota purposes for server-side applications. Can be any
1223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1224
+ # @param [Google::Apis::RequestOptions] options
1225
+ # Request-specific options
1226
+ #
1227
+ # @yield [result, err] Result & error if block supplied
1228
+ # @yieldparam result [Google::Apis::MetastoreV1::Operation] parsed result object
1229
+ # @yieldparam err [StandardError] error object if request failed
1230
+ #
1231
+ # @return [Google::Apis::MetastoreV1::Operation]
1232
+ #
1233
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1234
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1235
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1236
+ def start_service_migration(service, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1237
+ command = make_simple_command(:post, 'v1/{+service}:startMigration', options)
1238
+ command.request_representation = Google::Apis::MetastoreV1::StartMigrationRequest::Representation
1239
+ command.request_object = start_migration_request_object
1240
+ command.response_representation = Google::Apis::MetastoreV1::Operation::Representation
1241
+ command.response_class = Google::Apis::MetastoreV1::Operation
1242
+ command.params['service'] = service unless service.nil?
1243
+ command.query['fields'] = fields unless fields.nil?
1244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1245
+ execute_or_queue_command(command, &block)
1246
+ end
1247
+
1142
1248
  # Returns permissions that a caller has on the specified resource. If the
1143
1249
  # resource does not exist, this will return an empty set of permissions, not a
1144
1250
  # NOT_FOUND error.Note: This operation is designed to be used for building
@@ -1786,6 +1892,133 @@ module Google
1786
1892
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1787
1893
  execute_or_queue_command(command, &block)
1788
1894
  end
1895
+
1896
+ # Deletes a single migration execution.
1897
+ # @param [String] name
1898
+ # Required. The relative resource name of the migrationExecution to delete, in
1899
+ # the following form:projects/`project_number`/locations/`location_id`/services/`
1900
+ # service_id`/migrationExecutions/`migration_execution_id`.
1901
+ # @param [String] request_id
1902
+ # Optional. A request ID. Specify a unique request ID to allow the server to
1903
+ # ignore the request if it has completed. The server will ignore subsequent
1904
+ # requests that provide a duplicate request ID for at least 60 minutes after the
1905
+ # first request.For example, if an initial request times out, followed by
1906
+ # another request with the same request ID, the server ignores the second
1907
+ # request to prevent the creation of duplicate commitments.The request ID must
1908
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
1909
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1910
+ # @param [String] fields
1911
+ # Selector specifying which fields to include in a partial response.
1912
+ # @param [String] quota_user
1913
+ # Available to use for quota purposes for server-side applications. Can be any
1914
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1915
+ # @param [Google::Apis::RequestOptions] options
1916
+ # Request-specific options
1917
+ #
1918
+ # @yield [result, err] Result & error if block supplied
1919
+ # @yieldparam result [Google::Apis::MetastoreV1::Operation] parsed result object
1920
+ # @yieldparam err [StandardError] error object if request failed
1921
+ #
1922
+ # @return [Google::Apis::MetastoreV1::Operation]
1923
+ #
1924
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1925
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1926
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1927
+ def delete_project_location_service_migration_execution(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1928
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1929
+ command.response_representation = Google::Apis::MetastoreV1::Operation::Representation
1930
+ command.response_class = Google::Apis::MetastoreV1::Operation
1931
+ command.params['name'] = name unless name.nil?
1932
+ command.query['requestId'] = request_id unless request_id.nil?
1933
+ command.query['fields'] = fields unless fields.nil?
1934
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1935
+ execute_or_queue_command(command, &block)
1936
+ end
1937
+
1938
+ # Gets details of a single migration execution.
1939
+ # @param [String] name
1940
+ # Required. The relative resource name of the migration execution to retrieve,
1941
+ # in the following form:projects/`project_number`/locations/`location_id`/
1942
+ # services/`service_id`/migrationExecutions/`migration_execution_id`.
1943
+ # @param [String] fields
1944
+ # Selector specifying which fields to include in a partial response.
1945
+ # @param [String] quota_user
1946
+ # Available to use for quota purposes for server-side applications. Can be any
1947
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1948
+ # @param [Google::Apis::RequestOptions] options
1949
+ # Request-specific options
1950
+ #
1951
+ # @yield [result, err] Result & error if block supplied
1952
+ # @yieldparam result [Google::Apis::MetastoreV1::MigrationExecution] parsed result object
1953
+ # @yieldparam err [StandardError] error object if request failed
1954
+ #
1955
+ # @return [Google::Apis::MetastoreV1::MigrationExecution]
1956
+ #
1957
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1958
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1959
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1960
+ def get_project_location_service_migration_execution(name, fields: nil, quota_user: nil, options: nil, &block)
1961
+ command = make_simple_command(:get, 'v1/{+name}', options)
1962
+ command.response_representation = Google::Apis::MetastoreV1::MigrationExecution::Representation
1963
+ command.response_class = Google::Apis::MetastoreV1::MigrationExecution
1964
+ command.params['name'] = name unless name.nil?
1965
+ command.query['fields'] = fields unless fields.nil?
1966
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1967
+ execute_or_queue_command(command, &block)
1968
+ end
1969
+
1970
+ # Lists migration executions on a service.
1971
+ # @param [String] parent
1972
+ # Required. The relative resource name of the service whose migration executions
1973
+ # to list, in the following form:projects/`project_number`/locations/`
1974
+ # location_id`/services/`service_id`/migrationExecutions.
1975
+ # @param [String] filter
1976
+ # Optional. The filter to apply to list results.
1977
+ # @param [String] order_by
1978
+ # Optional. Specify the ordering of results as described in Sorting Order (https:
1979
+ # //cloud.google.com/apis/design/design_patterns#sorting_order). If not
1980
+ # specified, the results will be sorted in the default order.
1981
+ # @param [Fixnum] page_size
1982
+ # Optional. The maximum number of migration executions to return. The response
1983
+ # may contain less than the maximum number. If unspecified, no more than 500
1984
+ # migration executions are returned. The maximum value is 1000; values above
1985
+ # 1000 are changed to 1000.
1986
+ # @param [String] page_token
1987
+ # Optional. A page token, received from a previous DataprocMetastore.
1988
+ # ListMigrationExecutions call. Provide this token to retrieve the subsequent
1989
+ # page.To retrieve the first page, supply an empty page token.When paginating,
1990
+ # other parameters provided to DataprocMetastore.ListMigrationExecutions must
1991
+ # match the call that provided the page token.
1992
+ # @param [String] fields
1993
+ # Selector specifying which fields to include in a partial response.
1994
+ # @param [String] quota_user
1995
+ # Available to use for quota purposes for server-side applications. Can be any
1996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1997
+ # @param [Google::Apis::RequestOptions] options
1998
+ # Request-specific options
1999
+ #
2000
+ # @yield [result, err] Result & error if block supplied
2001
+ # @yieldparam result [Google::Apis::MetastoreV1::ListMigrationExecutionsResponse] parsed result object
2002
+ # @yieldparam err [StandardError] error object if request failed
2003
+ #
2004
+ # @return [Google::Apis::MetastoreV1::ListMigrationExecutionsResponse]
2005
+ #
2006
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2007
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2008
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2009
+ 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)
2010
+ command = make_simple_command(:get, 'v1/{+parent}/migrationExecutions', options)
2011
+ command.response_representation = Google::Apis::MetastoreV1::ListMigrationExecutionsResponse::Representation
2012
+ command.response_class = Google::Apis::MetastoreV1::ListMigrationExecutionsResponse
2013
+ command.params['parent'] = parent unless parent.nil?
2014
+ command.query['filter'] = filter unless filter.nil?
2015
+ command.query['orderBy'] = order_by unless order_by.nil?
2016
+ command.query['pageSize'] = page_size unless page_size.nil?
2017
+ command.query['pageToken'] = page_token unless page_token.nil?
2018
+ command.query['fields'] = fields unless fields.nil?
2019
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2020
+ execute_or_queue_command(command, &block)
2021
+ end
1789
2022
 
1790
2023
  protected
1791
2024
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-metastore_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.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-06-16 00:00:00.000000000 Z
11
+ date: 2024-07-07 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1/v0.28.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-metastore_v1
63
63
  post_install_message:
64
64
  rdoc_options: []