google-apis-sqladmin_v1 0.67.0 → 0.68.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1d38ac274dc0df10fcd063888f75022edaabdea89b96f9cbbd14f846ac27921
|
4
|
+
data.tar.gz: 4aee0895ebf3194df0103ee1db3cae0e095734d7663c94c3369b38d89ba5a36f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a5a9e391ecd73919951e1ffbd9ee778198f669830b76918f5dc92fec5b9f1e888a7db15a88799a11898885161d861037b3665ad174d5051a00d9b0a4c069e48
|
7
|
+
data.tar.gz: ae4a1ded612545c3ab5067b9fd7b8edccb74cdc32983b629857f3f4d2a7ca292cfde2767763bfe3f348fb8dbb49b35ad3f79811eb2031a1fc90cabdd9524575b
|
data/CHANGELOG.md
CHANGED
@@ -277,11 +277,6 @@ 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
|
-
|
285
280
|
def initialize(**args)
|
286
281
|
update!(**args)
|
287
282
|
end
|
@@ -290,7 +285,6 @@ module Google
|
|
290
285
|
def update!(**args)
|
291
286
|
@backup_id = args[:backup_id] if args.key?(:backup_id)
|
292
287
|
@kind = args[:kind] if args.key?(:kind)
|
293
|
-
@name = args[:name] if args.key?(:name)
|
294
288
|
end
|
295
289
|
end
|
296
290
|
|
@@ -2624,33 +2618,19 @@ module Google
|
|
2624
2618
|
class InstancesRestoreBackupRequest
|
2625
2619
|
include Google::Apis::Core::Hashable
|
2626
2620
|
|
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
|
-
|
2634
2621
|
# Database instance restore from backup context. Backup context contains source
|
2635
2622
|
# instance id and project id.
|
2636
2623
|
# Corresponds to the JSON property `restoreBackupContext`
|
2637
2624
|
# @return [Google::Apis::SqladminV1::RestoreBackupContext]
|
2638
2625
|
attr_accessor :restore_backup_context
|
2639
2626
|
|
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
|
-
|
2645
2627
|
def initialize(**args)
|
2646
2628
|
update!(**args)
|
2647
2629
|
end
|
2648
2630
|
|
2649
2631
|
# Update properties of this object
|
2650
2632
|
def update!(**args)
|
2651
|
-
@backup = args[:backup] if args.key?(:backup)
|
2652
2633
|
@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)
|
2654
2634
|
end
|
2655
2635
|
end
|
2656
2636
|
|
@@ -3368,11 +3348,6 @@ module Google
|
|
3368
3348
|
# @return [String]
|
3369
3349
|
attr_accessor :next_page_token
|
3370
3350
|
|
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
|
-
|
3376
3351
|
def initialize(**args)
|
3377
3352
|
update!(**args)
|
3378
3353
|
end
|
@@ -3382,7 +3357,6 @@ module Google
|
|
3382
3357
|
@items = args[:items] if args.key?(:items)
|
3383
3358
|
@kind = args[:kind] if args.key?(:kind)
|
3384
3359
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3385
|
-
@warnings = args[:warnings] if args.key?(:warnings)
|
3386
3360
|
end
|
3387
3361
|
end
|
3388
3362
|
|
@@ -3490,6 +3464,54 @@ module Google
|
|
3490
3464
|
end
|
3491
3465
|
end
|
3492
3466
|
|
3467
|
+
# Settings for an automatically-setup Private Service Connect consumer endpoint
|
3468
|
+
# that is used to connect to a Cloud SQL instance.
|
3469
|
+
class PscAutoConnectionConfig
|
3470
|
+
include Google::Apis::Core::Hashable
|
3471
|
+
|
3472
|
+
# The consumer network of this consumer endpoint. This must be a resource path
|
3473
|
+
# that includes both the host project and the network name. For example, `
|
3474
|
+
# projects/project1/global/networks/network1`. The consumer host project of this
|
3475
|
+
# network might be different from the consumer service project.
|
3476
|
+
# Corresponds to the JSON property `consumerNetwork`
|
3477
|
+
# @return [String]
|
3478
|
+
attr_accessor :consumer_network
|
3479
|
+
|
3480
|
+
# The connection policy status of the consumer network.
|
3481
|
+
# Corresponds to the JSON property `consumerNetworkStatus`
|
3482
|
+
# @return [String]
|
3483
|
+
attr_accessor :consumer_network_status
|
3484
|
+
|
3485
|
+
# This is the project ID of consumer service project of this consumer endpoint.
|
3486
|
+
# Optional. This is only applicable if consumer_network is a shared vpc network.
|
3487
|
+
# Corresponds to the JSON property `consumerProject`
|
3488
|
+
# @return [String]
|
3489
|
+
attr_accessor :consumer_project
|
3490
|
+
|
3491
|
+
# The IP address of the consumer endpoint.
|
3492
|
+
# Corresponds to the JSON property `ipAddress`
|
3493
|
+
# @return [String]
|
3494
|
+
attr_accessor :ip_address
|
3495
|
+
|
3496
|
+
# The connection status of the consumer endpoint.
|
3497
|
+
# Corresponds to the JSON property `status`
|
3498
|
+
# @return [String]
|
3499
|
+
attr_accessor :status
|
3500
|
+
|
3501
|
+
def initialize(**args)
|
3502
|
+
update!(**args)
|
3503
|
+
end
|
3504
|
+
|
3505
|
+
# Update properties of this object
|
3506
|
+
def update!(**args)
|
3507
|
+
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
|
3508
|
+
@consumer_network_status = args[:consumer_network_status] if args.key?(:consumer_network_status)
|
3509
|
+
@consumer_project = args[:consumer_project] if args.key?(:consumer_project)
|
3510
|
+
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
3511
|
+
@status = args[:status] if args.key?(:status)
|
3512
|
+
end
|
3513
|
+
end
|
3514
|
+
|
3493
3515
|
# PSC settings for a Cloud SQL instance.
|
3494
3516
|
class PscConfig
|
3495
3517
|
include Google::Apis::Core::Hashable
|
@@ -3502,6 +3524,12 @@ module Google
|
|
3502
3524
|
# @return [Array<String>]
|
3503
3525
|
attr_accessor :allowed_consumer_projects
|
3504
3526
|
|
3527
|
+
# Optional. The list of settings for requested Private Service Connect consumer
|
3528
|
+
# endpoints that can be used to connect to this Cloud SQL instance.
|
3529
|
+
# Corresponds to the JSON property `pscAutoConnections`
|
3530
|
+
# @return [Array<Google::Apis::SqladminV1::PscAutoConnectionConfig>]
|
3531
|
+
attr_accessor :psc_auto_connections
|
3532
|
+
|
3505
3533
|
# Whether PSC connectivity is enabled for this instance.
|
3506
3534
|
# Corresponds to the JSON property `pscEnabled`
|
3507
3535
|
# @return [Boolean]
|
@@ -3515,6 +3543,7 @@ module Google
|
|
3515
3543
|
# Update properties of this object
|
3516
3544
|
def update!(**args)
|
3517
3545
|
@allowed_consumer_projects = args[:allowed_consumer_projects] if args.key?(:allowed_consumer_projects)
|
3546
|
+
@psc_auto_connections = args[:psc_auto_connections] if args.key?(:psc_auto_connections)
|
3518
3547
|
@psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled)
|
3519
3548
|
end
|
3520
3549
|
end
|
@@ -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.68.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 = "20241004"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -490,6 +490,12 @@ module Google
|
|
490
490
|
include Google::Apis::Core::JsonObjectSupport
|
491
491
|
end
|
492
492
|
|
493
|
+
class PscAutoConnectionConfig
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
493
499
|
class PscConfig
|
494
500
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
501
|
|
@@ -779,7 +785,6 @@ module Google
|
|
779
785
|
class Representation < Google::Apis::Core::JsonRepresentation
|
780
786
|
property :backup_id, :numeric_string => true, as: 'backupId'
|
781
787
|
property :kind, as: 'kind'
|
782
|
-
property :name, as: 'name'
|
783
788
|
end
|
784
789
|
end
|
785
790
|
|
@@ -1387,11 +1392,8 @@ module Google
|
|
1387
1392
|
class InstancesRestoreBackupRequest
|
1388
1393
|
# @private
|
1389
1394
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1390
|
-
property :backup, as: 'backup'
|
1391
1395
|
property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqladminV1::RestoreBackupContext, decorator: Google::Apis::SqladminV1::RestoreBackupContext::Representation
|
1392
1396
|
|
1393
|
-
property :restore_instance_settings, as: 'restoreInstanceSettings', class: Google::Apis::SqladminV1::DatabaseInstance, decorator: Google::Apis::SqladminV1::DatabaseInstance::Representation
|
1394
|
-
|
1395
1397
|
end
|
1396
1398
|
end
|
1397
1399
|
|
@@ -1574,8 +1576,6 @@ module Google
|
|
1574
1576
|
|
1575
1577
|
property :kind, as: 'kind'
|
1576
1578
|
property :next_page_token, as: 'nextPageToken'
|
1577
|
-
collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1::ApiWarning, decorator: Google::Apis::SqladminV1::ApiWarning::Representation
|
1578
|
-
|
1579
1579
|
end
|
1580
1580
|
end
|
1581
1581
|
|
@@ -1607,10 +1607,23 @@ module Google
|
|
1607
1607
|
end
|
1608
1608
|
end
|
1609
1609
|
|
1610
|
+
class PscAutoConnectionConfig
|
1611
|
+
# @private
|
1612
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1613
|
+
property :consumer_network, as: 'consumerNetwork'
|
1614
|
+
property :consumer_network_status, as: 'consumerNetworkStatus'
|
1615
|
+
property :consumer_project, as: 'consumerProject'
|
1616
|
+
property :ip_address, as: 'ipAddress'
|
1617
|
+
property :status, as: 'status'
|
1618
|
+
end
|
1619
|
+
end
|
1620
|
+
|
1610
1621
|
class PscConfig
|
1611
1622
|
# @private
|
1612
1623
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1613
1624
|
collection :allowed_consumer_projects, as: 'allowedConsumerProjects'
|
1625
|
+
collection :psc_auto_connections, as: 'pscAutoConnections', class: Google::Apis::SqladminV1::PscAutoConnectionConfig, decorator: Google::Apis::SqladminV1::PscAutoConnectionConfig::Representation
|
1626
|
+
|
1614
1627
|
property :psc_enabled, as: 'pscEnabled'
|
1615
1628
|
end
|
1616
1629
|
end
|
@@ -569,7 +569,7 @@ module Google
|
|
569
569
|
|
570
570
|
# Rotates the server certificate version to one previously added with the
|
571
571
|
# addServerCertificate method. For instances not using Certificate Authority
|
572
|
-
# Service (CAS) server CA,
|
572
|
+
# Service (CAS) server CA, use RotateServerCa instead.
|
573
573
|
# @param [String] project
|
574
574
|
# Required. Project ID of the project that contains the instance.
|
575
575
|
# @param [String] instance
|
@@ -649,8 +649,7 @@ module Google
|
|
649
649
|
# previously added but never used in a certificate rotation, this operation
|
650
650
|
# replaces that version. There cannot be more than one CA version waiting to be
|
651
651
|
# rotated in. For instances that have enabled Certificate Authority Service (CAS)
|
652
|
-
# based server CA,
|
653
|
-
# certificate.
|
652
|
+
# based server CA, use AddServerCertificate to add a new server certificate.
|
654
653
|
# @param [String] project
|
655
654
|
# Project ID of the project that contains the instance.
|
656
655
|
# @param [String] instance
|
@@ -688,7 +687,7 @@ module Google
|
|
688
687
|
# certificate rotation. If a server certificate version was previously added but
|
689
688
|
# never used in a certificate rotation, this operation replaces that version.
|
690
689
|
# There cannot be more than one certificate version waiting to be rotated in.
|
691
|
-
# For instances not using CAS server CA,
|
690
|
+
# For instances not using CAS server CA, use AddServerCa instead.
|
692
691
|
# @param [String] project
|
693
692
|
# Project ID of the project that contains the instance.
|
694
693
|
# @param [String] instance
|
@@ -764,15 +763,6 @@ module Google
|
|
764
763
|
# Project ID of the project that contains the instance to be deleted.
|
765
764
|
# @param [String] instance
|
766
765
|
# 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.
|
776
766
|
# @param [String] fields
|
777
767
|
# Selector specifying which fields to include in a partial response.
|
778
768
|
# @param [String] quota_user
|
@@ -790,16 +780,12 @@ module Google
|
|
790
780
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
791
781
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
792
782
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
793
|
-
def delete_instance(project, instance,
|
783
|
+
def delete_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
794
784
|
command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}', options)
|
795
785
|
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
|
796
786
|
command.response_class = Google::Apis::SqladminV1::Operation
|
797
787
|
command.params['project'] = project unless project.nil?
|
798
788
|
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?
|
803
789
|
command.query['fields'] = fields unless fields.nil?
|
804
790
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
805
791
|
execute_or_queue_command(command, &block)
|
@@ -1402,7 +1388,7 @@ module Google
|
|
1402
1388
|
|
1403
1389
|
# Rotates the server certificate to one signed by the Certificate Authority (CA)
|
1404
1390
|
# version previously added with the addServerCA method. For instances that have
|
1405
|
-
# enabled Certificate Authority Service (CAS) based server CA,
|
1391
|
+
# enabled Certificate Authority Service (CAS) based server CA, use
|
1406
1392
|
# RotateServerCertificate to rotate the server certificate.
|
1407
1393
|
# @param [String] project
|
1408
1394
|
# Project ID of the project that contains the instance.
|
@@ -1686,10 +1672,6 @@ module Google
|
|
1686
1672
|
# instance in the reverse chronological order of the start time.
|
1687
1673
|
# @param [String] project
|
1688
1674
|
# 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.
|
1693
1675
|
# @param [String] instance
|
1694
1676
|
# Cloud SQL instance ID. This does not include the project ID.
|
1695
1677
|
# @param [Fixnum] max_results
|
@@ -1714,12 +1696,11 @@ module Google
|
|
1714
1696
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1715
1697
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1716
1698
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1717
|
-
def list_operations(project,
|
1699
|
+
def list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1718
1700
|
command = make_simple_command(:get, 'v1/projects/{project}/operations', options)
|
1719
1701
|
command.response_representation = Google::Apis::SqladminV1::OperationsListResponse::Representation
|
1720
1702
|
command.response_class = Google::Apis::SqladminV1::OperationsListResponse
|
1721
1703
|
command.params['project'] = project unless project.nil?
|
1722
|
-
command.query['filter'] = filter unless filter.nil?
|
1723
1704
|
command.query['instance'] = instance unless instance.nil?
|
1724
1705
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1725
1706
|
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.68.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-
|
11
|
+
date: 2024-10-13 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.68.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.21
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud SQL Admin API V1
|