google-apis-sqladmin_v1 0.66.0 → 0.67.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 798dc0b9efd0fc7fd916f72c3aee6a35204f4c5cf02dbe3ed14f04cc2e8d13c1
|
4
|
+
data.tar.gz: adab922d1905d245ba3cb7b1073a68b4d2c54bed979ead1ba598623b30de28c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b67a84c9a1ca68e73d07af8d6c96200b12922812df95fd7eb2f6d94b88ee78e33d14398de372535b7110d316267ce27fb1a16e4322b126dc8d5ee1b9f95f44a
|
7
|
+
data.tar.gz: a2bb55d02408e2cba952a356c4aa1d27823a75c850dc44453a0c7b5a1a2626771e2a0583aa5e2f8f7fcdd3d620cc5db12c8c65698a1dec80e240536db0e7c83f
|
data/CHANGELOG.md
CHANGED
@@ -277,6 +277,11 @@ module Google
|
|
277
277
|
# @return [String]
|
278
278
|
attr_accessor :kind
|
279
279
|
|
280
|
+
# The name of the backup. Format: projects/`project`/backups/`backup`
|
281
|
+
# Corresponds to the JSON property `name`
|
282
|
+
# @return [String]
|
283
|
+
attr_accessor :name
|
284
|
+
|
280
285
|
def initialize(**args)
|
281
286
|
update!(**args)
|
282
287
|
end
|
@@ -285,6 +290,7 @@ module Google
|
|
285
290
|
def update!(**args)
|
286
291
|
@backup_id = args[:backup_id] if args.key?(:backup_id)
|
287
292
|
@kind = args[:kind] if args.key?(:kind)
|
293
|
+
@name = args[:name] if args.key?(:name)
|
288
294
|
end
|
289
295
|
end
|
290
296
|
|
@@ -2618,19 +2624,33 @@ module Google
|
|
2618
2624
|
class InstancesRestoreBackupRequest
|
2619
2625
|
include Google::Apis::Core::Hashable
|
2620
2626
|
|
2627
|
+
# The name of the backup to restore from in following format: projects/`project-
|
2628
|
+
# id`/backups/`backup-uid` Only one of restore_backup_context or backup can be
|
2629
|
+
# passed to the input.
|
2630
|
+
# Corresponds to the JSON property `backup`
|
2631
|
+
# @return [String]
|
2632
|
+
attr_accessor :backup
|
2633
|
+
|
2621
2634
|
# Database instance restore from backup context. Backup context contains source
|
2622
2635
|
# instance id and project id.
|
2623
2636
|
# Corresponds to the JSON property `restoreBackupContext`
|
2624
2637
|
# @return [Google::Apis::SqladminV1::RestoreBackupContext]
|
2625
2638
|
attr_accessor :restore_backup_context
|
2626
2639
|
|
2640
|
+
# A Cloud SQL instance resource.
|
2641
|
+
# Corresponds to the JSON property `restoreInstanceSettings`
|
2642
|
+
# @return [Google::Apis::SqladminV1::DatabaseInstance]
|
2643
|
+
attr_accessor :restore_instance_settings
|
2644
|
+
|
2627
2645
|
def initialize(**args)
|
2628
2646
|
update!(**args)
|
2629
2647
|
end
|
2630
2648
|
|
2631
2649
|
# Update properties of this object
|
2632
2650
|
def update!(**args)
|
2651
|
+
@backup = args[:backup] if args.key?(:backup)
|
2633
2652
|
@restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context)
|
2653
|
+
@restore_instance_settings = args[:restore_instance_settings] if args.key?(:restore_instance_settings)
|
2634
2654
|
end
|
2635
2655
|
end
|
2636
2656
|
|
@@ -3348,6 +3368,11 @@ module Google
|
|
3348
3368
|
# @return [String]
|
3349
3369
|
attr_accessor :next_page_token
|
3350
3370
|
|
3371
|
+
# List of warnings that occurred while handling the request.
|
3372
|
+
# Corresponds to the JSON property `warnings`
|
3373
|
+
# @return [Array<Google::Apis::SqladminV1::ApiWarning>]
|
3374
|
+
attr_accessor :warnings
|
3375
|
+
|
3351
3376
|
def initialize(**args)
|
3352
3377
|
update!(**args)
|
3353
3378
|
end
|
@@ -3357,6 +3382,7 @@ module Google
|
|
3357
3382
|
@items = args[:items] if args.key?(:items)
|
3358
3383
|
@kind = args[:kind] if args.key?(:kind)
|
3359
3384
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3385
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
3360
3386
|
end
|
3361
3387
|
end
|
3362
3388
|
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.67.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240925"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -779,6 +779,7 @@ module Google
|
|
779
779
|
class Representation < Google::Apis::Core::JsonRepresentation
|
780
780
|
property :backup_id, :numeric_string => true, as: 'backupId'
|
781
781
|
property :kind, as: 'kind'
|
782
|
+
property :name, as: 'name'
|
782
783
|
end
|
783
784
|
end
|
784
785
|
|
@@ -1386,8 +1387,11 @@ module Google
|
|
1386
1387
|
class InstancesRestoreBackupRequest
|
1387
1388
|
# @private
|
1388
1389
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1390
|
+
property :backup, as: 'backup'
|
1389
1391
|
property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqladminV1::RestoreBackupContext, decorator: Google::Apis::SqladminV1::RestoreBackupContext::Representation
|
1390
1392
|
|
1393
|
+
property :restore_instance_settings, as: 'restoreInstanceSettings', class: Google::Apis::SqladminV1::DatabaseInstance, decorator: Google::Apis::SqladminV1::DatabaseInstance::Representation
|
1394
|
+
|
1391
1395
|
end
|
1392
1396
|
end
|
1393
1397
|
|
@@ -1570,6 +1574,8 @@ module Google
|
|
1570
1574
|
|
1571
1575
|
property :kind, as: 'kind'
|
1572
1576
|
property :next_page_token, as: 'nextPageToken'
|
1577
|
+
collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1::ApiWarning, decorator: Google::Apis::SqladminV1::ApiWarning::Representation
|
1578
|
+
|
1573
1579
|
end
|
1574
1580
|
end
|
1575
1581
|
|
@@ -764,6 +764,15 @@ module Google
|
|
764
764
|
# Project ID of the project that contains the instance to be deleted.
|
765
765
|
# @param [String] instance
|
766
766
|
# Cloud SQL instance ID. This does not include the project ID.
|
767
|
+
# @param [Boolean] enable_final_backup
|
768
|
+
# Flag to opt-in for final backup. By default, it is turned off.
|
769
|
+
# @param [String] final_backup_description
|
770
|
+
# Optional. The description of the final backup.
|
771
|
+
# @param [String] final_backup_expiry_time
|
772
|
+
# Optional. Final Backup expiration time. Timestamp in UTC of when this resource
|
773
|
+
# is considered expired.
|
774
|
+
# @param [Fixnum] final_backup_ttl_days
|
775
|
+
# Optional. Retention period of the final backup.
|
767
776
|
# @param [String] fields
|
768
777
|
# Selector specifying which fields to include in a partial response.
|
769
778
|
# @param [String] quota_user
|
@@ -781,12 +790,16 @@ module Google
|
|
781
790
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
782
791
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
783
792
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
784
|
-
def delete_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
793
|
+
def delete_instance(project, instance, enable_final_backup: nil, final_backup_description: nil, final_backup_expiry_time: nil, final_backup_ttl_days: nil, fields: nil, quota_user: nil, options: nil, &block)
|
785
794
|
command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}', options)
|
786
795
|
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
|
787
796
|
command.response_class = Google::Apis::SqladminV1::Operation
|
788
797
|
command.params['project'] = project unless project.nil?
|
789
798
|
command.params['instance'] = instance unless instance.nil?
|
799
|
+
command.query['enableFinalBackup'] = enable_final_backup unless enable_final_backup.nil?
|
800
|
+
command.query['finalBackupDescription'] = final_backup_description unless final_backup_description.nil?
|
801
|
+
command.query['finalBackupExpiryTime'] = final_backup_expiry_time unless final_backup_expiry_time.nil?
|
802
|
+
command.query['finalBackupTtlDays'] = final_backup_ttl_days unless final_backup_ttl_days.nil?
|
790
803
|
command.query['fields'] = fields unless fields.nil?
|
791
804
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
792
805
|
execute_or_queue_command(command, &block)
|
@@ -1673,6 +1686,10 @@ module Google
|
|
1673
1686
|
# instance in the reverse chronological order of the start time.
|
1674
1687
|
# @param [String] project
|
1675
1688
|
# Project ID of the project that contains the instance.
|
1689
|
+
# @param [String] filter
|
1690
|
+
# Optional. A filter string that follows the rules of EBNF grammar (https://
|
1691
|
+
# google.aip.dev/assets/misc/ebnf-filtering.txt). Cloud SQL provides filters for
|
1692
|
+
# status, operationType, and startTime.
|
1676
1693
|
# @param [String] instance
|
1677
1694
|
# Cloud SQL instance ID. This does not include the project ID.
|
1678
1695
|
# @param [Fixnum] max_results
|
@@ -1697,11 +1714,12 @@ module Google
|
|
1697
1714
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1698
1715
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1699
1716
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1700
|
-
def list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1717
|
+
def list_operations(project, filter: nil, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1701
1718
|
command = make_simple_command(:get, 'v1/projects/{project}/operations', options)
|
1702
1719
|
command.response_representation = Google::Apis::SqladminV1::OperationsListResponse::Representation
|
1703
1720
|
command.response_class = Google::Apis::SqladminV1::OperationsListResponse
|
1704
1721
|
command.params['project'] = project unless project.nil?
|
1722
|
+
command.query['filter'] = filter unless filter.nil?
|
1705
1723
|
command.query['instance'] = instance unless instance.nil?
|
1706
1724
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1707
1725
|
command.query['pageToken'] = page_token unless page_token.nil?
|
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.
|
4
|
+
version: 0.67.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: 2024-09-
|
11
|
+
date: 2024-09-29 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.67.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: []
|