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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +153 -8
  5. data/lib/google/cloud/sql/v1beta4/cloud_sql_connect_pb.rb +35 -0
  6. data/lib/google/cloud/sql/v1beta4/cloud_sql_connect_services_pb.rb +53 -0
  7. data/lib/google/cloud/sql/v1beta4/cloud_sql_data_pb.rb +35 -0
  8. data/lib/google/cloud/sql/v1beta4/cloud_sql_data_services_pb.rb +80 -0
  9. data/lib/google/cloud/sql/v1beta4/cloud_sql_iam_policies_pb.rb +23 -0
  10. data/lib/google/cloud/sql/v1beta4/cloud_sql_iam_policies_services_pb.rb +29 -0
  11. data/lib/google/cloud/sql/v1beta4/cloud_sql_pb.rb +117 -0
  12. data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +192 -0
  13. data/lib/google/cloud/sql/v1beta4/cloud_sql_services_pb.rb +325 -0
  14. data/lib/google/cloud/sql/v1beta4/cloud_sql_tiers_pb.rb +26 -0
  15. data/lib/google/cloud/sql/v1beta4/cloud_sql_tiers_services_pb.rb +46 -0
  16. data/lib/google/cloud/sql/v1beta4/cloud_sql_users_pb.rb +40 -0
  17. data/lib/google/cloud/sql/v1beta4/cloud_sql_users_services_pb.rb +52 -0
  18. data/lib/google/cloud/sql/v1beta4/rest.rb +46 -0
  19. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +807 -0
  20. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/credentials.rb +48 -0
  21. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb +718 -0
  22. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/service_stub.rb +332 -0
  23. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb +49 -0
  24. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +52 -0
  25. data/lib/google/cloud/sql/v1beta4/sql_backups_service/client.rb +896 -0
  26. data/lib/google/cloud/sql/v1beta4/sql_backups_service/credentials.rb +48 -0
  27. data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +83 -0
  28. data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest/client.rb +818 -0
  29. data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest/service_stub.rb +388 -0
  30. data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest.rb +50 -0
  31. data/lib/google/cloud/sql/v1beta4/sql_backups_service.rb +53 -0
  32. data/lib/google/cloud/sql/v1beta4/sql_connect_service/client.rb +705 -0
  33. data/lib/google/cloud/sql/v1beta4/sql_connect_service/credentials.rb +48 -0
  34. data/lib/google/cloud/sql/v1beta4/sql_connect_service/rest/client.rb +632 -0
  35. data/lib/google/cloud/sql/v1beta4/sql_connect_service/rest/service_stub.rb +268 -0
  36. data/lib/google/cloud/sql/v1beta4/sql_connect_service/rest.rb +51 -0
  37. data/lib/google/cloud/sql/v1beta4/sql_connect_service.rb +54 -0
  38. data/lib/google/cloud/sql/v1beta4/sql_data_service/client.rb +520 -0
  39. data/lib/google/cloud/sql/v1beta4/sql_data_service/credentials.rb +48 -0
  40. data/lib/google/cloud/sql/v1beta4/sql_data_service/paths.rb +50 -0
  41. data/lib/google/cloud/sql/v1beta4/sql_data_service.rb +49 -0
  42. data/lib/google/cloud/sql/v1beta4/sql_databases_service/client.rb +1009 -0
  43. data/lib/google/cloud/sql/v1beta4/sql_databases_service/credentials.rb +48 -0
  44. data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/client.rb +894 -0
  45. data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/service_stub.rb +460 -0
  46. data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest.rb +49 -0
  47. data/lib/google/cloud/sql/v1beta4/sql_databases_service.rb +52 -0
  48. data/lib/google/cloud/sql/v1beta4/sql_flags_service/client.rb +486 -0
  49. data/lib/google/cloud/sql/v1beta4/sql_flags_service/credentials.rb +48 -0
  50. data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest/client.rb +444 -0
  51. data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest/service_stub.rb +140 -0
  52. data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest.rb +49 -0
  53. data/lib/google/cloud/sql/v1beta4/sql_flags_service.rb +52 -0
  54. data/lib/google/cloud/sql/v1beta4/sql_instances_service/client.rb +4745 -0
  55. data/lib/google/cloud/sql/v1beta4/sql_instances_service/credentials.rb +48 -0
  56. data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +159 -0
  57. data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/client.rb +4281 -0
  58. data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/service_stub.rb +2769 -0
  59. data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest.rb +50 -0
  60. data/lib/google/cloud/sql/v1beta4/sql_instances_service.rb +53 -0
  61. data/lib/google/cloud/sql/v1beta4/sql_operations_service/client.rb +699 -0
  62. data/lib/google/cloud/sql/v1beta4/sql_operations_service/credentials.rb +48 -0
  63. data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest/client.rb +629 -0
  64. data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest/service_stub.rb +266 -0
  65. data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest.rb +49 -0
  66. data/lib/google/cloud/sql/v1beta4/sql_operations_service.rb +52 -0
  67. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/client.rb +802 -0
  68. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/credentials.rb +48 -0
  69. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/client.rb +713 -0
  70. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/service_stub.rb +332 -0
  71. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest.rb +49 -0
  72. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service.rb +52 -0
  73. data/lib/google/cloud/sql/v1beta4/sql_tiers_service/client.rb +493 -0
  74. data/lib/google/cloud/sql/v1beta4/sql_tiers_service/credentials.rb +48 -0
  75. data/lib/google/cloud/sql/v1beta4/sql_tiers_service/rest/client.rb +443 -0
  76. data/lib/google/cloud/sql/v1beta4/sql_tiers_service/rest/service_stub.rb +142 -0
  77. data/lib/google/cloud/sql/v1beta4/sql_tiers_service/rest.rb +51 -0
  78. data/lib/google/cloud/sql/v1beta4/sql_tiers_service.rb +54 -0
  79. data/lib/google/cloud/sql/v1beta4/sql_users_service/client.rb +915 -0
  80. data/lib/google/cloud/sql/v1beta4/sql_users_service/credentials.rb +48 -0
  81. data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/client.rb +819 -0
  82. data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/service_stub.rb +394 -0
  83. data/lib/google/cloud/sql/v1beta4/sql_users_service/rest.rb +49 -0
  84. data/lib/google/cloud/sql/v1beta4/sql_users_service.rb +52 -0
  85. data/lib/google/cloud/sql/v1beta4/version.rb +7 -2
  86. data/lib/google/cloud/sql/v1beta4.rb +56 -0
  87. data/lib/google-cloud-sql-v1beta4.rb +21 -0
  88. data/proto_docs/README.md +4 -0
  89. data/proto_docs/google/api/client.rb +593 -0
  90. data/proto_docs/google/api/field_behavior.rb +85 -0
  91. data/proto_docs/google/api/field_info.rb +88 -0
  92. data/proto_docs/google/api/launch_stage.rb +71 -0
  93. data/proto_docs/google/api/resource.rb +227 -0
  94. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +1329 -0
  95. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_connect.rb +207 -0
  96. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_data.rb +189 -0
  97. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +4489 -0
  98. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_tiers.rb +68 -0
  99. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb +308 -0
  100. data/proto_docs/google/protobuf/any.rb +145 -0
  101. data/proto_docs/google/protobuf/duration.rb +98 -0
  102. data/proto_docs/google/protobuf/empty.rb +34 -0
  103. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  104. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  105. data/proto_docs/google/protobuf/wrappers.rb +148 -0
  106. data/proto_docs/google/rpc/status.rb +48 -0
  107. data/proto_docs/google/type/interval.rb +45 -0
  108. metadata +153 -9
@@ -0,0 +1,68 @@
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
+ # @!attribute [rw] project
25
+ # @return [::String]
26
+ # Project ID of the project for which to list tiers.
27
+ class SqlTiersListRequest
28
+ include ::Google::Protobuf::MessageExts
29
+ extend ::Google::Protobuf::MessageExts::ClassMethods
30
+ end
31
+
32
+ # Tiers list response.
33
+ # @!attribute [rw] kind
34
+ # @return [::String]
35
+ # This is always `sql#tiersList`.
36
+ # @!attribute [rw] items
37
+ # @return [::Array<::Google::Cloud::Sql::V1beta4::Tier>]
38
+ # List of tiers.
39
+ class TiersListResponse
40
+ include ::Google::Protobuf::MessageExts
41
+ extend ::Google::Protobuf::MessageExts::ClassMethods
42
+ end
43
+
44
+ # A Google Cloud SQL service tier resource.
45
+ # @!attribute [rw] tier
46
+ # @return [::String]
47
+ # An identifier for the machine type, for example, `db-custom-1-3840`. For
48
+ # related information, see [Pricing](/sql/pricing).
49
+ # @!attribute [rw] RAM
50
+ # @return [::Integer]
51
+ # The maximum RAM usage of this tier in bytes.
52
+ # @!attribute [rw] kind
53
+ # @return [::String]
54
+ # This is always `sql#tier`.
55
+ # @!attribute [rw] Disk_Quota
56
+ # @return [::Integer]
57
+ # The maximum disk size of this tier in bytes.
58
+ # @!attribute [rw] region
59
+ # @return [::Array<::String>]
60
+ # The applicable regions for this tier.
61
+ class Tier
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,308 @@
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
+ # @!attribute [rw] host
25
+ # @return [::String]
26
+ # Host of the user in the instance.
27
+ # @!attribute [rw] instance
28
+ # @return [::String]
29
+ # Database instance ID. This does not include the project ID.
30
+ # @!attribute [rw] name
31
+ # @return [::String]
32
+ # Name of the user in the instance.
33
+ # @!attribute [rw] project
34
+ # @return [::String]
35
+ # Project ID of the project that contains the instance.
36
+ class SqlUsersDeleteRequest
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+
41
+ # Request message for Users Get RPC
42
+ # @!attribute [rw] instance
43
+ # @return [::String]
44
+ # Database instance ID. This does not include the project ID.
45
+ # @!attribute [rw] name
46
+ # @return [::String]
47
+ # User of the instance.
48
+ # @!attribute [rw] project
49
+ # @return [::String]
50
+ # Project ID of the project that contains the instance.
51
+ # @!attribute [rw] host
52
+ # @return [::String]
53
+ # Host of a user of the instance.
54
+ class SqlUsersGetRequest
55
+ include ::Google::Protobuf::MessageExts
56
+ extend ::Google::Protobuf::MessageExts::ClassMethods
57
+ end
58
+
59
+ # @!attribute [rw] instance
60
+ # @return [::String]
61
+ # Database instance ID. This does not include the project ID.
62
+ # @!attribute [rw] project
63
+ # @return [::String]
64
+ # Project ID of the project that contains the instance.
65
+ # @!attribute [rw] body
66
+ # @return [::Google::Cloud::Sql::V1beta4::User]
67
+ class SqlUsersInsertRequest
68
+ include ::Google::Protobuf::MessageExts
69
+ extend ::Google::Protobuf::MessageExts::ClassMethods
70
+ end
71
+
72
+ # @!attribute [rw] instance
73
+ # @return [::String]
74
+ # Database instance ID. This does not include the project ID.
75
+ # @!attribute [rw] project
76
+ # @return [::String]
77
+ # Project ID of the project that contains the instance.
78
+ class SqlUsersListRequest
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+
83
+ # @!attribute [rw] host
84
+ # @return [::String]
85
+ # Optional. Host of the user in the instance.
86
+ # @!attribute [rw] instance
87
+ # @return [::String]
88
+ # Database instance ID. This does not include the project ID.
89
+ # @!attribute [rw] name
90
+ # @return [::String]
91
+ # Name of the user in the instance.
92
+ # @!attribute [rw] project
93
+ # @return [::String]
94
+ # Project ID of the project that contains the instance.
95
+ # @!attribute [rw] database_roles
96
+ # @return [::Array<::String>]
97
+ # Optional. List of database roles to grant to the user. body.database_roles
98
+ # will be ignored for update request.
99
+ # @!attribute [rw] revoke_existing_roles
100
+ # @return [::Boolean]
101
+ # Optional. Specifies whether to revoke existing roles that are not present
102
+ # in the `database_roles` field. If `false` or unset, the database roles
103
+ # specified in `database_roles` are added to the user's existing roles.
104
+ # @!attribute [rw] server_roles
105
+ # @return [::Array<::String>]
106
+ # Optional. The server roles to grant to the SQL Server login. Existing
107
+ # server roles will not be revoked if revoke_existing_roles is false.
108
+ # body.server_roles will be ignored for update request.
109
+ # @!attribute [rw] revoke_existing_server_roles
110
+ # @return [::Boolean]
111
+ # Optional. Specifies whether to revoke existing roles that are not present
112
+ # in the `server_roles` field. If `false` or unset, the server roles
113
+ # specified in `server_roles` are added to the user's existing server roles.
114
+ # @!attribute [rw] body
115
+ # @return [::Google::Cloud::Sql::V1beta4::User]
116
+ class SqlUsersUpdateRequest
117
+ include ::Google::Protobuf::MessageExts
118
+ extend ::Google::Protobuf::MessageExts::ClassMethods
119
+ end
120
+
121
+ # User level password validation policy.
122
+ # @!attribute [rw] allowed_failed_attempts
123
+ # @return [::Integer]
124
+ # Number of failed login attempts allowed before user get locked.
125
+ # @!attribute [rw] password_expiration_duration
126
+ # @return [::Google::Protobuf::Duration]
127
+ # Expiration duration after password is updated.
128
+ # @!attribute [rw] enable_failed_attempts_check
129
+ # @return [::Boolean]
130
+ # If true, failed login attempts check will be enabled.
131
+ # @!attribute [r] status
132
+ # @return [::Google::Cloud::Sql::V1beta4::PasswordStatus]
133
+ # Output only. Read-only password status.
134
+ # @!attribute [rw] enable_password_verification
135
+ # @return [::Boolean]
136
+ # If true, the user must specify the current password before changing the
137
+ # password. This flag is supported only for MySQL.
138
+ class UserPasswordValidationPolicy
139
+ include ::Google::Protobuf::MessageExts
140
+ extend ::Google::Protobuf::MessageExts::ClassMethods
141
+ end
142
+
143
+ # Read-only password status.
144
+ # @!attribute [rw] locked
145
+ # @return [::Boolean]
146
+ # If true, user does not have login privileges.
147
+ # @!attribute [rw] password_expiration_time
148
+ # @return [::Google::Protobuf::Timestamp]
149
+ # The expiration time of the current password.
150
+ class PasswordStatus
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # A Cloud SQL user resource.
156
+ # @!attribute [rw] kind
157
+ # @return [::String]
158
+ # This is always `sql#user`.
159
+ # @!attribute [rw] password
160
+ # @return [::String]
161
+ # The password for the user.
162
+ # @!attribute [rw] etag
163
+ # @return [::String]
164
+ # This field is deprecated and will be removed from a future version of the
165
+ # API.
166
+ # @!attribute [rw] name
167
+ # @return [::String]
168
+ # The name of the user in the Cloud SQL instance. Can be omitted for
169
+ # `update` because it is already specified in the URL.
170
+ # @!attribute [rw] host
171
+ # @return [::String]
172
+ # Optional. The host from which the user can connect. For `insert`
173
+ # operations, host defaults to an empty string. For `update`
174
+ # operations, host is specified as part of the request URL. The host name
175
+ # cannot be updated after insertion. For a MySQL instance, it's required;
176
+ # for a PostgreSQL or SQL Server instance, it's optional.
177
+ # @!attribute [rw] instance
178
+ # @return [::String]
179
+ # The name of the Cloud SQL instance. This does not include the project ID.
180
+ # Can be omitted for <b>update</b> because it is already specified on the
181
+ # URL.
182
+ # @!attribute [rw] project
183
+ # @return [::String]
184
+ # The project ID of the project containing the Cloud SQL database. The Google
185
+ # apps domain is prefixed if applicable. Can be omitted for
186
+ # <b>update</b> because it is already specified on the URL.
187
+ # @!attribute [rw] type
188
+ # @return [::Google::Cloud::Sql::V1beta4::User::SqlUserType]
189
+ # The user type. It determines the method to authenticate the user during
190
+ # login. The default is the database's built-in user type.
191
+ # @!attribute [rw] sqlserver_user_details
192
+ # @return [::Google::Cloud::Sql::V1beta4::SqlServerUserDetails]
193
+ # @!attribute [rw] iam_email
194
+ # @return [::String]
195
+ # Optional. The full email for an IAM user. For normal database users, this
196
+ # will not be filled. Only applicable to MySQL database users.
197
+ # @!attribute [rw] password_policy
198
+ # @return [::Google::Cloud::Sql::V1beta4::UserPasswordValidationPolicy]
199
+ # User level password validation policy.
200
+ # @!attribute [rw] dual_password_type
201
+ # @return [::Google::Cloud::Sql::V1beta4::User::DualPasswordType]
202
+ # Dual password status for the user.
203
+ # @!attribute [rw] iam_status
204
+ # @return [::Google::Cloud::Sql::V1beta4::User::IamStatus]
205
+ # Indicates if a group is active or inactive for IAM database authentication.
206
+ # @!attribute [rw] database_roles
207
+ # @return [::Array<::String>]
208
+ # Optional. Role memberships of the user
209
+ # @!attribute [rw] server_roles
210
+ # @return [::Array<::String>]
211
+ # Optional. The server roles for the SQL Server login.
212
+ class User
213
+ include ::Google::Protobuf::MessageExts
214
+ extend ::Google::Protobuf::MessageExts::ClassMethods
215
+
216
+ # The user type.
217
+ module SqlUserType
218
+ # The database's built-in user type.
219
+ BUILT_IN = 0
220
+
221
+ # Cloud IAM user.
222
+ CLOUD_IAM_USER = 1
223
+
224
+ # Cloud IAM service account.
225
+ CLOUD_IAM_SERVICE_ACCOUNT = 2
226
+
227
+ # Cloud IAM group. Not used for login.
228
+ CLOUD_IAM_GROUP = 3
229
+
230
+ # Read-only. Login for a user that belongs to the Cloud IAM group.
231
+ CLOUD_IAM_GROUP_USER = 4
232
+
233
+ # Read-only. Login for a service account that belongs to the
234
+ # Cloud IAM group.
235
+ CLOUD_IAM_GROUP_SERVICE_ACCOUNT = 5
236
+
237
+ # Cloud IAM workforce identity user managed via workforce identity
238
+ # federation.
239
+ CLOUD_IAM_WORKFORCE_IDENTITY = 6
240
+
241
+ # Microsoft Entra ID user.
242
+ ENTRAID_USER = 7
243
+ end
244
+
245
+ # The type of retained password.
246
+ module DualPasswordType
247
+ # The default value.
248
+ DUAL_PASSWORD_TYPE_UNSPECIFIED = 0
249
+
250
+ # Do not update the user's dual password status.
251
+ NO_MODIFY_DUAL_PASSWORD = 1
252
+
253
+ # No dual password usable for connecting using this user.
254
+ NO_DUAL_PASSWORD = 2
255
+
256
+ # Dual password usable for connecting using this user.
257
+ DUAL_PASSWORD = 3
258
+ end
259
+
260
+ # Indicates if a group is available for IAM database authentication.
261
+ module IamStatus
262
+ # The default value for users that are not of type CLOUD_IAM_GROUP.
263
+ # Only CLOUD_IAM_GROUP users will be inactive or active.
264
+ # Users with an IamStatus of IAM_STATUS_UNSPECIFIED will not
265
+ # display whether they are active or inactive as that is not applicable to
266
+ # them.
267
+ IAM_STATUS_UNSPECIFIED = 0
268
+
269
+ # INACTIVE indicates a group is not available for IAM database
270
+ # authentication.
271
+ INACTIVE = 1
272
+
273
+ # ACTIVE indicates a group is available for IAM database authentication.
274
+ ACTIVE = 2
275
+ end
276
+ end
277
+
278
+ # Represents a Sql Server user on the Cloud SQL instance.
279
+ # @!attribute [rw] disabled
280
+ # @return [::Boolean]
281
+ # If the user has been disabled
282
+ # @!attribute [rw] server_roles
283
+ # @return [::Array<::String>]
284
+ # The server roles for this user
285
+ class SqlServerUserDetails
286
+ include ::Google::Protobuf::MessageExts
287
+ extend ::Google::Protobuf::MessageExts::ClassMethods
288
+ end
289
+
290
+ # User list response.
291
+ # @!attribute [rw] kind
292
+ # @return [::String]
293
+ # This is always <b>sql#usersList</b>.
294
+ # @!attribute [rw] items
295
+ # @return [::Array<::Google::Cloud::Sql::V1beta4::User>]
296
+ # List of user resources in the instance.
297
+ # @!attribute [rw] next_page_token
298
+ # @deprecated This field is deprecated and may be removed in the next major version update.
299
+ # @return [::String]
300
+ # Unused.
301
+ class UsersListResponse
302
+ include ::Google::Protobuf::MessageExts
303
+ extend ::Google::Protobuf::MessageExts::ClassMethods
304
+ end
305
+ end
306
+ end
307
+ end
308
+ end
@@ -0,0 +1,145 @@
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 Protobuf
22
+ # `Any` contains an arbitrary serialized protocol buffer message along with a
23
+ # URL that describes the type of the serialized message.
24
+ #
25
+ # Protobuf library provides support to pack/unpack Any values in the form
26
+ # of utility functions or additional generated methods of the Any type.
27
+ #
28
+ # Example 1: Pack and unpack a message in C++.
29
+ #
30
+ # Foo foo = ...;
31
+ # Any any;
32
+ # any.PackFrom(foo);
33
+ # ...
34
+ # if (any.UnpackTo(&foo)) {
35
+ # ...
36
+ # }
37
+ #
38
+ # Example 2: Pack and unpack a message in Java.
39
+ #
40
+ # Foo foo = ...;
41
+ # Any any = Any.pack(foo);
42
+ # ...
43
+ # if (any.is(Foo.class)) {
44
+ # foo = any.unpack(Foo.class);
45
+ # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
50
+ #
51
+ # Example 3: Pack and unpack a message in Python.
52
+ #
53
+ # foo = Foo(...)
54
+ # any = Any()
55
+ # any.Pack(foo)
56
+ # ...
57
+ # if any.Is(Foo.DESCRIPTOR):
58
+ # any.Unpack(foo)
59
+ # ...
60
+ #
61
+ # Example 4: Pack and unpack a message in Go
62
+ #
63
+ # foo := &pb.Foo{...}
64
+ # any, err := anypb.New(foo)
65
+ # if err != nil {
66
+ # ...
67
+ # }
68
+ # ...
69
+ # foo := &pb.Foo{}
70
+ # if err := any.UnmarshalTo(foo); err != nil {
71
+ # ...
72
+ # }
73
+ #
74
+ # The pack methods provided by protobuf library will by default use
75
+ # 'type.googleapis.com/full.type.name' as the type URL and the unpack
76
+ # methods only use the fully qualified type name after the last '/'
77
+ # in the type URL, for example "foo.bar.com/x/y.z" will yield type
78
+ # name "y.z".
79
+ #
80
+ # JSON
81
+ # ====
82
+ # The JSON representation of an `Any` value uses the regular
83
+ # representation of the deserialized, embedded message, with an
84
+ # additional field `@type` which contains the type URL. Example:
85
+ #
86
+ # package google.profile;
87
+ # message Person {
88
+ # string first_name = 1;
89
+ # string last_name = 2;
90
+ # }
91
+ #
92
+ # {
93
+ # "@type": "type.googleapis.com/google.profile.Person",
94
+ # "firstName": <string>,
95
+ # "lastName": <string>
96
+ # }
97
+ #
98
+ # If the embedded message type is well-known and has a custom JSON
99
+ # representation, that representation will be embedded adding a field
100
+ # `value` which holds the custom JSON in addition to the `@type`
101
+ # field. Example (for message [google.protobuf.Duration][]):
102
+ #
103
+ # {
104
+ # "@type": "type.googleapis.com/google.protobuf.Duration",
105
+ # "value": "1.212s"
106
+ # }
107
+ # @!attribute [rw] type_url
108
+ # @return [::String]
109
+ # A URL/resource name that uniquely identifies the type of the serialized
110
+ # protocol buffer message. This string must contain at least
111
+ # one "/" character. The last segment of the URL's path must represent
112
+ # the fully qualified name of the type (as in
113
+ # `path/google.protobuf.Duration`). The name should be in a canonical form
114
+ # (e.g., leading "." is not accepted).
115
+ #
116
+ # In practice, teams usually precompile into the binary all types that they
117
+ # expect it to use in the context of Any. However, for URLs which use the
118
+ # scheme `http`, `https`, or no scheme, one can optionally set up a type
119
+ # server that maps type URLs to message definitions as follows:
120
+ #
121
+ # * If no scheme is provided, `https` is assumed.
122
+ # * An HTTP GET on the URL must yield a [google.protobuf.Type][]
123
+ # value in binary format, or produce an error.
124
+ # * Applications are allowed to cache lookup results based on the
125
+ # URL, or have them precompiled into a binary to avoid any
126
+ # lookup. Therefore, binary compatibility needs to be preserved
127
+ # on changes to types. (Use versioned type names to manage
128
+ # breaking changes.)
129
+ #
130
+ # Note: this functionality is not currently available in the official
131
+ # protobuf release, and it is not used for type URLs beginning with
132
+ # type.googleapis.com. As of May 2023, there are no widely used type server
133
+ # implementations and no plans to implement one.
134
+ #
135
+ # Schemes other than `http`, `https` (or the empty scheme) might be
136
+ # used with implementation specific semantics.
137
+ # @!attribute [rw] value
138
+ # @return [::String]
139
+ # Must be a valid serialized protocol buffer of the above specified type.
140
+ class Any
141
+ include ::Google::Protobuf::MessageExts
142
+ extend ::Google::Protobuf::MessageExts::ClassMethods
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,98 @@
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 Protobuf
22
+ # A Duration represents a signed, fixed-length span of time represented
23
+ # as a count of seconds and fractions of seconds at nanosecond
24
+ # resolution. It is independent of any calendar and concepts like "day"
25
+ # or "month". It is related to Timestamp in that the difference between
26
+ # two Timestamp values is a Duration and it can be added or subtracted
27
+ # from a Timestamp. Range is approximately +-10,000 years.
28
+ #
29
+ # # Examples
30
+ #
31
+ # Example 1: Compute Duration from two Timestamps in pseudo code.
32
+ #
33
+ # Timestamp start = ...;
34
+ # Timestamp end = ...;
35
+ # Duration duration = ...;
36
+ #
37
+ # duration.seconds = end.seconds - start.seconds;
38
+ # duration.nanos = end.nanos - start.nanos;
39
+ #
40
+ # if (duration.seconds < 0 && duration.nanos > 0) {
41
+ # duration.seconds += 1;
42
+ # duration.nanos -= 1000000000;
43
+ # } else if (duration.seconds > 0 && duration.nanos < 0) {
44
+ # duration.seconds -= 1;
45
+ # duration.nanos += 1000000000;
46
+ # }
47
+ #
48
+ # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
49
+ #
50
+ # Timestamp start = ...;
51
+ # Duration duration = ...;
52
+ # Timestamp end = ...;
53
+ #
54
+ # end.seconds = start.seconds + duration.seconds;
55
+ # end.nanos = start.nanos + duration.nanos;
56
+ #
57
+ # if (end.nanos < 0) {
58
+ # end.seconds -= 1;
59
+ # end.nanos += 1000000000;
60
+ # } else if (end.nanos >= 1000000000) {
61
+ # end.seconds += 1;
62
+ # end.nanos -= 1000000000;
63
+ # }
64
+ #
65
+ # Example 3: Compute Duration from datetime.timedelta in Python.
66
+ #
67
+ # td = datetime.timedelta(days=3, minutes=10)
68
+ # duration = Duration()
69
+ # duration.FromTimedelta(td)
70
+ #
71
+ # # JSON Mapping
72
+ #
73
+ # In JSON format, the Duration type is encoded as a string rather than an
74
+ # object, where the string ends in the suffix "s" (indicating seconds) and
75
+ # is preceded by the number of seconds, with nanoseconds expressed as
76
+ # fractional seconds. For example, 3 seconds with 0 nanoseconds should be
77
+ # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
78
+ # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
+ # microsecond should be expressed in JSON format as "3.000001s".
80
+ # @!attribute [rw] seconds
81
+ # @return [::Integer]
82
+ # Signed seconds of the span of time. Must be from -315,576,000,000
83
+ # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
+ # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
+ # @!attribute [rw] nanos
86
+ # @return [::Integer]
87
+ # Signed fractions of a second at nanosecond resolution of the span
88
+ # of time. Durations less than one second are represented with a 0
89
+ # `seconds` field and a positive or negative `nanos` field. For durations
90
+ # of one second or more, a non-zero value for the `nanos` field must be
91
+ # of the same sign as the `seconds` field. Must be from -999,999,999
92
+ # to +999,999,999 inclusive.
93
+ class Duration
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,34 @@
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 Protobuf
22
+ # A generic empty message that you can re-use to avoid defining duplicated
23
+ # empty messages in your APIs. A typical example is to use it as the request
24
+ # or the response type of an API method. For instance:
25
+ #
26
+ # service Foo {
27
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
+ # }
29
+ class Empty
30
+ include ::Google::Protobuf::MessageExts
31
+ extend ::Google::Protobuf::MessageExts::ClassMethods
32
+ end
33
+ end
34
+ end