google-apis-sqladmin_v1 0.65.0 → 0.66.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: 4118854ed0fdca5a50177326aab804c57366869a7107c7fd5d3c146f7c78efa4
|
4
|
+
data.tar.gz: b05596904d6a14aaac1a47a679a1e55f9ae9a9f76f64f3bbfca008f23d2e908d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c30a081b50318bd9e220a144ce8ca7bb7235724e43a3c1d7b6589c32da8190cb28740d751e486559b527b176d88ef8940296c4ecf43c0f3e8feac736e72c684
|
7
|
+
data.tar.gz: 2e304602048f78c1b77051db2fdc4ec5e197e48581b68d0db818e8dae3c81d8139265edd9a2b2e2b75837bd423b6af0f7f74fb2a325cdf549b2140539a139e91
|
data/CHANGELOG.md
CHANGED
@@ -2557,6 +2557,44 @@ module Google
|
|
2557
2557
|
end
|
2558
2558
|
end
|
2559
2559
|
|
2560
|
+
# Instances ListServerCertificates response.
|
2561
|
+
class InstancesListServerCertificatesResponse
|
2562
|
+
include Google::Apis::Core::Hashable
|
2563
|
+
|
2564
|
+
# The `sha1_fingerprint` of the active certificate from `server_certs`.
|
2565
|
+
# Corresponds to the JSON property `activeVersion`
|
2566
|
+
# @return [String]
|
2567
|
+
attr_accessor :active_version
|
2568
|
+
|
2569
|
+
# List of server CA certificates for the instance.
|
2570
|
+
# Corresponds to the JSON property `caCerts`
|
2571
|
+
# @return [Array<Google::Apis::SqladminV1::SslCert>]
|
2572
|
+
attr_accessor :ca_certs
|
2573
|
+
|
2574
|
+
# This is always `sql#instancesListServerCertificates`.
|
2575
|
+
# Corresponds to the JSON property `kind`
|
2576
|
+
# @return [String]
|
2577
|
+
attr_accessor :kind
|
2578
|
+
|
2579
|
+
# List of server certificates for the instance, signed by the corresponding CA
|
2580
|
+
# from the `ca_certs` list.
|
2581
|
+
# Corresponds to the JSON property `serverCerts`
|
2582
|
+
# @return [Array<Google::Apis::SqladminV1::SslCert>]
|
2583
|
+
attr_accessor :server_certs
|
2584
|
+
|
2585
|
+
def initialize(**args)
|
2586
|
+
update!(**args)
|
2587
|
+
end
|
2588
|
+
|
2589
|
+
# Update properties of this object
|
2590
|
+
def update!(**args)
|
2591
|
+
@active_version = args[:active_version] if args.key?(:active_version)
|
2592
|
+
@ca_certs = args[:ca_certs] if args.key?(:ca_certs)
|
2593
|
+
@kind = args[:kind] if args.key?(:kind)
|
2594
|
+
@server_certs = args[:server_certs] if args.key?(:server_certs)
|
2595
|
+
end
|
2596
|
+
end
|
2597
|
+
|
2560
2598
|
# Database Instance reencrypt request.
|
2561
2599
|
class InstancesReencryptRequest
|
2562
2600
|
include Google::Apis::Core::Hashable
|
@@ -2615,6 +2653,25 @@ module Google
|
|
2615
2653
|
end
|
2616
2654
|
end
|
2617
2655
|
|
2656
|
+
# Rotate server certificate request.
|
2657
|
+
class InstancesRotateServerCertificateRequest
|
2658
|
+
include Google::Apis::Core::Hashable
|
2659
|
+
|
2660
|
+
# Instance rotate server certificate context.
|
2661
|
+
# Corresponds to the JSON property `rotateServerCertificateContext`
|
2662
|
+
# @return [Google::Apis::SqladminV1::RotateServerCertificateContext]
|
2663
|
+
attr_accessor :rotate_server_certificate_context
|
2664
|
+
|
2665
|
+
def initialize(**args)
|
2666
|
+
update!(**args)
|
2667
|
+
end
|
2668
|
+
|
2669
|
+
# Update properties of this object
|
2670
|
+
def update!(**args)
|
2671
|
+
@rotate_server_certificate_context = args[:rotate_server_certificate_context] if args.key?(:rotate_server_certificate_context)
|
2672
|
+
end
|
2673
|
+
end
|
2674
|
+
|
2618
2675
|
# Instance truncate log request.
|
2619
2676
|
class InstancesTruncateLogRequest
|
2620
2677
|
include Google::Apis::Core::Hashable
|
@@ -3618,6 +3675,32 @@ module Google
|
|
3618
3675
|
end
|
3619
3676
|
end
|
3620
3677
|
|
3678
|
+
# Instance rotate server certificate context.
|
3679
|
+
class RotateServerCertificateContext
|
3680
|
+
include Google::Apis::Core::Hashable
|
3681
|
+
|
3682
|
+
# Optional. This is always `sql#rotateServerCertificateContext`.
|
3683
|
+
# Corresponds to the JSON property `kind`
|
3684
|
+
# @return [String]
|
3685
|
+
attr_accessor :kind
|
3686
|
+
|
3687
|
+
# The fingerprint of the next version to be rotated to. If left unspecified,
|
3688
|
+
# will be rotated to the most recently added server certificate version.
|
3689
|
+
# Corresponds to the JSON property `nextVersion`
|
3690
|
+
# @return [String]
|
3691
|
+
attr_accessor :next_version
|
3692
|
+
|
3693
|
+
def initialize(**args)
|
3694
|
+
update!(**args)
|
3695
|
+
end
|
3696
|
+
|
3697
|
+
# Update properties of this object
|
3698
|
+
def update!(**args)
|
3699
|
+
@kind = args[:kind] if args.key?(:kind)
|
3700
|
+
@next_version = args[:next_version] if args.key?(:next_version)
|
3701
|
+
end
|
3702
|
+
end
|
3703
|
+
|
3621
3704
|
# Database instance settings.
|
3622
3705
|
class Settings
|
3623
3706
|
include Google::Apis::Core::Hashable
|
@@ -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.66.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 = "20240831"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -364,6 +364,12 @@ module Google
|
|
364
364
|
include Google::Apis::Core::JsonObjectSupport
|
365
365
|
end
|
366
366
|
|
367
|
+
class InstancesListServerCertificatesResponse
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
367
373
|
class InstancesReencryptRequest
|
368
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
375
|
|
@@ -382,6 +388,12 @@ module Google
|
|
382
388
|
include Google::Apis::Core::JsonObjectSupport
|
383
389
|
end
|
384
390
|
|
391
|
+
class InstancesRotateServerCertificateRequest
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
385
397
|
class InstancesTruncateLogRequest
|
386
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
399
|
|
@@ -514,6 +526,12 @@ module Google
|
|
514
526
|
include Google::Apis::Core::JsonObjectSupport
|
515
527
|
end
|
516
528
|
|
529
|
+
class RotateServerCertificateContext
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
|
+
|
532
|
+
include Google::Apis::Core::JsonObjectSupport
|
533
|
+
end
|
534
|
+
|
517
535
|
class Settings
|
518
536
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
537
|
|
@@ -1345,6 +1363,18 @@ module Google
|
|
1345
1363
|
end
|
1346
1364
|
end
|
1347
1365
|
|
1366
|
+
class InstancesListServerCertificatesResponse
|
1367
|
+
# @private
|
1368
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1369
|
+
property :active_version, as: 'activeVersion'
|
1370
|
+
collection :ca_certs, as: 'caCerts', class: Google::Apis::SqladminV1::SslCert, decorator: Google::Apis::SqladminV1::SslCert::Representation
|
1371
|
+
|
1372
|
+
property :kind, as: 'kind'
|
1373
|
+
collection :server_certs, as: 'serverCerts', class: Google::Apis::SqladminV1::SslCert, decorator: Google::Apis::SqladminV1::SslCert::Representation
|
1374
|
+
|
1375
|
+
end
|
1376
|
+
end
|
1377
|
+
|
1348
1378
|
class InstancesReencryptRequest
|
1349
1379
|
# @private
|
1350
1380
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1369,6 +1399,14 @@ module Google
|
|
1369
1399
|
end
|
1370
1400
|
end
|
1371
1401
|
|
1402
|
+
class InstancesRotateServerCertificateRequest
|
1403
|
+
# @private
|
1404
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1405
|
+
property :rotate_server_certificate_context, as: 'rotateServerCertificateContext', class: Google::Apis::SqladminV1::RotateServerCertificateContext, decorator: Google::Apis::SqladminV1::RotateServerCertificateContext::Representation
|
1406
|
+
|
1407
|
+
end
|
1408
|
+
end
|
1409
|
+
|
1372
1410
|
class InstancesTruncateLogRequest
|
1373
1411
|
# @private
|
1374
1412
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1617,6 +1655,14 @@ module Google
|
|
1617
1655
|
end
|
1618
1656
|
end
|
1619
1657
|
|
1658
|
+
class RotateServerCertificateContext
|
1659
|
+
# @private
|
1660
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1661
|
+
property :kind, as: 'kind'
|
1662
|
+
property :next_version, as: 'nextVersion'
|
1663
|
+
end
|
1664
|
+
end
|
1665
|
+
|
1620
1666
|
class Settings
|
1621
1667
|
# @private
|
1622
1668
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -531,6 +531,80 @@ module Google
|
|
531
531
|
execute_or_queue_command(command, &block)
|
532
532
|
end
|
533
533
|
|
534
|
+
# Lists all versions of server certificates and certificate authorities (CAs)
|
535
|
+
# for the specified instance. There can be up to three sets of certs listed: the
|
536
|
+
# certificate that is currently in use, a future that has been added but not yet
|
537
|
+
# used to sign a certificate, and a certificate that has been rotated out.
|
538
|
+
# @param [String] project
|
539
|
+
# Required. Project ID of the project that contains the instance.
|
540
|
+
# @param [String] instance
|
541
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
542
|
+
# @param [String] fields
|
543
|
+
# Selector specifying which fields to include in a partial response.
|
544
|
+
# @param [String] quota_user
|
545
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
546
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
547
|
+
# @param [Google::Apis::RequestOptions] options
|
548
|
+
# Request-specific options
|
549
|
+
#
|
550
|
+
# @yield [result, err] Result & error if block supplied
|
551
|
+
# @yieldparam result [Google::Apis::SqladminV1::InstancesListServerCertificatesResponse] parsed result object
|
552
|
+
# @yieldparam err [StandardError] error object if request failed
|
553
|
+
#
|
554
|
+
# @return [Google::Apis::SqladminV1::InstancesListServerCertificatesResponse]
|
555
|
+
#
|
556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
559
|
+
def list_instance_server_certificates(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
560
|
+
command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/listServerCertificates', options)
|
561
|
+
command.response_representation = Google::Apis::SqladminV1::InstancesListServerCertificatesResponse::Representation
|
562
|
+
command.response_class = Google::Apis::SqladminV1::InstancesListServerCertificatesResponse
|
563
|
+
command.params['project'] = project unless project.nil?
|
564
|
+
command.params['instance'] = instance unless instance.nil?
|
565
|
+
command.query['fields'] = fields unless fields.nil?
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
567
|
+
execute_or_queue_command(command, &block)
|
568
|
+
end
|
569
|
+
|
570
|
+
# Rotates the server certificate version to one previously added with the
|
571
|
+
# addServerCertificate method. For instances not using Certificate Authority
|
572
|
+
# Service (CAS) server CA, please use RotateServerCa instead.
|
573
|
+
# @param [String] project
|
574
|
+
# Required. Project ID of the project that contains the instance.
|
575
|
+
# @param [String] instance
|
576
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
577
|
+
# @param [Google::Apis::SqladminV1::InstancesRotateServerCertificateRequest] instances_rotate_server_certificate_request_object
|
578
|
+
# @param [String] fields
|
579
|
+
# Selector specifying which fields to include in a partial response.
|
580
|
+
# @param [String] quota_user
|
581
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
582
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
583
|
+
# @param [Google::Apis::RequestOptions] options
|
584
|
+
# Request-specific options
|
585
|
+
#
|
586
|
+
# @yield [result, err] Result & error if block supplied
|
587
|
+
# @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
|
588
|
+
# @yieldparam err [StandardError] error object if request failed
|
589
|
+
#
|
590
|
+
# @return [Google::Apis::SqladminV1::Operation]
|
591
|
+
#
|
592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
595
|
+
def rotate_instance_server_certificate(project, instance, instances_rotate_server_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
596
|
+
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/rotateServerCertificate', options)
|
597
|
+
command.request_representation = Google::Apis::SqladminV1::InstancesRotateServerCertificateRequest::Representation
|
598
|
+
command.request_object = instances_rotate_server_certificate_request_object
|
599
|
+
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
|
600
|
+
command.response_class = Google::Apis::SqladminV1::Operation
|
601
|
+
command.params['project'] = project unless project.nil?
|
602
|
+
command.params['instance'] = instance unless instance.nil?
|
603
|
+
command.query['fields'] = fields unless fields.nil?
|
604
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
605
|
+
execute_or_queue_command(command, &block)
|
606
|
+
end
|
607
|
+
|
534
608
|
# Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
|
535
609
|
# @param [String] project
|
536
610
|
# Required. Project ID of the project that contains the instance (Example:
|
@@ -609,6 +683,44 @@ module Google
|
|
609
683
|
execute_or_queue_command(command, &block)
|
610
684
|
end
|
611
685
|
|
686
|
+
# Add a new trusted server certificate version for the specified instance using
|
687
|
+
# Certificate Authority Service (CAS) server CA. Required to prepare for a
|
688
|
+
# certificate rotation. If a server certificate version was previously added but
|
689
|
+
# never used in a certificate rotation, this operation replaces that version.
|
690
|
+
# There cannot be more than one certificate version waiting to be rotated in.
|
691
|
+
# For instances not using CAS server CA, please use AddServerCa instead.
|
692
|
+
# @param [String] project
|
693
|
+
# Project ID of the project that contains the instance.
|
694
|
+
# @param [String] instance
|
695
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
696
|
+
# @param [String] fields
|
697
|
+
# Selector specifying which fields to include in a partial response.
|
698
|
+
# @param [String] quota_user
|
699
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
700
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
701
|
+
# @param [Google::Apis::RequestOptions] options
|
702
|
+
# Request-specific options
|
703
|
+
#
|
704
|
+
# @yield [result, err] Result & error if block supplied
|
705
|
+
# @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
|
706
|
+
# @yieldparam err [StandardError] error object if request failed
|
707
|
+
#
|
708
|
+
# @return [Google::Apis::SqladminV1::Operation]
|
709
|
+
#
|
710
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
711
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
712
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
713
|
+
def add_instance_server_certificate(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
714
|
+
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/addServerCertificate', options)
|
715
|
+
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
|
716
|
+
command.response_class = Google::Apis::SqladminV1::Operation
|
717
|
+
command.params['project'] = project unless project.nil?
|
718
|
+
command.params['instance'] = instance unless instance.nil?
|
719
|
+
command.query['fields'] = fields unless fields.nil?
|
720
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
721
|
+
execute_or_queue_command(command, &block)
|
722
|
+
end
|
723
|
+
|
612
724
|
# Creates a Cloud SQL instance as a clone of the source instance. Using this
|
613
725
|
# operation might cause your instance to restart.
|
614
726
|
# @param [String] project
|
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.66.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-15 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.66.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: []
|