google-apis-sqladmin_v1 0.64.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: 40ef27178af85273881ca7a13d0b4a7a64ff687657046dbb8f46264cf8c54e1b
4
- data.tar.gz: 76a3d96931a2940a312979290a0176f517b51a39819e9166932168eca6048d79
3
+ metadata.gz: 4118854ed0fdca5a50177326aab804c57366869a7107c7fd5d3c146f7c78efa4
4
+ data.tar.gz: b05596904d6a14aaac1a47a679a1e55f9ae9a9f76f64f3bbfca008f23d2e908d
5
5
  SHA512:
6
- metadata.gz: 87f5644448cb91a797478bb3f6a2074acc3618782884d16a4e532e2e09a2923ce95a6eb66522404f873ef4bc3fa6e321d96fb1a5f4a499d1b01d843d8b7a4f98
7
- data.tar.gz: e3ef28063be210499f8d8ef881c0b416ca41c5b6956afe58b76e9d09d0ff03fd73d13b8652773531953088b7fe74de6a593c1a92d8875f71e06a8dfdd6d7e9ed
6
+ metadata.gz: 2c30a081b50318bd9e220a144ce8ca7bb7235724e43a3c1d7b6589c32da8190cb28740d751e486559b527b176d88ef8940296c4ecf43c0f3e8feac736e72c684
7
+ data.tar.gz: 2e304602048f78c1b77051db2fdc4ec5e197e48581b68d0db818e8dae3c81d8139265edd9a2b2e2b75837bd423b6af0f7f74fb2a325cdf549b2140539a139e91
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.66.0 (2024-09-15)
4
+
5
+ * Regenerated from discovery document revision 20240831
6
+
7
+ ### v0.65.0 (2024-09-01)
8
+
9
+ * Regenerated from discovery document revision 20240829
10
+
3
11
  ### v0.64.0 (2024-08-25)
4
12
 
5
13
  * Regenerated from discovery document revision 20240814
@@ -1538,6 +1538,23 @@ module Google
1538
1538
  attr_accessor :differential_base
1539
1539
  alias_method :differential_base?, :differential_base
1540
1540
 
1541
+ # Optional. The end timestamp when transaction log will be included in the
1542
+ # export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for
1543
+ # example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs
1544
+ # until current time will be included. Only applied to Cloud SQL for SQL Server.
1545
+ # Corresponds to the JSON property `exportLogEndTime`
1546
+ # @return [String]
1547
+ attr_accessor :export_log_end_time
1548
+
1549
+ # Optional. The begin timestamp when transaction log will be included in the
1550
+ # export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for
1551
+ # example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs
1552
+ # from the beginning of retention period will be included. Only applied to Cloud
1553
+ # SQL for SQL Server.
1554
+ # Corresponds to the JSON property `exportLogStartTime`
1555
+ # @return [String]
1556
+ attr_accessor :export_log_start_time
1557
+
1541
1558
  # Option for specifying how many stripes to use for the export. If blank, and
1542
1559
  # the value of the striped field is true, the number of stripes is automatically
1543
1560
  # chosen.
@@ -1560,6 +1577,8 @@ module Google
1560
1577
  @bak_type = args[:bak_type] if args.key?(:bak_type)
1561
1578
  @copy_only = args[:copy_only] if args.key?(:copy_only)
1562
1579
  @differential_base = args[:differential_base] if args.key?(:differential_base)
1580
+ @export_log_end_time = args[:export_log_end_time] if args.key?(:export_log_end_time)
1581
+ @export_log_start_time = args[:export_log_start_time] if args.key?(:export_log_start_time)
1563
1582
  @stripe_count = args[:stripe_count] if args.key?(:stripe_count)
1564
1583
  @striped = args[:striped] if args.key?(:striped)
1565
1584
  end
@@ -2538,6 +2557,44 @@ module Google
2538
2557
  end
2539
2558
  end
2540
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
+
2541
2598
  # Database Instance reencrypt request.
2542
2599
  class InstancesReencryptRequest
2543
2600
  include Google::Apis::Core::Hashable
@@ -2596,6 +2653,25 @@ module Google
2596
2653
  end
2597
2654
  end
2598
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
+
2599
2675
  # Instance truncate log request.
2600
2676
  class InstancesTruncateLogRequest
2601
2677
  include Google::Apis::Core::Hashable
@@ -3599,6 +3675,32 @@ module Google
3599
3675
  end
3600
3676
  end
3601
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
+
3602
3704
  # Database instance settings.
3603
3705
  class Settings
3604
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.64.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 = "20240814"
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
 
@@ -1066,6 +1084,8 @@ module Google
1066
1084
  property :bak_type, as: 'bakType'
1067
1085
  property :copy_only, as: 'copyOnly'
1068
1086
  property :differential_base, as: 'differentialBase'
1087
+ property :export_log_end_time, as: 'exportLogEndTime'
1088
+ property :export_log_start_time, as: 'exportLogStartTime'
1069
1089
  property :stripe_count, as: 'stripeCount'
1070
1090
  property :striped, as: 'striped'
1071
1091
  end
@@ -1343,6 +1363,18 @@ module Google
1343
1363
  end
1344
1364
  end
1345
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
+
1346
1378
  class InstancesReencryptRequest
1347
1379
  # @private
1348
1380
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1367,6 +1399,14 @@ module Google
1367
1399
  end
1368
1400
  end
1369
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
+
1370
1410
  class InstancesTruncateLogRequest
1371
1411
  # @private
1372
1412
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1615,6 +1655,14 @@ module Google
1615
1655
  end
1616
1656
  end
1617
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
+
1618
1666
  class Settings
1619
1667
  # @private
1620
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.64.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-08-25 00:00:00.000000000 Z
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.64.0
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: []