google-apis-sqladmin_v1 0.32.0 → 0.34.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: c27d718d4ec7dc795a6649ff7ac00528050f0828b05b739a1d736b405b8f136f
4
- data.tar.gz: 3d4203b025f3e3b46be9ed616c0b97e0b0161131267245d284e4e4bda3ac1d4e
3
+ metadata.gz: d20d11c73398933991b7e1a391c4d82342f08b70d0deafb9d5ca0710c5d215e3
4
+ data.tar.gz: cd91d3d3a18f5992c3979b75b19c9423d0668e9fc09e8bba293e74fc23c78393
5
5
  SHA512:
6
- metadata.gz: 9af1dc9b5d07d6374066de7dc447cc7094fa4baaf5a59e52156a075b2b2de66d6d076094905dbf6cc3cba6de6a4e05924f6926fc93b56d70b90609d81ca4bfc4
7
- data.tar.gz: 2ba10c4ec8a5a6e64c0c3df8979e589e8e8acc343c3a69193db9387f2cf80f2a36525e179939f247f46f6906dd79f8646e3b35c80e852360a597a77d2d8f0b16
6
+ metadata.gz: 1be7cac0697f341e12935555914f2db9dc04396d1e5edfb359abcb45979234fa04df983a2192bbbaa716a6a646bf24de51356cde23be05d24cbfb01565580fb0
7
+ data.tar.gz: 5e1ef73578a8e08331dfe32996f2c4ece88ff156f7e583fd7db166958c90320acdd3ba3584825fa4095bd3b6dd0e477343a5d3712d46e0542e16916b36592aa1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.34.0 (2023-03-19)
4
+
5
+ * Regenerated from discovery document revision 20230309
6
+
7
+ ### v0.33.0 (2023-03-05)
8
+
9
+ * Regenerated from discovery document revision 20230226
10
+
3
11
  ### v0.32.0 (2023-02-15)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -2557,6 +2557,65 @@ module Google
2557
2557
  end
2558
2558
  end
2559
2559
 
2560
+ # Represents the metadata of the long-running operation.
2561
+ class OperationMetadata
2562
+ include Google::Apis::Core::Hashable
2563
+
2564
+ # Output only. API version used to start the operation.
2565
+ # Corresponds to the JSON property `apiVersion`
2566
+ # @return [String]
2567
+ attr_accessor :api_version
2568
+
2569
+ # Output only. Identifies whether the user has requested cancellation of the
2570
+ # operation. Operations that have been cancelled successfully have Operation.
2571
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
2572
+ # CANCELLED`.
2573
+ # Corresponds to the JSON property `cancelRequested`
2574
+ # @return [Boolean]
2575
+ attr_accessor :cancel_requested
2576
+ alias_method :cancel_requested?, :cancel_requested
2577
+
2578
+ # Output only. The time the operation was created.
2579
+ # Corresponds to the JSON property `createTime`
2580
+ # @return [String]
2581
+ attr_accessor :create_time
2582
+
2583
+ # Output only. The time the operation finished running.
2584
+ # Corresponds to the JSON property `endTime`
2585
+ # @return [String]
2586
+ attr_accessor :end_time
2587
+
2588
+ # Output only. Human-readable status of the operation, if any.
2589
+ # Corresponds to the JSON property `statusDetail`
2590
+ # @return [String]
2591
+ attr_accessor :status_detail
2592
+
2593
+ # Output only. Server-defined resource path for the target of the operation.
2594
+ # Corresponds to the JSON property `target`
2595
+ # @return [String]
2596
+ attr_accessor :target
2597
+
2598
+ # Output only. Name of the verb executed by the operation.
2599
+ # Corresponds to the JSON property `verb`
2600
+ # @return [String]
2601
+ attr_accessor :verb
2602
+
2603
+ def initialize(**args)
2604
+ update!(**args)
2605
+ end
2606
+
2607
+ # Update properties of this object
2608
+ def update!(**args)
2609
+ @api_version = args[:api_version] if args.key?(:api_version)
2610
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
2611
+ @create_time = args[:create_time] if args.key?(:create_time)
2612
+ @end_time = args[:end_time] if args.key?(:end_time)
2613
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
2614
+ @target = args[:target] if args.key?(:target)
2615
+ @verb = args[:verb] if args.key?(:verb)
2616
+ end
2617
+ end
2618
+
2560
2619
  # Operations list response.
2561
2620
  class OperationsListResponse
2562
2621
  include Google::Apis::Core::Hashable
@@ -2667,6 +2726,25 @@ module Google
2667
2726
  end
2668
2727
  end
2669
2728
 
