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.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +146 -8
  5. data/lib/google/cloud/sql/v1/cloud_sql_available_database_versions_pb.rb +25 -0
  6. data/lib/google/cloud/sql/v1/cloud_sql_available_database_versions_services_pb.rb +29 -0
  7. data/lib/google/cloud/sql/v1/cloud_sql_backup_runs_pb.rb +35 -0
  8. data/lib/google/cloud/sql/v1/cloud_sql_backup_runs_services_pb.rb +53 -0
  9. data/lib/google/cloud/sql/v1/cloud_sql_backups_pb.rb +41 -0
  10. data/lib/google/cloud/sql/v1/cloud_sql_backups_services_pb.rb +54 -0
  11. data/lib/google/cloud/sql/v1/cloud_sql_connect_pb.rb +34 -0
  12. data/lib/google/cloud/sql/v1/cloud_sql_connect_services_pb.rb +50 -0
  13. data/lib/google/cloud/sql/v1/cloud_sql_databases_pb.rb +30 -0
  14. data/lib/google/cloud/sql/v1/cloud_sql_databases_services_pb.rb +61 -0
  15. data/lib/google/cloud/sql/v1/cloud_sql_events_pb.rb +25 -0
  16. data/lib/google/cloud/sql/v1/cloud_sql_events_services_pb.rb +29 -0
  17. data/lib/google/cloud/sql/v1/cloud_sql_feature_eligibility_pb.rb +24 -0
  18. data/lib/google/cloud/sql/v1/cloud_sql_feature_eligibility_services_pb.rb +29 -0
  19. data/lib/google/cloud/sql/v1/cloud_sql_flags_pb.rb +31 -0
  20. data/lib/google/cloud/sql/v1/cloud_sql_flags_services_pb.rb +45 -0
  21. data/lib/google/cloud/sql/v1/cloud_sql_iam_policies_pb.rb +23 -0
  22. data/lib/google/cloud/sql/v1/cloud_sql_iam_policies_services_pb.rb +29 -0
  23. data/lib/google/cloud/sql/v1/cloud_sql_instance_names_pb.rb +24 -0
  24. data/lib/google/cloud/sql/v1/cloud_sql_instance_names_services_pb.rb +29 -0
  25. data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +146 -0
  26. data/lib/google/cloud/sql/v1/cloud_sql_instances_services_pb.rb +184 -0
  27. data/lib/google/cloud/sql/v1/cloud_sql_operations_pb.rb +30 -0
  28. data/lib/google/cloud/sql/v1/cloud_sql_operations_services_pb.rb +50 -0
  29. data/lib/google/cloud/sql/v1/cloud_sql_regions_pb.rb +25 -0
  30. data/lib/google/cloud/sql/v1/cloud_sql_regions_services_pb.rb +29 -0
  31. data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +119 -0
  32. data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_pb.rb +31 -0
  33. data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_services_pb.rb +56 -0
  34. data/lib/google/cloud/sql/v1/cloud_sql_tiers_pb.rb +26 -0
  35. data/lib/google/cloud/sql/v1/cloud_sql_tiers_services_pb.rb +47 -0
  36. data/lib/google/cloud/sql/v1/cloud_sql_users_pb.rb +41 -0
  37. data/lib/google/cloud/sql/v1/cloud_sql_users_services_pb.rb +53 -0
  38. data/lib/google/cloud/sql/v1/rest.rb +46 -0
  39. data/lib/google/cloud/sql/v1/sql_backup_runs_service/client.rb +809 -0
  40. data/lib/google/cloud/sql/v1/sql_backup_runs_service/credentials.rb +48 -0
  41. data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest/client.rb +720 -0
  42. data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest/service_stub.rb +332 -0
  43. data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest.rb +51 -0
  44. data/lib/google/cloud/sql/v1/sql_backup_runs_service.rb +54 -0
  45. data/lib/google/cloud/sql/v1/sql_backups_service/client.rb +896 -0
  46. data/lib/google/cloud/sql/v1/sql_backups_service/credentials.rb +48 -0
  47. data/lib/google/cloud/sql/v1/sql_backups_service/paths.rb +64 -0
  48. data/lib/google/cloud/sql/v1/sql_backups_service/rest/client.rb +818 -0
  49. data/lib/google/cloud/sql/v1/sql_backups_service/rest/service_stub.rb +388 -0
  50. data/lib/google/cloud/sql/v1/sql_backups_service/rest.rb +50 -0
  51. data/lib/google/cloud/sql/v1/sql_backups_service.rb +53 -0
  52. data/lib/google/cloud/sql/v1/sql_connect_service/client.rb +607 -0
  53. data/lib/google/cloud/sql/v1/sql_connect_service/credentials.rb +48 -0
  54. data/lib/google/cloud/sql/v1/sql_connect_service/rest/client.rb +544 -0
  55. data/lib/google/cloud/sql/v1/sql_connect_service/rest/service_stub.rb +206 -0
  56. data/lib/google/cloud/sql/v1/sql_connect_service/rest.rb +51 -0
  57. data/lib/google/cloud/sql/v1/sql_connect_service.rb +54 -0
  58. data/lib/google/cloud/sql/v1/sql_databases_service/client.rb +1011 -0
  59. data/lib/google/cloud/sql/v1/sql_databases_service/credentials.rb +48 -0
  60. data/lib/google/cloud/sql/v1/sql_databases_service/rest/client.rb +896 -0
  61. data/lib/google/cloud/sql/v1/sql_databases_service/rest/service_stub.rb +460 -0
  62. data/lib/google/cloud/sql/v1/sql_databases_service/rest.rb +51 -0
  63. data/lib/google/cloud/sql/v1/sql_databases_service.rb +54 -0
  64. data/lib/google/cloud/sql/v1/sql_flags_service/client.rb +488 -0
  65. data/lib/google/cloud/sql/v1/sql_flags_service/credentials.rb +48 -0
  66. data/lib/google/cloud/sql/v1/sql_flags_service/rest/client.rb +446 -0
  67. data/lib/google/cloud/sql/v1/sql_flags_service/rest/service_stub.rb +140 -0
  68. data/lib/google/cloud/sql/v1/sql_flags_service/rest.rb +51 -0
  69. data/lib/google/cloud/sql/v1/sql_flags_service.rb +54 -0
  70. data/lib/google/cloud/sql/v1/sql_instances_service/client.rb +4738 -0
  71. data/lib/google/cloud/sql/v1/sql_instances_service/credentials.rb +48 -0
  72. data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +95 -0
  73. data/lib/google/cloud/sql/v1/sql_instances_service/rest/client.rb +4274 -0
  74. data/lib/google/cloud/sql/v1/sql_instances_service/rest/service_stub.rb +2769 -0
  75. data/lib/google/cloud/sql/v1/sql_instances_service/rest.rb +50 -0
  76. data/lib/google/cloud/sql/v1/sql_instances_service.rb +53 -0
  77. data/lib/google/cloud/sql/v1/sql_operations_service/client.rb +694 -0
  78. data/lib/google/cloud/sql/v1/sql_operations_service/credentials.rb +48 -0
  79. data/lib/google/cloud/sql/v1/sql_operations_service/rest/client.rb +624 -0
  80. data/lib/google/cloud/sql/v1/sql_operations_service/rest/service_stub.rb +266 -0
  81. data/lib/google/cloud/sql/v1/sql_operations_service/rest.rb +51 -0
  82. data/lib/google/cloud/sql/v1/sql_operations_service.rb +54 -0
  83. data/lib/google/cloud/sql/v1/sql_ssl_certs_service/client.rb +804 -0
  84. data/lib/google/cloud/sql/v1/sql_ssl_certs_service/credentials.rb +48 -0
  85. data/lib/google/cloud/sql/v1/sql_ssl_certs_service/rest/client.rb +715 -0
  86. data/lib/google/cloud/sql/v1/sql_ssl_certs_service/rest/service_stub.rb +332 -0
  87. data/lib/google/cloud/sql/v1/sql_ssl_certs_service/rest.rb +51 -0
  88. data/lib/google/cloud/sql/v1/sql_ssl_certs_service.rb +54 -0
  89. data/lib/google/cloud/sql/v1/sql_tiers_service/client.rb +494 -0
  90. data/lib/google/cloud/sql/v1/sql_tiers_service/credentials.rb +48 -0
  91. data/lib/google/cloud/sql/v1/sql_tiers_service/rest/client.rb +444 -0
  92. data/lib/google/cloud/sql/v1/sql_tiers_service/rest/service_stub.rb +142 -0
  93. data/lib/google/cloud/sql/v1/sql_tiers_service/rest.rb +51 -0
  94. data/lib/google/cloud/sql/v1/sql_tiers_service.rb +54 -0
  95. data/lib/google/cloud/sql/v1/sql_users_service/client.rb +909 -0
  96. data/lib/google/cloud/sql/v1/sql_users_service/credentials.rb +48 -0
  97. data/lib/google/cloud/sql/v1/sql_users_service/rest/client.rb +813 -0
  98. data/lib/google/cloud/sql/v1/sql_users_service/rest/service_stub.rb +394 -0
  99. data/lib/google/cloud/sql/v1/sql_users_service/rest.rb +51 -0
  100. data/lib/google/cloud/sql/v1/sql_users_service.rb +54 -0
  101. data/lib/google/cloud/sql/v1/version.rb +8 -3
  102. data/lib/google/cloud/sql/v1.rb +60 -0
  103. data/lib/google-cloud-sql-v1.rb +21 -0
  104. data/proto_docs/README.md +4 -0
  105. data/proto_docs/google/api/client.rb +593 -0
  106. data/proto_docs/google/api/field_behavior.rb +85 -0
  107. data/proto_docs/google/api/field_info.rb +88 -0
  108. data/proto_docs/google/api/launch_stage.rb +71 -0
  109. data/proto_docs/google/api/resource.rb +227 -0
  110. data/proto_docs/google/cloud/sql/v1/cloud_sql_backup_runs.rb +245 -0
  111. data/proto_docs/google/cloud/sql/v1/cloud_sql_backups.rb +259 -0
  112. data/proto_docs/google/cloud/sql/v1/cloud_sql_connect.rb +190 -0
  113. data/proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb +111 -0
  114. data/proto_docs/google/cloud/sql/v1/cloud_sql_flags.rb +154 -0
  115. data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +2357 -0
  116. data/proto_docs/google/cloud/sql/v1/cloud_sql_operations.rb +85 -0
  117. data/proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb +2522 -0
  118. data/proto_docs/google/cloud/sql/v1/cloud_sql_ssl_certs.rb +120 -0
  119. data/proto_docs/google/cloud/sql/v1/cloud_sql_tiers.rb +69 -0
  120. data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +291 -0
  121. data/proto_docs/google/protobuf/any.rb +145 -0
  122. data/proto_docs/google/protobuf/duration.rb +98 -0
  123. data/proto_docs/google/protobuf/empty.rb +34 -0
  124. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  125. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  126. data/proto_docs/google/protobuf/wrappers.rb +148 -0
  127. data/proto_docs/google/rpc/status.rb +48 -0
  128. data/proto_docs/google/type/interval.rb +45 -0
  129. metadata +176 -14
