google-apis-sqladmin_v1beta4 0.43.0 → 0.45.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: 660e15f8bf188fd39b97835a4efb976638adcf28269a3f2c9ccfea0a12a255dc
4
- data.tar.gz: c26daf485b271c1f2c62d0d6e6e7ec1644e7337bfa0670868d88a4030587af75
3
+ metadata.gz: e9544dc22026808e555987ec5255c61f5301560731cd7da939fe986ebd2af735
4
+ data.tar.gz: '014885ff6fc78f720d103e7f9fcf4c5ed9087f89249eed5b47b70cd42a9db917'
5
5
  SHA512:
6
- metadata.gz: 8c7f8a5c84b5b93d57306e4890b4b94fd91fbf57b58af0e60648dd89b1337fbc5ea20f5b4d60c399f9384a07c9b20ae33cdae50ec5674b4d83add0cf0a376fbe
7
- data.tar.gz: aadcbe6133a87b4e4d862ee973b34017b70ba3efdd8fe6882500df2c74e9834b68344a06ef1b2a50db192a6f0cb62f1930a4ff23fc4a4aaceed57eddb908c5c7
6
+ metadata.gz: f37ebad9754b28ab625e7ac5e416d4827d9c94ad55810cd39cb564b6ce04f6250207c7479747fa225c374d087f84c76bae0dd8aaf91293e749cea0c271f8135a
7
+ data.tar.gz: 055734be01833499cee0ab914bf449e47ebed5c9ce7d60e010f464b7f18983aff4544a0acf2fc90c286197b9f1ba70c1b3e3c84858ca1ddcda70c6f15620a37f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.45.0 (2023-03-12)
4
+
5
+ * Regenerated from discovery document revision 20230309
6
+
7
+ ### v0.44.0 (2023-03-05)
8
+
9
+ * Regenerated from discovery document revision 20230226
10
+
3
11
  ### v0.43.0 (2023-02-15)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -2558,6 +2558,65 @@ module Google
2558
2558
  end
2559
2559
  end
2560
2560
 
2561
+ # Represents the metadata of the long-running operation.
2562
+ class OperationMetadata
2563
+ include Google::Apis::Core::Hashable
2564
+
2565
+ # Output only. API version used to start the operation.
2566
+ # Corresponds to the JSON property `apiVersion`
2567
+ # @return [String]
2568
+ attr_accessor :api_version
2569
+
2570
+ # Output only. Identifies whether the user has requested cancellation of the
2571
+ # operation. Operations that have been cancelled successfully have Operation.
2572
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
2573
+ # CANCELLED`.
2574
+ # Corresponds to the JSON property `cancelRequested`
2575
+ # @return [Boolean]
2576
+ attr_accessor :cancel_requested
2577
+ alias_method :cancel_requested?, :cancel_requested
2578
+
2579
+ # Output only. The time the operation was created.
2580
+ # Corresponds to the JSON property `createTime`
2581
+ # @return [String]
2582
+ attr_accessor :create_time
2583
+
2584
+ # Output only. The time the operation finished running.
2585
+ # Corresponds to the JSON property `endTime`
2586
+ # @return [String]
2587
+ attr_accessor :end_time
2588
+
2589
+ # Output only. Human-readable status of the operation, if any.
2590
+ # Corresponds to the JSON property `statusDetail`
2591
+ # @return [String]
2592
+ attr_accessor :status_detail
2593
+
2594
+ # Output only. Server-defined resource path for the target of the operation.
2595
+ # Corresponds to the JSON property `target`
2596
+ # @return [String]
2597
+ attr_accessor :target
2598
+
2599
+ # Output only. Name of the verb executed by the operation.
2600
+ # Corresponds to the JSON property `verb`
2601
+ # @return [String]
2602
+ attr_accessor :verb
2603
+
2604
+ def initialize(**args)
2605
+ update!(**args)
2606
+ end
2607
+
2608
+ # Update properties of this object
2609
+ def update!(**args)
2610
+ @api_version = args[:api_version] if args.key?(:api_version)
2611
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
2612
+ @create_time = args[:create_time] if args.key?(:create_time)
2613
+ @end_time = args[:end_time] if args.key?(:end_time)
2614
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
2615
+ @target = args[:target] if args.key?(:target)
2616
+ @verb = args[:verb] if args.key?(:verb)
2617
+ end
2618
+ end
2619
+
2561
2620
  # Operations list response.