2729
+ # Perform disk shrink context.
2730
+ class PerformDiskShrinkContext
2731
+ include Google::Apis::Core::Hashable
2732
+
2733
+ # The target disk shrink size in GigaBytes.
2734
+ # Corresponds to the JSON property `targetSizeGb`
2735
+ # @return [Fixnum]
2736
+ attr_accessor :target_size_gb
2737
+
2738
+ def initialize(**args)
2739
+ update!(**args)
2740
+ end
2741
+
2742
+ # Update properties of this object
2743
+ def update!(**args)
2744
+ @target_size_gb = args[:target_size_gb] if args.key?(:target_size_gb)
2745
+ end
2746
+ end
2747
+
2670
2748
  # Read-replica configuration for connecting to the primary instance.
2671
2749
  class ReplicaConfiguration
2672
2750
  include Google::Apis::Core::Hashable
@@ -3074,6 +3152,31 @@ module Google
3074
3152
  end
3075
3153
  end
3076
3154
 
3155
+ # Instance get disk shrink config response.
3156
+ class SqlInstancesGetDiskShrinkConfigResponse
3157
+ include Google::Apis::Core::Hashable
3158
+
3159
+ # This is always `sql#getDiskShrinkConfig`.
3160
+ # Corresponds to the JSON property `kind`
3161
+ # @return [String]
3162
+ attr_accessor :kind
3163
+
3164
+ # The minimum size to which a disk can be shrunk in GigaBytes.
3165
+ # Corresponds to the JSON property `minimalTargetSizeGb`
3166
+ # @return [Fixnum]
3167
+ attr_accessor :minimal_target_size_gb
3168
+
3169
+ def initialize(**args)
3170
+ update!(**args)
3171
+ end
3172
+
3173
+ # Update properties of this object
3174
+ def update!(**args)
3175
+ @kind = args[:kind] if args.key?(:kind)
3176
+ @minimal_target_size_gb = args[:minimal_target_size_gb] if args.key?(:minimal_target_size_gb)
3177
+ end
3178
+ end
3179
+
3077
3180
  # Reschedule options for maintenance windows.
3078
3181
  class SqlInstancesRescheduleMaintenanceRequestBody
3079
3182
  include Google::Apis::Core::Hashable
@@ -3093,6 +3196,19 @@ module Google
3093
3196
  end
3094
3197
  end
3095
3198
 
3199
+ # Instance reset replica size request.
3200
+ class SqlInstancesResetReplicaSizeRequest
3201
+ include Google::Apis::Core::Hashable
3202
+
3203
+ def initialize(**args)
3204
+ update!(**args)
3205
+ end
3206
+
3207
+ # Update properties of this object
3208
+ def update!(**args)
3209
+ end
3210
+ end
3211
+
3096
3212
  # Instance start external sync request.
3097
3213
  class SqlInstancesStartExternalSyncRequest
3098
3214
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1
18
18
  # Version of the google-apis-sqladmin_v1 gem
19
- GEM_VERSION = "0.32.0"
19
+ GEM_VERSION = "0.34.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 OperationsListResponse
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 OperationsListResponse
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::SqladminV1::SqlInstancesGetDiskShrinkConfigResponse] parsed result object
1384
+ # @yieldparam err [StandardError] error object if request failed
1385
+ #
1386
+ # @return [Google::Apis::SqladminV1::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, 'v1/projects/{project}/instances/{instance}/getDiskShrinkConfig', options)
1393
+ command.response_representation = Google::Apis::SqladminV1::SqlInstancesGetDiskShrinkConfigResponse::Representation
1394
+ command.response_class = Google::Apis::SqladminV1::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::SqladminV1::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::SqladminV1::Operation] parsed result object
1418
+ # @yieldparam err [StandardError] error object if request failed
1419
+ #
1420
+ # @return [Google::Apis::SqladminV1::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, 'v1/projects/{project}/instances/{instance}/performDiskShrink', options)
1427
+ command.request_representation = Google::Apis::SqladminV1::PerformDiskShrinkContext::Representation
1428
+ command.request_object = perform_disk_shrink_context_object
1429
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1430
+ command.response_class = Google::Apis::SqladminV1::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::SqladminV1::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::SqladminV1::Operation] parsed result object
1490
+ # @yieldparam err [StandardError] error object if request failed
1491
+ #
1492
+ # @return [Google::Apis::SqladminV1::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, 'v1/projects/{project}/instances/{instance}/resetReplicaSize', options)
1499
+ command.request_representation = Google::Apis::SqladminV1::SqlInstancesResetReplicaSizeRequest::Representation
1500
+ command.request_object = sql_instances_reset_replica_size_request_object
1501
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1502
+ command.response_class = Google::Apis::SqladminV1::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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.34.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-19 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.34.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
63
63
  post_install_message:
64
64
  rdoc_options: []