google-apis-sqladmin_v1 0.76.0 → 0.77.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4771fbebd25607ec01f63a3e29b15d661bcfe62bfe640e05579db01137265850
4
- data.tar.gz: 6a712d29504ae7855ca01dfc831d01ca0680458d0ea5c569ae49ddcbc925fac1
3
+ metadata.gz: ff2741e11ad39c9bcfa6bbd3c94ed5598fddb62bc62ebe76327f20c3cfe20904
4
+ data.tar.gz: c57e16fbe2db21a5aeb5d8e0617ad8b2e3a9a4720710ac6cf4725b808845feb0
5
5
  SHA512:
6
- metadata.gz: 895c5e05e8ddef470dc11fbf5a3dce2b5333606eb585c6147f28ba576865af235ed028d6f97385dd07778bfd02a62ba240f1055ef82b8bd1d20fdf77472bd921
7
- data.tar.gz: 64558eb1e530c807a4b56e3926be251699d0b3908ebbdfb18c66f15216fcadee6dc9eb396bca320126e3f34bcef992d9b2906c9f7851c21e7b93ad62ce8fcba9
6
+ metadata.gz: 5eb26da0b5d5d593a21735b899e7798f4b8d929a9971130210b5ac3e10e29f1b7ccbb390503a289cf0c1b9d30a8ccad821ef5e4e869b4ac4eaff73a73f8c9717
7
+ data.tar.gz: 4c8880b196454bc15bf8f0406d6101f4ce66a5aa2cdd559f585866d647cce5924ad710a9dd7a59de12cf777775ab0d89b3972ff59eda1940b63f508dde625575
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.77.0 (2025-05-04)
4
+
5
+ * Regenerated from discovery document revision 20250427
6
+ * Regenerated using generator version 0.17.0
7
+
3
8
  ### v0.76.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 2.7+.
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::SqladminV1::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)
@@ -3135,6 +3141,14 @@ module Google
3135
3141
  # @return [String]
3136
3142
  attr_accessor :backup
3137
3143
 
3144
+ # The name of the backup that's used to restore a Cloud SQL instance: Format: "
3145
+ # projects/`project-id`/locations/`location`/backupVaults/`backupvault`/
3146
+ # dataSources/`datasource`/backups/`backup-uid`". Only one of
3147
+ # restore_backup_context, backup, backupdr_backup can be passed to the input.
3148
+ # Corresponds to the JSON property `backupdrBackup`
3149
+ # @return [String]
3150
+ attr_accessor :backupdr_backup
3151
+
3138
3152
  # Database instance restore from backup context. Backup context contains source
3139
3153
  # instance id and project id.
3140
3154
  # Corresponds to the JSON property `restoreBackupContext`
@@ -3153,6 +3167,7 @@ module Google
3153
3167
  # Update properties of this object
3154
3168
  def update!(**args)
3155
3169
  @backup = args[:backup] if args.key?(:backup)
3170
+ @backupdr_backup = args[:backupdr_backup] if args.key?(:backupdr_backup)
3156
3171
  @restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context)
3157
3172
  @restore_instance_settings = args[:restore_instance_settings] if args.key?(:restore_instance_settings)
3158
3173
  end
@@ -4084,6 +4099,75 @@ module Google
4084
4099
  end
4085
4100
  end
4086
4101
 