2562
2621
  class ListOperationsResponse
2563
2622
  include Google::Apis::Core::Hashable
@@ -2668,6 +2727,25 @@ module Google
2668
2727
  end
2669
2728
  end
2670
2729
 
2730
+ # Perform disk shrink context.
2731
+ class PerformDiskShrinkContext
2732
+ include Google::Apis::Core::Hashable
2733
+
2734
+ # The target disk shrink size in GigaBytes.
2735
+ # Corresponds to the JSON property `targetSizeGb`
2736
+ # @return [Fixnum]
2737
+ attr_accessor :target_size_gb
2738
+
2739
+ def initialize(**args)
2740
+ update!(**args)
2741
+ end
2742
+
2743
+ # Update properties of this object
2744
+ def update!(**args)
2745
+ @target_size_gb = args[:target_size_gb] if args.key?(:target_size_gb)
2746
+ end
2747
+ end
2748
+
2671
2749
  # Read-replica configuration for connecting to the primary instance.
2672
2750
  class ReplicaConfiguration
2673
2751
  include Google::Apis::Core::Hashable
@@ -3075,6 +3153,31 @@ module Google
3075
3153
  end
3076
3154
  end
3077
3155
 
3156
+ # Instance get disk shrink config response.
3157
+ class SqlInstancesGetDiskShrinkConfigResponse
3158
+ include Google::Apis::Core::Hashable
3159
+
3160
+ # This is always `sql#getDiskShrinkConfig`.
3161
+ # Corresponds to the JSON property `kind`
3162
+ # @return [String]
3163
+ attr_accessor :kind
3164
+
3165
+ # The minimum size to which a disk can be shrunk in GigaBytes.
3166
+ # Corresponds to the JSON property `minimalTargetSizeGb`
3167
+ # @return [Fixnum]
3168
+ attr_accessor :minimal_target_size_gb
3169
+
3170
+ def initialize(**args)
3171
+ update!(**args)
3172
+ end
3173
+
3174
+ # Update properties of this object
3175
+ def update!(**args)
3176
+ @kind = args[:kind] if args.key?(:kind)
3177
+ @minimal_target_size_gb = args[:minimal_target_size_gb] if args.key?(:minimal_target_size_gb)
3178
+ end
3179
+ end
3180
+
3078
3181
  # Reschedule options for maintenance windows.
3079
3182
  class SqlInstancesRescheduleMaintenanceRequestBody
3080
3183
  include Google::Apis::Core::Hashable
@@ -3094,6 +3197,19 @@ module Google
3094
3197
  end
3095
3198
  end
3096
3199
 
3200
+ # Instance reset replica size request.
3201
+ class SqlInstancesResetReplicaSizeRequest
3202
+ include Google::Apis::Core::Hashable
3203
+
3204
+ def initialize(**args)
3205
+ update!(**args)
3206
+ end
3207
+
3208
+ # Update properties of this object
3209
+ def update!(**args)
3210
+ end
3211
+ end
3212
+
3097
3213
  #
3098
3214
  class SqlInstancesStartExternalSyncRequest
3099
3215
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.43.0"
19
+ GEM_VERSION = "0.45.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230111"
25
+ REVISION = "20230309"
26
26
  end
27
27
  end
28
28
  end
@@ -364,6 +364,12 @@ module Google
364
364
  include Google::Apis::Core::JsonObjectSupport
365
365
  end
366
366
 
367
+ class OperationMetadata
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
367
373
  class ListOperationsResponse
368
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
375
 
@@ -382,6 +388,12 @@ module Google
382
388
  include Google::Apis::Core::JsonObjectSupport
