google-cloud-sql-v1beta4 0.a → 0.1.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 +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +153 -8
- data/lib/google/cloud/sql/v1beta4/cloud_sql_connect_pb.rb +35 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_connect_services_pb.rb +53 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_data_pb.rb +35 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_data_services_pb.rb +80 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_iam_policies_pb.rb +23 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_iam_policies_services_pb.rb +29 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_pb.rb +117 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +192 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_services_pb.rb +325 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_tiers_pb.rb +26 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_tiers_services_pb.rb +46 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_users_pb.rb +40 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_users_services_pb.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/rest.rb +46 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +807 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb +718 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/service_stub.rb +332 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb +49 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/client.rb +896 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +83 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest/client.rb +818 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest.rb +50 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service.rb +53 -0
- data/lib/google/cloud/sql/v1beta4/sql_connect_service/client.rb +705 -0
- data/lib/google/cloud/sql/v1beta4/sql_connect_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_connect_service/rest/client.rb +632 -0
- data/lib/google/cloud/sql/v1beta4/sql_connect_service/rest/service_stub.rb +268 -0
- data/lib/google/cloud/sql/v1beta4/sql_connect_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1beta4/sql_connect_service.rb +54 -0
- data/lib/google/cloud/sql/v1beta4/sql_data_service/client.rb +520 -0
- data/lib/google/cloud/sql/v1beta4/sql_data_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_data_service/paths.rb +50 -0
- data/lib/google/cloud/sql/v1beta4/sql_data_service.rb +49 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/client.rb +1009 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/client.rb +894 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/service_stub.rb +460 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest.rb +49 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/client.rb +486 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest/client.rb +444 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest/service_stub.rb +140 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest.rb +49 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/client.rb +4745 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +159 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/client.rb +4281 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/service_stub.rb +2769 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest.rb +50 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service.rb +53 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/client.rb +699 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest/client.rb +629 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest/service_stub.rb +266 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest.rb +49 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/client.rb +802 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/client.rb +713 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/service_stub.rb +332 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest.rb +49 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/sql_tiers_service/client.rb +493 -0
- data/lib/google/cloud/sql/v1beta4/sql_tiers_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_tiers_service/rest/client.rb +443 -0
- data/lib/google/cloud/sql/v1beta4/sql_tiers_service/rest/service_stub.rb +142 -0
- data/lib/google/cloud/sql/v1beta4/sql_tiers_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1beta4/sql_tiers_service.rb +54 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/client.rb +915 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/client.rb +819 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/service_stub.rb +394 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/rest.rb +49 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/version.rb +7 -2
- data/lib/google/cloud/sql/v1beta4.rb +56 -0
- data/lib/google-cloud-sql-v1beta4.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +1329 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_connect.rb +207 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_data.rb +189 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +4489 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_tiers.rb +68 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb +308 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/protobuf/wrappers.rb +148 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +153 -9
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/sql/v1beta4/cloud_sql.proto for package 'google.cloud.sql.v1beta4'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/sql/v1beta4/cloud_sql_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Sql
|
|
25
|
+
module V1beta4
|
|
26
|
+
module SqlBackupRunsService
|
|
27
|
+
class Service
|
|
28
|
+
|
|
29
|
+
include ::GRPC::GenericService
|
|
30
|
+
|
|
31
|
+
self.marshal_class_method = :encode
|
|
32
|
+
self.unmarshal_class_method = :decode
|
|
33
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlBackupRunsService'
|
|
34
|
+
|
|
35
|
+
# Deletes the backup taken by a backup run.
|
|
36
|
+
rpc :Delete, ::Google::Cloud::Sql::V1beta4::SqlBackupRunsDeleteRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
37
|
+
# Retrieves a resource containing information about a backup run.
|
|
38
|
+
rpc :Get, ::Google::Cloud::Sql::V1beta4::SqlBackupRunsGetRequest, ::Google::Cloud::Sql::V1beta4::BackupRun
|
|
39
|
+
# Creates a new backup run on demand.
|
|
40
|
+
rpc :Insert, ::Google::Cloud::Sql::V1beta4::SqlBackupRunsInsertRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
41
|
+
# Lists all backup runs associated with the project or a given instance and
|
|
42
|
+
# configuration in the reverse chronological order of the backup initiation
|
|
43
|
+
# time.
|
|
44
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlBackupRunsListRequest, ::Google::Cloud::Sql::V1beta4::BackupRunsListResponse
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
Stub = Service.rpc_stub_class
|
|
48
|
+
end
|
|
49
|
+
module SqlDatabasesService
|
|
50
|
+
class Service
|
|
51
|
+
|
|
52
|
+
include ::GRPC::GenericService
|
|
53
|
+
|
|
54
|
+
self.marshal_class_method = :encode
|
|
55
|
+
self.unmarshal_class_method = :decode
|
|
56
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlDatabasesService'
|
|
57
|
+
|
|
58
|
+
# Deletes a database from a Cloud SQL instance.
|
|
59
|
+
rpc :Delete, ::Google::Cloud::Sql::V1beta4::SqlDatabasesDeleteRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
60
|
+
# Retrieves a resource containing information about a database inside a Cloud
|
|
61
|
+
# SQL instance.
|
|
62
|
+
rpc :Get, ::Google::Cloud::Sql::V1beta4::SqlDatabasesGetRequest, ::Google::Cloud::Sql::V1beta4::Database
|
|
63
|
+
# Inserts a resource containing information about a database inside a Cloud
|
|
64
|
+
# SQL instance.
|
|
65
|
+
#
|
|
66
|
+
# **Note:** You can't modify the default character set and collation.
|
|
67
|
+
rpc :Insert, ::Google::Cloud::Sql::V1beta4::SqlDatabasesInsertRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
68
|
+
# Lists databases in the specified Cloud SQL instance.
|
|
69
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlDatabasesListRequest, ::Google::Cloud::Sql::V1beta4::DatabasesListResponse
|
|
70
|
+
# Partially updates a resource containing information about a database inside
|
|
71
|
+
# a Cloud SQL instance. This method supports patch semantics.
|
|
72
|
+
rpc :Patch, ::Google::Cloud::Sql::V1beta4::SqlDatabasesUpdateRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
73
|
+
# Updates a resource containing information about a database inside a Cloud
|
|
74
|
+
# SQL instance.
|
|
75
|
+
rpc :Update, ::Google::Cloud::Sql::V1beta4::SqlDatabasesUpdateRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
Stub = Service.rpc_stub_class
|
|
79
|
+
end
|
|
80
|
+
module SqlFlagsService
|
|
81
|
+
class Service
|
|
82
|
+
|
|
83
|
+
include ::GRPC::GenericService
|
|
84
|
+
|
|
85
|
+
self.marshal_class_method = :encode
|
|
86
|
+
self.unmarshal_class_method = :decode
|
|
87
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlFlagsService'
|
|
88
|
+
|
|
89
|
+
# Lists all available database flags for Cloud SQL instances.
|
|
90
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlFlagsListRequest, ::Google::Cloud::Sql::V1beta4::FlagsListResponse
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
Stub = Service.rpc_stub_class
|
|
94
|
+
end
|
|
95
|
+
module SqlInstancesService
|
|
96
|
+
class Service
|
|
97
|
+
|
|
98
|
+
include ::GRPC::GenericService
|
|
99
|
+
|
|
100
|
+
self.marshal_class_method = :encode
|
|
101
|
+
self.unmarshal_class_method = :decode
|
|
102
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlInstancesService'
|
|
103
|
+
|
|
104
|
+
# Add a new trusted Certificate Authority (CA) version for the specified
|
|
105
|
+
# instance. Required to prepare for a certificate rotation. If a CA version
|
|
106
|
+
# was previously added but never used in a certificate rotation, this
|
|
107
|
+
# operation replaces that version. There cannot be more than one CA version
|
|
108
|
+
# waiting to be rotated in. For instances that have enabled Certificate
|
|
109
|
+
# Authority Service (CAS) based server CA, use AddServerCertificate to add a
|
|
110
|
+
# new server certificate.
|
|
111
|
+
rpc :AddServerCa, ::Google::Cloud::Sql::V1beta4::SqlInstancesAddServerCaRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
112
|
+
# Add a new trusted server certificate version for the specified instance
|
|
113
|
+
# using Certificate Authority Service (CAS) server CA. Required to prepare
|
|
114
|
+
# for a certificate rotation. If a server certificate version was previously
|
|
115
|
+
# added but never used in a certificate rotation, this operation replaces
|
|
116
|
+
# that version. There cannot be more than one certificate version waiting to
|
|
117
|
+
# be rotated in. For instances not using CAS server CA, use AddServerCa
|
|
118
|
+
# instead.
|
|
119
|
+
rpc :AddServerCertificate, ::Google::Cloud::Sql::V1beta4::SqlInstancesAddServerCertificateRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
120
|
+
# Adds a new Entra ID certificate for the specified instance. If an Entra ID
|
|
121
|
+
# certificate was previously added but never used in a certificate rotation,
|
|
122
|
+
# this operation replaces that version.
|
|
123
|
+
rpc :AddEntraIdCertificate, ::Google::Cloud::Sql::V1beta4::SqlInstancesAddEntraIdCertificateRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
124
|
+
# Creates a Cloud SQL instance as a clone of the source instance. Using this
|
|
125
|
+
# operation might cause your instance to restart.
|
|
126
|
+
rpc :Clone, ::Google::Cloud::Sql::V1beta4::SqlInstancesCloneRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
127
|
+
# Deletes a Cloud SQL instance.
|
|
128
|
+
rpc :Delete, ::Google::Cloud::Sql::V1beta4::SqlInstancesDeleteRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
129
|
+
# Demotes the stand-alone instance to be a Cloud SQL read replica for an
|
|
130
|
+
# external database server.
|
|
131
|
+
rpc :DemoteMaster, ::Google::Cloud::Sql::V1beta4::SqlInstancesDemoteMasterRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
132
|
+
# Demotes an existing standalone instance to be a Cloud SQL read replica
|
|
133
|
+
# for an external database server.
|
|
134
|
+
rpc :Demote, ::Google::Cloud::Sql::V1beta4::SqlInstancesDemoteRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
135
|
+
# Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL
|
|
136
|
+
# dump or CSV file.
|
|
137
|
+
rpc :Export, ::Google::Cloud::Sql::V1beta4::SqlInstancesExportRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
138
|
+
# Initiates a manual failover of a high availability (HA) primary instance
|
|
139
|
+
# to a standby instance, which becomes the primary instance. Users are
|
|
140
|
+
# then rerouted to the new primary. For more information, see the
|
|
141
|
+
# [Overview of high
|
|
142
|
+
# availability](https://cloud.google.com/sql/docs/mysql/high-availability)
|
|
143
|
+
# page in the Cloud SQL documentation.
|
|
144
|
+
# If using Legacy HA (MySQL only), this causes the instance to failover to
|
|
145
|
+
# its failover replica instance.
|
|
146
|
+
rpc :Failover, ::Google::Cloud::Sql::V1beta4::SqlInstancesFailoverRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
147
|
+
# Reencrypt CMEK instance with latest key version.
|
|
148
|
+
rpc :Reencrypt, ::Google::Cloud::Sql::V1beta4::SqlInstancesReencryptRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
149
|
+
# Retrieves a resource containing information about a Cloud SQL instance.
|
|
150
|
+
rpc :Get, ::Google::Cloud::Sql::V1beta4::SqlInstancesGetRequest, ::Google::Cloud::Sql::V1beta4::DatabaseInstance
|
|
151
|
+
# Imports data into a Cloud SQL instance from a SQL dump or CSV file in
|
|
152
|
+
# Cloud Storage.
|
|
153
|
+
rpc :Import, ::Google::Cloud::Sql::V1beta4::SqlInstancesImportRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
154
|
+
# Creates a new Cloud SQL instance.
|
|
155
|
+
rpc :Insert, ::Google::Cloud::Sql::V1beta4::SqlInstancesInsertRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
156
|
+
# Lists instances under a given project.
|
|
157
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlInstancesListRequest, ::Google::Cloud::Sql::V1beta4::InstancesListResponse
|
|
158
|
+
# Lists all of the trusted Certificate Authorities (CAs) for the specified
|
|
159
|
+
# instance. There can be up to three CAs listed: the CA that was used to sign
|
|
160
|
+
# the certificate that is currently in use, a CA that has been added but not
|
|
161
|
+
# yet used to sign a certificate, and a CA used to sign a certificate that
|
|
162
|
+
# has previously rotated out.
|
|
163
|
+
rpc :ListServerCas, ::Google::Cloud::Sql::V1beta4::SqlInstancesListServerCasRequest, ::Google::Cloud::Sql::V1beta4::InstancesListServerCasResponse
|
|
164
|
+
# Lists all versions of server certificates and certificate authorities (CAs)
|
|
165
|
+
# for the specified instance. There can be up to three sets of certs listed:
|
|
166
|
+
# the certificate that is currently in use, a future that has been added but
|
|
167
|
+
# not yet used to sign a certificate, and a certificate that has been rotated
|
|
168
|
+
# out. For instances not using Certificate Authority Service (CAS) server CA,
|
|
169
|
+
# use ListServerCas instead.
|
|
170
|
+
rpc :ListServerCertificates, ::Google::Cloud::Sql::V1beta4::SqlInstancesListServerCertificatesRequest, ::Google::Cloud::Sql::V1beta4::InstancesListServerCertificatesResponse
|
|
171
|
+
# Lists all versions of EntraID certificates for the specified instance.
|
|
172
|
+
# There can be up to three sets of certificates listed: the certificate that
|
|
173
|
+
# is currently in use, a future that has been added but not yet used to sign
|
|
174
|
+
# a certificate, and a certificate that has been rotated out.
|
|
175
|
+
rpc :ListEntraIdCertificates, ::Google::Cloud::Sql::V1beta4::SqlInstancesListEntraIdCertificatesRequest, ::Google::Cloud::Sql::V1beta4::InstancesListEntraIdCertificatesResponse
|
|
176
|
+
# Partially updates settings of a Cloud SQL instance by merging the request
|
|
177
|
+
# with the current configuration. This method supports patch semantics.
|
|
178
|
+
rpc :Patch, ::Google::Cloud::Sql::V1beta4::SqlInstancesPatchRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
179
|
+
# Promotes the read replica instance to be an independent Cloud SQL
|
|
180
|
+
# primary instance.
|
|
181
|
+
# Using this operation might cause your instance to restart.
|
|
182
|
+
rpc :PromoteReplica, ::Google::Cloud::Sql::V1beta4::SqlInstancesPromoteReplicaRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
183
|
+
# Switches over from the primary instance to the DR replica
|
|
184
|
+
# instance.
|
|
185
|
+
rpc :Switchover, ::Google::Cloud::Sql::V1beta4::SqlInstancesSwitchoverRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
186
|
+
# Deletes all client certificates and generates a new server SSL certificate
|
|
187
|
+
# for the instance.
|
|
188
|
+
rpc :ResetSslConfig, ::Google::Cloud::Sql::V1beta4::SqlInstancesResetSslConfigRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
189
|
+
# Restarts a Cloud SQL instance.
|
|
190
|
+
rpc :Restart, ::Google::Cloud::Sql::V1beta4::SqlInstancesRestartRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
191
|
+
# Restores a backup of a Cloud SQL instance. Using this operation might cause
|
|
192
|
+
# your instance to restart.
|
|
193
|
+
rpc :RestoreBackup, ::Google::Cloud::Sql::V1beta4::SqlInstancesRestoreBackupRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
194
|
+
# Rotates the server certificate to one signed by the Certificate Authority
|
|
195
|
+
# (CA) version previously added with the addServerCA method. For instances
|
|
196
|
+
# that have enabled Certificate Authority Service (CAS) based server CA,
|
|
197
|
+
# use RotateServerCertificate to rotate the server certificate.
|
|
198
|
+
rpc :RotateServerCa, ::Google::Cloud::Sql::V1beta4::SqlInstancesRotateServerCaRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
199
|
+
# Rotates the server certificate version to one previously added with the
|
|
200
|
+
# addServerCertificate method. For instances not using Certificate Authority
|
|
201
|
+
# Service (CAS) server CA, use RotateServerCa instead.
|
|
202
|
+
rpc :RotateServerCertificate, ::Google::Cloud::Sql::V1beta4::SqlInstancesRotateServerCertificateRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
203
|
+
# Rotates the Entra Id certificate version to one previously added with the
|
|
204
|
+
# addEntraIdCertificate method.
|
|
205
|
+
rpc :RotateEntraIdCertificate, ::Google::Cloud::Sql::V1beta4::SqlInstancesRotateEntraIdCertificateRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
206
|
+
# Starts the replication in the read replica instance.
|
|
207
|
+
rpc :StartReplica, ::Google::Cloud::Sql::V1beta4::SqlInstancesStartReplicaRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
208
|
+
# Stops the replication in the read replica instance.
|
|
209
|
+
rpc :StopReplica, ::Google::Cloud::Sql::V1beta4::SqlInstancesStopReplicaRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
210
|
+
# Truncate MySQL general and slow query log tables
|
|
211
|
+
# MySQL only.
|
|
212
|
+
rpc :TruncateLog, ::Google::Cloud::Sql::V1beta4::SqlInstancesTruncateLogRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
213
|
+
# Updates settings of a Cloud SQL instance. Using this operation might cause
|
|
214
|
+
# your instance to restart.
|
|
215
|
+
rpc :Update, ::Google::Cloud::Sql::V1beta4::SqlInstancesUpdateRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
216
|
+
# Generates a short-lived X509 certificate containing the provided public key
|
|
217
|
+
# and signed by a private key specific to the target instance. Users may use
|
|
218
|
+
# the certificate to authenticate as themselves when connecting to the
|
|
219
|
+
# database.
|
|
220
|
+
rpc :CreateEphemeral, ::Google::Cloud::Sql::V1beta4::SqlInstancesCreateEphemeralCertRequest, ::Google::Cloud::Sql::V1beta4::SslCert
|
|
221
|
+
# Reschedules the maintenance on the given instance.
|
|
222
|
+
rpc :RescheduleMaintenance, ::Google::Cloud::Sql::V1beta4::SqlInstancesRescheduleMaintenanceRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
223
|
+
# Verify External primary instance external sync settings.
|
|
224
|
+
rpc :VerifyExternalSyncSettings, ::Google::Cloud::Sql::V1beta4::SqlInstancesVerifyExternalSyncSettingsRequest, ::Google::Cloud::Sql::V1beta4::SqlInstancesVerifyExternalSyncSettingsResponse
|
|
225
|
+
# Start External primary instance migration.
|
|
226
|
+
rpc :StartExternalSync, ::Google::Cloud::Sql::V1beta4::SqlInstancesStartExternalSyncRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
227
|
+
# Perform Disk Shrink on primary instance.
|
|
228
|
+
rpc :PerformDiskShrink, ::Google::Cloud::Sql::V1beta4::SqlInstancesPerformDiskShrinkRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
229
|
+
# Get Disk Shrink Config for a given instance.
|
|
230
|
+
rpc :GetDiskShrinkConfig, ::Google::Cloud::Sql::V1beta4::SqlInstancesGetDiskShrinkConfigRequest, ::Google::Cloud::Sql::V1beta4::SqlInstancesGetDiskShrinkConfigResponse
|
|
231
|
+
# Reset Replica Size to primary instance disk size.
|
|
232
|
+
rpc :ResetReplicaSize, ::Google::Cloud::Sql::V1beta4::SqlInstancesResetReplicaSizeRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
233
|
+
# Get Latest Recovery Time for a given instance.
|
|
234
|
+
rpc :GetLatestRecoveryTime, ::Google::Cloud::Sql::V1beta4::SqlInstancesGetLatestRecoveryTimeRequest, ::Google::Cloud::Sql::V1beta4::SqlInstancesGetLatestRecoveryTimeResponse
|
|
235
|
+
# Execute SQL statements.
|
|
236
|
+
rpc :ExecuteSql, ::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlRequest, ::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlResponse
|
|
237
|
+
# Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
|
|
238
|
+
rpc :AcquireSsrsLease, ::Google::Cloud::Sql::V1beta4::SqlInstancesAcquireSsrsLeaseRequest, ::Google::Cloud::Sql::V1beta4::SqlInstancesAcquireSsrsLeaseResponse
|
|
239
|
+
# Release a lease for the setup of SQL Server Reporting Services (SSRS).
|
|
240
|
+
rpc :ReleaseSsrsLease, ::Google::Cloud::Sql::V1beta4::SqlInstancesReleaseSsrsLeaseRequest, ::Google::Cloud::Sql::V1beta4::SqlInstancesReleaseSsrsLeaseResponse
|
|
241
|
+
# Execute MVU Pre-checks
|
|
242
|
+
rpc :PreCheckMajorVersionUpgrade, ::Google::Cloud::Sql::V1beta4::SqlInstancesPreCheckMajorVersionUpgradeRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
243
|
+
# Point in time restore for an instance managed by Google Cloud Backup and
|
|
244
|
+
# Disaster Recovery.
|
|
245
|
+
rpc :PointInTimeRestore, ::Google::Cloud::Sql::V1beta4::SqlInstancesPointInTimeRestoreRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
Stub = Service.rpc_stub_class
|
|
249
|
+
end
|
|
250
|
+
module SqlOperationsService
|
|
251
|
+
class Service
|
|
252
|
+
|
|
253
|
+
include ::GRPC::GenericService
|
|
254
|
+
|
|
255
|
+
self.marshal_class_method = :encode
|
|
256
|
+
self.unmarshal_class_method = :decode
|
|
257
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlOperationsService'
|
|
258
|
+
|
|
259
|
+
# Retrieves an instance operation that has been performed on an instance.
|
|
260
|
+
rpc :Get, ::Google::Cloud::Sql::V1beta4::SqlOperationsGetRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
261
|
+
# Lists all instance operations that have been performed on the given Cloud
|
|
262
|
+
# SQL instance in the reverse chronological order of the start time.
|
|
263
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlOperationsListRequest, ::Google::Cloud::Sql::V1beta4::OperationsListResponse
|
|
264
|
+
# Cancels an instance operation that has been performed on an instance.
|
|
265
|
+
# Ordinarily, this method name should be `CancelSqlOperation`.
|
|
266
|
+
rpc :Cancel, ::Google::Cloud::Sql::V1beta4::SqlOperationsCancelRequest, ::Google::Protobuf::Empty
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
Stub = Service.rpc_stub_class
|
|
270
|
+
end
|
|
271
|
+
module SqlSslCertsService
|
|
272
|
+
class Service
|
|
273
|
+
|
|
274
|
+
include ::GRPC::GenericService
|
|
275
|
+
|
|
276
|
+
self.marshal_class_method = :encode
|
|
277
|
+
self.unmarshal_class_method = :decode
|
|
278
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlSslCertsService'
|
|
279
|
+
|
|
280
|
+
# Deletes the SSL certificate. For First Generation instances, the
|
|
281
|
+
# certificate remains valid until the instance is restarted.
|
|
282
|
+
rpc :Delete, ::Google::Cloud::Sql::V1beta4::SqlSslCertsDeleteRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
283
|
+
# Retrieves a particular SSL certificate. Does not include the private key
|
|
284
|
+
# (required for usage). The private key must be saved from the response to
|
|
285
|
+
# initial creation.
|
|
286
|
+
rpc :Get, ::Google::Cloud::Sql::V1beta4::SqlSslCertsGetRequest, ::Google::Cloud::Sql::V1beta4::SslCert
|
|
287
|
+
# Creates an SSL certificate and returns it along with the private key and
|
|
288
|
+
# server certificate authority. The new certificate will not be usable until
|
|
289
|
+
# the instance is restarted.
|
|
290
|
+
rpc :Insert, ::Google::Cloud::Sql::V1beta4::SqlSslCertsInsertRequest, ::Google::Cloud::Sql::V1beta4::SslCertsInsertResponse
|
|
291
|
+
# Lists all of the current SSL certificates for the instance.
|
|
292
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlSslCertsListRequest, ::Google::Cloud::Sql::V1beta4::SslCertsListResponse
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
Stub = Service.rpc_stub_class
|
|
296
|
+
end
|
|
297
|
+
module SqlBackupsService
|
|
298
|
+
class Service
|
|
299
|
+
|
|
300
|
+
include ::GRPC::GenericService
|
|
301
|
+
|
|
302
|
+
self.marshal_class_method = :encode
|
|
303
|
+
self.unmarshal_class_method = :decode
|
|
304
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlBackupsService'
|
|
305
|
+
|
|
306
|
+
# Creates a backup for a Cloud SQL instance. This API can be used only to
|
|
307
|
+
# create on-demand backups.
|
|
308
|
+
rpc :CreateBackup, ::Google::Cloud::Sql::V1beta4::CreateBackupRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
309
|
+
# Retrieves a resource containing information about a backup.
|
|
310
|
+
rpc :GetBackup, ::Google::Cloud::Sql::V1beta4::GetBackupRequest, ::Google::Cloud::Sql::V1beta4::Backup
|
|
311
|
+
# Lists all backups associated with the project.
|
|
312
|
+
rpc :ListBackups, ::Google::Cloud::Sql::V1beta4::ListBackupsRequest, ::Google::Cloud::Sql::V1beta4::ListBackupsResponse
|
|
313
|
+
# Updates the retention period and the description of the backup. You can use
|
|
314
|
+
# this API to update final backups only.
|
|
315
|
+
rpc :UpdateBackup, ::Google::Cloud::Sql::V1beta4::UpdateBackupRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
316
|
+
# Deletes the backup.
|
|
317
|
+
rpc :DeleteBackup, ::Google::Cloud::Sql::V1beta4::DeleteBackupRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
Stub = Service.rpc_stub_class
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/sql/v1beta4/cloud_sql_tiers.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n.google/cloud/sql/v1beta4/cloud_sql_tiers.proto\x12\x18google.cloud.sql.v1beta4\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\"&\n\x13SqlTiersListRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\"P\n\x11TiersListResponse\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12-\n\x05items\x18\x02 \x03(\x0b\x32\x1e.google.cloud.sql.v1beta4.Tier\"c\n\x04Tier\x12\x0c\n\x04tier\x18\x01 \x01(\t\x12\x10\n\x03RAM\x18\x02 \x01(\x03R\x03RAM\x12\x0c\n\x04kind\x18\x03 \x01(\t\x12\x1d\n\nDisk_Quota\x18\x04 \x01(\x03R\tDiskQuota\x12\x0e\n\x06region\x18\x05 \x03(\t2\xa3\x02\n\x0fSqlTiersService\x12\x91\x01\n\x04List\x12-.google.cloud.sql.v1beta4.SqlTiersListRequest\x1a+.google.cloud.sql.v1beta4.TiersListResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/sql/v1beta4/projects/{project}/tiers\x1a|\xca\x41\x17sqladmin.googleapis.com\xd2\x41_https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/sqlservice.adminBd\n\x1c\x63om.google.cloud.sql.v1beta4B\x12\x43loudSqlTiersProtoP\x01Z.cloud.google.com/go/sql/apiv1beta4/sqlpb;sqlpbb\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Cloud
|
|
18
|
+
module Sql
|
|
19
|
+
module V1beta4
|
|
20
|
+
SqlTiersListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlTiersListRequest").msgclass
|
|
21
|
+
TiersListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.TiersListResponse").msgclass
|
|
22
|
+
Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.Tier").msgclass
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/sql/v1beta4/cloud_sql_tiers.proto for package 'google.cloud.sql.v1beta4'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/sql/v1beta4/cloud_sql_tiers_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Sql
|
|
25
|
+
module V1beta4
|
|
26
|
+
module SqlTiersService
|
|
27
|
+
# Service for providing machine types (tiers) for Cloud SQL.
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlTiersService'
|
|
35
|
+
|
|
36
|
+
# Lists all available machine types (tiers) for Cloud SQL, for example,
|
|
37
|
+
# `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing).
|
|
38
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlTiersListRequest, ::Google::Cloud::Sql::V1beta4::TiersListResponse
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
Stub = Service.rpc_stub_class
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/sql/v1beta4/cloud_sql_users.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/cloud/sql/v1beta4/cloud_sql_resources_pb'
|
|
11
|
+
require 'google/protobuf/duration_pb'
|
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\n.google/cloud/sql/v1beta4/cloud_sql_users.proto\x12\x18google.cloud.sql.v1beta4\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/sql/v1beta4/cloud_sql_resources.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"V\n\x15SqlUsersDeleteRequest\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x10\n\x08instance\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0f\n\x07project\x18\x04 \x01(\t\"S\n\x12SqlUsersGetRequest\x12\x10\n\x08instance\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07project\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t\"h\n\x15SqlUsersInsertRequest\x12\x10\n\x08instance\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12,\n\x04\x62ody\x18\x64 \x01(\x0b\x32\x1e.google.cloud.sql.v1beta4.User\"8\n\x13SqlUsersListRequest\x12\x10\n\x08instance\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\"\xd5\x02\n\x15SqlUsersUpdateRequest\x12\x11\n\x04host\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x08instance\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0f\n\x07project\x18\x04 \x01(\t\x12\x1b\n\x0e\x64\x61tabase_roles\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\'\n\x15revoke_existing_roles\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x19\n\x0cserver_roles\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12.\n\x1crevoke_existing_server_roles\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12,\n\x04\x62ody\x18\x64 \x01(\x0b\x32\x1e.google.cloud.sql.v1beta4.UserB\x18\n\x16_revoke_existing_rolesB\x1f\n\x1d_revoke_existing_server_roles\"\x8b\x02\n\x1cUserPasswordValidationPolicy\x12\x1f\n\x17\x61llowed_failed_attempts\x18\x01 \x01(\x05\x12?\n\x1cpassword_expiration_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12$\n\x1c\x65nable_failed_attempts_check\x18\x03 \x01(\x08\x12=\n\x06status\x18\x04 \x01(\x0b\x32(.google.cloud.sql.v1beta4.PasswordStatusB\x03\xe0\x41\x03\x12$\n\x1c\x65nable_password_verification\x18\x05 \x01(\x08\"^\n\x0ePasswordStatus\x12\x0e\n\x06locked\x18\x01 \x01(\x08\x12<\n\x18password_expiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8a\x08\n\x04User\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x11\n\x04host\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x08instance\x18\x06 \x01(\t\x12\x0f\n\x07project\x18\x07 \x01(\t\x12\x38\n\x04type\x18\x08 \x01(\x0e\x32*.google.cloud.sql.v1beta4.User.SqlUserType\x12P\n\x16sqlserver_user_details\x18\t \x01(\x0b\x32..google.cloud.sql.v1beta4.SqlServerUserDetailsH\x00\x12\x16\n\tiam_email\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12O\n\x0fpassword_policy\x18\x0c \x01(\x0b\x32\x36.google.cloud.sql.v1beta4.UserPasswordValidationPolicy\x12P\n\x12\x64ual_password_type\x18\r \x01(\x0e\x32/.google.cloud.sql.v1beta4.User.DualPasswordTypeH\x01\x88\x01\x01\x12\x41\n\niam_status\x18\x0e \x01(\x0e\x32(.google.cloud.sql.v1beta4.User.IamStatusH\x02\x88\x01\x01\x12\x1b\n\x0e\x64\x61tabase_roles\x18\x0f \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0cserver_roles\x18\x10 \x03(\tB\x03\xe0\x41\x01\"\xd6\x01\n\x0bSqlUserType\x12\x0c\n\x08\x42UILT_IN\x10\x00\x12\x12\n\x0e\x43LOUD_IAM_USER\x10\x01\x12\x1d\n\x19\x43LOUD_IAM_SERVICE_ACCOUNT\x10\x02\x12\x13\n\x0f\x43LOUD_IAM_GROUP\x10\x03\x12\x18\n\x14\x43LOUD_IAM_GROUP_USER\x10\x04\x12#\n\x1f\x43LOUD_IAM_GROUP_SERVICE_ACCOUNT\x10\x05\x12 \n\x1c\x43LOUD_IAM_WORKFORCE_IDENTITY\x10\x06\x12\x10\n\x0c\x45NTRAID_USER\x10\x07\"|\n\x10\x44ualPasswordType\x12\"\n\x1e\x44UAL_PASSWORD_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17NO_MODIFY_DUAL_PASSWORD\x10\x01\x12\x14\n\x10NO_DUAL_PASSWORD\x10\x02\x12\x11\n\rDUAL_PASSWORD\x10\x03\"A\n\tIamStatus\x12\x1a\n\x16IAM_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08INACTIVE\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x42\x0e\n\x0cuser_detailsB\x15\n\x13_dual_password_typeB\r\n\x0b_iam_status\">\n\x14SqlServerUserDetails\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\x12\x14\n\x0cserver_roles\x18\x02 \x03(\t\"m\n\x11UsersListResponse\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12-\n\x05items\x18\x02 \x03(\x0b\x32\x1e.google.cloud.sql.v1beta4.User\x12\x1b\n\x0fnext_page_token\x18\x03 \x01(\tB\x02\x18\x01\x32\xd4\x07\n\x0fSqlUsersService\x12\xa2\x01\n\x06\x44\x65lete\x12/.google.cloud.sql.v1beta4.SqlUsersDeleteRequest\x1a#.google.cloud.sql.v1beta4.Operation\"B\x82\xd3\xe4\x93\x02<*:/sql/v1beta4/projects/{project}/instances/{instance}/users\x12\x9e\x01\n\x03Get\x12,.google.cloud.sql.v1beta4.SqlUsersGetRequest\x1a\x1e.google.cloud.sql.v1beta4.User\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/sql/v1beta4/projects/{project}/instances/{instance}/users/{name}\x12\xa8\x01\n\x06Insert\x12/.google.cloud.sql.v1beta4.SqlUsersInsertRequest\x1a#.google.cloud.sql.v1beta4.Operation\"H\x82\xd3\xe4\x93\x02\x42\":/sql/v1beta4/projects/{project}/instances/{instance}/users:\x04\x62ody\x12\xa6\x01\n\x04List\x12-.google.cloud.sql.v1beta4.SqlUsersListRequest\x1a+.google.cloud.sql.v1beta4.UsersListResponse\"B\x82\xd3\xe4\x93\x02<\x12:/sql/v1beta4/projects/{project}/instances/{instance}/users\x12\xa8\x01\n\x06Update\x12/.google.cloud.sql.v1beta4.SqlUsersUpdateRequest\x1a#.google.cloud.sql.v1beta4.Operation\"H\x82\xd3\xe4\x93\x02\x42\x1a:/sql/v1beta4/projects/{project}/instances/{instance}/users:\x04\x62ody\x1a|\xca\x41\x17sqladmin.googleapis.com\xd2\x41_https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/sqlservice.adminBd\n\x1c\x63om.google.cloud.sql.v1beta4B\x12\x43loudSqlUsersProtoP\x01Z.cloud.google.com/go/sql/apiv1beta4/sqlpb;sqlpbb\x06proto3"
|
|
16
|
+
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Sql
|
|
23
|
+
module V1beta4
|
|
24
|
+
SqlUsersDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlUsersDeleteRequest").msgclass
|
|
25
|
+
SqlUsersGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlUsersGetRequest").msgclass
|
|
26
|
+
SqlUsersInsertRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlUsersInsertRequest").msgclass
|
|
27
|
+
SqlUsersListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlUsersListRequest").msgclass
|
|
28
|
+
SqlUsersUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlUsersUpdateRequest").msgclass
|
|
29
|
+
UserPasswordValidationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.UserPasswordValidationPolicy").msgclass
|
|
30
|
+
PasswordStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.PasswordStatus").msgclass
|
|
31
|
+
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.User").msgclass
|
|
32
|
+
User::SqlUserType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.User.SqlUserType").enummodule
|
|
33
|
+
User::DualPasswordType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.User.DualPasswordType").enummodule
|
|
34
|
+
User::IamStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.User.IamStatus").enummodule
|
|
35
|
+
SqlServerUserDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlServerUserDetails").msgclass
|
|
36
|
+
UsersListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.UsersListResponse").msgclass
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/sql/v1beta4/cloud_sql_users.proto for package 'google.cloud.sql.v1beta4'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/sql/v1beta4/cloud_sql_users_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Sql
|
|
25
|
+
module V1beta4
|
|
26
|
+
module SqlUsersService
|
|
27
|
+
class Service
|
|
28
|
+
|
|
29
|
+
include ::GRPC::GenericService
|
|
30
|
+
|
|
31
|
+
self.marshal_class_method = :encode
|
|
32
|
+
self.unmarshal_class_method = :decode
|
|
33
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlUsersService'
|
|
34
|
+
|
|
35
|
+
# Deletes a user from a Cloud SQL instance.
|
|
36
|
+
rpc :Delete, ::Google::Cloud::Sql::V1beta4::SqlUsersDeleteRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
37
|
+
# Retrieves a resource containing information about a user.
|
|
38
|
+
rpc :Get, ::Google::Cloud::Sql::V1beta4::SqlUsersGetRequest, ::Google::Cloud::Sql::V1beta4::User
|
|
39
|
+
# Creates a new user in a Cloud SQL instance.
|
|
40
|
+
rpc :Insert, ::Google::Cloud::Sql::V1beta4::SqlUsersInsertRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
41
|
+
# Lists users in the specified Cloud SQL instance.
|
|
42
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlUsersListRequest, ::Google::Cloud::Sql::V1beta4::UsersListResponse
|
|
43
|
+
# Updates an existing user in a Cloud SQL instance.
|
|
44
|
+
rpc :Update, ::Google::Cloud::Sql::V1beta4::SqlUsersUpdateRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
Stub = Service.rpc_stub_class
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/sql/v1beta4/sql_backup_runs_service/rest"
|
|
20
|
+
require "google/cloud/sql/v1beta4/sql_databases_service/rest"
|
|
21
|
+
require "google/cloud/sql/v1beta4/sql_flags_service/rest"
|
|
22
|
+
require "google/cloud/sql/v1beta4/sql_instances_service/rest"
|
|
23
|
+
require "google/cloud/sql/v1beta4/sql_operations_service/rest"
|
|
24
|
+
require "google/cloud/sql/v1beta4/sql_ssl_certs_service/rest"
|
|
25
|
+
require "google/cloud/sql/v1beta4/sql_backups_service/rest"
|
|
26
|
+
require "google/cloud/sql/v1beta4/sql_connect_service/rest"
|
|
27
|
+
require "google/cloud/sql/v1beta4/sql_tiers_service/rest"
|
|
28
|
+
require "google/cloud/sql/v1beta4/sql_users_service/rest"
|
|
29
|
+
require "google/cloud/sql/v1beta4/version"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module Sql
|
|
34
|
+
##
|
|
35
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
|
36
|
+
#
|
|
37
|
+
# @example
|
|
38
|
+
#
|
|
39
|
+
# require "google/cloud/sql/v1beta4/rest"
|
|
40
|
+
# client = ::Google::Cloud::Sql::V1beta4::SqlBackupRunsService::Rest::Client.new
|
|
41
|
+
#
|
|
42
|
+
module V1beta4
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|