4102
+ # The context to perform a point-in-time recovery of an instance managed by
4103
+ # Google Cloud Backup and Disaster Recovery.
4104
+ class PointInTimeRestoreContext
4105
+ include Google::Apis::Core::Hashable
4106
+
4107
+ # Optional. The name of the allocated IP range for the internal IP Cloud SQL
4108
+ # instance. For example: "google-managed-services-default". If you set this,
4109
+ # then Cloud SQL creates the IP address for the cloned instance in the allocated
4110
+ # range. This range must comply with [RFC 1035](https://tools.ietf.org/html/
4111
+ # rfc1035) standards. Specifically, the name must be 1-63 characters long and
4112
+ # match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future
4113
+ # use. http://go/speckle-subnet-picker-clone
4114
+ # Corresponds to the JSON property `allocatedIpRange`
4115
+ # @return [String]
4116
+ attr_accessor :allocated_ip_range
4117
+
4118
+ # The Google Cloud Backup and Disaster Recovery Datasource URI. Format: projects/
4119
+ # `project`/locations/`region`/backupVaults/`backupvault`/dataSources/`
4120
+ # datasource`.
4121
+ # Corresponds to the JSON property `datasource`
4122
+ # @return [String]
4123
+ attr_accessor :datasource
4124
+
4125
+ # Required. The date and time to which you want to restore the instance.
4126
+ # Corresponds to the JSON property `pointInTime`
4127
+ # @return [String]
4128
+ attr_accessor :point_in_time
4129
+
4130
+ # Optional. Point-in-time recovery of a regional instance in the specified zones.
4131
+ # If not specified, clone to the same secondary zone as the source instance.
4132
+ # This value cannot be the same as the preferred_zone field.
4133
+ # Corresponds to the JSON property `preferredSecondaryZone`
4134
+ # @return [String]
4135
+ attr_accessor :preferred_secondary_zone
4136
+
4137
+ # Optional. Point-in-time recovery of an instance to the specified zone. If no
4138
+ # zone is specified, then clone to the same primary zone as the source instance.
4139
+ # Corresponds to the JSON property `preferredZone`
4140
+ # @return [String]
4141
+ attr_accessor :preferred_zone
4142
+
4143
+ # Optional. The resource link for the VPC network from which the Cloud SQL
4144
+ # instance is accessible for private IP. For example, `/projects/myProject/
4145
+ # global/networks/default`.
4146
+ # Corresponds to the JSON property `privateNetwork`
4147
+ # @return [String]
4148
+ attr_accessor :private_network
4149
+
4150
+ # Target instance name.
4151
+ # Corresponds to the JSON property `targetInstance`
4152
+ # @return [String]
4153
+ attr_accessor :target_instance
4154
+
4155
+ def initialize(**args)
4156
+ update!(**args)
4157
+ end
4158
+
4159
+ # Update properties of this object
4160
+ def update!(**args)
4161
+ @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
4162
+ @datasource = args[:datasource] if args.key?(:datasource)
4163
+ @point_in_time = args[:point_in_time] if args.key?(:point_in_time)
4164
+ @preferred_secondary_zone = args[:preferred_secondary_zone] if args.key?(:preferred_secondary_zone)
4165
+ @preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone)
4166
+ @private_network = args[:private_network] if args.key?(:private_network)
4167
+ @target_instance = args[:target_instance] if args.key?(:target_instance)
4168
+ end
4169
+ end
4170
+
4087
4171
  # Details of a single read pool node of a read pool.
4088
4172
  class PoolNodeConfig
4089
4173
  include Google::Apis::Core::Hashable
@@ -5590,11 +5674,6 @@ module Google
5590
5674
  # @return [String]
5591
5675
  attr_accessor :host
5592
5676
 
5593
- # Indicates if user is active for IAM Authentication.
5594
- # Corresponds to the JSON property `iamStatus`
5595
- # @return [String]
5596
- attr_accessor :iam_status
5597
-
5598
5677
  # The name of the Cloud SQL instance. This does not include the project ID. Can
5599
5678
  # be omitted for `update` because it is already specified on the URL.
5600
5679
  # Corresponds to the JSON property `instance`
@@ -5649,7 +5728,6 @@ module Google
5649
5728
  @dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
5650
5729
  @etag = args[:etag] if args.key?(:etag)
5651
5730
  @host = args[:host] if args.key?(:host)
5652
- @iam_status = args[:iam_status] if args.key?(:iam_status)
5653
5731
  @instance = args[:instance] if args.key?(:instance)
5654
5732
  @kind = args[:kind] if args.key?(:kind)
