google-apis-sqladmin_v1 0.33.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: b6217e98dd60c7eadb079e56f159fdf837a918546071accc4a3ba81c2c4f0402
4
- data.tar.gz: 3af80e7b2c1e1b83ccb745eddd4ea3be33907c26e0dc115413edc29054503936
3
+ metadata.gz: d20d11c73398933991b7e1a391c4d82342f08b70d0deafb9d5ca0710c5d215e3
4
+ data.tar.gz: cd91d3d3a18f5992c3979b75b19c9423d0668e9fc09e8bba293e74fc23c78393
5
5
  SHA512:
6
- metadata.gz: a55d48b204fb7eca325612eb9e210da4dce35bf962e53225a79456288b2cf90ed7b4e4ab82abce4cd9abe88427d1d0f35497b9263a516aaac6b0de135cb29720
7
- data.tar.gz: b17f6b366644f98ec73fcec2057b1f6c3c9c3260ea3d426e60a829ccd20d3abaaf98ac9aa6c0ca2e8b38fec4e47201ac42bfb70fd8f3e7ee78b7680ea452a210
6
+ metadata.gz: 1be7cac0697f341e12935555914f2db9dc04396d1e5edfb359abcb45979234fa04df983a2192bbbaa716a6a646bf24de51356cde23be05d24cbfb01565580fb0
7
+ data.tar.gz: 5e1ef73578a8e08331dfe32996f2c4ece88ff156f7e583fd7db166958c90320acdd3ba3584825fa4095bd3b6dd0e477343a5d3712d46e0542e16916b36592aa1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.33.0 (2023-03-05)
4
8
 
5
9
  * Regenerated from discovery document revision 20230226
data/OVERVIEW.md CHANGED
@@ -1,6 +1,6 @@
1
- # Simple REST client for version V1 of the sqladmin API (prod)
1
+ # Simple REST client for version V1 of the Cloud SQL Admin API
2
2
 
3
- This is a simple client library for version V1 of the sqladmin API (prod). It provides:
3
+ This is a simple client library for version V1 of the Cloud SQL Admin API. It provides:
4
4
 
5
5
  * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
6
  * Ruby objects for data structures related to the service.
@@ -65,7 +65,7 @@ More detailed descriptions of the Google simple REST clients are available in tw
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Sqladmin service in particular.)
67
67
 
68
- For reference information on specific calls in the sqladmin API (prod), see the {Google::Apis::SqladminV1::SQLAdminService class reference docs}.
68
+ For reference information on specific calls in the Cloud SQL Admin API, see the {Google::Apis::SqladminV1::SQLAdminService class reference docs}.
69
69
 
70
70
  ## Which client should I use?
71
71
 
@@ -2726,6 +2726,25 @@ module Google
2726
2726
  end
2727
2727
  end
2728
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
+
2729
2748
  # Read-replica configuration for connecting to the primary instance.
2730
2749
  class ReplicaConfiguration
2731
2750
  include Google::Apis::Core::Hashable
@@ -3133,6 +3152,31 @@ module Google
3133
3152
  end
3134
3153
  end
3135
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
+
3136
3180
  # Reschedule options for maintenance windows.
3137
3181
  class SqlInstancesRescheduleMaintenanceRequestBody
3138
3182
  include Google::Apis::Core::Hashable
@@ -3152,6 +3196,19 @@ module Google
3152
3196
  end
3153
3197
  end
3154
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
+
3155
3212
  # Instance start external sync request.
3156
3213
  class SqlInstancesStartExternalSyncRequest
3157
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.33.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 = "20230226"
25
+ REVISION = "20230309"
26
26
  end
27
27
  end
28
28
  end
@@ -388,6 +388,12 @@ module Google
388
388
  include Google::Apis::Core::JsonObjectSupport
389
389
  end
390
390
 
391
+ class PerformDiskShrinkContext
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
391
397
  class ReplicaConfiguration
392
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
399
 
@@ -430,12 +436,24 @@ module Google
430
436
  include Google::Apis::Core::JsonObjectSupport
431
437
  end
432
438
 
439
+ class SqlInstancesGetDiskShrinkConfigResponse
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
433
445
  class SqlInstancesRescheduleMaintenanceRequestBody
434
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
435
447
 
436
448
  include Google::Apis::Core::JsonObjectSupport
437
449
  end
438
450
 
451
+ class SqlInstancesResetReplicaSizeRequest
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
439
457
  class SqlInstancesStartExternalSyncRequest
440
458
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
459
 
@@ -1262,6 +1280,13 @@ module Google
1262
1280
  end
1263
1281
  end
1264
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
+
1265
1290
  class ReplicaConfiguration
1266
1291
  # @private
1267
1292
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1360,6 +1385,14 @@ module Google
1360
1385
  end
1361
1386
  end
1362
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
+
1363
1396
  class SqlInstancesRescheduleMaintenanceRequestBody
1364
1397
  # @private
1365
1398
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1368,6 +1401,12 @@ module Google
1368
1401
  end
1369
1402
  end
1370
1403
 
1404
+ class SqlInstancesResetReplicaSizeRequest
1405
+ # @private
1406
+ class Representation < Google::Apis::Core::JsonRepresentation
1407
+ end
1408
+ end
1409
+
1371
1410
  class SqlInstancesStartExternalSyncRequest
1372
1411
  # @private
1373
1412
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module SqladminV1
23
- # sqladmin API (prod)
23
+ # Cloud SQL Admin API
24
24
  #
25
25
  # API for Cloud SQL database instance management
26
26
  #
@@ -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.
@@ -19,13 +19,13 @@ require 'google/apis/sqladmin_v1/gem_version.rb'
19
19
 
20
20
  module Google
21
21
  module Apis
22
- # sqladmin API (prod)
22
+ # Cloud SQL Admin API
23
23
  #
24
24
  # API for Cloud SQL database instance management
25
25
  #
26
26
  # @see https://developers.google.com/cloud-sql/
27
27
  module SqladminV1
28
- # Version of the sqladmin API (prod) this client connects to.
28
+ # Version of the Cloud SQL Admin API this client connects to.
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
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.33.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-03-05 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
@@ -30,12 +30,12 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
33
- description: This is the simple REST client for sqladmin API (prod) V1. Simple REST
33
+ description: This is the simple REST client for Cloud SQL Admin API V1. Simple REST
34
34
  clients are Ruby client libraries that provide access to Google services via their
35
35
  HTTP REST API endpoints. These libraries are generated and updated automatically
36
36
  based on the discovery documents published by the service, and they handle most
37
37
  concerns such as authentication, pagination, retry, timeouts, and logging. You can
38
- use this client to access the sqladmin API (prod), but note that some services may
38
+ use this client to access the Cloud SQL Admin API, but note that some services may
39
39
  provide a separate modern client that is easier to use.
40
40
  email: googleapis-packages@google.com
41
41
  executables: []
@@ -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.33.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: []
@@ -78,5 +78,5 @@ requirements: []
78
78
  rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
- summary: Simple REST client for sqladmin API (prod) V1
81
+ summary: Simple REST client for Cloud SQL Admin API V1
82
82
  test_files: []