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,207 @@
|
|
|
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
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Sql
|
|
23
|
+
module V1beta4
|
|
24
|
+
# Connect settings retrieval request.
|
|
25
|
+
# @!attribute [rw] instance
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
|
28
|
+
# @!attribute [rw] project
|
|
29
|
+
# @return [::String]
|
|
30
|
+
# Project ID of the project that contains the instance.
|
|
31
|
+
# @!attribute [rw] read_time
|
|
32
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
33
|
+
# Optional. Optional snapshot read timestamp to trade freshness for
|
|
34
|
+
# performance.
|
|
35
|
+
class GetConnectSettingsRequest
|
|
36
|
+
include ::Google::Protobuf::MessageExts
|
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Connect settings retrieval request.
|
|
41
|
+
# @!attribute [rw] dns_name
|
|
42
|
+
# @return [::String]
|
|
43
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
44
|
+
# @!attribute [rw] location
|
|
45
|
+
# @return [::String]
|
|
46
|
+
# Required. The region of the instance.
|
|
47
|
+
class ResolveConnectSettingsRequest
|
|
48
|
+
include ::Google::Protobuf::MessageExts
|
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Connect settings retrieval response.
|
|
53
|
+
# @!attribute [rw] kind
|
|
54
|
+
# @return [::String]
|
|
55
|
+
# This is always `sql#connectSettings`.
|
|
56
|
+
# @!attribute [rw] server_ca_cert
|
|
57
|
+
# @return [::Google::Cloud::Sql::V1beta4::SslCert]
|
|
58
|
+
# SSL configuration.
|
|
59
|
+
# @!attribute [rw] ip_addresses
|
|
60
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::IpMapping>]
|
|
61
|
+
# The assigned IP addresses for the instance.
|
|
62
|
+
# @!attribute [rw] region
|
|
63
|
+
# @return [::String]
|
|
64
|
+
# The cloud region for the instance. e.g. `us-central1`, `europe-west1`.
|
|
65
|
+
# The region cannot be changed after instance creation.
|
|
66
|
+
# @!attribute [rw] database_version
|
|
67
|
+
# @return [::Google::Cloud::Sql::V1beta4::SqlDatabaseVersion]
|
|
68
|
+
# The database engine type and version. The `databaseVersion`
|
|
69
|
+
# field cannot be changed after instance creation.
|
|
70
|
+
# MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default),
|
|
71
|
+
# or `MYSQL_5_6`.
|
|
72
|
+
# PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`,
|
|
73
|
+
# `POSTGRES_11` or `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`.
|
|
74
|
+
# SQL Server instances: `SQLSERVER_2017_STANDARD` (default),
|
|
75
|
+
# `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`,
|
|
76
|
+
# `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`,
|
|
77
|
+
# `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or
|
|
78
|
+
# `SQLSERVER_2019_WEB`.
|
|
79
|
+
# @!attribute [rw] backend_type
|
|
80
|
+
# @return [::Google::Cloud::Sql::V1beta4::SqlBackendType]
|
|
81
|
+
# `SECOND_GEN`: Cloud SQL database instance.
|
|
82
|
+
# `EXTERNAL`: A database server that is not managed by Google.
|
|
83
|
+
# This property is read-only; use the `tier` property in the `settings`
|
|
84
|
+
# object to determine the database type.
|
|
85
|
+
# @!attribute [rw] psc_enabled
|
|
86
|
+
# @return [::Boolean]
|
|
87
|
+
# Whether PSC connectivity is enabled for this instance.
|
|
88
|
+
# @!attribute [rw] dns_name
|
|
89
|
+
# @return [::String]
|
|
90
|
+
# The dns name of the instance.
|
|
91
|
+
# @!attribute [rw] server_ca_mode
|
|
92
|
+
# @return [::Google::Cloud::Sql::V1beta4::ConnectSettings::CaMode]
|
|
93
|
+
# Specify what type of CA is used for the server certificate.
|
|
94
|
+
# @!attribute [rw] custom_subject_alternative_names
|
|
95
|
+
# @return [::Array<::String>]
|
|
96
|
+
# Custom subject alternative names for the server certificate.
|
|
97
|
+
# @!attribute [r] dns_names
|
|
98
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::DnsNameMapping>]
|
|
99
|
+
# Output only. The list of DNS names used by this instance.
|
|
100
|
+
# @!attribute [rw] node_count
|
|
101
|
+
# @return [::Integer]
|
|
102
|
+
# The number of read pool nodes in a read pool.
|
|
103
|
+
# @!attribute [r] nodes
|
|
104
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::ConnectSettings::ConnectPoolNodeConfig>]
|
|
105
|
+
# Output only. Entries containing information about each read pool node of
|
|
106
|
+
# the read pool.
|
|
107
|
+
# @!attribute [r] mdx_protocol_support
|
|
108
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::ConnectSettings::MdxProtocolSupport>]
|
|
109
|
+
# Optional. Output only. mdx_protocol_support controls how the client uses
|
|
110
|
+
# metadata exchange when connecting to the instance. The values in the list
|
|
111
|
+
# representing parts of the MDX protocol that are supported by this instance.
|
|
112
|
+
# When the list is empty, the instance does not support MDX, so the client
|
|
113
|
+
# must not send an MDX request. The default is empty.
|
|
114
|
+
# @!attribute [r] connection_name
|
|
115
|
+
# @return [::String]
|
|
116
|
+
# Optional. Output only. Connection name of the Cloud SQL instance used in
|
|
117
|
+
# connection strings, in the format project:region:instance.
|
|
118
|
+
class ConnectSettings
|
|
119
|
+
include ::Google::Protobuf::MessageExts
|
|
120
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
121
|
+
|
|
122
|
+
# Details of a single read pool node of a read pool.
|
|
123
|
+
# @!attribute [r] name
|
|
124
|
+
# @return [::String]
|
|
125
|
+
# Output only. The name of the read pool node. Doesn't include the project
|
|
126
|
+
# ID.
|
|
127
|
+
# @!attribute [r] ip_addresses
|
|
128
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::IpMapping>]
|
|
129
|
+
# Output only. Mappings containing IP addresses that can be used to connect
|
|
130
|
+
# to the read pool node.
|
|
131
|
+
# @!attribute [r] dns_name
|
|
132
|
+
# @return [::String]
|
|
133
|
+
# Output only. The DNS name of the read pool node.
|
|
134
|
+
# @!attribute [r] dns_names
|
|
135
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::DnsNameMapping>]
|
|
136
|
+
# Output only. The list of DNS names used by this read pool node.
|
|
137
|
+
class ConnectPoolNodeConfig
|
|
138
|
+
include ::Google::Protobuf::MessageExts
|
|
139
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Various Certificate Authority (CA) modes for certificate signing.
|
|
143
|
+
module CaMode
|
|
144
|
+
# CA mode is unspecified. It is effectively the same as
|
|
145
|
+
# `GOOGLE_MANAGED_INTERNAL_CA`.
|
|
146
|
+
CA_MODE_UNSPECIFIED = 0
|
|
147
|
+
|
|
148
|
+
# Google-managed self-signed internal CA.
|
|
149
|
+
GOOGLE_MANAGED_INTERNAL_CA = 1
|
|
150
|
+
|
|
151
|
+
# Google-managed regional CA part of root CA hierarchy hosted on Google
|
|
152
|
+
# Cloud's Certificate Authority Service (CAS).
|
|
153
|
+
GOOGLE_MANAGED_CAS_CA = 2
|
|
154
|
+
|
|
155
|
+
# Customer-managed CA hosted on Google Cloud's Certificate Authority
|
|
156
|
+
# Service (CAS).
|
|
157
|
+
CUSTOMER_MANAGED_CAS_CA = 3
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# MdxProtocolSupport describes parts of the MDX protocol supported by this
|
|
161
|
+
# instance.
|
|
162
|
+
module MdxProtocolSupport
|
|
163
|
+
# Not specified.
|
|
164
|
+
MDX_PROTOCOL_SUPPORT_UNSPECIFIED = 0
|
|
165
|
+
|
|
166
|
+
# Client should send the client protocol type in the MDX request.
|
|
167
|
+
CLIENT_PROTOCOL_TYPE = 1
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Ephemeral certificate creation request.
|
|
172
|
+
# @!attribute [rw] instance
|
|
173
|
+
# @return [::String]
|
|
174
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
|
175
|
+
# @!attribute [rw] project
|
|
176
|
+
# @return [::String]
|
|
177
|
+
# Project ID of the project that contains the instance.
|
|
178
|
+
# @!attribute [rw] public_key
|
|
179
|
+
# @return [::String]
|
|
180
|
+
# PEM encoded public key to include in the signed certificate.
|
|
181
|
+
# @!attribute [rw] access_token
|
|
182
|
+
# @return [::String]
|
|
183
|
+
# Optional. Access token to include in the signed certificate.
|
|
184
|
+
# @!attribute [rw] read_time
|
|
185
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
186
|
+
# Optional. Optional snapshot read timestamp to trade freshness for
|
|
187
|
+
# performance.
|
|
188
|
+
# @!attribute [rw] valid_duration
|
|
189
|
+
# @return [::Google::Protobuf::Duration]
|
|
190
|
+
# Optional. If set, it will contain the cert valid duration.
|
|
191
|
+
class GenerateEphemeralCertRequest
|
|
192
|
+
include ::Google::Protobuf::MessageExts
|
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Ephemeral certificate creation request.
|
|
197
|
+
# @!attribute [rw] ephemeral_cert
|
|
198
|
+
# @return [::Google::Cloud::Sql::V1beta4::SslCert]
|
|
199
|
+
# Generated cert
|
|
200
|
+
class GenerateEphemeralCertResponse
|
|
201
|
+
include ::Google::Protobuf::MessageExts
|
|
202
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Sql
|
|
23
|
+
module V1beta4
|
|
24
|
+
# Message sent from the client to `SqlDataService`.
|
|
25
|
+
# @!attribute [rw] ack
|
|
26
|
+
# @return [::Google::Cloud::Sql::V1beta4::Ack]
|
|
27
|
+
# Optional. Acknowledges data received by the client.
|
|
28
|
+
# @!attribute [rw] start_session
|
|
29
|
+
# @return [::Google::Cloud::Sql::V1beta4::StartSession]
|
|
30
|
+
# Starts a new session. When starting a new session, this is the first
|
|
31
|
+
# message the client sends.
|
|
32
|
+
#
|
|
33
|
+
# Note: The following fields are mutually exclusive: `start_session`, `continue_session`, `data`, `terminate_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
34
|
+
# @!attribute [rw] continue_session
|
|
35
|
+
# @return [::Google::Cloud::Sql::V1beta4::ContinueSession]
|
|
36
|
+
# Continues an existing session. When continuing an existing session, this
|
|
37
|
+
# is the first message the client sends.
|
|
38
|
+
#
|
|
39
|
+
# Note: The following fields are mutually exclusive: `continue_session`, `start_session`, `data`, `terminate_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
40
|
+
# @!attribute [rw] data
|
|
41
|
+
# @return [::Google::Cloud::Sql::V1beta4::DataPacket]
|
|
42
|
+
# Database data.
|
|
43
|
+
#
|
|
44
|
+
# Note: The following fields are mutually exclusive: `data`, `start_session`, `continue_session`, `terminate_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
45
|
+
# @!attribute [rw] terminate_session
|
|
46
|
+
# @return [::Google::Cloud::Sql::V1beta4::TerminateSession]
|
|
47
|
+
# Terminates the session. This closes the connection to the database.
|
|
48
|
+
#
|
|
49
|
+
# Note: The following fields are mutually exclusive: `terminate_session`, `start_session`, `continue_session`, `data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
50
|
+
# @!attribute [rw] instance_id
|
|
51
|
+
# @return [::String]
|
|
52
|
+
# Optional. Deprecated: Use `StartSession.instance_id` or
|
|
53
|
+
# `ContinueSession.instance_id` instead.
|
|
54
|
+
# The Cloud SQL instance resource name, for example:
|
|
55
|
+
# projects/example-project/instances/example-instance
|
|
56
|
+
class StreamSqlDataRequest
|
|
57
|
+
include ::Google::Protobuf::MessageExts
|
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Start a new session. The client must send this as the first message to the
|
|
62
|
+
# server to start a new session. The client may immediately send Data messages
|
|
63
|
+
# without waiting for a reply from the server.
|
|
64
|
+
# @!attribute [rw] location_id
|
|
65
|
+
# @return [::String]
|
|
66
|
+
# Required. `location_id` is used to route the
|
|
67
|
+
# request to a specific region. Use the same region which was used to create
|
|
68
|
+
# the instance. Use the format `locations/{location}`, for example:
|
|
69
|
+
# `locations/us-central1`.
|
|
70
|
+
# @!attribute [rw] instance_id
|
|
71
|
+
# @return [::String]
|
|
72
|
+
# Required. The Cloud SQL instance resource name, for example:
|
|
73
|
+
# projects/example-project/instances/example-instance
|
|
74
|
+
# @!attribute [rw] session_id
|
|
75
|
+
# @return [::String]
|
|
76
|
+
# Optional. The session id, chosen by the client. This should be an
|
|
77
|
+
# unguessable string. If the client does not intend to reconnect to this
|
|
78
|
+
# session, the client may leave session_id unset.
|
|
79
|
+
class StartSession
|
|
80
|
+
include ::Google::Protobuf::MessageExts
|
|
81
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Reconnects to an existing session. The client must send this as the first
|
|
85
|
+
# message to the server to reconnect to an existing session. The client may
|
|
86
|
+
# immediately send Data messages without waiting for a reply from the server.
|
|
87
|
+
# @!attribute [rw] location_id
|
|
88
|
+
# @return [::String]
|
|
89
|
+
# Required. `location_id` is used to route the
|
|
90
|
+
# request to a specific region. Use the same region which was used to create
|
|
91
|
+
# the instance. Use the format `locations/{location}`, for example:
|
|
92
|
+
# `locations/us-central1`.
|
|
93
|
+
# @!attribute [rw] instance_id
|
|
94
|
+
# @return [::String]
|
|
95
|
+
# Required. The Cloud SQL instance resource name, for example:
|
|
96
|
+
# projects/example-project/instances/example-instance
|
|
97
|
+
# @!attribute [rw] session_id
|
|
98
|
+
# @return [::String]
|
|
99
|
+
# Required. The id of the session to reconnect.
|
|
100
|
+
class ContinueSession
|
|
101
|
+
include ::Google::Protobuf::MessageExts
|
|
102
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Message sent from SqlDataService back to the client.
|
|
106
|
+
# @!attribute [rw] ack
|
|
107
|
+
# @return [::Google::Cloud::Sql::V1beta4::Ack]
|
|
108
|
+
# Acknowledges data received by the server.
|
|
109
|
+
# @!attribute [rw] session_metadata
|
|
110
|
+
# @return [::Google::Cloud::Sql::V1beta4::SessionMetadata]
|
|
111
|
+
# The first message from the server to the client, containing metadata
|
|
112
|
+
# about this session.
|
|
113
|
+
#
|
|
114
|
+
# Note: The following fields are mutually exclusive: `session_metadata`, `data`, `terminate_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
115
|
+
# @!attribute [rw] data
|
|
116
|
+
# @return [::Google::Cloud::Sql::V1beta4::DataPacket]
|
|
117
|
+
# Data from the database.
|
|
118
|
+
#
|
|
119
|
+
# Note: The following fields are mutually exclusive: `data`, `session_metadata`, `terminate_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
120
|
+
# @!attribute [rw] terminate_session
|
|
121
|
+
# @return [::Google::Cloud::Sql::V1beta4::TerminateSession]
|
|
122
|
+
# Terminates the session. This indicates that the database connection
|
|
123
|
+
# is closed. When the client receives this message, it should not
|
|
124
|
+
# attempt to reconnect.
|
|
125
|
+
#
|
|
126
|
+
# Note: The following fields are mutually exclusive: `terminate_session`, `session_metadata`, `data`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
127
|
+
class StreamSqlDataResponse
|
|
128
|
+
include ::Google::Protobuf::MessageExts
|
|
129
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Metadata from the server to the client about the session. The server will
|
|
133
|
+
# always send this as the first message
|
|
134
|
+
# @!attribute [rw] supported_features
|
|
135
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::SqlDataFeature>]
|
|
136
|
+
# The features supported by the server for this session. This field is used
|
|
137
|
+
# by the client to determine which features are available on the server.
|
|
138
|
+
# The features supported by the server for this session.
|
|
139
|
+
class SessionMetadata
|
|
140
|
+
include ::Google::Protobuf::MessageExts
|
|
141
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Contains data being sent or received by the database.
|
|
145
|
+
# @!attribute [rw] first_byte_offset
|
|
146
|
+
# @return [::Integer]
|
|
147
|
+
# Optional. The absolute byte offset of the first byte in this payload.
|
|
148
|
+
# 0 for new connections or resumed connections that hasn't acked any bytes
|
|
149
|
+
# from server. Non-zero for resumed connections
|
|
150
|
+
# @!attribute [rw] data
|
|
151
|
+
# @return [::String]
|
|
152
|
+
# Required. Raw data being sent or received by the database.
|
|
153
|
+
class DataPacket
|
|
154
|
+
include ::Google::Protobuf::MessageExts
|
|
155
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Acknowledges data received by the client or server.
|
|
159
|
+
# @!attribute [rw] received_offset
|
|
160
|
+
# @return [::Integer]
|
|
161
|
+
# Required. The absolute number of bytes processed in the session.
|
|
162
|
+
class Ack
|
|
163
|
+
include ::Google::Protobuf::MessageExts
|
|
164
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Indicates that the session is permanently ended.
|
|
168
|
+
# @!attribute [rw] status
|
|
169
|
+
# @return [::Google::Rpc::Status]
|
|
170
|
+
# Required. The session termination status.
|
|
171
|
+
class TerminateSession
|
|
172
|
+
include ::Google::Protobuf::MessageExts
|
|
173
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# The session features. The server must send the supported features in its
|
|
177
|
+
# first message to the client.
|
|
178
|
+
module SqlDataFeature
|
|
179
|
+
# The feature is not specified. This value should not be used.
|
|
180
|
+
SQL_DATA_FEATURE_UNSPECIFIED = 0
|
|
181
|
+
|
|
182
|
+
# The server supports reconnecting to the session. If this feature is not
|
|
183
|
+
# present, the client should not attempt to reconnect to the session.
|
|
184
|
+
SQL_DATA_FEATURE_RECONNECT = 1
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|