383
389
  end
384
390
 
391
+ class PerformDiskShrinkContext
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
385
397
  class ReplicaConfiguration
386
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
399
 
@@ -424,12 +436,24 @@ module Google
424
436
  include Google::Apis::Core::JsonObjectSupport
425
437
  end
426
438
 
439
+ class SqlInstancesGetDiskShrinkConfigResponse
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
427
445
  class SqlInstancesRescheduleMaintenanceRequestBody
428
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
429
447
 
430
448
  include Google::Apis::Core::JsonObjectSupport
431
449
  end
432
450
 
451
+ class SqlInstancesResetReplicaSizeRequest
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
433
457
  class SqlInstancesStartExternalSyncRequest
434
458
  class Representation < Google::Apis::Core::JsonRepresentation; end
435
459
 
@@ -1213,6 +1237,19 @@ module Google
1213
1237
  end
1214
1238
  end
1215
1239
 
1240
+ class OperationMetadata
1241
+ # @private
1242
+ class Representation < Google::Apis::Core::JsonRepresentation
1243
+ property :api_version, as: 'apiVersion'
1244
+ property :cancel_requested, as: 'cancelRequested'
1245
+ property :create_time, as: 'createTime'
1246
+ property :end_time, as: 'endTime'
1247
+ property :status_detail, as: 'statusDetail'
1248
+ property :target, as: 'target'
1249
+ property :verb, as: 'verb'
1250
+ end
1251
+ end
1252
+
1216
1253
  class ListOperationsResponse
1217
1254
  # @private
1218
1255
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1243,6 +1280,13 @@ module Google
1243
1280
  end
1244
1281
  end
1245
1282
 
1283
+ class PerformDiskShrinkContext
1284
+ # @private
1285
+ class Representation < Google::Apis::Core::JsonRepresentation
1286
+ property :target_size_gb, :numeric_string => true, as: 'targetSizeGb'
1287
+ end
1288
+ end
1289
+
1246
1290
  class ReplicaConfiguration
1247
1291
  # @private
1248
1292
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1341,6 +1385,14 @@ module Google
1341
1385
  end
1342
1386
  end
1343
1387
 
1388
+ class SqlInstancesGetDiskShrinkConfigResponse
1389
+ # @private
1390
+ class Representation < Google::Apis::Core::JsonRepresentation
1391
+ property :kind, as: 'kind'
1392
+ property :minimal_target_size_gb, :numeric_string => true, as: 'minimalTargetSizeGb'
1393
+ end
1394
+ end
1395
+
1344
1396
  class SqlInstancesRescheduleMaintenanceRequestBody
1345
1397
  # @private
1346
1398
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1349,6 +1401,12 @@ module Google
1349
1401
  end
1350
1402
  end
1351
1403
 
1404
+ class SqlInstancesResetReplicaSizeRequest
1405
+ # @private
1406
+ class Representation < Google::Apis::Core::JsonRepresentation
1407
+ end
1408
+ end
1409
+
1352
1410
  class SqlInstancesStartExternalSyncRequest
1353
1411
  # @private
1354
1412
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1366,6 +1366,75 @@ module Google
1366
1366
  execute_or_queue_command(command, &block)
1367
1367
  end
1368
1368
 
