google-apis-sqladmin_v1beta4 0.56.0 → 0.58.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: e5fdd518376963f34ca7f26080f6ed97ba4ededfc2362887cd646796dae54f42
4
- data.tar.gz: 7378317a7ae01525dc2cc5ea4c49c617ea7ba322f838b46c54f8e3a37753e2ad
3
+ metadata.gz: 2837618c373577f54a60cf85f01e6ff7272d70341b4aebf528a3107fd2b22b21
4
+ data.tar.gz: dc371d0cd5df7fb16d866e3d33f0b22d06372b835d9008b2abe001b706c84902
5
5
  SHA512:
6
- metadata.gz: 5f0c47c2d136f131b3293ef3d2d5095cabda9fc13a393f8817f636f71bc66613e4a3849ccf768059b4c9e9aa8aa0fcf18f567e45622fbdf15ada0fdf36c6a995
7
- data.tar.gz: c1db8465bb597698cce76b564f0b294338c95b01b5bcc2bdd692cc4987f1d175a590ca7246607155dc25fcdb0fd231f32d6ed68a74b0ea157cfbcd9f209df86e
6
+ metadata.gz: dc2ac2c7c9fadf99985353a9e3480ac1561c70e72b63e1dec05f629b4f81313bfe31ffe9b508576785e9e7d907ca61fb86efe9a618cb9ac754c4452234cd947d
7
+ data.tar.gz: f9f7b436d5e30ca31866e156b51786dec65a344590ee9ed79177929a90c453067bcb19688b541eeb71ad109e128640df1609814ddcba9ca497599562b05de421
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.58.0 (2023-11-05)
4
+
5
+ * Regenerated from discovery document revision 20231029
6
+
7
+ ### v0.57.0 (2023-10-22)
8
+
9
+ * Regenerated from discovery document revision 20231017
10
+
3
11
  ### v0.56.0 (2023-10-08)
4
12
 
5
13
  * Regenerated from discovery document revision 20231004
@@ -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 an 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
@@ -1785,14 +1812,17 @@ module Google
1785
1812
  attr_accessor :recovery_only
1786
1813
  alias_method :recovery_only?, :recovery_only
1787
1814
 
1788
- # Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for
1789
- # SQL Server only
1815
+ # Optional. The timestamp when the import should stop. This timestamp is in the [
1816
+ # RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-
1817
+ # 01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies
1818
+ # to Cloud SQL for SQL Server only.
1790
1819
  # Corresponds to the JSON property `stopAt`
1791
1820
  # @return [String]
1792
1821
  attr_accessor :stop_at
1793
1822
 
1794
- # Optional. StopAtMark keyword for transaction log import, Applies to Cloud SQL
1795
- # for SQL Server only
1823
+ # Optional. The marked transaction where the import should stop. This field is
1824
+ # equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server
1825
+ # only.
1796
1826
  # Corresponds to the JSON property `stopAtMark`
1797
1827
  # @return [String]
1798
1828
  attr_accessor :stop_at_mark
@@ -2031,6 +2061,27 @@ module Google
2031
2061
  end
2032
2062
  end
2033
2063
 
2064
+ # This request is used to demote an existing standalone instance to be a Cloud
2065
+ # SQL read replica for an external database server.
2066
+ class InstancesDemoteRequest
2067
+ include Google::Apis::Core::Hashable
2068
+
2069
+ # This context is used to demote an existing standalone instance to be a Cloud
2070
+ # SQL read replica for an external database server.
2071
+ # Corresponds to the JSON property `demoteContext`
2072
+ # @return [Google::Apis::SqladminV1beta4::DemoteContext]
2073
+ attr_accessor :demote_context
2074
+
2075
+ def initialize(**args)
2076
+ update!(**args)
2077
+ end
2078
+
2079
+ # Update properties of this object
2080
+ def update!(**args)
2081
+ @demote_context = args[:demote_context] if args.key?(:demote_context)
2082
+ end
2083
+ end
2084
+
2034
2085
  # Database instance export request.
2035
2086
  class ExportInstancesRequest
2036
2087
  include Google::Apis::Core::Hashable
@@ -2280,33 +2331,31 @@ module Google
2280
2331
  # @return [Google::Apis::SqladminV1beta4::PscConfig]
2281
2332
  attr_accessor :psc_config
2282
2333
 
2283
- # LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are
2284
- # enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS
2285
- # connections. For SSL/TLS connections, the client certificate will not be
2286
- # verified. If set to true, only allow connections encrypted with SSL/TLS and
2287
- # with valid client certificates. If you want to enforce SSL/TLS without
2288
- # enforcing the requirement for valid client certificates, use the `ssl_mode`
2289
- # flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/
2290
- # java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:
2291
- # update_api_temp_fix)
2334
+ # Whether SSL/TLS connections over IP are enforced. If set to false, then allow
2335
+ # both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the
2336
+ # client certificate won't be verified. If set to true, then only allow
2337
+ # connections encrypted with SSL/TLS and with valid client certificates. If you
2338
+ # want to enforce SSL/TLS without enforcing the requirement for valid client
2339
+ # certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl`
2340
+ # flag.
2292
2341
  # Corresponds to the JSON property `requireSsl`
