google-apis-cloudcontrolspartner_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,444 @@
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 CloudcontrolspartnerV1
23
+ # Cloud Controls Partner API
24
+ #
25
+ # Provides insights about your customers and their Assured Workloads based on
26
+ # your Sovereign Controls by Partners offering.
27
+ #
28
+ # @example
29
+ # require 'google/apis/cloudcontrolspartner_v1'
30
+ #
31
+ # Cloudcontrolspartner = Google::Apis::CloudcontrolspartnerV1 # Alias the module
32
+ # service = Cloudcontrolspartner::CloudControlsPartnerServiceService.new
33
+ #
34
+ # @see https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners/reference/rest
35
+ class CloudControlsPartnerServiceService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://cloudcontrolspartner.$UNIVERSE_DOMAIN$/"
37
+
38
+ # @return [String]
39
+ # API key. Your API key identifies your project and provides you with API access,
40
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
41
+ attr_accessor :key
42
+
43
+ # @return [String]
44
+ # Available to use for quota purposes for server-side applications. Can be any
45
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46
+ attr_accessor :quota_user
47
+
48
+ def initialize
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
50
+ client_name: 'google-apis-cloudcontrolspartner_v1',
51
+ client_version: Google::Apis::CloudcontrolspartnerV1::GEM_VERSION)
52
+ @batch_path = 'batch'
53
+ end
54
+
55
+ # Get details of a Partner.
56
+ # @param [String] name
57
+ # Required. Format: `organizations/`organization`/locations/`location`/partner`
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::Partner] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::CloudcontrolspartnerV1::Partner]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def get_organization_location_partner(name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'v1/{+name}', options)
77
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::Partner::Representation
78
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::Partner
79
+ command.params['name'] = name unless name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Gets details of a single customer
86
+ # @param [String] name
87
+ # Required. Format: `organizations/`organization`/locations/`location`/customers/
88
+ # `customer``
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
91
+ # @param [String] quota_user
92
+ # Available to use for quota purposes for server-side applications. Can be any
93
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::Customer] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::CloudcontrolspartnerV1::Customer]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def get_organization_location_customer(name, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'v1/{+name}', options)
108
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::Customer::Representation
109
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::Customer
110
+ command.params['name'] = name unless name.nil?
111
+ command.query['fields'] = fields unless fields.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # Lists customers of a partner identified by its Google Cloud organization ID
117
+ # @param [String] parent
118
+ # Required. Parent resource Format: `organizations/`organization`/locations/`
119
+ # location``
120
+ # @param [String] filter
121
+ # Optional. Filtering results
122
+ # @param [String] order_by
123
+ # Optional. Hint for how to order the results
124
+ # @param [Fixnum] page_size
125
+ # The maximum number of Customers to return. The service may return fewer than
126
+ # this value. If unspecified, at most 500 Customers will be returned.
127
+ # @param [String] page_token
128
+ # A page token, received from a previous `ListCustomers` call. Provide this to
129
+ # retrieve the subsequent page.
130
+ # @param [String] fields
131
+ # Selector specifying which fields to include in a partial response.
132
+ # @param [String] quota_user
133
+ # Available to use for quota purposes for server-side applications. Can be any
134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [Google::Apis::RequestOptions] options
136
+ # Request-specific options
137
+ #
138
+ # @yield [result, err] Result & error if block supplied
139
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::ListCustomersResponse] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::CloudcontrolspartnerV1::ListCustomersResponse]
143
+ #
144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
147
+ def list_organization_location_customers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:get, 'v1/{+parent}/customers', options)
149
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::ListCustomersResponse::Representation
150
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::ListCustomersResponse
151
+ command.params['parent'] = parent unless parent.nil?
152
+ command.query['filter'] = filter unless filter.nil?
153
+ command.query['orderBy'] = order_by unless order_by.nil?
154
+ command.query['pageSize'] = page_size unless page_size.nil?
155
+ command.query['pageToken'] = page_token unless page_token.nil?
156
+ command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
161
+ # Gets details of a single workload
162
+ # @param [String] name
163
+ # Required. Format: `organizations/`organization`/locations/`location`/customers/
164
+ # `customer`/workloads/`workload``
165
+ # @param [String] fields
166
+ # Selector specifying which fields to include in a partial response.
167
+ # @param [String] quota_user
168
+ # Available to use for quota purposes for server-side applications. Can be any
169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
170
+ # @param [Google::Apis::RequestOptions] options
171
+ # Request-specific options
172
+ #
173
+ # @yield [result, err] Result & error if block supplied
174
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::Workload] parsed result object
175
+ # @yieldparam err [StandardError] error object if request failed
176
+ #
177
+ # @return [Google::Apis::CloudcontrolspartnerV1::Workload]
178
+ #
179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
182
+ def get_organization_location_customer_workload(name, fields: nil, quota_user: nil, options: nil, &block)
183
+ command = make_simple_command(:get, 'v1/{+name}', options)
184
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::Workload::Representation
185
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::Workload
186
+ command.params['name'] = name unless name.nil?
187
+ command.query['fields'] = fields unless fields.nil?
188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
189
+ execute_or_queue_command(command, &block)
190
+ end
191
+
192
+ # Gets the EKM connections associated with a workload
193
+ # @param [String] name
194
+ # Required. Format: `organizations/`organization`/locations/`location`/customers/
195
+ # `customer`/workloads/`workload`/ekmConnections`
196
+ # @param [String] fields
197
+ # Selector specifying which fields to include in a partial response.
198
+ # @param [String] quota_user
199
+ # Available to use for quota purposes for server-side applications. Can be any
200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
201
+ # @param [Google::Apis::RequestOptions] options
202
+ # Request-specific options
203
+ #
204
+ # @yield [result, err] Result & error if block supplied
205
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::EkmConnections] parsed result object
206
+ # @yieldparam err [StandardError] error object if request failed
207
+ #
208
+ # @return [Google::Apis::CloudcontrolspartnerV1::EkmConnections]
209
+ #
210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
213
+ def get_organization_location_customer_workload_ekm_connections(name, fields: nil, quota_user: nil, options: nil, &block)
214
+ command = make_simple_command(:get, 'v1/{+name}', options)
215
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::EkmConnections::Representation
216
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::EkmConnections
217
+ command.params['name'] = name unless name.nil?
218
+ command.query['fields'] = fields unless fields.nil?
219
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
220
+ execute_or_queue_command(command, &block)
221
+ end
222
+
223
+ # Gets the partner permissions granted for a workload
224
+ # @param [String] name
225
+ # Required. Name of the resource to get in the format: `organizations/`
226
+ # organization`/locations/`location`/customers/`customer`/workloads/`workload`/
227
+ # partnerPermissions`
228
+ # @param [String] fields
229
+ # Selector specifying which fields to include in a partial response.
230
+ # @param [String] quota_user
231
+ # Available to use for quota purposes for server-side applications. Can be any
232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
233
+ # @param [Google::Apis::RequestOptions] options
234
+ # Request-specific options
235
+ #
236
+ # @yield [result, err] Result & error if block supplied
237
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::PartnerPermissions] parsed result object
238
+ # @yieldparam err [StandardError] error object if request failed
239
+ #
240
+ # @return [Google::Apis::CloudcontrolspartnerV1::PartnerPermissions]
241
+ #
242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
245
+ def get_organization_location_customer_workload_partner_permissions(name, fields: nil, quota_user: nil, options: nil, &block)
246
+ command = make_simple_command(:get, 'v1/{+name}', options)
247
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::PartnerPermissions::Representation
248
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::PartnerPermissions
249
+ command.params['name'] = name unless name.nil?
250
+ command.query['fields'] = fields unless fields.nil?
251
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
252
+ execute_or_queue_command(command, &block)
253
+ end
254
+
255
+ # Lists customer workloads for a given customer org id
256
+ # @param [String] parent
257
+ # Required. Parent resource Format: `organizations/`organization`/locations/`
258
+ # location`/customers/`customer``
259
+ # @param [String] filter
260
+ # Optional. Filtering results.
261
+ # @param [String] order_by
262
+ # Optional. Hint for how to order the results.
263
+ # @param [Fixnum] page_size
264
+ # The maximum number of workloads to return. The service may return fewer than
265
+ # this value. If unspecified, at most 500 workloads will be returned.
266
+ # @param [String] page_token
267
+ # A page token, received from a previous `ListWorkloads` call. Provide this to
268
+ # retrieve the subsequent page.
269
+ # @param [String] fields
270
+ # Selector specifying which fields to include in a partial response.
271
+ # @param [String] quota_user
272
+ # Available to use for quota purposes for server-side applications. Can be any
273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
274
+ # @param [Google::Apis::RequestOptions] options
275
+ # Request-specific options
276
+ #
277
+ # @yield [result, err] Result & error if block supplied
278
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::ListWorkloadsResponse] parsed result object
279
+ # @yieldparam err [StandardError] error object if request failed
280
+ #
281
+ # @return [Google::Apis::CloudcontrolspartnerV1::ListWorkloadsResponse]
282
+ #
283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
286
+ def list_organization_location_customer_workloads(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
287
+ command = make_simple_command(:get, 'v1/{+parent}/workloads', options)
288
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::ListWorkloadsResponse::Representation
289
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::ListWorkloadsResponse
290
+ command.params['parent'] = parent unless parent.nil?
291
+ command.query['filter'] = filter unless filter.nil?
292
+ command.query['orderBy'] = order_by unless order_by.nil?
293
+ command.query['pageSize'] = page_size unless page_size.nil?
294
+ command.query['pageToken'] = page_token unless page_token.nil?
295
+ command.query['fields'] = fields unless fields.nil?
296
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
297
+ execute_or_queue_command(command, &block)
298
+ end
299
+
300
+ # Lists access requests associated with a workload
301
+ # @param [String] parent
302
+ # Required. Parent resource Format: `organizations/`organization`/locations/`
303
+ # location`/customers/`customer`/workloads/`workload``
304
+ # @param [String] filter
305
+ # Optional. Filtering results.
306
+ # @param [String] order_by
307
+ # Optional. Hint for how to order the results.
308
+ # @param [Fixnum] page_size
309
+ # Optional. The maximum number of access requests to return. The service may
310
+ # return fewer than this value. If unspecified, at most 500 access requests will
311
+ # be returned.
312
+ # @param [String] page_token
313
+ # Optional. A page token, received from a previous `ListAccessApprovalRequests`
314
+ # call. Provide this to retrieve the subsequent page.
315
+ # @param [String] fields
316
+ # Selector specifying which fields to include in a partial response.
317
+ # @param [String] quota_user
318
+ # Available to use for quota purposes for server-side applications. Can be any
319
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
320
+ # @param [Google::Apis::RequestOptions] options
321
+ # Request-specific options
322
+ #
323
+ # @yield [result, err] Result & error if block supplied
324
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::ListAccessApprovalRequestsResponse] parsed result object
325
+ # @yieldparam err [StandardError] error object if request failed
326
+ #
327
+ # @return [Google::Apis::CloudcontrolspartnerV1::ListAccessApprovalRequestsResponse]
328
+ #
329
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
330
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
331
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
332
+ def list_organization_location_customer_workload_access_approval_requests(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
333
+ command = make_simple_command(:get, 'v1/{+parent}/accessApprovalRequests', options)
334
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::ListAccessApprovalRequestsResponse::Representation
335
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::ListAccessApprovalRequestsResponse
336
+ command.params['parent'] = parent unless parent.nil?
337
+ command.query['filter'] = filter unless filter.nil?
338
+ command.query['orderBy'] = order_by unless order_by.nil?
339
+ command.query['pageSize'] = page_size unless page_size.nil?
340
+ command.query['pageToken'] = page_token unless page_token.nil?
341
+ command.query['fields'] = fields unless fields.nil?
342
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
343
+ execute_or_queue_command(command, &block)
344
+ end
345
+
346
+ # Gets details of a single Violation.
347
+ # @param [String] name
348
+ # Required. Format: `organizations/`organization`/locations/`location`/customers/
349
+ # `customer`/workloads/`workload`/violations/`violation``
350
+ # @param [String] fields
351
+ # Selector specifying which fields to include in a partial response.
352
+ # @param [String] quota_user
353
+ # Available to use for quota purposes for server-side applications. Can be any
354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
355
+ # @param [Google::Apis::RequestOptions] options
356
+ # Request-specific options
357
+ #
358
+ # @yield [result, err] Result & error if block supplied
359
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::Violation] parsed result object
360
+ # @yieldparam err [StandardError] error object if request failed
361
+ #
362
+ # @return [Google::Apis::CloudcontrolspartnerV1::Violation]
363
+ #
364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
367
+ def get_organization_location_customer_workload_violation(name, fields: nil, quota_user: nil, options: nil, &block)
368
+ command = make_simple_command(:get, 'v1/{+name}', options)
369
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::Violation::Representation
370
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::Violation
371
+ command.params['name'] = name unless name.nil?
372
+ command.query['fields'] = fields unless fields.nil?
373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
374
+ execute_or_queue_command(command, &block)
375
+ end
376
+
377
+ # Lists Violations for a workload Callers may also choose to read across
378
+ # multiple Customers or for a single customer as per [AIP-159](https://google.
379
+ # aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard
380
+ # character instead of `customer` & `workload`. Format: `organizations/`
381
+ # organization`/locations/`location`/customers/`customer`/workloads/`workload``
382
+ # @param [String] parent
383
+ # Required. Parent resource Format `organizations/`organization`/locations/`
384
+ # location`/customers/`customer`/workloads/`workload``
385
+ # @param [String] filter
386
+ # Optional. Filtering results
387
+ # @param [String] interval_end_time
388
+ # Optional. Exclusive end of the interval. If specified, a Timestamp matching
389
+ # this interval will have to be before the end.
390
+ # @param [String] interval_start_time
391
+ # Optional. Inclusive start of the interval. If specified, a Timestamp matching
392
+ # this interval will have to be the same or after the start.
393
+ # @param [String] order_by
394
+ # Optional. Hint for how to order the results
395
+ # @param [Fixnum] page_size
396
+ # Optional. The maximum number of customers row to return. The service may
397
+ # return fewer than this value. If unspecified, at most 10 customers will be
398
+ # returned.
399
+ # @param [String] page_token
400
+ # Optional. A page token, received from a previous `ListViolations` call.
401
+ # Provide this to retrieve the subsequent page.
402
+ # @param [String] fields
403
+ # Selector specifying which fields to include in a partial response.
404
+ # @param [String] quota_user
405
+ # Available to use for quota purposes for server-side applications. Can be any
406
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
407
+ # @param [Google::Apis::RequestOptions] options
408
+ # Request-specific options
409
+ #
410
+ # @yield [result, err] Result & error if block supplied
411
+ # @yieldparam result [Google::Apis::CloudcontrolspartnerV1::ListViolationsResponse] parsed result object
412
+ # @yieldparam err [StandardError] error object if request failed
413
+ #
414
+ # @return [Google::Apis::CloudcontrolspartnerV1::ListViolationsResponse]
415
+ #
416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
419
+ def list_organization_location_customer_workload_violations(parent, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
420
+ command = make_simple_command(:get, 'v1/{+parent}/violations', options)
421
+ command.response_representation = Google::Apis::CloudcontrolspartnerV1::ListViolationsResponse::Representation
422
+ command.response_class = Google::Apis::CloudcontrolspartnerV1::ListViolationsResponse
423
+ command.params['parent'] = parent unless parent.nil?
424
+ command.query['filter'] = filter unless filter.nil?
425
+ command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
426
+ command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
427
+ command.query['orderBy'] = order_by unless order_by.nil?
428
+ command.query['pageSize'] = page_size unless page_size.nil?
429
+ command.query['pageToken'] = page_token unless page_token.nil?
430
+ command.query['fields'] = fields unless fields.nil?
431
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
432
+ execute_or_queue_command(command, &block)
433
+ end
434
+
435
+ protected
436
+
437
+ def apply_command_defaults(command)
438
+ command.query['key'] = key unless key.nil?
439
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
440
+ end
441
+ end
442
+ end
443
+ end
444
+ end
@@ -0,0 +1,37 @@
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/cloudcontrolspartner_v1/service.rb'
16
+ require 'google/apis/cloudcontrolspartner_v1/classes.rb'
17
+ require 'google/apis/cloudcontrolspartner_v1/representations.rb'
18
+ require 'google/apis/cloudcontrolspartner_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Controls Partner API
23
+ #
24
+ # Provides insights about your customers and their Assured Workloads based on
25
+ # your Sovereign Controls by Partners offering.
26
+ #
27
+ # @see https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners/reference/rest
28
+ module CloudcontrolspartnerV1
29
+ # Version of the Cloud Controls Partner API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1'
32
+
33
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ 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/cloudcontrolspartner_v1"
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-apis-cloudcontrolspartner_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: 2024-05-05 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.14.0
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.14.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 2.a
33
+ description: This is the simple REST client for Cloud Controls Partner API V1. Simple
34
+ REST clients are Ruby client libraries that provide access to Google services via
35
+ their 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 Cloud Controls Partner 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-cloudcontrolspartner_v1.rb
50
+ - lib/google/apis/cloudcontrolspartner_v1.rb
51
+ - lib/google/apis/cloudcontrolspartner_v1/classes.rb
52
+ - lib/google/apis/cloudcontrolspartner_v1/gem_version.rb
53
+ - lib/google/apis/cloudcontrolspartner_v1/representations.rb
54
+ - lib/google/apis/cloudcontrolspartner_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-cloudcontrolspartner_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudcontrolspartner_v1/v0.1.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudcontrolspartner_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.7'
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.5.6
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: Simple REST client for Cloud Controls Partner API V1
82
+ test_files: []