google-apis-sqladmin_v1 0.45.0 → 0.46.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: 61eec3cbe925b9bcb0252ccfc07def1f4a2a5200e42ba573fc05e8e62b6a8373
4
- data.tar.gz: 3c91e2cb1ea79058a100dd8205b845137a7e2cfb9f797ecfde872b2b1faa9df2
3
+ metadata.gz: 81baeb7feccb658d1920882a158b79e38d5151a0230efd6e474ed89eec63cd32
4
+ data.tar.gz: 7502bc9d782c9f6447b8c902f9e9896a0adc3f459744b9de26890c71bd74a3dd
5
5
  SHA512:
6
- metadata.gz: 2333984ab0e56ab9b0b242a130e53495d3f0e2fbc9616b3ff973654ed80e1926fd7b46451a514cbc026f1a5b53c3bb4ea38c392ef0530362a61ab936de476f2f
7
- data.tar.gz: 322d02a0701e99efc6b436a87512bf7d5572a702f2cf561844c2ca816ebdc749688f2a689c835e62f60096a8b76396ad9f347304ef52e92e187368acfaa2b5ee
6
+ metadata.gz: 12b5593d05d3b3853132e941f3e44d4e590db0be2c2382c3c99c77988184e70b8848aea643bfb13f5a9fd3debb456814141456dfb14d07be8bc94de98a3ef6ad
7
+ data.tar.gz: 43bf6b3fe7af14ceed454fffe3e37c91ae2260690b8e80a01b8669ad8dfcc1aad91bd86c256d6ad6319886872ddf65f6dad79238b64dff4c461bb1c95b75f532
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.46.0 (2023-11-05)
4
+
5
+ * Regenerated from discovery document revision 20231029
6
+
3
7
  ### v0.45.0 (2023-10-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20231017
@@ -1043,6 +1043,33 @@ module Google
1043
1043
  end
1044
1044
  end
1045
1045
 
1046
+ # This context is used to demote an existing standalone instance to be a Cloud
1047
+ # SQL read replica for an external database server.
1048
+ class DemoteContext
1049
+ include Google::Apis::Core::Hashable
1050
+
1051
+ # This is always `sql#demoteContext`.
1052
+ # Corresponds to the JSON property `kind`
1053
+ # @return [String]
1054
+ attr_accessor :kind
1055
+
1056
+ # Required. The name of the instance which acts as the on-premises primary
1057
+ # instance in the replication setup.
1058
+ # Corresponds to the JSON property `sourceRepresentativeInstanceName`
1059
+ # @return [String]
1060
+ attr_accessor :source_representative_instance_name
1061
+
1062
+ def initialize(**args)
1063
+ update!(**args)
1064
+ end
1065
+
1066
+ # Update properties of this object
1067
+ def update!(**args)
1068
+ @kind = args[:kind] if args.key?(:kind)
1069
+ @source_representative_instance_name = args[:source_representative_instance_name] if args.key?(:source_representative_instance_name)
1070
+ end
1071
+ end
1072
+
1046
1073
  # Read-replica configuration for connecting to the on-premises primary instance.
1047
1074
  class DemoteMasterConfiguration
1048
1075
  include Google::Apis::Core::Hashable
@@ -2033,6 +2060,27 @@ module Google
2033
2060
  end
2034
2061
  end
2035
2062
 
2063
+ # This request is used to demote an existing standalone instance to be a Cloud
2064
+ # SQL read replica for an external database server.
2065
+ class InstancesDemoteRequest
2066
+ include Google::Apis::Core::Hashable
2067
+
2068
+ # This context is used to demote an existing standalone instance to be a Cloud
2069
+ # SQL read replica for an external database server.
2070
+ # Corresponds to the JSON property `demoteContext`
2071
+ # @return [Google::Apis::SqladminV1::DemoteContext]
2072
+ attr_accessor :demote_context
2073
+
2074
+ def initialize(**args)
2075
+ update!(**args)
2076
+ end
2077
+
2078
+ # Update properties of this object
2079
+ def update!(**args)
2080
+ @demote_context = args[:demote_context] if args.key?(:demote_context)
2081
+ end
2082
+ end
2083
+
2036
2084
  # Database instance export request.
2037
2085
  class InstancesExportRequest
2038
2086
  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.45.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231017"
25
+ REVISION = "20231029"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class DemoteContext
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class DemoteMasterConfiguration
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -280,6 +286,12 @@ module Google
280
286
  include Google::Apis::Core::JsonObjectSupport
281
287
  end
282
288
 
289
+ class InstancesDemoteRequest
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
283
295
  class InstancesExportRequest
284
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
297
 
@@ -868,6 +880,14 @@ module Google
868
880
  end
869
881
  end
870
882
 
883
+ class DemoteContext
884
+ # @private
885
+ class Representation < Google::Apis::Core::JsonRepresentation
886
+ property :kind, as: 'kind'
887
+ property :source_representative_instance_name, as: 'sourceRepresentativeInstanceName'
888
+ end
889
+ end
890
+
871
891
  class DemoteMasterConfiguration
872
892
  # @private
873
893
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1125,6 +1145,14 @@ module Google
1125
1145
  end
1126
1146
  end
1127
1147
 
1148
+ class InstancesDemoteRequest
1149
+ # @private
1150
+ class Representation < Google::Apis::Core::JsonRepresentation
1151
+ property :demote_context, as: 'demoteContext', class: Google::Apis::SqladminV1::DemoteContext, decorator: Google::Apis::SqladminV1::DemoteContext::Representation
1152
+
1153
+ end
1154
+ end
1155
+
1128
1156
  class InstancesExportRequest
1129
1157
  # @private
1130
1158
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -637,6 +637,43 @@ module Google
637
637
  execute_or_queue_command(command, &block)
638
638
  end
639
639
 
640
+ # Demotes an existing standalone instance to be a Cloud SQL read replica for an
641
+ # external database server.
642
+ # @param [String] project
643
+ # Required. ID of the project that contains the instance.
644
+ # @param [String] instance
645
+ # Required. Cloud SQL instance name.
646
+ # @param [Google::Apis::SqladminV1::InstancesDemoteRequest] instances_demote_request_object
647
+ # @param [String] fields
648
+ # Selector specifying which fields to include in a partial response.
649
+ # @param [String] quota_user
650
+ # Available to use for quota purposes for server-side applications. Can be any
651
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
652
+ # @param [Google::Apis::RequestOptions] options
653
+ # Request-specific options
654
+ #
655
+ # @yield [result, err] Result & error if block supplied
656
+ # @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
657
+ # @yieldparam err [StandardError] error object if request failed
658
+ #
659
+ # @return [Google::Apis::SqladminV1::Operation]
660
+ #
661
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
662
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
663
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
664
+ def demote_instance(project, instance, instances_demote_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
665
+ command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/demote', options)
666
+ command.request_representation = Google::Apis::SqladminV1::InstancesDemoteRequest::Representation
667
+ command.request_object = instances_demote_request_object
668
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
669
+ command.response_class = Google::Apis::SqladminV1::Operation
670
+ command.params['project'] = project unless project.nil?
671
+ command.params['instance'] = instance unless instance.nil?
672
+ command.query['fields'] = fields unless fields.nil?
673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
674
+ execute_or_queue_command(command, &block)
675
+ end
676
+
640
677
  # Demotes the stand-alone instance to be a Cloud SQL read replica for an
641
678
  # external database server.
642
679
  # @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.45.0
4
+ version: 0.46.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: 2023-10-22 00:00:00.000000000 Z
11
+ date: 2023-11-05 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.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.46.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: []