2293
2342
  # @return [Boolean]
2294
2343
  attr_accessor :require_ssl
2295
2344
  alias_method :require_ssl?, :require_ssl
2296
2345
 
2297
- # Specify how SSL/TLS will be enforced in database connections. This flag is
2298
- # only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing
2299
- # SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use
2300
- # the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the
2301
- # conflict between those flags in PostgreSQL, only the following value pairs are
2302
- # valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=
2303
- # ENCRYPTED_ONLY, require_ssl=false; ssl_mode=
2304
- # TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `
2305
- # ssl_mode` gets priority over the value of the legacy `require_ssl`. For
2306
- # example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `
2346
+ # Specify how SSL/TLS is enforced in database connections. This flag is
2347
+ # supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing
2348
+ # SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag
2349
+ # instead of the legacy `require_ssl` flag. To avoid the conflict between those
2350
+ # flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=
2351
+ # ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=
2352
+ # ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=
2353
+ # TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the
2354
+ # value of `ssl_mode` gets priority over the value of the legacy `require_ssl`.
2355
+ # For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `
2307
2356
  # ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `
2308
2357
  # require_ssl=false` means "both non-SSL and SSL connections are allowed". The
2309
- # database will respect `ssl_mode` in this case and only accept SSL connections.
2358
+ # database respects `ssl_mode` in this case and only accepts SSL connections.
2310
2359
  # Corresponds to the JSON property `sslMode`
2311
2360
  # @return [String]
2312
2361
  attr_accessor :ssl_mode
@@ -2920,13 +2969,6 @@ module Google
2920
2969
  # @return [String]
2921
2970
  attr_accessor :complexity
2922
2971
 
2923
- # Disallow credentials that have been previously compromised by a public data
2924
- # breach.
2925
- # Corresponds to the JSON property `disallowCompromisedCredentials`
2926
- # @return [Boolean]
2927
- attr_accessor :disallow_compromised_credentials
2928
- alias_method :disallow_compromised_credentials?, :disallow_compromised_credentials
2929
-
2930
2972
  # Disallow username as a part of the password.
2931
2973
  # Corresponds to the JSON property `disallowUsernameSubstring`
2932
2974
  # @return [Boolean]
@@ -2962,7 +3004,6 @@ module Google
2962
3004
  # Update properties of this object
2963
3005
  def update!(**args)
2964
3006
  @complexity = args[:complexity] if args.key?(:complexity)
2965
- @disallow_compromised_credentials = args[:disallow_compromised_credentials] if args.key?(:disallow_compromised_credentials)
2966
3007
  @disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring)
2967
3008
  @enable_password_policy = args[:enable_password_policy] if args.key?(:enable_password_policy)
2968
3009
  @min_length = args[:min_length] if args.key?(:min_length)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.56.0"
19
+ GEM_VERSION = "0.58.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 = "20231004"
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 ExportInstancesRequest
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::SqladminV1beta4::DemoteContext, decorator: Google::Apis::SqladminV1beta4::DemoteContext::Representation
1152
+
1153
+ end
1154
+ end
1155
+
1128
1156
  class ExportInstancesRequest
1129
1157
  # @private
1130
1158
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1368,7 +1396,6 @@ module Google
1368
1396
  # @private
1369
1397
  class Representation < Google::Apis::Core::JsonRepresentation
1370
1398
  property :complexity, as: 'complexity'
1371
- property :disallow_compromised_credentials, as: 'disallowCompromisedCredentials'
1372
1399
  property :disallow_username_substring, as: 'disallowUsernameSubstring'
1373
1400
  property :enable_password_policy, as: 'enablePasswordPolicy'
1374
1401
  property :min_length, as: 'minLength'
@@ -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. The project ID of the project that contains the instance.
644
+ # @param [String] instance
645
+ # Required. The name of the Cloud SQL instance.
646
+ # @param [Google::Apis::SqladminV1beta4::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::SqladminV1beta4::Operation] parsed result object
657
+ # @yieldparam err [StandardError] error object if request failed
658
+ #
659
+ # @return [Google::Apis::SqladminV1beta4::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, 'sql/v1beta4/projects/{project}/instances/{instance}/demote', options)
666
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesDemoteRequest::Representation
667
+ command.request_object = instances_demote_request_object
668
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
669
+ command.response_class = Google::Apis::SqladminV1beta4::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_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.56.0
4
+ version: 0.58.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-08 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_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.56.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.58.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []