google-cloud-sql-v1 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 +146 -8
- data/lib/google/cloud/sql/v1/cloud_sql_available_database_versions_pb.rb +25 -0
- data/lib/google/cloud/sql/v1/cloud_sql_available_database_versions_services_pb.rb +29 -0
- data/lib/google/cloud/sql/v1/cloud_sql_backup_runs_pb.rb +35 -0
- data/lib/google/cloud/sql/v1/cloud_sql_backup_runs_services_pb.rb +53 -0
- data/lib/google/cloud/sql/v1/cloud_sql_backups_pb.rb +41 -0
- data/lib/google/cloud/sql/v1/cloud_sql_backups_services_pb.rb +54 -0
- data/lib/google/cloud/sql/v1/cloud_sql_connect_pb.rb +34 -0
- data/lib/google/cloud/sql/v1/cloud_sql_connect_services_pb.rb +50 -0
- data/lib/google/cloud/sql/v1/cloud_sql_databases_pb.rb +30 -0
- data/lib/google/cloud/sql/v1/cloud_sql_databases_services_pb.rb +61 -0
- data/lib/google/cloud/sql/v1/cloud_sql_events_pb.rb +25 -0
- data/lib/google/cloud/sql/v1/cloud_sql_events_services_pb.rb +29 -0
- data/lib/google/cloud/sql/v1/cloud_sql_feature_eligibility_pb.rb +24 -0
- data/lib/google/cloud/sql/v1/cloud_sql_feature_eligibility_services_pb.rb +29 -0
- data/lib/google/cloud/sql/v1/cloud_sql_flags_pb.rb +31 -0
- data/lib/google/cloud/sql/v1/cloud_sql_flags_services_pb.rb +45 -0
- data/lib/google/cloud/sql/v1/cloud_sql_iam_policies_pb.rb +23 -0
- data/lib/google/cloud/sql/v1/cloud_sql_iam_policies_services_pb.rb +29 -0
- data/lib/google/cloud/sql/v1/cloud_sql_instance_names_pb.rb +24 -0
- data/lib/google/cloud/sql/v1/cloud_sql_instance_names_services_pb.rb +29 -0
- data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +146 -0
- data/lib/google/cloud/sql/v1/cloud_sql_instances_services_pb.rb +184 -0
- data/lib/google/cloud/sql/v1/cloud_sql_operations_pb.rb +30 -0
- data/lib/google/cloud/sql/v1/cloud_sql_operations_services_pb.rb +50 -0
- data/lib/google/cloud/sql/v1/cloud_sql_regions_pb.rb +25 -0
- data/lib/google/cloud/sql/v1/cloud_sql_regions_services_pb.rb +29 -0
- data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +119 -0
- data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_pb.rb +31 -0
- data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_services_pb.rb +56 -0
- data/lib/google/cloud/sql/v1/cloud_sql_tiers_pb.rb +26 -0
- data/lib/google/cloud/sql/v1/cloud_sql_tiers_services_pb.rb +47 -0
- data/lib/google/cloud/sql/v1/cloud_sql_users_pb.rb +41 -0
- data/lib/google/cloud/sql/v1/cloud_sql_users_services_pb.rb +53 -0
- data/lib/google/cloud/sql/v1/rest.rb +46 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/client.rb +809 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest/client.rb +720 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest/service_stub.rb +332 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service.rb +54 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/client.rb +896 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/paths.rb +64 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/rest/client.rb +818 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/rest.rb +50 -0
- data/lib/google/cloud/sql/v1/sql_backups_service.rb +53 -0
- data/lib/google/cloud/sql/v1/sql_connect_service/client.rb +607 -0
- data/lib/google/cloud/sql/v1/sql_connect_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_connect_service/rest/client.rb +544 -0
- data/lib/google/cloud/sql/v1/sql_connect_service/rest/service_stub.rb +206 -0
- data/lib/google/cloud/sql/v1/sql_connect_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_connect_service.rb +54 -0
- data/lib/google/cloud/sql/v1/sql_databases_service/client.rb +1011 -0
- data/lib/google/cloud/sql/v1/sql_databases_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_databases_service/rest/client.rb +896 -0
- data/lib/google/cloud/sql/v1/sql_databases_service/rest/service_stub.rb +460 -0
- data/lib/google/cloud/sql/v1/sql_databases_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_databases_service.rb +54 -0
- data/lib/google/cloud/sql/v1/sql_flags_service/client.rb +488 -0
- data/lib/google/cloud/sql/v1/sql_flags_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_flags_service/rest/client.rb +446 -0
- data/lib/google/cloud/sql/v1/sql_flags_service/rest/service_stub.rb +140 -0
- data/lib/google/cloud/sql/v1/sql_flags_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_flags_service.rb +54 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/client.rb +4738 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +95 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/rest/client.rb +4274 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/rest/service_stub.rb +2769 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/rest.rb +50 -0
- data/lib/google/cloud/sql/v1/sql_instances_service.rb +53 -0
- data/lib/google/cloud/sql/v1/sql_operations_service/client.rb +694 -0
- data/lib/google/cloud/sql/v1/sql_operations_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_operations_service/rest/client.rb +624 -0
- data/lib/google/cloud/sql/v1/sql_operations_service/rest/service_stub.rb +266 -0
- data/lib/google/cloud/sql/v1/sql_operations_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_operations_service.rb +54 -0
- data/lib/google/cloud/sql/v1/sql_ssl_certs_service/client.rb +804 -0
- data/lib/google/cloud/sql/v1/sql_ssl_certs_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_ssl_certs_service/rest/client.rb +715 -0
- data/lib/google/cloud/sql/v1/sql_ssl_certs_service/rest/service_stub.rb +332 -0
- data/lib/google/cloud/sql/v1/sql_ssl_certs_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_ssl_certs_service.rb +54 -0
- data/lib/google/cloud/sql/v1/sql_tiers_service/client.rb +494 -0
- data/lib/google/cloud/sql/v1/sql_tiers_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_tiers_service/rest/client.rb +444 -0
- data/lib/google/cloud/sql/v1/sql_tiers_service/rest/service_stub.rb +142 -0
- data/lib/google/cloud/sql/v1/sql_tiers_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_tiers_service.rb +54 -0
- data/lib/google/cloud/sql/v1/sql_users_service/client.rb +909 -0
- data/lib/google/cloud/sql/v1/sql_users_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_users_service/rest/client.rb +813 -0
- data/lib/google/cloud/sql/v1/sql_users_service/rest/service_stub.rb +394 -0
- data/lib/google/cloud/sql/v1/sql_users_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_users_service.rb +54 -0
- data/lib/google/cloud/sql/v1/version.rb +8 -3
- data/lib/google/cloud/sql/v1.rb +60 -0
- data/lib/google-cloud-sql-v1.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/v1/cloud_sql_backup_runs.rb +245 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_backups.rb +259 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_connect.rb +190 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb +111 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_flags.rb +154 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +2357 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_operations.rb +85 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb +2522 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_ssl_certs.rb +120 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_tiers.rb +69 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +291 -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 +176 -14
|
@@ -0,0 +1,259 @@
|
|
|
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 V1
|
|
24
|
+
# The request payload to create the backup
|
|
25
|
+
# @!attribute [rw] parent
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Required. The parent resource where this backup is created.
|
|
28
|
+
# Format: projects/\\{project}
|
|
29
|
+
# @!attribute [rw] backup
|
|
30
|
+
# @return [::Google::Cloud::Sql::V1::Backup]
|
|
31
|
+
# Required. The Backup to create.
|
|
32
|
+
class CreateBackupRequest
|
|
33
|
+
include ::Google::Protobuf::MessageExts
|
|
34
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# The request payload to get the backup.
|
|
38
|
+
# @!attribute [rw] name
|
|
39
|
+
# @return [::String]
|
|
40
|
+
# Required. The name of the backup to retrieve.
|
|
41
|
+
# Format: projects/\\{project}/backups/\\{backup}
|
|
42
|
+
class GetBackupRequest
|
|
43
|
+
include ::Google::Protobuf::MessageExts
|
|
44
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# The request payload to list the backups.
|
|
48
|
+
# @!attribute [rw] parent
|
|
49
|
+
# @return [::String]
|
|
50
|
+
# Required. The parent that owns this collection of backups.
|
|
51
|
+
# Format: projects/\\{project}
|
|
52
|
+
# @!attribute [rw] page_size
|
|
53
|
+
# @return [::Integer]
|
|
54
|
+
# The maximum number of backups to return per response. The service might
|
|
55
|
+
# return fewer backups than this value. If a value for this parameter isn't
|
|
56
|
+
# specified, then, at most, 500 backups are returned. The maximum value is
|
|
57
|
+
# 2,000. Any values that you set, which are greater than 2,000, are changed
|
|
58
|
+
# to 2,000.
|
|
59
|
+
# @!attribute [rw] page_token
|
|
60
|
+
# @return [::String]
|
|
61
|
+
# A page token, received from a previous `ListBackups` call.
|
|
62
|
+
# Provide this to retrieve the subsequent page.
|
|
63
|
+
#
|
|
64
|
+
# When paginating, all other parameters provided to `ListBackups` must match
|
|
65
|
+
# the call that provided the page token.
|
|
66
|
+
# @!attribute [rw] filter
|
|
67
|
+
# @return [::String]
|
|
68
|
+
# Multiple filter queries are separated by spaces. For example,
|
|
69
|
+
# 'instance:abc AND type:FINAL, 'location:us',
|
|
70
|
+
# 'backupInterval.startTime>=1950-01-01T01:01:25.771Z'. You can filter by
|
|
71
|
+
# type, instance, backupInterval.startTime (creation time), or location.
|
|
72
|
+
class ListBackupsRequest
|
|
73
|
+
include ::Google::Protobuf::MessageExts
|
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# The response payload containing a list of the backups.
|
|
78
|
+
# @!attribute [rw] backups
|
|
79
|
+
# @return [::Array<::Google::Cloud::Sql::V1::Backup>]
|
|
80
|
+
# A list of backups.
|
|
81
|
+
# @!attribute [rw] next_page_token
|
|
82
|
+
# @return [::String]
|
|
83
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
84
|
+
# If this field is omitted, then there aren't subsequent pages.
|
|
85
|
+
# @!attribute [rw] warnings
|
|
86
|
+
# @return [::Array<::Google::Cloud::Sql::V1::ApiWarning>]
|
|
87
|
+
# If a region isn't unavailable or if an unknown error occurs, then a warning
|
|
88
|
+
# message is returned.
|
|
89
|
+
class ListBackupsResponse
|
|
90
|
+
include ::Google::Protobuf::MessageExts
|
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# The request payload to update the backup.
|
|
95
|
+
# @!attribute [rw] backup
|
|
96
|
+
# @return [::Google::Cloud::Sql::V1::Backup]
|
|
97
|
+
# Required. The backup to update.
|
|
98
|
+
# The backup’s `name` field is used to identify the backup to update.
|
|
99
|
+
# Format: projects/\\{project}/backups/\\{backup}
|
|
100
|
+
# @!attribute [rw] update_mask
|
|
101
|
+
# @return [::Google::Protobuf::FieldMask]
|
|
102
|
+
# The list of fields that you can update. You can update only the description
|
|
103
|
+
# and retention period of the final backup.
|
|
104
|
+
class UpdateBackupRequest
|
|
105
|
+
include ::Google::Protobuf::MessageExts
|
|
106
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# The request payload to delete the backup.
|
|
110
|
+
# @!attribute [rw] name
|
|
111
|
+
# @return [::String]
|
|
112
|
+
# Required. The name of the backup to delete.
|
|
113
|
+
# Format: projects/\\{project}/backups/\\{backup}
|
|
114
|
+
class DeleteBackupRequest
|
|
115
|
+
include ::Google::Protobuf::MessageExts
|
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# A backup resource.
|
|
120
|
+
# @!attribute [r] name
|
|
121
|
+
# @return [::String]
|
|
122
|
+
# Output only. The resource name of the backup.
|
|
123
|
+
# Format: projects/\\{project}/backups/\\{backup}.
|
|
124
|
+
# @!attribute [r] kind
|
|
125
|
+
# @return [::String]
|
|
126
|
+
# Output only. This is always `sql#backup`.
|
|
127
|
+
# @!attribute [r] self_link
|
|
128
|
+
# @return [::String]
|
|
129
|
+
# Output only. The URI of this resource.
|
|
130
|
+
# @!attribute [r] type
|
|
131
|
+
# @return [::Google::Cloud::Sql::V1::Backup::SqlBackupType]
|
|
132
|
+
# Output only. The type of this backup. The type can be "AUTOMATED",
|
|
133
|
+
# "ON_DEMAND" or “FINAL”.
|
|
134
|
+
# @!attribute [rw] description
|
|
135
|
+
# @return [::String]
|
|
136
|
+
# The description of this backup.
|
|
137
|
+
# @!attribute [rw] instance
|
|
138
|
+
# @return [::String]
|
|
139
|
+
# The name of the source database instance.
|
|
140
|
+
# @!attribute [rw] location
|
|
141
|
+
# @return [::String]
|
|
142
|
+
# The storage location of the backups. The location can be multi-regional.
|
|
143
|
+
# @!attribute [r] backup_interval
|
|
144
|
+
# @return [::Google::Type::Interval]
|
|
145
|
+
# Output only. This output contains the following values:
|
|
146
|
+
# start_time: All database writes up to this time are available.
|
|
147
|
+
# end_time: Any database writes after this time aren't available.
|
|
148
|
+
# @!attribute [r] state
|
|
149
|
+
# @return [::Google::Cloud::Sql::V1::Backup::SqlBackupState]
|
|
150
|
+
# Output only. The status of this backup.
|
|
151
|
+
# @!attribute [r] error
|
|
152
|
+
# @return [::Google::Cloud::Sql::V1::OperationError]
|
|
153
|
+
# Output only. Information about why the backup operation fails (for example,
|
|
154
|
+
# when the backup state fails).
|
|
155
|
+
# @!attribute [r] kms_key
|
|
156
|
+
# @return [::String]
|
|
157
|
+
# Output only. This output contains the encryption configuration for a backup
|
|
158
|
+
# and the resource name of the KMS key for disk encryption.
|
|
159
|
+
# @!attribute [r] kms_key_version
|
|
160
|
+
# @return [::String]
|
|
161
|
+
# Output only. This output contains the encryption status for a backup and
|
|
162
|
+
# the version of the KMS key that's used to encrypt the Cloud SQL instance.
|
|
163
|
+
# @!attribute [r] backup_kind
|
|
164
|
+
# @return [::Google::Cloud::Sql::V1::SqlBackupKind]
|
|
165
|
+
# Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
|
|
166
|
+
# @!attribute [r] time_zone
|
|
167
|
+
# @return [::String]
|
|
168
|
+
# Output only. This output contains a backup time zone. If a Cloud SQL for
|
|
169
|
+
# SQL Server instance has a different time zone from the backup's time zone,
|
|
170
|
+
# then the restore to the instance doesn't happen.
|
|
171
|
+
# @!attribute [rw] ttl_days
|
|
172
|
+
# @return [::Integer]
|
|
173
|
+
# Input only. The time-to-live (TTL) interval for this resource (in days).
|
|
174
|
+
# For example: ttlDays:7, means 7 days from the current time. The
|
|
175
|
+
# expiration time can't exceed 365 days from the time that the backup is
|
|
176
|
+
# created.
|
|
177
|
+
#
|
|
178
|
+
# Note: The following fields are mutually exclusive: `ttl_days`, `expiry_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
179
|
+
# @!attribute [rw] expiry_time
|
|
180
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
181
|
+
# Backup expiration time.
|
|
182
|
+
# A UTC timestamp of when this backup expired.
|
|
183
|
+
#
|
|
184
|
+
# Note: The following fields are mutually exclusive: `expiry_time`, `ttl_days`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
185
|
+
# @!attribute [r] database_version
|
|
186
|
+
# @return [::Google::Cloud::Sql::V1::SqlDatabaseVersion]
|
|
187
|
+
# Output only. The database version of the instance of at the time this
|
|
188
|
+
# backup was made.
|
|
189
|
+
# @!attribute [r] max_chargeable_bytes
|
|
190
|
+
# @return [::Integer]
|
|
191
|
+
# Output only. The maximum chargeable bytes for the backup.
|
|
192
|
+
# @!attribute [r] instance_deletion_time
|
|
193
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
194
|
+
# Optional. Output only. Timestamp in UTC of when the instance associated
|
|
195
|
+
# with this backup is deleted.
|
|
196
|
+
# @!attribute [r] instance_settings
|
|
197
|
+
# @return [::Google::Cloud::Sql::V1::DatabaseInstance]
|
|
198
|
+
# Optional. Output only. The instance setting of the source instance that's
|
|
199
|
+
# associated with this backup.
|
|
200
|
+
# @!attribute [r] backup_run
|
|
201
|
+
# @return [::String]
|
|
202
|
+
# Output only. The mapping to backup run resource used for IAM validations.
|
|
203
|
+
# @!attribute [r] satisfies_pzs
|
|
204
|
+
# @return [::Google::Protobuf::BoolValue]
|
|
205
|
+
# Output only. This status indicates whether the backup satisfies PZS.
|
|
206
|
+
#
|
|
207
|
+
# The status is reserved for future use.
|
|
208
|
+
# @!attribute [r] satisfies_pzi
|
|
209
|
+
# @return [::Google::Protobuf::BoolValue]
|
|
210
|
+
# Output only. This status indicates whether the backup satisfies PZI.
|
|
211
|
+
#
|
|
212
|
+
# The status is reserved for future use.
|
|
213
|
+
class Backup
|
|
214
|
+
include ::Google::Protobuf::MessageExts
|
|
215
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
216
|
+
|
|
217
|
+
# The backup type.
|
|
218
|
+
module SqlBackupType
|
|
219
|
+
# This is an unknown backup type.
|
|
220
|
+
SQL_BACKUP_TYPE_UNSPECIFIED = 0
|
|
221
|
+
|
|
222
|
+
# The backup schedule triggers a backup automatically.
|
|
223
|
+
AUTOMATED = 1
|
|
224
|
+
|
|
225
|
+
# The user triggers a backup manually.
|
|
226
|
+
ON_DEMAND = 2
|
|
227
|
+
|
|
228
|
+
# The backup created when instance is deleted.
|
|
229
|
+
FINAL = 3
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# The backup's state
|
|
233
|
+
module SqlBackupState
|
|
234
|
+
# The state of the backup is unknown.
|
|
235
|
+
SQL_BACKUP_STATE_UNSPECIFIED = 0
|
|
236
|
+
|
|
237
|
+
# The backup that's added to a queue.
|
|
238
|
+
ENQUEUED = 1
|
|
239
|
+
|
|
240
|
+
# The backup is in progress.
|
|
241
|
+
RUNNING = 2
|
|
242
|
+
|
|
243
|
+
# The backup failed.
|
|
244
|
+
FAILED = 3
|
|
245
|
+
|
|
246
|
+
# The backup is successful.
|
|
247
|
+
SUCCESSFUL = 4
|
|
248
|
+
|
|
249
|
+
# The backup is being deleted.
|
|
250
|
+
DELETING = 5
|
|
251
|
+
|
|
252
|
+
# Deletion of the backup failed.
|
|
253
|
+
DELETION_FAILED = 6
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
@@ -0,0 +1,190 @@
|
|
|
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 V1
|
|
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 response.
|
|
41
|
+
# @!attribute [rw] kind
|
|
42
|
+
# @return [::String]
|
|
43
|
+
# This is always `sql#connectSettings`.
|
|
44
|
+
# @!attribute [rw] server_ca_cert
|
|
45
|
+
# @return [::Google::Cloud::Sql::V1::SslCert]
|
|
46
|
+
# SSL configuration.
|
|
47
|
+
# @!attribute [rw] ip_addresses
|
|
48
|
+
# @return [::Array<::Google::Cloud::Sql::V1::IpMapping>]
|
|
49
|
+
# The assigned IP addresses for the instance.
|
|
50
|
+
# @!attribute [rw] region
|
|
51
|
+
# @return [::String]
|
|
52
|
+
# The cloud region for the instance. For example, `us-central1`,
|
|
53
|
+
# `europe-west1`. The region cannot be changed after instance creation.
|
|
54
|
+
# @!attribute [rw] database_version
|
|
55
|
+
# @return [::Google::Cloud::Sql::V1::SqlDatabaseVersion]
|
|
56
|
+
# The database engine type and version. The `databaseVersion`
|
|
57
|
+
# field cannot be changed after instance creation.
|
|
58
|
+
# MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default),
|
|
59
|
+
# or `MYSQL_5_6`.
|
|
60
|
+
# PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`,
|
|
61
|
+
# `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`.
|
|
62
|
+
# SQL Server instances: `SQLSERVER_2017_STANDARD` (default),
|
|
63
|
+
# `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`,
|
|
64
|
+
# `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`,
|
|
65
|
+
# `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or
|
|
66
|
+
# `SQLSERVER_2019_WEB`.
|
|
67
|
+
# @!attribute [rw] backend_type
|
|
68
|
+
# @return [::Google::Cloud::Sql::V1::SqlBackendType]
|
|
69
|
+
# `SECOND_GEN`: Cloud SQL database instance.
|
|
70
|
+
# `EXTERNAL`: A database server that is not managed by Google.
|
|
71
|
+
# This property is read-only; use the `tier` property in the `settings`
|
|
72
|
+
# object to determine the database type.
|
|
73
|
+
# @!attribute [rw] psc_enabled
|
|
74
|
+
# @return [::Boolean]
|
|
75
|
+
# Whether PSC connectivity is enabled for this instance.
|
|
76
|
+
# @!attribute [rw] dns_name
|
|
77
|
+
# @return [::String]
|
|
78
|
+
# The dns name of the instance.
|
|
79
|
+
# @!attribute [rw] server_ca_mode
|
|
80
|
+
# @return [::Google::Cloud::Sql::V1::ConnectSettings::CaMode]
|
|
81
|
+
# Specify what type of CA is used for the server certificate.
|
|
82
|
+
# @!attribute [rw] custom_subject_alternative_names
|
|
83
|
+
# @return [::Array<::String>]
|
|
84
|
+
# Custom subject alternative names for the server certificate.
|
|
85
|
+
# @!attribute [r] dns_names
|
|
86
|
+
# @return [::Array<::Google::Cloud::Sql::V1::DnsNameMapping>]
|
|
87
|
+
# Output only. The list of DNS names used by this instance.
|
|
88
|
+
# @!attribute [rw] node_count
|
|
89
|
+
# @return [::Integer]
|
|
90
|
+
# The number of read pool nodes in a read pool.
|
|
91
|
+
# @!attribute [r] nodes
|
|
92
|
+
# @return [::Array<::Google::Cloud::Sql::V1::ConnectSettings::ConnectPoolNodeConfig>]
|
|
93
|
+
# Output only. Entries containing information about each read pool node of
|
|
94
|
+
# the read pool.
|
|
95
|
+
# @!attribute [r] mdx_protocol_support
|
|
96
|
+
# @return [::Array<::Google::Cloud::Sql::V1::ConnectSettings::MdxProtocolSupport>]
|
|
97
|
+
# Optional. Output only. mdx_protocol_support controls how the client uses
|
|
98
|
+
# metadata exchange when connecting to the instance. The values in the list
|
|
99
|
+
# representing parts of the MDX protocol that are supported by this instance.
|
|
100
|
+
# When the list is empty, the instance does not support MDX, so the client
|
|
101
|
+
# must not send an MDX request. The default is empty.
|
|
102
|
+
class ConnectSettings
|
|
103
|
+
include ::Google::Protobuf::MessageExts
|
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
105
|
+
|
|
106
|
+
# Details of a single read pool node of a read pool.
|
|
107
|
+
# @!attribute [r] name
|
|
108
|
+
# @return [::String]
|
|
109
|
+
# Output only. The name of the read pool node. Doesn't include the project
|
|
110
|
+
# ID.
|
|
111
|
+
# @!attribute [r] ip_addresses
|
|
112
|
+
# @return [::Array<::Google::Cloud::Sql::V1::IpMapping>]
|
|
113
|
+
# Output only. Mappings containing IP addresses that can be used to connect
|
|
114
|
+
# to the read pool node.
|
|
115
|
+
# @!attribute [r] dns_name
|
|
116
|
+
# @return [::String]
|
|
117
|
+
# Output only. The DNS name of the read pool node.
|
|
118
|
+
# @!attribute [r] dns_names
|
|
119
|
+
# @return [::Array<::Google::Cloud::Sql::V1::DnsNameMapping>]
|
|
120
|
+
# Output only. The list of DNS names used by this read pool node.
|
|
121
|
+
class ConnectPoolNodeConfig
|
|
122
|
+
include ::Google::Protobuf::MessageExts
|
|
123
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Various Certificate Authority (CA) modes for certificate signing.
|
|
127
|
+
module CaMode
|
|
128
|
+
# CA mode is unknown.
|
|
129
|
+
CA_MODE_UNSPECIFIED = 0
|
|
130
|
+
|
|
131
|
+
# Google-managed self-signed internal CA.
|
|
132
|
+
GOOGLE_MANAGED_INTERNAL_CA = 1
|
|
133
|
+
|
|
134
|
+
# Google-managed regional CA part of root CA hierarchy hosted on Google
|
|
135
|
+
# Cloud's Certificate Authority Service (CAS).
|
|
136
|
+
GOOGLE_MANAGED_CAS_CA = 2
|
|
137
|
+
|
|
138
|
+
# Customer-managed CA hosted on Google Cloud's Certificate Authority
|
|
139
|
+
# Service (CAS).
|
|
140
|
+
CUSTOMER_MANAGED_CAS_CA = 3
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# MdxProtocolSupport describes parts of the MDX protocol supported by this
|
|
144
|
+
# instance.
|
|
145
|
+
module MdxProtocolSupport
|
|
146
|
+
# Not specified.
|
|
147
|
+
MDX_PROTOCOL_SUPPORT_UNSPECIFIED = 0
|
|
148
|
+
|
|
149
|
+
# Client should send the client protocol type in the MDX request.
|
|
150
|
+
CLIENT_PROTOCOL_TYPE = 1
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Ephemeral certificate creation request.
|
|
155
|
+
# @!attribute [rw] instance
|
|
156
|
+
# @return [::String]
|
|
157
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
|
158
|
+
# @!attribute [rw] project
|
|
159
|
+
# @return [::String]
|
|
160
|
+
# Project ID of the project that contains the instance.
|
|
161
|
+
# @!attribute [rw] public_key
|
|
162
|
+
# @return [::String]
|
|
163
|
+
# PEM encoded public key to include in the signed certificate.
|
|
164
|
+
# @!attribute [rw] access_token
|
|
165
|
+
# @return [::String]
|
|
166
|
+
# Optional. Access token to include in the signed certificate.
|
|
167
|
+
# @!attribute [rw] read_time
|
|
168
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
169
|
+
# Optional. Optional snapshot read timestamp to trade freshness for
|
|
170
|
+
# performance.
|
|
171
|
+
# @!attribute [rw] valid_duration
|
|
172
|
+
# @return [::Google::Protobuf::Duration]
|
|
173
|
+
# Optional. If set, it will contain the cert valid duration.
|
|
174
|
+
class GenerateEphemeralCertRequest
|
|
175
|
+
include ::Google::Protobuf::MessageExts
|
|
176
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Ephemeral certificate creation request.
|
|
180
|
+
# @!attribute [rw] ephemeral_cert
|
|
181
|
+
# @return [::Google::Cloud::Sql::V1::SslCert]
|
|
182
|
+
# Generated cert
|
|
183
|
+
class GenerateEphemeralCertResponse
|
|
184
|
+
include ::Google::Protobuf::MessageExts
|
|
185
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
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 V1
|
|
24
|
+
# Database delete request.
|
|
25
|
+
# @!attribute [rw] database
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Name of the database to be deleted in the instance.
|
|
28
|
+
# @!attribute [rw] instance
|
|
29
|
+
# @return [::String]
|
|
30
|
+
# Database instance ID. This does not include the project ID.
|
|
31
|
+
# @!attribute [rw] project
|
|
32
|
+
# @return [::String]
|
|
33
|
+
# Project ID of the project that contains the instance.
|
|
34
|
+
class SqlDatabasesDeleteRequest
|
|
35
|
+
include ::Google::Protobuf::MessageExts
|
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Database get request.
|
|
40
|
+
# @!attribute [rw] database
|
|
41
|
+
# @return [::String]
|
|
42
|
+
# Name of the database in the instance.
|
|
43
|
+
# @!attribute [rw] instance
|
|
44
|
+
# @return [::String]
|
|
45
|
+
# Database instance ID. This does not include the project ID.
|
|
46
|
+
# @!attribute [rw] project
|
|
47
|
+
# @return [::String]
|
|
48
|
+
# Project ID of the project that contains the instance.
|
|
49
|
+
class SqlDatabasesGetRequest
|
|
50
|
+
include ::Google::Protobuf::MessageExts
|
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Database insert request.
|
|
55
|
+
# @!attribute [rw] instance
|
|
56
|
+
# @return [::String]
|
|
57
|
+
# Database instance ID. This does not include the project ID.
|
|
58
|
+
# @!attribute [rw] project
|
|
59
|
+
# @return [::String]
|
|
60
|
+
# Project ID of the project that contains the instance.
|
|
61
|
+
# @!attribute [rw] body
|
|
62
|
+
# @return [::Google::Cloud::Sql::V1::Database]
|
|
63
|
+
class SqlDatabasesInsertRequest
|
|
64
|
+
include ::Google::Protobuf::MessageExts
|
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Database list request.
|
|
69
|
+
# @!attribute [rw] instance
|
|
70
|
+
# @return [::String]
|
|
71
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
|
72
|
+
# @!attribute [rw] project
|
|
73
|
+
# @return [::String]
|
|
74
|
+
# Project ID of the project that contains the instance.
|
|
75
|
+
class SqlDatabasesListRequest
|
|
76
|
+
include ::Google::Protobuf::MessageExts
|
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Database update request.
|
|
81
|
+
# @!attribute [rw] database
|
|
82
|
+
# @return [::String]
|
|
83
|
+
# Name of the database to be updated in the instance.
|
|
84
|
+
# @!attribute [rw] instance
|
|
85
|
+
# @return [::String]
|
|
86
|
+
# Database instance ID. This does not include the project ID.
|
|
87
|
+
# @!attribute [rw] project
|
|
88
|
+
# @return [::String]
|
|
89
|
+
# Project ID of the project that contains the instance.
|
|
90
|
+
# @!attribute [rw] body
|
|
91
|
+
# @return [::Google::Cloud::Sql::V1::Database]
|
|
92
|
+
class SqlDatabasesUpdateRequest
|
|
93
|
+
include ::Google::Protobuf::MessageExts
|
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Database list response.
|
|
98
|
+
# @!attribute [rw] kind
|
|
99
|
+
# @return [::String]
|
|
100
|
+
# This is always `sql#databasesList`.
|
|
101
|
+
# @!attribute [rw] items
|
|
102
|
+
# @return [::Array<::Google::Cloud::Sql::V1::Database>]
|
|
103
|
+
# List of database resources in the instance.
|
|
104
|
+
class DatabasesListResponse
|
|
105
|
+
include ::Google::Protobuf::MessageExts
|
|
106
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|