google-cloud-cloud_quotas-v1beta 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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/LICENSE.md +201 -0
- data/README.md +154 -0
- data/lib/google/api/cloudquotas/v1beta/cloudquotas_pb.rb +58 -0
- data/lib/google/api/cloudquotas/v1beta/cloudquotas_services_pb.rb +62 -0
- data/lib/google/api/cloudquotas/v1beta/quota_adjuster_settings_pb.rb +54 -0
- data/lib/google/api/cloudquotas/v1beta/quota_adjuster_settings_services_pb.rb +52 -0
- data/lib/google/api/cloudquotas/v1beta/resources_pb.rb +59 -0
- data/lib/google/cloud/cloud_quotas/v1beta/cloud_quotas/client.rb +1030 -0
- data/lib/google/cloud/cloud_quotas/v1beta/cloud_quotas/credentials.rb +47 -0
- data/lib/google/cloud/cloud_quotas/v1beta/cloud_quotas/paths.rb +265 -0
- data/lib/google/cloud/cloud_quotas/v1beta/cloud_quotas/rest/client.rb +960 -0
- data/lib/google/cloud/cloud_quotas/v1beta/cloud_quotas/rest/service_stub.rb +537 -0
- data/lib/google/cloud/cloud_quotas/v1beta/cloud_quotas/rest.rb +58 -0
- data/lib/google/cloud/cloud_quotas/v1beta/cloud_quotas.rb +61 -0
- data/lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager/client.rb +564 -0
- data/lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager/credentials.rb +47 -0
- data/lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager/paths.rb +50 -0
- data/lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager/rest/client.rb +524 -0
- data/lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager/rest/service_stub.rb +204 -0
- data/lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager/rest.rb +57 -0
- data/lib/google/cloud/cloud_quotas/v1beta/quota_adjuster_settings_manager.rb +60 -0
- data/lib/google/cloud/cloud_quotas/v1beta/rest.rb +38 -0
- data/lib/google/cloud/cloud_quotas/v1beta/version.rb +28 -0
- data/lib/google/cloud/cloud_quotas/v1beta.rb +46 -0
- data/lib/google-cloud-cloud_quotas-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +459 -0
- data/proto_docs/google/api/cloudquotas/v1beta/cloudquotas.rb +193 -0
- data/proto_docs/google/api/cloudquotas/v1beta/quota_adjuster_settings.rb +89 -0
- data/proto_docs/google/api/cloudquotas/v1beta/resources.rb +348 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/protobuf/duration.rb +98 -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 +121 -0
- metadata +118 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module CloudQuotas
|
24
|
+
module V1beta
|
25
|
+
module CloudQuotas
|
26
|
+
# Credentials for the CloudQuotas API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,265 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 CloudQuotas
|
23
|
+
module V1beta
|
24
|
+
module CloudQuotas
|
25
|
+
# Path helper methods for the CloudQuotas API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Location resource string.
|
29
|
+
#
|
30
|
+
# @overload location_path(project:, location:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
#
|
38
|
+
# @overload location_path(folder:, location:)
|
39
|
+
# The resource will be in the following format:
|
40
|
+
#
|
41
|
+
# `folders/{folder}/locations/{location}`
|
42
|
+
#
|
43
|
+
# @param folder [String]
|
44
|
+
# @param location [String]
|
45
|
+
#
|
46
|
+
# @overload location_path(organization:, location:)
|
47
|
+
# The resource will be in the following format:
|
48
|
+
#
|
49
|
+
# `organizations/{organization}/locations/{location}`
|
50
|
+
#
|
51
|
+
# @param organization [String]
|
52
|
+
# @param location [String]
|
53
|
+
#
|
54
|
+
# @return [::String]
|
55
|
+
def location_path **args
|
56
|
+
resources = {
|
57
|
+
"location:project" => (proc do |project:, location:|
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}"
|
61
|
+
end),
|
62
|
+
"folder:location" => (proc do |folder:, location:|
|
63
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
64
|
+
|
65
|
+
"folders/#{folder}/locations/#{location}"
|
66
|
+
end),
|
67
|
+
"location:organization" => (proc do |organization:, location:|
|
68
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
69
|
+
|
70
|
+
"organizations/#{organization}/locations/#{location}"
|
71
|
+
end)
|
72
|
+
}
|
73
|
+
|
74
|
+
resource = resources[args.keys.sort.join(":")]
|
75
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
76
|
+
resource.call(**args)
|
77
|
+
end
|
78
|
+
|
79
|
+
##
|
80
|
+
# Create a fully-qualified QuotaInfo resource string.
|
81
|
+
#
|
82
|
+
# @overload quota_info_path(project:, location:, service:, quota_info:)
|
83
|
+
# The resource will be in the following format:
|
84
|
+
#
|
85
|
+
# `projects/{project}/locations/{location}/services/{service}/quotaInfos/{quota_info}`
|
86
|
+
#
|
87
|
+
# @param project [String]
|
88
|
+
# @param location [String]
|
89
|
+
# @param service [String]
|
90
|
+
# @param quota_info [String]
|
91
|
+
#
|
92
|
+
# @overload quota_info_path(folder:, location:, service:, quota_info:)
|
93
|
+
# The resource will be in the following format:
|
94
|
+
#
|
95
|
+
# `folders/{folder}/locations/{location}/services/{service}/quotaInfos/{quota_info}`
|
96
|
+
#
|
97
|
+
# @param folder [String]
|
98
|
+
# @param location [String]
|
99
|
+
# @param service [String]
|
100
|
+
# @param quota_info [String]
|
101
|
+
#
|
102
|
+
# @overload quota_info_path(organization:, location:, service:, quota_info:)
|
103
|
+
# The resource will be in the following format:
|
104
|
+
#
|
105
|
+
# `organizations/{organization}/locations/{location}/services/{service}/quotaInfos/{quota_info}`
|
106
|
+
#
|
107
|
+
# @param organization [String]
|
108
|
+
# @param location [String]
|
109
|
+
# @param service [String]
|
110
|
+
# @param quota_info [String]
|
111
|
+
#
|
112
|
+
# @return [::String]
|
113
|
+
def quota_info_path **args
|
114
|
+
resources = {
|
115
|
+
"location:project:quota_info:service" => (proc do |project:, location:, service:, quota_info:|
|
116
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
117
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
118
|
+
raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"
|
119
|
+
|
120
|
+
"projects/#{project}/locations/#{location}/services/#{service}/quotaInfos/#{quota_info}"
|
121
|
+
end),
|
122
|
+
"folder:location:quota_info:service" => (proc do |folder:, location:, service:, quota_info:|
|
123
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
124
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
125
|
+
raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"
|
126
|
+
|
127
|
+
"folders/#{folder}/locations/#{location}/services/#{service}/quotaInfos/#{quota_info}"
|
128
|
+
end),
|
129
|
+
"location:organization:quota_info:service" => (proc do |organization:, location:, service:, quota_info:|
|
130
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
131
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
132
|
+
raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"
|
133
|
+
|
134
|
+
"organizations/#{organization}/locations/#{location}/services/#{service}/quotaInfos/#{quota_info}"
|
135
|
+
end)
|
136
|
+
}
|
137
|
+
|
138
|
+
resource = resources[args.keys.sort.join(":")]
|
139
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
140
|
+
resource.call(**args)
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# Create a fully-qualified QuotaPreference resource string.
|
145
|
+
#
|
146
|
+
# @overload quota_preference_path(project:, location:, quota_preference:)
|
147
|
+
# The resource will be in the following format:
|
148
|
+
#
|
149
|
+
# `projects/{project}/locations/{location}/quotaPreferences/{quota_preference}`
|
150
|
+
#
|
151
|
+
# @param project [String]
|
152
|
+
# @param location [String]
|
153
|
+
# @param quota_preference [String]
|
154
|
+
#
|
155
|
+
# @overload quota_preference_path(folder:, location:, quota_preference:)
|
156
|
+
# The resource will be in the following format:
|
157
|
+
#
|
158
|
+
# `folders/{folder}/locations/{location}/quotaPreferences/{quota_preference}`
|
159
|
+
#
|
160
|
+
# @param folder [String]
|
161
|
+
# @param location [String]
|
162
|
+
# @param quota_preference [String]
|
163
|
+
#
|
164
|
+
# @overload quota_preference_path(organization:, location:, quota_preference:)
|
165
|
+
# The resource will be in the following format:
|
166
|
+
#
|
167
|
+
# `organizations/{organization}/locations/{location}/quotaPreferences/{quota_preference}`
|
168
|
+
#
|
169
|
+
# @param organization [String]
|
170
|
+
# @param location [String]
|
171
|
+
# @param quota_preference [String]
|
172
|
+
#
|
173
|
+
# @return [::String]
|
174
|
+
def quota_preference_path **args
|
175
|
+
resources = {
|
176
|
+
"location:project:quota_preference" => (proc do |project:, location:, quota_preference:|
|
177
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
178
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
179
|
+
|
180
|
+
"projects/#{project}/locations/#{location}/quotaPreferences/#{quota_preference}"
|
181
|
+
end),
|
182
|
+
"folder:location:quota_preference" => (proc do |folder:, location:, quota_preference:|
|
183
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
184
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
185
|
+
|
186
|
+
"folders/#{folder}/locations/#{location}/quotaPreferences/#{quota_preference}"
|
187
|
+
end),
|
188
|
+
"location:organization:quota_preference" => (proc do |organization:, location:, quota_preference:|
|
189
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
190
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
191
|
+
|
192
|
+
"organizations/#{organization}/locations/#{location}/quotaPreferences/#{quota_preference}"
|
193
|
+
end)
|
194
|
+
}
|
195
|
+
|
196
|
+
resource = resources[args.keys.sort.join(":")]
|
197
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
198
|
+
resource.call(**args)
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# Create a fully-qualified Service resource string.
|
203
|
+
#
|
204
|
+
# @overload service_path(project:, location:, service:)
|
205
|
+
# The resource will be in the following format:
|
206
|
+
#
|
207
|
+
# `projects/{project}/locations/{location}/services/{service}`
|
208
|
+
#
|
209
|
+
# @param project [String]
|
210
|
+
# @param location [String]
|
211
|
+
# @param service [String]
|
212
|
+
#
|
213
|
+
# @overload service_path(folder:, location:, service:)
|
214
|
+
# The resource will be in the following format:
|
215
|
+
#
|
216
|
+
# `folders/{folder}/locations/{location}/services/{service}`
|
217
|
+
#
|
218
|
+
# @param folder [String]
|
219
|
+
# @param location [String]
|
220
|
+
# @param service [String]
|
221
|
+
#
|
222
|
+
# @overload service_path(organization:, location:, service:)
|
223
|
+
# The resource will be in the following format:
|
224
|
+
#
|
225
|
+
# `organizations/{organization}/locations/{location}/services/{service}`
|
226
|
+
#
|
227
|
+
# @param organization [String]
|
228
|
+
# @param location [String]
|
229
|
+
# @param service [String]
|
230
|
+
#
|
231
|
+
# @return [::String]
|
232
|
+
def service_path **args
|
233
|
+
resources = {
|
234
|
+
"location:project:service" => (proc do |project:, location:, service:|
|
235
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
236
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
237
|
+
|
238
|
+
"projects/#{project}/locations/#{location}/services/#{service}"
|
239
|
+
end),
|
240
|
+
"folder:location:service" => (proc do |folder:, location:, service:|
|
241
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
242
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
243
|
+
|
244
|
+
"folders/#{folder}/locations/#{location}/services/#{service}"
|
245
|
+
end),
|
246
|
+
"location:organization:service" => (proc do |organization:, location:, service:|
|
247
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
248
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
249
|
+
|
250
|
+
"organizations/#{organization}/locations/#{location}/services/#{service}"
|
251
|
+
end)
|
252
|
+
}
|
253
|
+
|
254
|
+
resource = resources[args.keys.sort.join(":")]
|
255
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
256
|
+
resource.call(**args)
|
257
|
+
end
|
258
|
+
|
259
|
+
extend self
|
260
|
+
end
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
264
|
+
end
|
265
|
+
end
|