google-apis-sqladmin_v1beta4 0.44.0 → 0.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/sqladmin_v1beta4/classes.rb +57 -0
- data/lib/google/apis/sqladmin_v1beta4/gem_version.rb +2 -2
- data/lib/google/apis/sqladmin_v1beta4/representations.rb +39 -0
- data/lib/google/apis/sqladmin_v1beta4/service.rb +106 -1
- data/lib/google/apis/sqladmin_v1beta4.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9544dc22026808e555987ec5255c61f5301560731cd7da939fe986ebd2af735
|
4
|
+
data.tar.gz: '014885ff6fc78f720d103e7f9fcf4c5ed9087f89249eed5b47b70cd42a9db917'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f37ebad9754b28ab625e7ac5e416d4827d9c94ad55810cd39cb564b6ce04f6250207c7479747fa225c374d087f84c76bae0dd8aaf91293e749cea0c271f8135a
|
7
|
+
data.tar.gz: 055734be01833499cee0ab914bf449e47ebed5c9ce7d60e010f464b7f18983aff4544a0acf2fc90c286197b9f1ba70c1b3e3c84858ca1ddcda70c6f15620a37f
|
data/CHANGELOG.md
CHANGED
data/OVERVIEW.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Simple REST client for version V1beta4 of the
|
1
|
+
# Simple REST client for version V1beta4 of the Cloud SQL Admin API
|
2
2
|
|
3
|
-
This is a simple client library for version V1beta4 of the
|
3
|
+
This is a simple client library for version V1beta4 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
|
68
|
+
For reference information on specific calls in the Cloud SQL Admin API, see the {Google::Apis::SqladminV1beta4::SQLAdminService class reference docs}.
|
69
69
|
|
70
70
|
## Which client should I use?
|
71
71
|
|
@@ -2727,6 +2727,25 @@ module Google
|
|
2727
2727
|
end
|
2728
2728
|
end
|
2729
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
|
+
|
2730
2749
|
# Read-replica configuration for connecting to the primary instance.
|
2731
2750
|
class ReplicaConfiguration
|
2732
2751
|
include Google::Apis::Core::Hashable
|
@@ -3134,6 +3153,31 @@ module Google
|
|
3134
3153
|
end
|
3135
3154
|
end
|
3136
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
|
+
|
3137
3181
|
# Reschedule options for maintenance windows.
|
3138
3182
|
class SqlInstancesRescheduleMaintenanceRequestBody
|
3139
3183
|
include Google::Apis::Core::Hashable
|
@@ -3153,6 +3197,19 @@ module Google
|
|
3153
3197
|
end
|
3154
3198
|
end
|
3155
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
|
+
|
3156
3213
|
#
|
3157
3214
|
class SqlInstancesStartExternalSyncRequest
|
3158
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.
|
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 = "
|
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 SqladminV1beta4
|
23
|
-
#
|
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::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.
|
@@ -19,13 +19,13 @@ require 'google/apis/sqladmin_v1beta4/gem_version.rb'
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Apis
|
22
|
-
#
|
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 SqladminV1beta4
|
28
|
-
# Version of the
|
28
|
+
# Version of the Cloud SQL Admin API this client connects to.
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1beta4'
|
31
31
|
|
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.
|
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-03-
|
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
|
@@ -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
|
33
|
+
description: This is the simple REST client for Cloud SQL Admin API V1beta4. Simple
|
34
34
|
REST clients are Ruby client libraries that provide access to Google services via
|
35
35
|
their 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
|
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_v1beta4/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.
|
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: []
|
@@ -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
|
81
|
+
summary: Simple REST client for Cloud SQL Admin API V1beta4
|
82
82
|
test_files: []
|