1369
+ # Get Disk Shrink Config for a given instance.
1370
+ # @param [String] project
1371
+ # Project ID of the project that contains the instance.
1372
+ # @param [String] instance
1373
+ # Cloud SQL instance ID. This does not include the project ID.
1374
+ # @param [String] fields
1375
+ # Selector specifying which fields to include in a partial response.
1376
+ # @param [String] quota_user
1377
+ # Available to use for quota purposes for server-side applications. Can be any
1378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1379
+ # @param [Google::Apis::RequestOptions] options
1380
+ # Request-specific options
1381
+ #
1382
+ # @yield [result, err] Result & error if block supplied
1383
+ # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse] parsed result object
1384
+ # @yieldparam err [StandardError] error object if request failed
1385
+ #
1386
+ # @return [Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse]
1387
+ #
1388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1391
+ def get_project_instance_disk_shrink_config(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1392
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/getDiskShrinkConfig', options)
1393
+ command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse::Representation
1394
+ command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse
1395
+ command.params['project'] = project unless project.nil?
1396
+ command.params['instance'] = instance unless instance.nil?
1397
+ command.query['fields'] = fields unless fields.nil?
1398
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1399
+ execute_or_queue_command(command, &block)
1400
+ end
1401
+
1402
+ # Perform Disk Shrink on primary instance.
1403
+ # @param [String] project
1404
+ # Project ID of the project that contains the instance.
1405
+ # @param [String] instance
1406
+ # Cloud SQL instance ID. This does not include the project ID.
1407
+ # @param [Google::Apis::SqladminV1beta4::PerformDiskShrinkContext] perform_disk_shrink_context_object
1408
+ # @param [String] fields
1409
+ # Selector specifying which fields to include in a partial response.
1410
+ # @param [String] quota_user
1411
+ # Available to use for quota purposes for server-side applications. Can be any
1412
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1413
+ # @param [Google::Apis::RequestOptions] options
1414
+ # Request-specific options
1415
+ #
1416
+ # @yield [result, err] Result & error if block supplied
1417
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1418
+ # @yieldparam err [StandardError] error object if request failed
1419
+ #
1420
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1421
+ #
1422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1425
+ def perform_project_instance_disk_shrink(project, instance, perform_disk_shrink_context_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1426
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/performDiskShrink', options)
1427
+ command.request_representation = Google::Apis::SqladminV1beta4::PerformDiskShrinkContext::Representation
1428
+ command.request_object = perform_disk_shrink_context_object
1429
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1430
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1431
+ command.params['project'] = project unless project.nil?
1432
+ command.params['instance'] = instance unless instance.nil?
1433
+ command.query['fields'] = fields unless fields.nil?
1434
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1435
+ execute_or_queue_command(command, &block)
1436
+ end
1437
+
1369
1438
  # Reschedules the maintenance on the given instance.
1370
1439
  # @param [String] project
1371
1440
  # ID of the project that contains the instance.
@@ -1402,6 +1471,42 @@ module Google
1402
1471
  execute_or_queue_command(command, &block)
1403
1472
  end
1404
1473
 
1474
+ # Reset Replica Size to primary instance disk size.
1475
+ # @param [String] project
1476
+ # ID of the project that contains the read replica.
1477
+ # @param [String] instance
1478
+ # Cloud SQL read replica instance name.
1479
+ # @param [Google::Apis::SqladminV1beta4::SqlInstancesResetReplicaSizeRequest] sql_instances_reset_replica_size_request_object
1480
+ # @param [String] fields
1481
+ # Selector specifying which fields to include in a partial response.
1482
+ # @param [String] quota_user
1483
+ # Available to use for quota purposes for server-side applications. Can be any
1484
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1485
+ # @param [Google::Apis::RequestOptions] options
1486
+ # Request-specific options
1487
+ #
1488
+ # @yield [result, err] Result & error if block supplied
1489
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1490
+ # @yieldparam err [StandardError] error object if request failed
1491
+ #
1492
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1493
+ #
1494
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1495
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1496
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1497
+ def reset_project_instance_replica_size(project, instance, sql_instances_reset_replica_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1498
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetReplicaSize', options)
1499
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesResetReplicaSizeRequest::Representation
1500
+ command.request_object = sql_instances_reset_replica_size_request_object
1501
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1502
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1503
+ command.params['project'] = project unless project.nil?
1504
+ command.params['instance'] = instance unless instance.nil?
1505
+ command.query['fields'] = fields unless fields.nil?
1506
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1507
+ execute_or_queue_command(command, &block)
1508
+ end
1509
+
1405
1510
  # Start External primary instance migration.
1406
1511
  # @param [String] project
1407
1512
  # ID of the project that contains the instance.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-19 00:00:00.000000000 Z
11
+ date: 2023-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.43.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.45.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []