google-apis-sqladmin_v1beta4 0.81.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/sqladmin_v1beta4/classes.rb +85 -7
- data/lib/google/apis/sqladmin_v1beta4/gem_version.rb +3 -3
- data/lib/google/apis/sqladmin_v1beta4/representations.rb +21 -1
- data/lib/google/apis/sqladmin_v1beta4/service.rb +41 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74b493e188601c27a8464292b1a0725d3a54c98a1efb814476a6b2071eb01413
|
4
|
+
data.tar.gz: aba60fa45f36459558313475f1110d9188d99963db37e358bf74abc9fe048021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd1c7240805a8fc85781c178af7bb5a2d942101ffa6136a68ef1feecbac273f8ff58aa165f5c9b671e01cf9432342770f8752eaeac01a5cbc8a3a0dd65ce764f
|
7
|
+
data.tar.gz: 53cc717f6ed809758d120ca26f8c5636e7555d572aefb55e48b01f4f8541f4cf2487d9d98662390eca73e8992112e227cc93e39f5ac1e81042e2854705eddcca
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1beta4
|
2
2
|
|
3
|
+
### v0.82.0 (2025-05-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250427
|
6
|
+
* Regenerated using generator version 0.17.0
|
7
|
+
|
3
8
|
### v0.81.0 (2025-04-27)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20250412
|
data/OVERVIEW.md
CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://developers.google.com/cloud-sql/) may provid
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.1+.
|
87
87
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
@@ -181,7 +181,7 @@ module Google
|
|
181
181
|
end
|
182
182
|
end
|
183
183
|
|
184
|
-
# A backup resource.
|
184
|
+
# A backup resource. Next ID: 30
|
185
185
|
class Backup
|
186
186
|
include Google::Apis::Core::Hashable
|
187
187
|
|
@@ -359,6 +359,11 @@ module Google
|
|
359
359
|
# @return [Google::Apis::SqladminV1beta4::BackupRetentionSettings]
|
360
360
|
attr_accessor :backup_retention_settings
|
361
361
|
|
362
|
+
# Output only. Backup tier that manages the backups for the instance.
|
363
|
+
# Corresponds to the JSON property `backupTier`
|
364
|
+
# @return [String]
|
365
|
+
attr_accessor :backup_tier
|
366
|
+
|
362
367
|
# (MySQL only) Whether binary log is enabled. If backup configuration is
|
363
368
|
# disabled, binarylog must be disabled as well.
|
364
369
|
# Corresponds to the JSON property `binaryLogEnabled`
|
@@ -419,6 +424,7 @@ module Google
|
|
419
424
|
# Update properties of this object
|
420
425
|
def update!(**args)
|
421
426
|
@backup_retention_settings = args[:backup_retention_settings] if args.key?(:backup_retention_settings)
|
427
|
+
@backup_tier = args[:backup_tier] if args.key?(:backup_tier)
|
422
428
|
@binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled)
|
423
429
|
@enabled = args[:enabled] if args.key?(:enabled)
|
424
430
|
@kind = args[:kind] if args.key?(:kind)
|
@@ -3136,6 +3142,14 @@ module Google
|
|
3136
3142
|
# @return [String]
|
3137
3143
|
attr_accessor :backup
|
3138
3144
|
|
3145
|
+
# The name of the backup that's used to restore a Cloud SQL instance: Format: "
|
3146
|
+
# projects/`project-id`/locations/`location`/backupVaults/`backupvault`/
|
3147
|
+
# dataSources/`datasource`/backups/`backup-uid`". Only one of
|
3148
|
+
# restore_backup_context, backup, backupdr_backup can be passed to the input.
|
3149
|
+
# Corresponds to the JSON property `backupdrBackup`
|
3150
|
+
# @return [String]
|
3151
|
+
attr_accessor :backupdr_backup
|
3152
|
+
|
3139
3153
|
# Database instance restore from backup context. Backup context contains source
|
3140
3154
|
# instance id and project id.
|
3141
3155
|
# Corresponds to the JSON property `restoreBackupContext`
|
@@ -3154,6 +3168,7 @@ module Google
|
|
3154
3168
|
# Update properties of this object
|
3155
3169
|
def update!(**args)
|
3156
3170
|
@backup = args[:backup] if args.key?(:backup)
|
3171
|
+
@backupdr_backup = args[:backupdr_backup] if args.key?(:backupdr_backup)
|
3157
3172
|
@restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context)
|
3158
3173
|
@restore_instance_settings = args[:restore_instance_settings] if args.key?(:restore_instance_settings)
|
3159
3174
|
end
|
@@ -4085,6 +4100,75 @@ module Google
|
|
4085
4100
|
end
|
4086
4101
|
end
|
4087
4102
|
|
4103
|
+
# Context to perform a point-in-time restore of an instance managed by Google
|
4104
|
+
# Cloud Backup and Disaster Recovery.
|
4105
|
+
class PointInTimeRestoreContext
|
4106
|
+
include Google::Apis::Core::Hashable
|
4107
|
+
|
4108
|
+
# Optional. The name of the allocated IP range for the internal IP Cloud SQL
|
4109
|
+
# instance. For example: "google-managed-services-default". If you set this,
|
4110
|
+
# then Cloud SQL creates the IP address for the cloned instance in the allocated
|
4111
|
+
# range. This range must comply with [RFC 1035](https://tools.ietf.org/html/
|
4112
|
+
# rfc1035) standards. Specifically, the name must be 1-63 characters long and
|
4113
|
+
# match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future
|
4114
|
+
# use. http://go/speckle-subnet-picker-clone
|
4115
|
+
# Corresponds to the JSON property `allocatedIpRange`
|
4116
|
+
# @return [String]
|
4117
|
+
attr_accessor :allocated_ip_range
|
4118
|
+
|
4119
|
+
# The Google Cloud Backup and Disaster Recovery Datasource URI. Format: projects/
|
4120
|
+
# `project`/locations/`region`/backupVaults/`backupvault`/dataSources/`
|
4121
|
+
# datasource`.
|
4122
|
+
# Corresponds to the JSON property `datasource`
|
4123
|
+
# @return [String]
|
4124
|
+
attr_accessor :datasource
|
4125
|
+
|
4126
|
+
# Required. The date and time to which you want to restore the instance.
|
4127
|
+
# Corresponds to the JSON property `pointInTime`
|
4128
|
+
# @return [String]
|
4129
|
+
attr_accessor :point_in_time
|
4130
|
+
|
4131
|
+
# Optional. Point-in-time recovery of a regional instance in the specified zones.
|
4132
|
+
# If not specified, clone to the same secondary zone as the source instance.
|
4133
|
+
# This value cannot be the same as the preferred_zone field.
|
4134
|
+
# Corresponds to the JSON property `preferredSecondaryZone`
|
4135
|
+
# @return [String]
|
4136
|
+
attr_accessor :preferred_secondary_zone
|
4137
|
+
|
4138
|
+
# Optional. Point-in-time recovery of an instance to the specified zone. If no
|
4139
|
+
# zone is specified, then clone to the same primary zone as the source instance.
|
4140
|
+
# Corresponds to the JSON property `preferredZone`
|
4141
|
+
# @return [String]
|
4142
|
+
attr_accessor :preferred_zone
|
4143
|
+
|
4144
|
+
# Optional. The resource link for the VPC network from which the Cloud SQL
|
4145
|
+
# instance is accessible for private IP. For example, `/projects/myProject/
|
4146
|
+
# global/networks/default`.
|
4147
|
+
# Corresponds to the JSON property `privateNetwork`
|
4148
|
+
# @return [String]
|
4149
|
+
attr_accessor :private_network
|
4150
|
+
|
4151
|
+
# Target instance name.
|
4152
|
+
# Corresponds to the JSON property `targetInstance`
|
4153
|
+
# @return [String]
|
4154
|
+
attr_accessor :target_instance
|
4155
|
+
|
4156
|
+
def initialize(**args)
|
4157
|
+
update!(**args)
|
4158
|
+
end
|
4159
|
+
|
4160
|
+
# Update properties of this object
|
4161
|
+
def update!(**args)
|
4162
|
+
@allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
|
4163
|
+
@datasource = args[:datasource] if args.key?(:datasource)
|
4164
|
+
@point_in_time = args[:point_in_time] if args.key?(:point_in_time)
|
4165
|
+
@preferred_secondary_zone = args[:preferred_secondary_zone] if args.key?(:preferred_secondary_zone)
|
4166
|
+
@preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone)
|
4167
|
+
@private_network = args[:private_network] if args.key?(:private_network)
|
4168
|
+
@target_instance = args[:target_instance] if args.key?(:target_instance)
|
4169
|
+
end
|
4170
|
+
end
|
4171
|
+
|
4088
4172
|
# Details of a single read pool node of a read pool.
|
4089
4173
|
class PoolNodeConfig
|
4090
4174
|
include Google::Apis::Core::Hashable
|
@@ -5591,11 +5675,6 @@ module Google
|
|
5591
5675
|
# @return [String]
|
5592
5676
|
attr_accessor :host
|
5593
5677
|
|
5594
|
-
# Indicates if user is active for IAM Authentication.
|
5595
|
-
# Corresponds to the JSON property `iamStatus`
|
5596
|
-
# @return [String]
|
5597
|
-
attr_accessor :iam_status
|
5598
|
-
|
5599
5678
|
# The name of the Cloud SQL instance. This does not include the project ID. Can
|
5600
5679
|
# be omitted for *update* because it is already specified on the URL.
|
5601
5680
|
# Corresponds to the JSON property `instance`
|
@@ -5650,7 +5729,6 @@ module Google
|
|
5650
5729
|
@dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
|
5651
5730
|
@etag = args[:etag] if args.key?(:etag)
|
5652
5731
|
@host = args[:host] if args.key?(:host)
|
5653
|
-
@iam_status = args[:iam_status] if args.key?(:iam_status)
|
5654
5732
|
@instance = args[:instance] if args.key?(:instance)
|
5655
5733
|
@kind = args[:kind] if args.key?(:kind)
|
5656
5734
|
@name = args[:name] if args.key?(:name)
|
@@ -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.82.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.17.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250427"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -550,6 +550,12 @@ module Google
|
|
550
550
|
include Google::Apis::Core::JsonObjectSupport
|
551
551
|
end
|
552
552
|
|
553
|
+
class PointInTimeRestoreContext
|
554
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
555
|
+
|
556
|
+
include Google::Apis::Core::JsonObjectSupport
|
557
|
+
end
|
558
|
+
|
553
559
|
class PoolNodeConfig
|
554
560
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
555
561
|
|
@@ -878,6 +884,7 @@ module Google
|
|
878
884
|
class Representation < Google::Apis::Core::JsonRepresentation
|
879
885
|
property :backup_retention_settings, as: 'backupRetentionSettings', class: Google::Apis::SqladminV1beta4::BackupRetentionSettings, decorator: Google::Apis::SqladminV1beta4::BackupRetentionSettings::Representation
|
880
886
|
|
887
|
+
property :backup_tier, as: 'backupTier'
|
881
888
|
property :binary_log_enabled, as: 'binaryLogEnabled'
|
882
889
|
property :enabled, as: 'enabled'
|
883
890
|
property :kind, as: 'kind'
|
@@ -1591,6 +1598,7 @@ module Google
|
|
1591
1598
|
# @private
|
1592
1599
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1593
1600
|
property :backup, as: 'backup'
|
1601
|
+
property :backupdr_backup, as: 'backupdrBackup'
|
1594
1602
|
property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqladminV1beta4::RestoreBackupContext, decorator: Google::Apis::SqladminV1beta4::RestoreBackupContext::Representation
|
1595
1603
|
|
1596
1604
|
property :restore_instance_settings, as: 'restoreInstanceSettings', class: Google::Apis::SqladminV1beta4::DatabaseInstance, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
|
@@ -1834,6 +1842,19 @@ module Google
|
|
1834
1842
|
end
|
1835
1843
|
end
|
1836
1844
|
|
1845
|
+
class PointInTimeRestoreContext
|
1846
|
+
# @private
|
1847
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1848
|
+
property :allocated_ip_range, as: 'allocatedIpRange'
|
1849
|
+
property :datasource, as: 'datasource'
|
1850
|
+
property :point_in_time, as: 'pointInTime'
|
1851
|
+
property :preferred_secondary_zone, as: 'preferredSecondaryZone'
|
1852
|
+
property :preferred_zone, as: 'preferredZone'
|
1853
|
+
property :private_network, as: 'privateNetwork'
|
1854
|
+
property :target_instance, as: 'targetInstance'
|
1855
|
+
end
|
1856
|
+
end
|
1857
|
+
|
1837
1858
|
class PoolNodeConfig
|
1838
1859
|
# @private
|
1839
1860
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2242,7 +2263,6 @@ module Google
|
|
2242
2263
|
property :dual_password_type, as: 'dualPasswordType'
|
2243
2264
|
property :etag, as: 'etag'
|
2244
2265
|
property :host, as: 'host'
|
2245
|
-
property :iam_status, as: 'iamStatus'
|
2246
2266
|
property :instance, as: 'instance'
|
2247
2267
|
property :kind, as: 'kind'
|
2248
2268
|
property :name, as: 'name'
|
@@ -348,15 +348,17 @@ module Google
|
|
348
348
|
execute_or_queue_command(command, &block)
|
349
349
|
end
|
350
350
|
|
351
|
-
#
|
352
|
-
#
|
351
|
+
# This API updates the following: 1- retention period and description of backup
|
352
|
+
# in case of final backups only. 2- gcbdr_soft_delete_status of backup in case
|
353
|
+
# of GCBDR managed backups only.
|
353
354
|
# @param [String] name
|
354
355
|
# Output only. The resource name of the backup. Format: projects/`project`/
|
355
356
|
# backups/`backup`.
|
356
357
|
# @param [Google::Apis::SqladminV1beta4::Backup] backup_object
|
357
358
|
# @param [String] update_mask
|
358
|
-
# The list of fields that you can update. You can update only the description
|
359
|
-
# and retention period
|
359
|
+
# The list of fields that you can update. 1- You can update only the description
|
360
|
+
# and retention period for a final backup. 2- You can update only the
|
361
|
+
# gcbdr_soft_delete_status for GCBDR managed backup.
|
360
362
|
# @param [String] fields
|
361
363
|
# Selector specifying which fields to include in a partial response.
|
362
364
|
# @param [String] quota_user
|
@@ -1371,6 +1373,41 @@ module Google
|
|
1371
1373
|
execute_or_queue_command(command, &block)
|
1372
1374
|
end
|
1373
1375
|
|
1376
|
+
# Point in time restore for an instance managed by Google Cloud Backup and
|
1377
|
+
# Disaster Recovery.
|
1378
|
+
# @param [String] parent
|
1379
|
+
# Required. The parent resource where you created this instance. Format:
|
1380
|
+
# projects/`project`
|
1381
|
+
# @param [Google::Apis::SqladminV1beta4::PointInTimeRestoreContext] point_in_time_restore_context_object
|
1382
|
+
# @param [String] fields
|
1383
|
+
# Selector specifying which fields to include in a partial response.
|
1384
|
+
# @param [String] quota_user
|
1385
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1386
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1387
|
+
# @param [Google::Apis::RequestOptions] options
|
1388
|
+
# Request-specific options
|
1389
|
+
#
|
1390
|
+
# @yield [result, err] Result & error if block supplied
|
1391
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1392
|
+
# @yieldparam err [StandardError] error object if request failed
|
1393
|
+
#
|
1394
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1395
|
+
#
|
1396
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1397
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1398
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1399
|
+
def point_instance_in_time_restore(parent, point_in_time_restore_context_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1400
|
+
command = make_simple_command(:post, 'sql/v1beta4/{+parent}:pointInTimeRestore', options)
|
1401
|
+
command.request_representation = Google::Apis::SqladminV1beta4::PointInTimeRestoreContext::Representation
|
1402
|
+
command.request_object = point_in_time_restore_context_object
|
1403
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1404
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1405
|
+
command.params['parent'] = parent unless parent.nil?
|
1406
|
+
command.query['fields'] = fields unless fields.nil?
|
1407
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1408
|
+
execute_or_queue_command(command, &block)
|
1409
|
+
end
|
1410
|
+
|
1374
1411
|
# Promotes the read replica instance to be an independent Cloud SQL primary
|
1375
1412
|
# instance. Using this operation might cause your instance to restart.
|
1376
1413
|
# @param [String] project
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.82.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.82.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.1'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.8
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Cloud SQL Admin API V1beta4
|
79
79
|
test_files: []
|