5655
5733
  @name = args[:name] if args.key?(:name)
@@ -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.76.0"
19
+ GEM_VERSION = "0.77.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250412"
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::SqladminV1::BackupRetentionSettings, decorator: Google::Apis::SqladminV1::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::SqladminV1::RestoreBackupContext, decorator: Google::Apis::SqladminV1::RestoreBackupContext::Representation
1595
1603
 
1596
1604
  property :restore_instance_settings, as: 'restoreInstanceSettings', class: Google::Apis::SqladminV1::DatabaseInstance, decorator: Google::Apis::SqladminV1::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'
@@ -196,15 +196,17 @@ module Google
196
196
  execute_or_queue_command(command, &block)
197
197
  end
198
198
 
199
- # Updates the retention period and description of the backup. You can use this
200
- # API to update final backups only.
199
+ # This API updates the following: 1- retention period and description of backup
200
+ # in case of final backups only. 2- gcbdr_soft_delete_status of backup in case
201
+ # of GCBDR managed backups only.
201
202
  # @param [String] name
202
203
  # Output only. The resource name of the backup. Format: projects/`project`/
203
204
  # backups/`backup`.
204
205
  # @param [Google::Apis::SqladminV1::Backup] backup_object
205
206
  # @param [String] update_mask
206
- # The list of fields that you can update. You can update only the description
207
- # and retention period of the final backup.
207
+ # The list of fields that you can update. 1- You can update only the description
208
+ # and retention period for a final backup. 2- You can update only the
209
+ # gcbdr_soft_delete_status for GCBDR managed backup.
208
210
  # @param [String] fields
209
211
  # Selector specifying which fields to include in a partial response.
210
212
  # @param [String] quota_user
@@ -1372,6 +1374,41 @@ module Google
1372
1374
  execute_or_queue_command(command, &block)
1373
1375
  end
1374
1376
 
1377
+ # Point in time restore for an instance managed by Google Cloud Backup and
1378
+ # Disaster Recovery.
1379
+ # @param [String] parent
1380
+ # Required. The parent resource where you created this instance. Format:
1381
+ # projects/`project`
1382
+ # @param [Google::Apis::SqladminV1::PointInTimeRestoreContext] point_in_time_restore_context_object
1383
+ # @param [String] fields
1384
+ # Selector specifying which fields to include in a partial response.
1385
+ # @param [String] quota_user
1386
+ # Available to use for quota purposes for server-side applications. Can be any
1387
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1388
+ # @param [Google::Apis::RequestOptions] options
1389
+ # Request-specific options
1390
+ #
1391
+ # @yield [result, err] Result & error if block supplied
1392
+ # @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
1393
+ # @yieldparam err [StandardError] error object if request failed
1394
+ #
1395
+ # @return [Google::Apis::SqladminV1::Operation]
1396
+ #
1397
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1398
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1399
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1400
+ def point_instance_in_time_restore(parent, point_in_time_restore_context_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1401
+ command = make_simple_command(:post, 'v1/{+parent}:pointInTimeRestore', options)
1402
+ command.request_representation = Google::Apis::SqladminV1::PointInTimeRestoreContext::Representation
1403
+ command.request_object = point_in_time_restore_context_object
1404
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1405
+ command.response_class = Google::Apis::SqladminV1::Operation
1406
+ command.params['parent'] = parent unless parent.nil?
1407
+ command.query['fields'] = fields unless fields.nil?
1408
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1409
+ execute_or_queue_command(command, &block)
1410
+ end
1411
+
1375
1412
  # Promotes the read replica instance to be an independent Cloud SQL primary
1376
1413
  # instance. Using this operation might cause your instance to restart.
1377
1414
  # @param [String] project
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.76.0
4
+ version: 0.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-27 00:00:00.000000000 Z
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_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.76.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.77.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
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: '2.7'
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.5
76
+ rubygems_version: 3.6.8
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Cloud SQL Admin API V1
79
79
  test_files: []