google-apis-workloadmanager_v1 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.
@@ -0,0 +1,442 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module WorkloadmanagerV1
23
+ # Workload Manager API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/workloadmanager_v1'
29
+ #
30
+ # Workloadmanager = Google::Apis::WorkloadmanagerV1 # Alias the module
31
+ # service = Workloadmanager::WorkloadManagerService.new
32
+ #
33
+ # @see https://cloud.google.com/workload-manager/docs
34
+ class WorkloadManagerService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://workloadmanager.googleapis.com/', '',
47
+ client_name: 'google-apis-workloadmanager_v1',
48
+ client_version: Google::Apis::WorkloadmanagerV1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Gets information about a location.
53
+ # @param [String] name
54
+ # Resource name for the location.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::Location] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::WorkloadmanagerV1::Location]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'v1/{+name}', options)
74
+ command.response_representation = Google::Apis::WorkloadmanagerV1::Location::Representation
75
+ command.response_class = Google::Apis::WorkloadmanagerV1::Location
76
+ command.params['name'] = name unless name.nil?
77
+ command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Lists information about the supported locations for this service.
83
+ # @param [String] name
84
+ # The resource that owns the locations collection, if applicable.
85
+ # @param [String] filter
86
+ # A filter to narrow down results to a preferred subset. The filtering language
87
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
88
+ # in [AIP-160](https://google.aip.dev/160).
89
+ # @param [Fixnum] page_size
90
+ # The maximum number of results to return. If not set, the service selects a
91
+ # default.
92
+ # @param [String] page_token
93
+ # A page token received from the `next_page_token` field in the response. Send
94
+ # that page token to receive the subsequent page.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
97
+ # @param [String] quota_user
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
100
+ # @param [Google::Apis::RequestOptions] options
101
+ # Request-specific options
102
+ #
103
+ # @yield [result, err] Result & error if block supplied
104
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::ListLocationsResponse] parsed result object
105
+ # @yieldparam err [StandardError] error object if request failed
106
+ #
107
+ # @return [Google::Apis::WorkloadmanagerV1::ListLocationsResponse]
108
+ #
109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
112
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
114
+ command.response_representation = Google::Apis::WorkloadmanagerV1::ListLocationsResponse::Representation
115
+ command.response_class = Google::Apis::WorkloadmanagerV1::ListLocationsResponse
116
+ command.params['name'] = name unless name.nil?
117
+ command.query['filter'] = filter unless filter.nil?
118
+ command.query['pageSize'] = page_size unless page_size.nil?
119
+ command.query['pageToken'] = page_token unless page_token.nil?
120
+ command.query['fields'] = fields unless fields.nil?
121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
124
+
125
+ # Creates a new Evaluation in a given project and location.
126
+ # @param [String] parent
127
+ # Required. The resource name of the evaluation location using the form: `
128
+ # projects/`project_id`/locations/`location_id`` where `location_id` refers to a
129
+ # GCP region.
130
+ # @param [Google::Apis::WorkloadmanagerV1::Evaluation] evaluation_object
131
+ # @param [String] evaluation_id
132
+ # Required. Id of the requesting object If auto-generating Id server-side,
133
+ # remove this field and evaluation_id from the method_signature of Create RPC
134
+ # @param [String] request_id
135
+ # Optional. An optional request ID to identify requests. Specify a unique
136
+ # request ID so that if you must retry your request, the server will know to
137
+ # ignore the request if it has already been completed. The server will guarantee
138
+ # that for at least 60 minutes since the first request. For example, consider a
139
+ # situation where you make an initial request and t he request times out. If you
140
+ # make the request again with the same request ID, the server can check if
141
+ # original operation with the same request ID was received, and if so, will
142
+ # ignore the second request. This prevents clients from accidentally creating
143
+ # duplicate commitments. The request ID must be a valid UUID with the exception
144
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
145
+ # @param [String] fields
146
+ # Selector specifying which fields to include in a partial response.
147
+ # @param [String] quota_user
148
+ # Available to use for quota purposes for server-side applications. Can be any
149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
150
+ # @param [Google::Apis::RequestOptions] options
151
+ # Request-specific options
152
+ #
153
+ # @yield [result, err] Result & error if block supplied
154
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::Operation] parsed result object
155
+ # @yieldparam err [StandardError] error object if request failed
156
+ #
157
+ # @return [Google::Apis::WorkloadmanagerV1::Operation]
158
+ #
159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
162
+ def create_project_location_evaluation(parent, evaluation_object = nil, evaluation_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
163
+ command = make_simple_command(:post, 'v1/{+parent}/evaluations', options)
164
+ command.request_representation = Google::Apis::WorkloadmanagerV1::Evaluation::Representation
165
+ command.request_object = evaluation_object
166
+ command.response_representation = Google::Apis::WorkloadmanagerV1::Operation::Representation
167
+ command.response_class = Google::Apis::WorkloadmanagerV1::Operation
168
+ command.params['parent'] = parent unless parent.nil?
169
+ command.query['evaluationId'] = evaluation_id unless evaluation_id.nil?
170
+ command.query['requestId'] = request_id unless request_id.nil?
171
+ command.query['fields'] = fields unless fields.nil?
172
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
173
+ execute_or_queue_command(command, &block)
174
+ end
175
+
176
+ # Gets details of a single Evaluation.
177
+ # @param [String] name
178
+ # Required. Name of the resource
179
+ # @param [String] fields
180
+ # Selector specifying which fields to include in a partial response.
181
+ # @param [String] quota_user
182
+ # Available to use for quota purposes for server-side applications. Can be any
183
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
184
+ # @param [Google::Apis::RequestOptions] options
185
+ # Request-specific options
186
+ #
187
+ # @yield [result, err] Result & error if block supplied
188
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::Evaluation] parsed result object
189
+ # @yieldparam err [StandardError] error object if request failed
190
+ #
191
+ # @return [Google::Apis::WorkloadmanagerV1::Evaluation]
192
+ #
193
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
196
+ def get_project_location_evaluation(name, fields: nil, quota_user: nil, options: nil, &block)
197
+ command = make_simple_command(:get, 'v1/{+name}', options)
198
+ command.response_representation = Google::Apis::WorkloadmanagerV1::Evaluation::Representation
199
+ command.response_class = Google::Apis::WorkloadmanagerV1::Evaluation
200
+ command.params['name'] = name unless name.nil?
201
+ command.query['fields'] = fields unless fields.nil?
202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
203
+ execute_or_queue_command(command, &block)
204
+ end
205
+
206
+ # Lists Evaluations in a given project and location.
207
+ # @param [String] parent
208
+ # Required. Parent value for ListEvaluationsRequest
209
+ # @param [String] filter
210
+ # Filtering results
211
+ # @param [String] order_by
212
+ # Hint for how to order the results
213
+ # @param [Fixnum] page_size
214
+ # Requested page size. Server may return fewer items than requested. If
215
+ # unspecified, server will pick an appropriate default.
216
+ # @param [String] page_token
217
+ # A token identifying a page of results the server should return.
218
+ # @param [String] fields
219
+ # Selector specifying which fields to include in a partial response.
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::ListEvaluationsResponse] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::WorkloadmanagerV1::ListEvaluationsResponse]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def list_project_location_evaluations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:get, 'v1/{+parent}/evaluations', options)
237
+ command.response_representation = Google::Apis::WorkloadmanagerV1::ListEvaluationsResponse::Representation
238
+ command.response_class = Google::Apis::WorkloadmanagerV1::ListEvaluationsResponse
239
+ command.params['parent'] = parent unless parent.nil?
240
+ command.query['filter'] = filter unless filter.nil?
241
+ command.query['orderBy'] = order_by unless order_by.nil?
242
+ command.query['pageSize'] = page_size unless page_size.nil?
243
+ command.query['pageToken'] = page_token unless page_token.nil?
244
+ command.query['fields'] = fields unless fields.nil?
245
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
246
+ execute_or_queue_command(command, &block)
247
+ end
248
+
249
+ # Write the data insights to workload manager data warehouse.
250
+ # @param [String] location
251
+ # Required. The GCP location. The format is: projects/`project`/locations/`
252
+ # location`.
253
+ # @param [Google::Apis::WorkloadmanagerV1::WriteInsightRequest] write_insight_request_object
254
+ # @param [String] fields
255
+ # Selector specifying which fields to include in a partial response.
256
+ # @param [String] quota_user
257
+ # Available to use for quota purposes for server-side applications. Can be any
258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
259
+ # @param [Google::Apis::RequestOptions] options
260
+ # Request-specific options
261
+ #
262
+ # @yield [result, err] Result & error if block supplied
263
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::WriteInsightResponse] parsed result object
264
+ # @yieldparam err [StandardError] error object if request failed
265
+ #
266
+ # @return [Google::Apis::WorkloadmanagerV1::WriteInsightResponse]
267
+ #
268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
271
+ def write_insight(location, write_insight_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
272
+ command = make_simple_command(:post, 'v1/{+location}/insights:writeInsight', options)
273
+ command.request_representation = Google::Apis::WorkloadmanagerV1::WriteInsightRequest::Representation
274
+ command.request_object = write_insight_request_object
275
+ command.response_representation = Google::Apis::WorkloadmanagerV1::WriteInsightResponse::Representation
276
+ command.response_class = Google::Apis::WorkloadmanagerV1::WriteInsightResponse
277
+ command.params['location'] = location unless location.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ execute_or_queue_command(command, &block)
281
+ end
282
+
283
+ # Starts asynchronous cancellation on a long-running operation. The server makes
284
+ # a best effort to cancel the operation, but success is not guaranteed. If the
285
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
286
+ # Clients can use Operations.GetOperation or other methods to check whether the
287
+ # cancellation succeeded or whether the operation completed despite cancellation.
288
+ # On successful cancellation, the operation is not deleted; instead, it becomes
289
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
290
+ # corresponding to `Code.CANCELLED`.
291
+ # @param [String] name
292
+ # The name of the operation resource to be cancelled.
293
+ # @param [Google::Apis::WorkloadmanagerV1::CancelOperationRequest] cancel_operation_request_object
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
+ # @param [String] quota_user
297
+ # Available to use for quota purposes for server-side applications. Can be any
298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # @param [Google::Apis::RequestOptions] options
300
+ # Request-specific options
301
+ #
302
+ # @yield [result, err] Result & error if block supplied
303
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::Empty] parsed result object
304
+ # @yieldparam err [StandardError] error object if request failed
305
+ #
306
+ # @return [Google::Apis::WorkloadmanagerV1::Empty]
307
+ #
308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
311
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
312
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
313
+ command.request_representation = Google::Apis::WorkloadmanagerV1::CancelOperationRequest::Representation
314
+ command.request_object = cancel_operation_request_object
315
+ command.response_representation = Google::Apis::WorkloadmanagerV1::Empty::Representation
316
+ command.response_class = Google::Apis::WorkloadmanagerV1::Empty
317
+ command.params['name'] = name unless name.nil?
318
+ command.query['fields'] = fields unless fields.nil?
319
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
320
+ execute_or_queue_command(command, &block)
321
+ end
322
+
323
+ # Deletes a long-running operation. This method indicates that the client is no
324
+ # longer interested in the operation result. It does not cancel the operation.
325
+ # If the server doesn't support this method, it returns `google.rpc.Code.
326
+ # UNIMPLEMENTED`.
327
+ # @param [String] name
328
+ # The name of the operation resource to be deleted.
329
+ # @param [String] fields
330
+ # Selector specifying which fields to include in a partial response.
331
+ # @param [String] quota_user
332
+ # Available to use for quota purposes for server-side applications. Can be any
333
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
334
+ # @param [Google::Apis::RequestOptions] options
335
+ # Request-specific options
336
+ #
337
+ # @yield [result, err] Result & error if block supplied
338
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::Empty] parsed result object
339
+ # @yieldparam err [StandardError] error object if request failed
340
+ #
341
+ # @return [Google::Apis::WorkloadmanagerV1::Empty]
342
+ #
343
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
344
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
345
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
346
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
347
+ command = make_simple_command(:delete, 'v1/{+name}', options)
348
+ command.response_representation = Google::Apis::WorkloadmanagerV1::Empty::Representation
349
+ command.response_class = Google::Apis::WorkloadmanagerV1::Empty
350
+ command.params['name'] = name unless name.nil?
351
+ command.query['fields'] = fields unless fields.nil?
352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
353
+ execute_or_queue_command(command, &block)
354
+ end
355
+
356
+ # Gets the latest state of a long-running operation. Clients can use this method
357
+ # to poll the operation result at intervals as recommended by the API service.
358
+ # @param [String] name
359
+ # The name of the operation resource.
360
+ # @param [String] fields
361
+ # Selector specifying which fields to include in a partial response.
362
+ # @param [String] quota_user
363
+ # Available to use for quota purposes for server-side applications. Can be any
364
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
365
+ # @param [Google::Apis::RequestOptions] options
366
+ # Request-specific options
367
+ #
368
+ # @yield [result, err] Result & error if block supplied
369
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::Operation] parsed result object
370
+ # @yieldparam err [StandardError] error object if request failed
371
+ #
372
+ # @return [Google::Apis::WorkloadmanagerV1::Operation]
373
+ #
374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
377
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
378
+ command = make_simple_command(:get, 'v1/{+name}', options)
379
+ command.response_representation = Google::Apis::WorkloadmanagerV1::Operation::Representation
380
+ command.response_class = Google::Apis::WorkloadmanagerV1::Operation
381
+ command.params['name'] = name unless name.nil?
382
+ command.query['fields'] = fields unless fields.nil?
383
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
384
+ execute_or_queue_command(command, &block)
385
+ end
386
+
387
+ # Lists operations that match the specified filter in the request. If the server
388
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
389
+ # binding allows API services to override the binding to use different resource
390
+ # name schemes, such as `users/*/operations`. To override the binding, API
391
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
392
+ # service configuration. For backwards compatibility, the default name includes
393
+ # the operations collection id, however overriding users must ensure the name
394
+ # binding is the parent resource, without the operations collection id.
395
+ # @param [String] name
396
+ # The name of the operation's parent resource.
397
+ # @param [String] filter
398
+ # The standard list filter.
399
+ # @param [Fixnum] page_size
400
+ # The standard list page size.
401
+ # @param [String] page_token
402
+ # The standard list page token.
403
+ # @param [String] fields
404
+ # Selector specifying which fields to include in a partial response.
405
+ # @param [String] quota_user
406
+ # Available to use for quota purposes for server-side applications. Can be any
407
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
408
+ # @param [Google::Apis::RequestOptions] options
409
+ # Request-specific options
410
+ #
411
+ # @yield [result, err] Result & error if block supplied
412
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::ListOperationsResponse] parsed result object
413
+ # @yieldparam err [StandardError] error object if request failed
414
+ #
415
+ # @return [Google::Apis::WorkloadmanagerV1::ListOperationsResponse]
416
+ #
417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
420
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
421
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
422
+ command.response_representation = Google::Apis::WorkloadmanagerV1::ListOperationsResponse::Representation
423
+ command.response_class = Google::Apis::WorkloadmanagerV1::ListOperationsResponse
424
+ command.params['name'] = name unless name.nil?
425
+ command.query['filter'] = filter unless filter.nil?
426
+ command.query['pageSize'] = page_size unless page_size.nil?
427
+ command.query['pageToken'] = page_token unless page_token.nil?
428
+ command.query['fields'] = fields unless fields.nil?
429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
430
+ execute_or_queue_command(command, &block)
431
+ end
432
+
433
+ protected
434
+
435
+ def apply_command_defaults(command)
436
+ command.query['key'] = key unless key.nil?
437
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
438
+ end
439
+ end
440
+ end
441
+ end
442
+ end
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/workloadmanager_v1/service.rb'
16
+ require 'google/apis/workloadmanager_v1/classes.rb'
17
+ require 'google/apis/workloadmanager_v1/representations.rb'
18
+ require 'google/apis/workloadmanager_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Workload Manager API
23
+ #
24
+ #
25
+ #
26
+ # @see https://cloud.google.com/workload-manager/docs
27
+ module WorkloadmanagerV1
28
+ # Version of the Workload Manager API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
31
+
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/workloadmanager_v1"
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-apis-workloadmanager_v1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-apis-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.1
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.9.1
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 2.a
33
+ description: This is the simple REST client for Workload Manager API V1. Simple REST
34
+ clients are Ruby client libraries that provide access to Google services via their
35
+ HTTP REST API endpoints. These libraries are generated and updated automatically
36
+ based on the discovery documents published by the service, and they handle most
37
+ concerns such as authentication, pagination, retry, timeouts, and logging. You can
38
+ use this client to access the Workload Manager API, but note that some services
39
+ may provide a separate modern client that is easier to use.
40
+ email: googleapis-packages@google.com
41
+ executables: []
42
+ extensions: []
43
+ extra_rdoc_files: []
44
+ files:
45
+ - ".yardopts"
46
+ - CHANGELOG.md
47
+ - LICENSE.md
48
+ - OVERVIEW.md
49
+ - lib/google-apis-workloadmanager_v1.rb
50
+ - lib/google/apis/workloadmanager_v1.rb
51
+ - lib/google/apis/workloadmanager_v1/classes.rb
52
+ - lib/google/apis/workloadmanager_v1/gem_version.rb
53
+ - lib/google/apis/workloadmanager_v1/representations.rb
54
+ - lib/google/apis/workloadmanager_v1/service.rb
55
+ homepage: https://github.com/google/google-api-ruby-client
56
+ licenses:
57
+ - Apache-2.0
58
+ metadata:
59
+ bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workloadmanager_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workloadmanager_v1/v0.1.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workloadmanager_v1
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '2.5'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubygems_version: 3.3.14
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: Simple REST client for Workload Manager API V1
82
+ test_files: []