google-apis-sqladmin_v1 0.45.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b37da375ec8980cf69e0099dcc6eafd0fc48d258d51db63ea6d10dac8fb42201
|
4
|
+
data.tar.gz: b39f8e53f245fb55fb7831e7cc9913c4e9fb60ed7879f73b8bed48396b3fa8e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50c4f2a3a2618f87787cfe7eaa6576a4e607e06136d53391680cd22e11eb23876733fa68fecd39f49006d320ae8a8b4cae5bb8cef058485144e5f093458ce930
|
7
|
+
data.tar.gz: 3171bba0769935054dd21e68bffea50b8bab4e416cd489f636d38cac30cf3528b81b254c5eea78991c3300da2ce3ef0b168d994732a236fb4f363e7897d3f39f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1
|
2
2
|
|
3
|
+
### v0.47.0 (2023-11-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231108
|
6
|
+
|
7
|
+
### v0.46.0 (2023-11-05)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231029
|
10
|
+
|
3
11
|
### v0.45.0 (2023-10-22)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231017
|
@@ -924,6 +924,11 @@ module Google
|
|
924
924
|
# @return [Google::Apis::SqladminV1::Settings]
|
925
925
|
attr_accessor :settings
|
926
926
|
|
927
|
+
#
|
928
|
+
# Corresponds to the JSON property `sqlNetworkArchitecture`
|
929
|
+
# @return [String]
|
930
|
+
attr_accessor :sql_network_architecture
|
931
|
+
|
927
932
|
# The current serving state of the Cloud SQL instance.
|
928
933
|
# Corresponds to the JSON property `state`
|
929
934
|
# @return [String]
|
@@ -982,6 +987,7 @@ module Google
|
|
982
987
|
@server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
|
983
988
|
@service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address)
|
984
989
|
@settings = args[:settings] if args.key?(:settings)
|
990
|
+
@sql_network_architecture = args[:sql_network_architecture] if args.key?(:sql_network_architecture)
|
985
991
|
@state = args[:state] if args.key?(:state)
|
986
992
|
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
987
993
|
@write_endpoint = args[:write_endpoint] if args.key?(:write_endpoint)
|
@@ -1043,6 +1049,33 @@ module Google
|
|
1043
1049
|
end
|
1044
1050
|
end
|
1045
1051
|
|
1052
|
+
# This context is used to demote an existing standalone instance to be a Cloud
|
1053
|
+
# SQL read replica for an external database server.
|
1054
|
+
class DemoteContext
|
1055
|
+
include Google::Apis::Core::Hashable
|
1056
|
+
|
1057
|
+
# This is always `sql#demoteContext`.
|
1058
|
+
# Corresponds to the JSON property `kind`
|
1059
|
+
# @return [String]
|
1060
|
+
attr_accessor :kind
|
1061
|
+
|
1062
|
+
# Required. The name of the instance which acts as the on-premises primary
|
1063
|
+
# instance in the replication setup.
|
1064
|
+
# Corresponds to the JSON property `sourceRepresentativeInstanceName`
|
1065
|
+
# @return [String]
|
1066
|
+
attr_accessor :source_representative_instance_name
|
1067
|
+
|
1068
|
+
def initialize(**args)
|
1069
|
+
update!(**args)
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
# Update properties of this object
|
1073
|
+
def update!(**args)
|
1074
|
+
@kind = args[:kind] if args.key?(:kind)
|
1075
|
+
@source_representative_instance_name = args[:source_representative_instance_name] if args.key?(:source_representative_instance_name)
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1046
1079
|
# Read-replica configuration for connecting to the on-premises primary instance.
|
1047
1080
|
class DemoteMasterConfiguration
|
1048
1081
|
include Google::Apis::Core::Hashable
|
@@ -2033,6 +2066,27 @@ module Google
|
|
2033
2066
|
end
|
2034
2067
|
end
|
2035
2068
|
|
2069
|
+
# This request is used to demote an existing standalone instance to be a Cloud
|
2070
|
+
# SQL read replica for an external database server.
|
2071
|
+
class InstancesDemoteRequest
|
2072
|
+
include Google::Apis::Core::Hashable
|
2073
|
+
|
2074
|
+
# This context is used to demote an existing standalone instance to be a Cloud
|
2075
|
+
# SQL read replica for an external database server.
|
2076
|
+
# Corresponds to the JSON property `demoteContext`
|
2077
|
+
# @return [Google::Apis::SqladminV1::DemoteContext]
|
2078
|
+
attr_accessor :demote_context
|
2079
|
+
|
2080
|
+
def initialize(**args)
|
2081
|
+
update!(**args)
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
# Update properties of this object
|
2085
|
+
def update!(**args)
|
2086
|
+
@demote_context = args[:demote_context] if args.key?(:demote_context)
|
2087
|
+
end
|
2088
|
+
end
|
2089
|
+
|
2036
2090
|
# Database instance export request.
|
2037
2091
|
class InstancesExportRequest
|
2038
2092
|
include Google::Apis::Core::Hashable
|
@@ -2626,6 +2680,11 @@ module Google
|
|
2626
2680
|
class Operation
|
2627
2681
|
include Google::Apis::Core::Hashable
|
2628
2682
|
|
2683
|
+
# An Admin API warning message.
|
2684
|
+
# Corresponds to the JSON property `apiWarning`
|
2685
|
+
# @return [Google::Apis::SqladminV1::ApiWarning]
|
2686
|
+
attr_accessor :api_warning
|
2687
|
+
|
2629
2688
|
# Backup context.
|
2630
2689
|
# Corresponds to the JSON property `backupContext`
|
2631
2690
|
# @return [Google::Apis::SqladminV1::BackupContext]
|
@@ -2719,6 +2778,7 @@ module Google
|
|
2719
2778
|
|
2720
2779
|
# Update properties of this object
|
2721
2780
|
def update!(**args)
|
2781
|
+
@api_warning = args[:api_warning] if args.key?(:api_warning)
|
2722
2782
|
@backup_context = args[:backup_context] if args.key?(:backup_context)
|
2723
2783
|
@end_time = args[:end_time] if args.key?(:end_time)
|
2724
2784
|
@error = args[:error] if args.key?(:error)
|
@@ -2920,6 +2980,13 @@ module Google
|
|
2920
2980
|
# @return [String]
|
2921
2981
|
attr_accessor :complexity
|
2922
2982
|
|
2983
|
+
# Disallow credentials that have been previously compromised by a public data
|
2984
|
+
# breach.
|
2985
|
+
# Corresponds to the JSON property `disallowCompromisedCredentials`
|
2986
|
+
# @return [Boolean]
|
2987
|
+
attr_accessor :disallow_compromised_credentials
|
2988
|
+
alias_method :disallow_compromised_credentials?, :disallow_compromised_credentials
|
2989
|
+
|
2923
2990
|
# Disallow username as a part of the password.
|
2924
2991
|
# Corresponds to the JSON property `disallowUsernameSubstring`
|
2925
2992
|
# @return [Boolean]
|
@@ -2955,6 +3022,7 @@ module Google
|
|
2955
3022
|
# Update properties of this object
|
2956
3023
|
def update!(**args)
|
2957
3024
|
@complexity = args[:complexity] if args.key?(:complexity)
|
3025
|
+
@disallow_compromised_credentials = args[:disallow_compromised_credentials] if args.key?(:disallow_compromised_credentials)
|
2958
3026
|
@disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring)
|
2959
3027
|
@enable_password_policy = args[:enable_password_policy] if args.key?(:enable_password_policy)
|
2960
3028
|
@min_length = args[:min_length] if args.key?(:min_length)
|
@@ -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.47.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 = "
|
25
|
+
REVISION = "20231108"
|
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
|
|
@@ -845,6 +857,7 @@ module Google
|
|
845
857
|
property :service_account_email_address, as: 'serviceAccountEmailAddress'
|
846
858
|
property :settings, as: 'settings', class: Google::Apis::SqladminV1::Settings, decorator: Google::Apis::SqladminV1::Settings::Representation
|
847
859
|
|
860
|
+
property :sql_network_architecture, as: 'sqlNetworkArchitecture'
|
848
861
|
property :state, as: 'state'
|
849
862
|
collection :suspension_reason, as: 'suspensionReason'
|
850
863
|
property :write_endpoint, as: 'writeEndpoint'
|
@@ -868,6 +881,14 @@ module Google
|
|
868
881
|
end
|
869
882
|
end
|
870
883
|
|
884
|
+
class DemoteContext
|
885
|
+
# @private
|
886
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
887
|
+
property :kind, as: 'kind'
|
888
|
+
property :source_representative_instance_name, as: 'sourceRepresentativeInstanceName'
|
889
|
+
end
|
890
|
+
end
|
891
|
+
|
871
892
|
class DemoteMasterConfiguration
|
872
893
|
# @private
|
873
894
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1125,6 +1146,14 @@ module Google
|
|
1125
1146
|
end
|
1126
1147
|
end
|
1127
1148
|
|
1149
|
+
class InstancesDemoteRequest
|
1150
|
+
# @private
|
1151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1152
|
+
property :demote_context, as: 'demoteContext', class: Google::Apis::SqladminV1::DemoteContext, decorator: Google::Apis::SqladminV1::DemoteContext::Representation
|
1153
|
+
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1128
1157
|
class InstancesExportRequest
|
1129
1158
|
# @private
|
1130
1159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1292,6 +1321,8 @@ module Google
|
|
1292
1321
|
class Operation
|
1293
1322
|
# @private
|
1294
1323
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1324
|
+
property :api_warning, as: 'apiWarning', class: Google::Apis::SqladminV1::ApiWarning, decorator: Google::Apis::SqladminV1::ApiWarning::Representation
|
1325
|
+
|
1295
1326
|
property :backup_context, as: 'backupContext', class: Google::Apis::SqladminV1::BackupContext, decorator: Google::Apis::SqladminV1::BackupContext::Representation
|
1296
1327
|
|
1297
1328
|
property :end_time, as: 'endTime'
|
@@ -1368,6 +1399,7 @@ module Google
|
|
1368
1399
|
# @private
|
1369
1400
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1370
1401
|
property :complexity, as: 'complexity'
|
1402
|
+
property :disallow_compromised_credentials, as: 'disallowCompromisedCredentials'
|
1371
1403
|
property :disallow_username_substring, as: 'disallowUsernameSubstring'
|
1372
1404
|
property :enable_password_policy, as: 'enablePasswordPolicy'
|
1373
1405
|
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. 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.
|
4
|
+
version: 0.47.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-
|
11
|
+
date: 2023-11-12 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.47.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: []
|