@@ -0,0 +1,120 @@
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
+ # @!attribute [rw] instance
25
+ # @return [::String]
26
+ # Cloud SQL instance ID. This does not include the project ID.
27
+ # @!attribute [rw] project
28
+ # @return [::String]
29
+ # Project ID of the project that contains the instance.
30
+ # @!attribute [rw] sha1_fingerprint
31
+ # @return [::String]
32
+ # Sha1 FingerPrint.
33
+ class SqlSslCertsDeleteRequest
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+ end
37
+
38
+ # @!attribute [rw] instance
39
+ # @return [::String]
40
+ # Cloud SQL instance ID. This does not include the project ID.
41
+ # @!attribute [rw] project
42
+ # @return [::String]
43
+ # Project ID of the project that contains the instance.
44
+ # @!attribute [rw] sha1_fingerprint
45
+ # @return [::String]
46
+ # Sha1 FingerPrint.
47
+ class SqlSslCertsGetRequest
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
+ end
51
+
52
+ # @!attribute [rw] instance
53
+ # @return [::String]
54
+ # Cloud SQL instance ID. This does not include the project ID.
55
+ # @!attribute [rw] project
56
+ # @return [::String]
57
+ # Project ID of the project that contains the instance.
58
+ # @!attribute [rw] body
59
+ # @return [::Google::Cloud::Sql::V1::SslCertsInsertRequest]
60
+ class SqlSslCertsInsertRequest
61
+ include ::Google::Protobuf::MessageExts
62
+ extend ::Google::Protobuf::MessageExts::ClassMethods
63
+ end
64
+
65
+ # @!attribute [rw] instance
66
+ # @return [::String]
67
+ # Cloud SQL instance ID. This does not include the project ID.
68
+ # @!attribute [rw] project
69
+ # @return [::String]
70
+ # Project ID of the project that contains the instance.
71
+ class SqlSslCertsListRequest
72
+ include ::Google::Protobuf::MessageExts
73
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
+ end
75
+
76
+ # SslCerts insert request.
77
+ # @!attribute [rw] common_name
78
+ # @return [::String]
79
+ # User supplied name. Must be a distinct name from the other certificates
80
+ # for this instance.
81
+ class SslCertsInsertRequest
82
+ include ::Google::Protobuf::MessageExts
83
+ extend ::Google::Protobuf::MessageExts::ClassMethods
84
+ end
85
+
86
+ # SslCert insert response.
87
+ # @!attribute [rw] kind
88
+ # @return [::String]
89
+ # This is always `sql#sslCertsInsert`.
90
+ # @!attribute [rw] operation
91
+ # @return [::Google::Cloud::Sql::V1::Operation]
92
+ # The operation to track the ssl certs insert request.
93
+ # @!attribute [rw] server_ca_cert
94
+ # @return [::Google::Cloud::Sql::V1::SslCert]
95
+ # The server Certificate Authority's certificate. If this is missing you can
96
+ # force a new one to be generated by calling resetSslConfig method on
97
+ # instances resource.
98
+ # @!attribute [rw] client_cert
99
+ # @return [::Google::Cloud::Sql::V1::SslCertDetail]
100
+ # The new client certificate and private key.
101
+ class SslCertsInsertResponse
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # SslCerts list response.
107
+ # @!attribute [rw] kind
108
+ # @return [::String]
109
+ # This is always `sql#sslCertsList`.
110
+ # @!attribute [rw] items
111
+ # @return [::Array<::Google::Cloud::Sql::V1::SslCert>]
112
+ # List of client certificates for the instance.
113
+ class SslCertsListResponse
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,69 @@
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
+ # Tiers list request.
25
+ # @!attribute [rw] project
26
+ # @return [::String]
27
+ # Project ID of the project for which to list tiers.
28
+ class SqlTiersListRequest
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # Tiers list response.
34
+ # @!attribute [rw] kind
35
+ # @return [::String]
36
+ # This is always `sql#tiersList`.
37
+ # @!attribute [rw] items
38
+ # @return [::Array<::Google::Cloud::Sql::V1::Tier>]
39
+ # List of tiers.
40
+ class TiersListResponse
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+
45
+ # A Google Cloud SQL service tier resource.
46
+ # @!attribute [rw] tier
47
+ # @return [::String]
48
+ # An identifier for the machine type, for example, `db-custom-1-3840`. For
49
+ # related information, see [Pricing](/sql/pricing).
50
+ # @!attribute [rw] RAM
51
+ # @return [::Integer]
52
+ # The maximum RAM usage of this tier in bytes.
53
+ # @!attribute [rw] kind
54
+ # @return [::String]
55
+ # This is always `sql#tier`.
56
+ # @!attribute [rw] Disk_Quota
57
+ # @return [::Integer]
58
+ # The maximum disk size of this tier in bytes.
59
+ # @!attribute [rw] region
60
+ # @return [::Array<::String>]
61
+ # The applicable regions for this tier.
62
+ class Tier
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,291 @@
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
+ # @!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::V1::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] body
105
+ # @return [::Google::Cloud::Sql::V1::User]
106
+ class SqlUsersUpdateRequest
107
+ include ::Google::Protobuf::MessageExts
108
+ extend ::Google::Protobuf::MessageExts::ClassMethods
109
+ end
110
+
111
+ # User level password validation policy.
112
+ # @!attribute [rw] allowed_failed_attempts
113
+ # @return [::Integer]
114
+ # Number of failed login attempts allowed before user get locked.
115
+ # @!attribute [rw] password_expiration_duration
116
+ # @return [::Google::Protobuf::Duration]
117
+ # Expiration duration after password is updated.
118
+ # @!attribute [rw] enable_failed_attempts_check
119
+ # @return [::Boolean]
120
+ # If true, failed login attempts check will be enabled.
121
+ # @!attribute [r] status
122
+ # @return [::Google::Cloud::Sql::V1::PasswordStatus]
123
+ # Output only. Read-only password status.
124
+ # @!attribute [rw] enable_password_verification
125
+ # @return [::Boolean]
126
+ # If true, the user must specify the current password before changing the
127
+ # password. This flag is supported only for MySQL.
128
+ class UserPasswordValidationPolicy
129
+ include ::Google::Protobuf::MessageExts
130
+ extend ::Google::Protobuf::MessageExts::ClassMethods
131
+ end
132
+
133
+ # Read-only password status.
134
+ # @!attribute [rw] locked
135
+ # @return [::Boolean]
136
+ # If true, user does not have login privileges.
137
+ # @!attribute [rw] password_expiration_time
138
+ # @return [::Google::Protobuf::Timestamp]
139
+ # The expiration time of the current password.
140
+ class PasswordStatus
141
+ include ::Google::Protobuf::MessageExts
142
+ extend ::Google::Protobuf::MessageExts::ClassMethods
143
+ end
144
+
145
+ # A Cloud SQL user resource.
146
+ # @!attribute [rw] kind
147
+ # @return [::String]
148
+ # This is always `sql#user`.
149
+ # @!attribute [rw] password
150
+ # @return [::String]
151
+ # The password for the user.
152
+ # @!attribute [rw] etag
153
+ # @return [::String]
154
+ # This field is deprecated and will be removed from a future version of the
155
+ # API.
156
+ # @!attribute [rw] name
157
+ # @return [::String]
158
+ # The name of the user in the Cloud SQL instance. Can be omitted for
159
+ # `update` because it is already specified in the URL.
160
+ # @!attribute [rw] host
161
+ # @return [::String]
162
+ # Optional. The host from which the user can connect. For `insert`
163
+ # operations, host defaults to an empty string. For `update`
164
+ # operations, host is specified as part of the request URL. The host name
165
+ # cannot be updated after insertion. For a MySQL instance, it's required;
166
+ # for a PostgreSQL or SQL Server instance, it's optional.
167
+ # @!attribute [rw] instance
168
+ # @return [::String]
169
+ # The name of the Cloud SQL instance. This does not include the project ID.
170
+ # Can be omitted for `update` because it is already specified on the
171
+ # URL.
172
+ # @!attribute [rw] project
173
+ # @return [::String]
174
+ # The project ID of the project containing the Cloud SQL database. The Google
175
+ # apps domain is prefixed if applicable. Can be omitted for `update` because
176
+ # it is already specified on the URL.
177
+ # @!attribute [rw] type
178
+ # @return [::Google::Cloud::Sql::V1::User::SqlUserType]
179
+ # The user type. It determines the method to authenticate the user during
180
+ # login. The default is the database's built-in user type.
181
+ # @!attribute [rw] sqlserver_user_details
182
+ # @return [::Google::Cloud::Sql::V1::SqlServerUserDetails]
183
+ # @!attribute [rw] iam_email
184
+ # @return [::String]
185
+ # Optional. The full email for an IAM user. For normal database users, this
186
+ # will not be filled. Only applicable to MySQL database users.
187
+ # @!attribute [rw] password_policy
188
+ # @return [::Google::Cloud::Sql::V1::UserPasswordValidationPolicy]
189
+ # User level password validation policy.
190
+ # @!attribute [rw] dual_password_type
191
+ # @return [::Google::Cloud::Sql::V1::User::DualPasswordType]
192
+ # Dual password status for the user.
193
+ # @!attribute [rw] iam_status
194
+ # @return [::Google::Cloud::Sql::V1::User::IamStatus]
195
+ # Indicates if a group is active or inactive for IAM database authentication.
196
+ # @!attribute [rw] database_roles
197
+ # @return [::Array<::String>]
198
+ # Optional. Role memberships of the user
199
+ class User
200
+ include ::Google::Protobuf::MessageExts
201
+ extend ::Google::Protobuf::MessageExts::ClassMethods
202
+
203
+ # The user type.
204
+ module SqlUserType
205
+ # The database's built-in user type.
206
+ BUILT_IN = 0
207
+
208
+ # Cloud IAM user.
209
+ CLOUD_IAM_USER = 1
210
+
211
+ # Cloud IAM service account.
212
+ CLOUD_IAM_SERVICE_ACCOUNT = 2
213
+
214
+ # Cloud IAM group. Not used for login.
215
+ CLOUD_IAM_GROUP = 3
216
+
217
+ # Read-only. Login for a user that belongs to the Cloud IAM group.
218
+ CLOUD_IAM_GROUP_USER = 4
219
+
220
+ # Read-only. Login for a service account that belongs to the
221
+ # Cloud IAM group.
222
+ CLOUD_IAM_GROUP_SERVICE_ACCOUNT = 5
223
+
224
+ # Microsoft Entra ID user.
225
+ ENTRAID_USER = 7
226
+ end
227
+
228
+ # The type of retained password.
229
+ module DualPasswordType
230
+ # The default value.
231
+ DUAL_PASSWORD_TYPE_UNSPECIFIED = 0
232
+
233
+ # Do not update the user's dual password status.
234
+ NO_MODIFY_DUAL_PASSWORD = 1
235
+
236
+ # No dual password usable for connecting using this user.
237
+ NO_DUAL_PASSWORD = 2
238
+
239
+ # Dual password usable for connecting using this user.
240
+ DUAL_PASSWORD = 3
241
+ end
242
+
243
+ # Indicates if a group is available for IAM database authentication.
244
+ module IamStatus
245
+ # The default value for users that are not of type CLOUD_IAM_GROUP.
246
+ # Only CLOUD_IAM_GROUP users will be inactive or active.
247
+ # Users with an IamStatus of IAM_STATUS_UNSPECIFIED will not
248
+ # display whether they are active or inactive as that is not applicable to
249
+ # them.
250
+ IAM_STATUS_UNSPECIFIED = 0
251
+
252
+ # INACTIVE indicates a group is not available for IAM database
253
+ # authentication.
254
+ INACTIVE = 1
255
+
256
+ # ACTIVE indicates a group is available for IAM database authentication.
257
+ ACTIVE = 2
258
+ end
259
+ end
260
+
261
+ # Represents a Sql Server user on the Cloud SQL instance.
262
+ # @!attribute [rw] disabled
263
+ # @return [::Boolean]
264
+ # If the user has been disabled
265
+ # @!attribute [rw] server_roles
266
+ # @return [::Array<::String>]
267
+ # The server roles for this user
268
+ class SqlServerUserDetails
269
+ include ::Google::Protobuf::MessageExts
270
+ extend ::Google::Protobuf::MessageExts::ClassMethods
271
+ end
272
+
273
+ # User list response.
274
+ # @!attribute [rw] kind
275
+ # @return [::String]
276
+ # This is always `sql#usersList`.
277
+ # @!attribute [rw] items
278
+ # @return [::Array<::Google::Cloud::Sql::V1::User>]
279
+ # List of user resources in the instance.
280
+ # @!attribute [rw] next_page_token
281
+ # @deprecated This field is deprecated and may be removed in the next major version update.
282
+ # @return [::String]
283
+ # Unused.
284
+ class UsersListResponse
285
+ include ::Google::Protobuf::MessageExts
286
+ extend ::Google::Protobuf::MessageExts::ClassMethods
287
+ end
288
+ end
289
+ end
290
+ end
291
+ 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