google-apis-privateca_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1439 @@
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 PrivatecaV1beta1
23
+ # Certificate Authority API
24
+ #
25
+ # The Certificate Authority Service API is a highly-available, scalable service
26
+ # that enables you to simplify and automate the management of private
27
+ # certificate authorities (CAs) while staying in control of your private keys."
28
+ #
29
+ # @example
30
+ # require 'google/apis/privateca_v1beta1'
31
+ #
32
+ # Privateca = Google::Apis::PrivatecaV1beta1 # Alias the module
33
+ # service = Privateca::CertificateAuthorityServiceService.new
34
+ #
35
+ # @see https://cloud.google.com/
36
+ class CertificateAuthorityServiceService < Google::Apis::Core::BaseService
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super('https://privateca.googleapis.com/', '',
49
+ client_name: 'google-apis-privateca_v1beta1',
50
+ client_version: Google::Apis::PrivatecaV1beta1::GEM_VERSION)
51
+ @batch_path = 'batch'
52
+ end
53
+
54
+ # Gets information about a location.
55
+ # @param [String] name
56
+ # Resource name for the location.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Location] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::PrivatecaV1beta1::Location]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
76
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Location::Representation
77
+ command.response_class = Google::Apis::PrivatecaV1beta1::Location
78
+ command.params['name'] = name unless name.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Lists information about the supported locations for this service.
85
+ # @param [String] name
86
+ # The resource that owns the locations collection, if applicable.
87
+ # @param [String] filter
88
+ # The standard list filter.
89
+ # @param [Fixnum] page_size
90
+ # The standard list page size.
91
+ # @param [String] page_token
92
+ # The standard list page token.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListLocationsResponse] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::PrivatecaV1beta1::ListLocationsResponse]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
112
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListLocationsResponse::Representation
113
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListLocationsResponse
114
+ command.params['name'] = name unless name.nil?
115
+ command.query['filter'] = filter unless filter.nil?
116
+ command.query['pageSize'] = page_size unless page_size.nil?
117
+ command.query['pageToken'] = page_token unless page_token.nil?
118
+ command.query['fields'] = fields unless fields.nil?
119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ execute_or_queue_command(command, &block)
121
+ end
122
+
123
+ # Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of
124
+ # type SUBORDINATE. After the parent Certificate Authority signs a certificate
125
+ # signing request from FetchCertificateAuthorityCsr, this method can complete
126
+ # the activation process.
127
+ # @param [String] name
128
+ # Required. The resource name for this CertificateAuthority in the format `
129
+ # projects/*/locations/*/certificateAuthorities/*`.
130
+ # @param [Google::Apis::PrivatecaV1beta1::ActivateCertificateAuthorityRequest] activate_certificate_authority_request_object
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # @param [Google::Apis::RequestOptions] options
137
+ # Request-specific options
138
+ #
139
+ # @yield [result, err] Result & error if block supplied
140
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
141
+ # @yieldparam err [StandardError] error object if request failed
142
+ #
143
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
144
+ #
145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
148
+ def activate_certificate_authority(name, activate_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:post, 'v1beta1/{+name}:activate', options)
150
+ command.request_representation = Google::Apis::PrivatecaV1beta1::ActivateCertificateAuthorityRequest::Representation
151
+ command.request_object = activate_certificate_authority_request_object
152
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
153
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
154
+ command.params['name'] = name unless name.nil?
155
+ command.query['fields'] = fields unless fields.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ execute_or_queue_command(command, &block)
158
+ end
159
+
160
+ # Create a new CertificateAuthority in a given Project and Location.
161
+ # @param [String] parent
162
+ # Required. The resource name of the location associated with the
163
+ # CertificateAuthorities, in the format `projects/*/locations/*`.
164
+ # @param [Google::Apis::PrivatecaV1beta1::CertificateAuthority] certificate_authority_object
165
+ # @param [String] certificate_authority_id
166
+ # Required. It must be unique within a location and match the regular expression
167
+ # `[a-zA-Z0-9_-]`1,63``
168
+ # @param [String] request_id
169
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
170
+ # you must retry your request, the server will know to ignore the request if it
171
+ # has already been completed. The server will guarantee that for at least 60
172
+ # minutes since the first request. For example, consider a situation where you
173
+ # make an initial request and t he request times out. If you make the request
174
+ # again with the same request ID, the server can check if original operation
175
+ # with the same request ID was received, and if so, will ignore the second
176
+ # request. This prevents clients from accidentally creating duplicate
177
+ # commitments. The request ID must be a valid UUID with the exception that zero
178
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
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::PrivatecaV1beta1::Operation] parsed result object
189
+ # @yieldparam err [StandardError] error object if request failed
190
+ #
191
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
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 create_project_location_certificate_authority(parent, certificate_authority_object = nil, certificate_authority_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
197
+ command = make_simple_command(:post, 'v1beta1/{+parent}/certificateAuthorities', options)
198
+ command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation
199
+ command.request_object = certificate_authority_object
200
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
201
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
202
+ command.params['parent'] = parent unless parent.nil?
203
+ command.query['certificateAuthorityId'] = certificate_authority_id unless certificate_authority_id.nil?
204
+ command.query['requestId'] = request_id unless request_id.nil?
205
+ command.query['fields'] = fields unless fields.nil?
206
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
207
+ execute_or_queue_command(command, &block)
208
+ end
209
+
210
+ # Disable a CertificateAuthority.
211
+ # @param [String] name
212
+ # Required. The resource name for this CertificateAuthority in the format `
213
+ # projects/*/locations/*/certificateAuthorities/*`.
214
+ # @param [Google::Apis::PrivatecaV1beta1::DisableCertificateAuthorityRequest] disable_certificate_authority_request_object
215
+ # @param [String] fields
216
+ # Selector specifying which fields to include in a partial response.
217
+ # @param [String] quota_user
218
+ # Available to use for quota purposes for server-side applications. Can be any
219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
220
+ # @param [Google::Apis::RequestOptions] options
221
+ # Request-specific options
222
+ #
223
+ # @yield [result, err] Result & error if block supplied
224
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
225
+ # @yieldparam err [StandardError] error object if request failed
226
+ #
227
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
228
+ #
229
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
232
+ def disable_certificate_authority(name, disable_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
233
+ command = make_simple_command(:post, 'v1beta1/{+name}:disable', options)
234
+ command.request_representation = Google::Apis::PrivatecaV1beta1::DisableCertificateAuthorityRequest::Representation
235
+ command.request_object = disable_certificate_authority_request_object
236
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
237
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
238
+ command.params['name'] = name unless name.nil?
239
+ command.query['fields'] = fields unless fields.nil?
240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
241
+ execute_or_queue_command(command, &block)
242
+ end
243
+
244
+ # Enable a CertificateAuthority.
245
+ # @param [String] name
246
+ # Required. The resource name for this CertificateAuthority in the format `
247
+ # projects/*/locations/*/certificateAuthorities/*`.
248
+ # @param [Google::Apis::PrivatecaV1beta1::EnableCertificateAuthorityRequest] enable_certificate_authority_request_object
249
+ # @param [String] fields
250
+ # Selector specifying which fields to include in a partial response.
251
+ # @param [String] quota_user
252
+ # Available to use for quota purposes for server-side applications. Can be any
253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
254
+ # @param [Google::Apis::RequestOptions] options
255
+ # Request-specific options
256
+ #
257
+ # @yield [result, err] Result & error if block supplied
258
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
259
+ # @yieldparam err [StandardError] error object if request failed
260
+ #
261
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
262
+ #
263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
266
+ def enable_certificate_authority(name, enable_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
267
+ command = make_simple_command(:post, 'v1beta1/{+name}:enable', options)
268
+ command.request_representation = Google::Apis::PrivatecaV1beta1::EnableCertificateAuthorityRequest::Representation
269
+ command.request_object = enable_certificate_authority_request_object
270
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
271
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
272
+ command.params['name'] = name unless name.nil?
273
+ command.query['fields'] = fields unless fields.nil?
274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
275
+ execute_or_queue_command(command, &block)
276
+ end
277
+
278
+ # Fetch a certificate signing request (CSR) from a CertificateAuthority that is
279
+ # in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be
280
+ # signed by the desired parent Certificate Authority, which could be another
281
+ # CertificateAuthority resource, or could be an on-prem certificate authority.
282
+ # See also ActivateCertificateAuthority.
283
+ # @param [String] name
284
+ # Required. The resource name for this CertificateAuthority in the format `
285
+ # projects/*/locations/*/certificateAuthorities/*`.
286
+ # @param [String] fields
287
+ # Selector specifying which fields to include in a partial response.
288
+ # @param [String] quota_user
289
+ # Available to use for quota purposes for server-side applications. Can be any
290
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
291
+ # @param [Google::Apis::RequestOptions] options
292
+ # Request-specific options
293
+ #
294
+ # @yield [result, err] Result & error if block supplied
295
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse] parsed result object
296
+ # @yieldparam err [StandardError] error object if request failed
297
+ #
298
+ # @return [Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse]
299
+ #
300
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
301
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
302
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
303
+ def fetch_project_location_certificate_authority(name, fields: nil, quota_user: nil, options: nil, &block)
304
+ command = make_simple_command(:get, 'v1beta1/{+name}:fetch', options)
305
+ command.response_representation = Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse::Representation
306
+ command.response_class = Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse
307
+ command.params['name'] = name unless name.nil?
308
+ command.query['fields'] = fields unless fields.nil?
309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Returns a CertificateAuthority.
314
+ # @param [String] name
315
+ # Required. The name of the CertificateAuthority to get.
316
+ # @param [String] fields
317
+ # Selector specifying which fields to include in a partial response.
318
+ # @param [String] quota_user
319
+ # Available to use for quota purposes for server-side applications. Can be any
320
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
321
+ # @param [Google::Apis::RequestOptions] options
322
+ # Request-specific options
323
+ #
324
+ # @yield [result, err] Result & error if block supplied
325
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::CertificateAuthority] parsed result object
326
+ # @yieldparam err [StandardError] error object if request failed
327
+ #
328
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateAuthority]
329
+ #
330
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
331
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
332
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
333
+ def get_project_location_certificate_authority(name, fields: nil, quota_user: nil, options: nil, &block)
334
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
335
+ command.response_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation
336
+ command.response_class = Google::Apis::PrivatecaV1beta1::CertificateAuthority
337
+ command.params['name'] = name unless name.nil?
338
+ command.query['fields'] = fields unless fields.nil?
339
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
340
+ execute_or_queue_command(command, &block)
341
+ end
342
+
343
+ # Gets the access control policy for a resource. Returns an empty policy if the
344
+ # resource exists and does not have a policy set.
345
+ # @param [String] resource
346
+ # REQUIRED: The resource for which the policy is being requested. See the
347
+ # operation documentation for the appropriate value for this field.
348
+ # @param [Fixnum] options_requested_policy_version
349
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
350
+ # 3. Requests specifying an invalid value will be rejected. Requests for
351
+ # policies with any conditional bindings must specify version 3. Policies
352
+ # without any conditional bindings may specify any valid value or leave the
353
+ # field unset. To learn which resources support conditions in their IAM policies,
354
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
355
+ # resource-policies).
356
+ # @param [String] fields
357
+ # Selector specifying which fields to include in a partial response.
358
+ # @param [String] quota_user
359
+ # Available to use for quota purposes for server-side applications. Can be any
360
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
361
+ # @param [Google::Apis::RequestOptions] options
362
+ # Request-specific options
363
+ #
364
+ # @yield [result, err] Result & error if block supplied
365
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
366
+ # @yieldparam err [StandardError] error object if request failed
367
+ #
368
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
369
+ #
370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
373
+ def get_project_location_certificate_authority_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
374
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
375
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
376
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
377
+ command.params['resource'] = resource unless resource.nil?
378
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
379
+ command.query['fields'] = fields unless fields.nil?
380
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
381
+ execute_or_queue_command(command, &block)
382
+ end
383
+
384
+ # Lists CertificateAuthorities.
385
+ # @param [String] parent
386
+ # Required. The resource name of the location associated with the
387
+ # CertificateAuthorities, in the format `projects/*/locations/*`.
388
+ # @param [String] filter
389
+ # Optional. Only include resources that match the filter in the response.
390
+ # @param [String] order_by
391
+ # Optional. Specify how the results should be sorted.
392
+ # @param [Fixnum] page_size
393
+ # Optional. Limit on the number of CertificateAuthorities to include in the
394
+ # response. Further CertificateAuthorities can subsequently be obtained by
395
+ # including the ListCertificateAuthoritiesResponse.next_page_token in a
396
+ # subsequent request. If unspecified, the server will pick an appropriate
397
+ # default.
398
+ # @param [String] page_token
399
+ # Optional. Pagination token, returned earlier via
400
+ # ListCertificateAuthoritiesResponse.next_page_token.
401
+ # @param [String] fields
402
+ # Selector specifying which fields to include in a partial response.
403
+ # @param [String] quota_user
404
+ # Available to use for quota purposes for server-side applications. Can be any
405
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
406
+ # @param [Google::Apis::RequestOptions] options
407
+ # Request-specific options
408
+ #
409
+ # @yield [result, err] Result & error if block supplied
410
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse] parsed result object
411
+ # @yieldparam err [StandardError] error object if request failed
412
+ #
413
+ # @return [Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse]
414
+ #
415
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
418
+ def list_project_location_certificate_authorities(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
419
+ command = make_simple_command(:get, 'v1beta1/{+parent}/certificateAuthorities', options)
420
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse::Representation
421
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse
422
+ command.params['parent'] = parent unless parent.nil?
423
+ command.query['filter'] = filter unless filter.nil?
424
+ command.query['orderBy'] = order_by unless order_by.nil?
425
+ command.query['pageSize'] = page_size unless page_size.nil?
426
+ command.query['pageToken'] = page_token unless page_token.nil?
427
+ command.query['fields'] = fields unless fields.nil?
428
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
429
+ execute_or_queue_command(command, &block)
430
+ end
431
+
432
+ # Update a CertificateAuthority.
433
+ # @param [String] name
434
+ # Output only. The resource name for this CertificateAuthority in the format `
435
+ # projects/*/locations/*/certificateAuthorities/*`.
436
+ # @param [Google::Apis::PrivatecaV1beta1::CertificateAuthority] certificate_authority_object
437
+ # @param [String] request_id
438
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
439
+ # you must retry your request, the server will know to ignore the request if it
440
+ # has already been completed. The server will guarantee that for at least 60
441
+ # minutes since the first request. For example, consider a situation where you
442
+ # make an initial request and t he request times out. If you make the request
443
+ # again with the same request ID, the server can check if original operation
444
+ # with the same request ID was received, and if so, will ignore the second
445
+ # request. This prevents clients from accidentally creating duplicate
446
+ # commitments. The request ID must be a valid UUID with the exception that zero
447
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
448
+ # @param [String] update_mask
449
+ # Required. A list of fields to be updated in this request.
450
+ # @param [String] fields
451
+ # Selector specifying which fields to include in a partial response.
452
+ # @param [String] quota_user
453
+ # Available to use for quota purposes for server-side applications. Can be any
454
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
455
+ # @param [Google::Apis::RequestOptions] options
456
+ # Request-specific options
457
+ #
458
+ # @yield [result, err] Result & error if block supplied
459
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
460
+ # @yieldparam err [StandardError] error object if request failed
461
+ #
462
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
463
+ #
464
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
465
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
466
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
467
+ def patch_project_location_certificate_authority(name, certificate_authority_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
468
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
469
+ command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation
470
+ command.request_object = certificate_authority_object
471
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
472
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
473
+ command.params['name'] = name unless name.nil?
474
+ command.query['requestId'] = request_id unless request_id.nil?
475
+ command.query['updateMask'] = update_mask unless update_mask.nil?
476
+ command.query['fields'] = fields unless fields.nil?
477
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
478
+ execute_or_queue_command(command, &block)
479
+ end
480
+
481
+ # Restore a CertificateAuthority that is scheduled for deletion.
482
+ # @param [String] name
483
+ # Required. The resource name for this CertificateAuthority in the format `
484
+ # projects/*/locations/*/certificateAuthorities/*`.
485
+ # @param [Google::Apis::PrivatecaV1beta1::RestoreCertificateAuthorityRequest] restore_certificate_authority_request_object
486
+ # @param [String] fields
487
+ # Selector specifying which fields to include in a partial response.
488
+ # @param [String] quota_user
489
+ # Available to use for quota purposes for server-side applications. Can be any
490
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
491
+ # @param [Google::Apis::RequestOptions] options
492
+ # Request-specific options
493
+ #
494
+ # @yield [result, err] Result & error if block supplied
495
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
499
+ #
500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
503
+ def restore_certificate_authority(name, restore_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
504
+ command = make_simple_command(:post, 'v1beta1/{+name}:restore', options)
505
+ command.request_representation = Google::Apis::PrivatecaV1beta1::RestoreCertificateAuthorityRequest::Representation
506
+ command.request_object = restore_certificate_authority_request_object
507
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
508
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
509
+ command.params['name'] = name unless name.nil?
510
+ command.query['fields'] = fields unless fields.nil?
511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
512
+ execute_or_queue_command(command, &block)
513
+ end
514
+
515
+ # Schedule a CertificateAuthority for deletion.
516
+ # @param [String] name
517
+ # Required. The resource name for this CertificateAuthority in the format `
518
+ # projects/*/locations/*/certificateAuthorities/*`.
519
+ # @param [Google::Apis::PrivatecaV1beta1::ScheduleDeleteCertificateAuthorityRequest] schedule_delete_certificate_authority_request_object
520
+ # @param [String] fields
521
+ # Selector specifying which fields to include in a partial response.
522
+ # @param [String] quota_user
523
+ # Available to use for quota purposes for server-side applications. Can be any
524
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
525
+ # @param [Google::Apis::RequestOptions] options
526
+ # Request-specific options
527
+ #
528
+ # @yield [result, err] Result & error if block supplied
529
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
530
+ # @yieldparam err [StandardError] error object if request failed
531
+ #
532
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
533
+ #
534
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
535
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
536
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
537
+ def schedule_delete_certificate_authority(name, schedule_delete_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
538
+ command = make_simple_command(:post, 'v1beta1/{+name}:scheduleDelete', options)
539
+ command.request_representation = Google::Apis::PrivatecaV1beta1::ScheduleDeleteCertificateAuthorityRequest::Representation
540
+ command.request_object = schedule_delete_certificate_authority_request_object
541
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
542
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
543
+ command.params['name'] = name unless name.nil?
544
+ command.query['fields'] = fields unless fields.nil?
545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
546
+ execute_or_queue_command(command, &block)
547
+ end
548
+
549
+ # Sets the access control policy on the specified resource. Replaces any
550
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
551
+ # PERMISSION_DENIED` errors.
552
+ # @param [String] resource
553
+ # REQUIRED: The resource for which the policy is being specified. See the
554
+ # operation documentation for the appropriate value for this field.
555
+ # @param [Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def set_certificate_authority_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
574
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
575
+ command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation
576
+ command.request_object = set_iam_policy_request_object
577
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
578
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
579
+ command.params['resource'] = resource unless resource.nil?
580
+ command.query['fields'] = fields unless fields.nil?
581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
582
+ execute_or_queue_command(command, &block)
583
+ end
584
+
585
+ # Returns permissions that a caller has on the specified resource. If the
586
+ # resource does not exist, this will return an empty set of permissions, not a `
587
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
588
+ # permission-aware UIs and command-line tools, not for authorization checking.
589
+ # This operation may "fail open" without warning.
590
+ # @param [String] resource
591
+ # REQUIRED: The resource for which the policy detail is being requested. See the
592
+ # operation documentation for the appropriate value for this field.
593
+ # @param [Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
594
+ # @param [String] fields
595
+ # Selector specifying which fields to include in a partial response.
596
+ # @param [String] quota_user
597
+ # Available to use for quota purposes for server-side applications. Can be any
598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
599
+ # @param [Google::Apis::RequestOptions] options
600
+ # Request-specific options
601
+ #
602
+ # @yield [result, err] Result & error if block supplied
603
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse] parsed result object
604
+ # @yieldparam err [StandardError] error object if request failed
605
+ #
606
+ # @return [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse]
607
+ #
608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
611
+ def test_certificate_authority_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
612
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
613
+ command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation
614
+ command.request_object = test_iam_permissions_request_object
615
+ command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation
616
+ command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
617
+ command.params['resource'] = resource unless resource.nil?
618
+ command.query['fields'] = fields unless fields.nil?
619
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
620
+ execute_or_queue_command(command, &block)
621
+ end
622
+
623
+ # Returns a CertificateRevocationList.
624
+ # @param [String] name
625
+ # Required. The name of the CertificateRevocationList to get.
626
+ # @param [String] fields
627
+ # Selector specifying which fields to include in a partial response.
628
+ # @param [String] quota_user
629
+ # Available to use for quota purposes for server-side applications. Can be any
630
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
631
+ # @param [Google::Apis::RequestOptions] options
632
+ # Request-specific options
633
+ #
634
+ # @yield [result, err] Result & error if block supplied
635
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::CertificateRevocationList] parsed result object
636
+ # @yieldparam err [StandardError] error object if request failed
637
+ #
638
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateRevocationList]
639
+ #
640
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
641
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
642
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
643
+ def get_project_location_certificate_authority_certificate_revocation_list(name, fields: nil, quota_user: nil, options: nil, &block)
644
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
645
+ command.response_representation = Google::Apis::PrivatecaV1beta1::CertificateRevocationList::Representation
646
+ command.response_class = Google::Apis::PrivatecaV1beta1::CertificateRevocationList
647
+ command.params['name'] = name unless name.nil?
648
+ command.query['fields'] = fields unless fields.nil?
649
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
650
+ execute_or_queue_command(command, &block)
651
+ end
652
+
653
+ # Gets the access control policy for a resource. Returns an empty policy if the
654
+ # resource exists and does not have a policy set.
655
+ # @param [String] resource
656
+ # REQUIRED: The resource for which the policy is being requested. See the
657
+ # operation documentation for the appropriate value for this field.
658
+ # @param [Fixnum] options_requested_policy_version
659
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
660
+ # 3. Requests specifying an invalid value will be rejected. Requests for
661
+ # policies with any conditional bindings must specify version 3. Policies
662
+ # without any conditional bindings may specify any valid value or leave the
663
+ # field unset. To learn which resources support conditions in their IAM policies,
664
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
665
+ # resource-policies).
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def get_project_location_certificate_authority_certificate_revocation_list_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
685
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
686
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
687
+ command.params['resource'] = resource unless resource.nil?
688
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
689
+ command.query['fields'] = fields unless fields.nil?
690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
691
+ execute_or_queue_command(command, &block)
692
+ end
693
+
694
+ # Lists CertificateRevocationLists.
695
+ # @param [String] parent
696
+ # Required. The resource name of the location associated with the
697
+ # CertificateRevocationLists, in the format `projects/*/locations/*/
698
+ # certificateauthorities/*`.
699
+ # @param [String] filter
700
+ # Optional. Only include resources that match the filter in the response.
701
+ # @param [String] order_by
702
+ # Optional. Specify how the results should be sorted.
703
+ # @param [Fixnum] page_size
704
+ # Optional. Limit on the number of CertificateRevocationLists to include in the
705
+ # response. Further CertificateRevocationLists can subsequently be obtained by
706
+ # including the ListCertificateRevocationListsResponse.next_page_token in a
707
+ # subsequent request. If unspecified, the server will pick an appropriate
708
+ # default.
709
+ # @param [String] page_token
710
+ # Optional. Pagination token, returned earlier via
711
+ # ListCertificateRevocationListsResponse.next_page_token.
712
+ # @param [String] fields
713
+ # Selector specifying which fields to include in a partial response.
714
+ # @param [String] quota_user
715
+ # Available to use for quota purposes for server-side applications. Can be any
716
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
717
+ # @param [Google::Apis::RequestOptions] options
718
+ # Request-specific options
719
+ #
720
+ # @yield [result, err] Result & error if block supplied
721
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse] parsed result object
722
+ # @yieldparam err [StandardError] error object if request failed
723
+ #
724
+ # @return [Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse]
725
+ #
726
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
727
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
728
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
729
+ def list_project_location_certificate_authority_certificate_revocation_lists(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
730
+ command = make_simple_command(:get, 'v1beta1/{+parent}/certificateRevocationLists', options)
731
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse::Representation
732
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse
733
+ command.params['parent'] = parent unless parent.nil?
734
+ command.query['filter'] = filter unless filter.nil?
735
+ command.query['orderBy'] = order_by unless order_by.nil?
736
+ command.query['pageSize'] = page_size unless page_size.nil?
737
+ command.query['pageToken'] = page_token unless page_token.nil?
738
+ command.query['fields'] = fields unless fields.nil?
739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
740
+ execute_or_queue_command(command, &block)
741
+ end
742
+
743
+ # Update a CertificateRevocationList.
744
+ # @param [String] name
745
+ # Output only. The resource path for this CertificateRevocationList in the
746
+ # format `projects/*/locations/*/certificateAuthorities/*/
747
+ # certificateRevocationLists/*`.
748
+ # @param [Google::Apis::PrivatecaV1beta1::CertificateRevocationList] certificate_revocation_list_object
749
+ # @param [String] request_id
750
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
751
+ # you must retry your request, the server will know to ignore the request if it
752
+ # has already been completed. The server will guarantee that for at least 60
753
+ # minutes since the first request. For example, consider a situation where you
754
+ # make an initial request and t he request times out. If you make the request
755
+ # again with the same request ID, the server can check if original operation
756
+ # with the same request ID was received, and if so, will ignore the second
757
+ # request. This prevents clients from accidentally creating duplicate
758
+ # commitments. The request ID must be a valid UUID with the exception that zero
759
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
760
+ # @param [String] update_mask
761
+ # Required. A list of fields to be updated in this request.
762
+ # @param [String] fields
763
+ # Selector specifying which fields to include in a partial response.
764
+ # @param [String] quota_user
765
+ # Available to use for quota purposes for server-side applications. Can be any
766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
767
+ # @param [Google::Apis::RequestOptions] options
768
+ # Request-specific options
769
+ #
770
+ # @yield [result, err] Result & error if block supplied
771
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
772
+ # @yieldparam err [StandardError] error object if request failed
773
+ #
774
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
775
+ #
776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
779
+ def patch_project_location_certificate_authority_certificate_revocation_list(name, certificate_revocation_list_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
780
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
781
+ command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateRevocationList::Representation
782
+ command.request_object = certificate_revocation_list_object
783
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
784
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
785
+ command.params['name'] = name unless name.nil?
786
+ command.query['requestId'] = request_id unless request_id.nil?
787
+ command.query['updateMask'] = update_mask unless update_mask.nil?
788
+ command.query['fields'] = fields unless fields.nil?
789
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
790
+ execute_or_queue_command(command, &block)
791
+ end
792
+
793
+ # Sets the access control policy on the specified resource. Replaces any
794
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
795
+ # PERMISSION_DENIED` errors.
796
+ # @param [String] resource
797
+ # REQUIRED: The resource for which the policy is being specified. See the
798
+ # operation documentation for the appropriate value for this field.
799
+ # @param [Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
800
+ # @param [String] fields
801
+ # Selector specifying which fields to include in a partial response.
802
+ # @param [String] quota_user
803
+ # Available to use for quota purposes for server-side applications. Can be any
804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
805
+ # @param [Google::Apis::RequestOptions] options
806
+ # Request-specific options
807
+ #
808
+ # @yield [result, err] Result & error if block supplied
809
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
810
+ # @yieldparam err [StandardError] error object if request failed
811
+ #
812
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
813
+ #
814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
817
+ def set_certificate_revocation_list_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
818
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
819
+ command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation
820
+ command.request_object = set_iam_policy_request_object
821
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
822
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
823
+ command.params['resource'] = resource unless resource.nil?
824
+ command.query['fields'] = fields unless fields.nil?
825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
826
+ execute_or_queue_command(command, &block)
827
+ end
828
+
829
+ # Returns permissions that a caller has on the specified resource. If the
830
+ # resource does not exist, this will return an empty set of permissions, not a `
831
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
832
+ # permission-aware UIs and command-line tools, not for authorization checking.
833
+ # This operation may "fail open" without warning.
834
+ # @param [String] resource
835
+ # REQUIRED: The resource for which the policy detail is being requested. See the
836
+ # operation documentation for the appropriate value for this field.
837
+ # @param [Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
838
+ # @param [String] fields
839
+ # Selector specifying which fields to include in a partial response.
840
+ # @param [String] quota_user
841
+ # Available to use for quota purposes for server-side applications. Can be any
842
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
843
+ # @param [Google::Apis::RequestOptions] options
844
+ # Request-specific options
845
+ #
846
+ # @yield [result, err] Result & error if block supplied
847
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse] parsed result object
848
+ # @yieldparam err [StandardError] error object if request failed
849
+ #
850
+ # @return [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse]
851
+ #
852
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
853
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
854
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
855
+ def test_certificate_revocation_list_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
856
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
857
+ command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation
858
+ command.request_object = test_iam_permissions_request_object
859
+ command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation
860
+ command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
861
+ command.params['resource'] = resource unless resource.nil?
862
+ command.query['fields'] = fields unless fields.nil?
863
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
864
+ execute_or_queue_command(command, &block)
865
+ end
866
+
867
+ # Create a new Certificate in a given Project, Location from a particular
868
+ # CertificateAuthority.
869
+ # @param [String] parent
870
+ # Required. The resource name of the location and CertificateAuthority
871
+ # associated with the Certificate, in the format `projects/*/locations/*/
872
+ # certificateAuthorities/*`.
873
+ # @param [Google::Apis::PrivatecaV1beta1::Certificate] certificate_object
874
+ # @param [String] certificate_id
875
+ # Optional. It must be unique within a location and match the regular expression
876
+ # `[a-zA-Z0-9_-]`1,63``. This field is required when using a
877
+ # CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is
878
+ # optional and its value is ignored otherwise.
879
+ # @param [String] request_id
880
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
881
+ # you must retry your request, the server will know to ignore the request if it
882
+ # has already been completed. The server will guarantee that for at least 60
883
+ # minutes since the first request. For example, consider a situation where you
884
+ # make an initial request and t he request times out. If you make the request
885
+ # again with the same request ID, the server can check if original operation
886
+ # with the same request ID was received, and if so, will ignore the second
887
+ # request. This prevents clients from accidentally creating duplicate
888
+ # commitments. The request ID must be a valid UUID with the exception that zero
889
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
890
+ # @param [String] fields
891
+ # Selector specifying which fields to include in a partial response.
892
+ # @param [String] quota_user
893
+ # Available to use for quota purposes for server-side applications. Can be any
894
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
895
+ # @param [Google::Apis::RequestOptions] options
896
+ # Request-specific options
897
+ #
898
+ # @yield [result, err] Result & error if block supplied
899
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Certificate] parsed result object
900
+ # @yieldparam err [StandardError] error object if request failed
901
+ #
902
+ # @return [Google::Apis::PrivatecaV1beta1::Certificate]
903
+ #
904
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
905
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
906
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
907
+ def create_project_location_certificate_authority_certificate(parent, certificate_object = nil, certificate_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
908
+ command = make_simple_command(:post, 'v1beta1/{+parent}/certificates', options)
909
+ command.request_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
910
+ command.request_object = certificate_object
911
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
912
+ command.response_class = Google::Apis::PrivatecaV1beta1::Certificate
913
+ command.params['parent'] = parent unless parent.nil?
914
+ command.query['certificateId'] = certificate_id unless certificate_id.nil?
915
+ command.query['requestId'] = request_id unless request_id.nil?
916
+ command.query['fields'] = fields unless fields.nil?
917
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
918
+ execute_or_queue_command(command, &block)
919
+ end
920
+
921
+ # Returns a Certificate.
922
+ # @param [String] name
923
+ # Required. The name of the Certificate to get.
924
+ # @param [String] fields
925
+ # Selector specifying which fields to include in a partial response.
926
+ # @param [String] quota_user
927
+ # Available to use for quota purposes for server-side applications. Can be any
928
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
929
+ # @param [Google::Apis::RequestOptions] options
930
+ # Request-specific options
931
+ #
932
+ # @yield [result, err] Result & error if block supplied
933
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Certificate] parsed result object
934
+ # @yieldparam err [StandardError] error object if request failed
935
+ #
936
+ # @return [Google::Apis::PrivatecaV1beta1::Certificate]
937
+ #
938
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
939
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
940
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
941
+ def get_project_location_certificate_authority_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
942
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
943
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
944
+ command.response_class = Google::Apis::PrivatecaV1beta1::Certificate
945
+ command.params['name'] = name unless name.nil?
946
+ command.query['fields'] = fields unless fields.nil?
947
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
948
+ execute_or_queue_command(command, &block)
949
+ end
950
+
951
+ # Lists Certificates.
952
+ # @param [String] parent
953
+ # Required. The resource name of the location associated with the Certificates,
954
+ # in the format `projects/*/locations/*/certificateauthorities/*`.
955
+ # @param [String] filter
956
+ # Optional. Only include resources that match the filter in the response. For
957
+ # details on supported filters and syntax, see [Certificates Filtering
958
+ # documentation](https://cloud.google.com/certificate-authority-service/docs/
959
+ # sorting-filtering-certificates#filtering_support).
960
+ # @param [String] order_by
961
+ # Optional. Specify how the results should be sorted. For details on supported
962
+ # fields and syntax, see [Certificates Sorting documentation](https://cloud.
963
+ # google.com/certificate-authority-service/docs/sorting-filtering-certificates#
964
+ # sorting_support).
965
+ # @param [Fixnum] page_size
966
+ # Optional. Limit on the number of Certificates to include in the response.
967
+ # Further Certificates can subsequently be obtained by including the
968
+ # ListCertificatesResponse.next_page_token in a subsequent request. If
969
+ # unspecified, the server will pick an appropriate default.
970
+ # @param [String] page_token
971
+ # Optional. Pagination token, returned earlier via ListCertificatesResponse.
972
+ # next_page_token.
973
+ # @param [String] fields
974
+ # Selector specifying which fields to include in a partial response.
975
+ # @param [String] quota_user
976
+ # Available to use for quota purposes for server-side applications. Can be any
977
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
978
+ # @param [Google::Apis::RequestOptions] options
979
+ # Request-specific options
980
+ #
981
+ # @yield [result, err] Result & error if block supplied
982
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListCertificatesResponse] parsed result object
983
+ # @yieldparam err [StandardError] error object if request failed
984
+ #
985
+ # @return [Google::Apis::PrivatecaV1beta1::ListCertificatesResponse]
986
+ #
987
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
988
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
989
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
990
+ def list_project_location_certificate_authority_certificates(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
991
+ command = make_simple_command(:get, 'v1beta1/{+parent}/certificates', options)
992
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificatesResponse::Representation
993
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificatesResponse
994
+ command.params['parent'] = parent unless parent.nil?
995
+ command.query['filter'] = filter unless filter.nil?
996
+ command.query['orderBy'] = order_by unless order_by.nil?
997
+ command.query['pageSize'] = page_size unless page_size.nil?
998
+ command.query['pageToken'] = page_token unless page_token.nil?
999
+ command.query['fields'] = fields unless fields.nil?
1000
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1001
+ execute_or_queue_command(command, &block)
1002
+ end
1003
+
1004
+ # Update a Certificate. Currently, the only field you can update is the labels
1005
+ # field.
1006
+ # @param [String] name
1007
+ # Output only. The resource path for this Certificate in the format `projects/*/
1008
+ # locations/*/certificateAuthorities/*/certificates/*`.
1009
+ # @param [Google::Apis::PrivatecaV1beta1::Certificate] certificate_object
1010
+ # @param [String] request_id
1011
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
1012
+ # you must retry your request, the server will know to ignore the request if it
1013
+ # has already been completed. The server will guarantee that for at least 60
1014
+ # minutes since the first request. For example, consider a situation where you
1015
+ # make an initial request and t he request times out. If you make the request
1016
+ # again with the same request ID, the server can check if original operation
1017
+ # with the same request ID was received, and if so, will ignore the second
1018
+ # request. This prevents clients from accidentally creating duplicate
1019
+ # commitments. The request ID must be a valid UUID with the exception that zero
1020
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1021
+ # @param [String] update_mask
1022
+ # Required. A list of fields to be updated in this request.
1023
+ # @param [String] fields
1024
+ # Selector specifying which fields to include in a partial response.
1025
+ # @param [String] quota_user
1026
+ # Available to use for quota purposes for server-side applications. Can be any
1027
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1028
+ # @param [Google::Apis::RequestOptions] options
1029
+ # Request-specific options
1030
+ #
1031
+ # @yield [result, err] Result & error if block supplied
1032
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Certificate] parsed result object
1033
+ # @yieldparam err [StandardError] error object if request failed
1034
+ #
1035
+ # @return [Google::Apis::PrivatecaV1beta1::Certificate]
1036
+ #
1037
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1038
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1039
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1040
+ def patch_project_location_certificate_authority_certificate(name, certificate_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1041
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1042
+ command.request_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
1043
+ command.request_object = certificate_object
1044
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
1045
+ command.response_class = Google::Apis::PrivatecaV1beta1::Certificate
1046
+ command.params['name'] = name unless name.nil?
1047
+ command.query['requestId'] = request_id unless request_id.nil?
1048
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1049
+ command.query['fields'] = fields unless fields.nil?
1050
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1051
+ execute_or_queue_command(command, &block)
1052
+ end
1053
+
1054
+ # Revoke a Certificate.
1055
+ # @param [String] name
1056
+ # Required. The resource name for this Certificate in the format `projects/*/
1057
+ # locations/*/certificateAuthorities/*/certificates/*`.
1058
+ # @param [Google::Apis::PrivatecaV1beta1::RevokeCertificateRequest] revoke_certificate_request_object
1059
+ # @param [String] fields
1060
+ # Selector specifying which fields to include in a partial response.
1061
+ # @param [String] quota_user
1062
+ # Available to use for quota purposes for server-side applications. Can be any
1063
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1064
+ # @param [Google::Apis::RequestOptions] options
1065
+ # Request-specific options
1066
+ #
1067
+ # @yield [result, err] Result & error if block supplied
1068
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Certificate] parsed result object
1069
+ # @yieldparam err [StandardError] error object if request failed
1070
+ #
1071
+ # @return [Google::Apis::PrivatecaV1beta1::Certificate]
1072
+ #
1073
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1074
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1075
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1076
+ def revoke_certificate(name, revoke_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1077
+ command = make_simple_command(:post, 'v1beta1/{+name}:revoke', options)
1078
+ command.request_representation = Google::Apis::PrivatecaV1beta1::RevokeCertificateRequest::Representation
1079
+ command.request_object = revoke_certificate_request_object
1080
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
1081
+ command.response_class = Google::Apis::PrivatecaV1beta1::Certificate
1082
+ command.params['name'] = name unless name.nil?
1083
+ command.query['fields'] = fields unless fields.nil?
1084
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1085
+ execute_or_queue_command(command, &block)
1086
+ end
1087
+
1088
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1089
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1090
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1091
+ # Clients can use Operations.GetOperation or other methods to check whether the
1092
+ # cancellation succeeded or whether the operation completed despite cancellation.
1093
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1094
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1095
+ # corresponding to `Code.CANCELLED`.
1096
+ # @param [String] name
1097
+ # The name of the operation resource to be cancelled.
1098
+ # @param [Google::Apis::PrivatecaV1beta1::CancelOperationRequest] cancel_operation_request_object
1099
+ # @param [String] fields
1100
+ # Selector specifying which fields to include in a partial response.
1101
+ # @param [String] quota_user
1102
+ # Available to use for quota purposes for server-side applications. Can be any
1103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1104
+ # @param [Google::Apis::RequestOptions] options
1105
+ # Request-specific options
1106
+ #
1107
+ # @yield [result, err] Result & error if block supplied
1108
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Empty] parsed result object
1109
+ # @yieldparam err [StandardError] error object if request failed
1110
+ #
1111
+ # @return [Google::Apis::PrivatecaV1beta1::Empty]
1112
+ #
1113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1116
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1117
+ command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
1118
+ command.request_representation = Google::Apis::PrivatecaV1beta1::CancelOperationRequest::Representation
1119
+ command.request_object = cancel_operation_request_object
1120
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Empty::Representation
1121
+ command.response_class = Google::Apis::PrivatecaV1beta1::Empty
1122
+ command.params['name'] = name unless name.nil?
1123
+ command.query['fields'] = fields unless fields.nil?
1124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1125
+ execute_or_queue_command(command, &block)
1126
+ end
1127
+
1128
+ # Deletes a long-running operation. This method indicates that the client is no
1129
+ # longer interested in the operation result. It does not cancel the operation.
1130
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1131
+ # UNIMPLEMENTED`.
1132
+ # @param [String] name
1133
+ # The name of the operation resource to be deleted.
1134
+ # @param [String] fields
1135
+ # Selector specifying which fields to include in a partial response.
1136
+ # @param [String] quota_user
1137
+ # Available to use for quota purposes for server-side applications. Can be any
1138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1139
+ # @param [Google::Apis::RequestOptions] options
1140
+ # Request-specific options
1141
+ #
1142
+ # @yield [result, err] Result & error if block supplied
1143
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Empty] parsed result object
1144
+ # @yieldparam err [StandardError] error object if request failed
1145
+ #
1146
+ # @return [Google::Apis::PrivatecaV1beta1::Empty]
1147
+ #
1148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1151
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1152
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1153
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Empty::Representation
1154
+ command.response_class = Google::Apis::PrivatecaV1beta1::Empty
1155
+ command.params['name'] = name unless name.nil?
1156
+ command.query['fields'] = fields unless fields.nil?
1157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1158
+ execute_or_queue_command(command, &block)
1159
+ end
1160
+
1161
+ # Gets the latest state of a long-running operation. Clients can use this method
1162
+ # to poll the operation result at intervals as recommended by the API service.
1163
+ # @param [String] name
1164
+ # The name of the operation resource.
1165
+ # @param [String] fields
1166
+ # Selector specifying which fields to include in a partial response.
1167
+ # @param [String] quota_user
1168
+ # Available to use for quota purposes for server-side applications. Can be any
1169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1170
+ # @param [Google::Apis::RequestOptions] options
1171
+ # Request-specific options
1172
+ #
1173
+ # @yield [result, err] Result & error if block supplied
1174
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
1175
+ # @yieldparam err [StandardError] error object if request failed
1176
+ #
1177
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
1178
+ #
1179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1182
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1183
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1184
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
1185
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
1186
+ command.params['name'] = name unless name.nil?
1187
+ command.query['fields'] = fields unless fields.nil?
1188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1189
+ execute_or_queue_command(command, &block)
1190
+ end
1191
+
1192
+ # Lists operations that match the specified filter in the request. If the server
1193
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1194
+ # binding allows API services to override the binding to use different resource
1195
+ # name schemes, such as `users/*/operations`. To override the binding, API
1196
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1197
+ # service configuration. For backwards compatibility, the default name includes
1198
+ # the operations collection id, however overriding users must ensure the name
1199
+ # binding is the parent resource, without the operations collection id.
1200
+ # @param [String] name
1201
+ # The name of the operation's parent resource.
1202
+ # @param [String] filter
1203
+ # The standard list filter.
1204
+ # @param [Fixnum] page_size
1205
+ # The standard list page size.
1206
+ # @param [String] page_token
1207
+ # The standard list page token.
1208
+ # @param [String] fields
1209
+ # Selector specifying which fields to include in a partial response.
1210
+ # @param [String] quota_user
1211
+ # Available to use for quota purposes for server-side applications. Can be any
1212
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1213
+ # @param [Google::Apis::RequestOptions] options
1214
+ # Request-specific options
1215
+ #
1216
+ # @yield [result, err] Result & error if block supplied
1217
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListOperationsResponse] parsed result object
1218
+ # @yieldparam err [StandardError] error object if request failed
1219
+ #
1220
+ # @return [Google::Apis::PrivatecaV1beta1::ListOperationsResponse]
1221
+ #
1222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1225
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1226
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
1227
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListOperationsResponse::Representation
1228
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListOperationsResponse
1229
+ command.params['name'] = name unless name.nil?
1230
+ command.query['filter'] = filter unless filter.nil?
1231
+ command.query['pageSize'] = page_size unless page_size.nil?
1232
+ command.query['pageToken'] = page_token unless page_token.nil?
1233
+ command.query['fields'] = fields unless fields.nil?
1234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1235
+ execute_or_queue_command(command, &block)
1236
+ end
1237
+
1238
+ # Returns a ReusableConfig.
1239
+ # @param [String] name
1240
+ # Required. The name of the ReusableConfigs to get.
1241
+ # @param [String] fields
1242
+ # Selector specifying which fields to include in a partial response.
1243
+ # @param [String] quota_user
1244
+ # Available to use for quota purposes for server-side applications. Can be any
1245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1246
+ # @param [Google::Apis::RequestOptions] options
1247
+ # Request-specific options
1248
+ #
1249
+ # @yield [result, err] Result & error if block supplied
1250
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ReusableConfig] parsed result object
1251
+ # @yieldparam err [StandardError] error object if request failed
1252
+ #
1253
+ # @return [Google::Apis::PrivatecaV1beta1::ReusableConfig]
1254
+ #
1255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1258
+ def get_project_location_reusable_config(name, fields: nil, quota_user: nil, options: nil, &block)
1259
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1260
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ReusableConfig::Representation
1261
+ command.response_class = Google::Apis::PrivatecaV1beta1::ReusableConfig
1262
+ command.params['name'] = name unless name.nil?
1263
+ command.query['fields'] = fields unless fields.nil?
1264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1265
+ execute_or_queue_command(command, &block)
1266
+ end
1267
+
1268
+ # Gets the access control policy for a resource. Returns an empty policy if the
1269
+ # resource exists and does not have a policy set.
1270
+ # @param [String] resource
1271
+ # REQUIRED: The resource for which the policy is being requested. See the
1272
+ # operation documentation for the appropriate value for this field.
1273
+ # @param [Fixnum] options_requested_policy_version
1274
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
1275
+ # 3. Requests specifying an invalid value will be rejected. Requests for
1276
+ # policies with any conditional bindings must specify version 3. Policies
1277
+ # without any conditional bindings may specify any valid value or leave the
1278
+ # field unset. To learn which resources support conditions in their IAM policies,
1279
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1280
+ # resource-policies).
1281
+ # @param [String] fields
1282
+ # Selector specifying which fields to include in a partial response.
1283
+ # @param [String] quota_user
1284
+ # Available to use for quota purposes for server-side applications. Can be any
1285
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1286
+ # @param [Google::Apis::RequestOptions] options
1287
+ # Request-specific options
1288
+ #
1289
+ # @yield [result, err] Result & error if block supplied
1290
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
1291
+ # @yieldparam err [StandardError] error object if request failed
1292
+ #
1293
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
1294
+ #
1295
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1296
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1297
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1298
+ def get_project_location_reusable_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1299
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
1300
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
1301
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
1302
+ command.params['resource'] = resource unless resource.nil?
1303
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1304
+ command.query['fields'] = fields unless fields.nil?
1305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1306
+ execute_or_queue_command(command, &block)
1307
+ end
1308
+
1309
+ # Lists ReusableConfigs.
1310
+ # @param [String] parent
1311
+ # Required. The resource name of the location associated with the
1312
+ # ReusableConfigs, in the format `projects/*/locations/*`.
1313
+ # @param [String] filter
1314
+ # Optional. Only include resources that match the filter in the response.
1315
+ # @param [String] order_by
1316
+ # Optional. Specify how the results should be sorted.
1317
+ # @param [Fixnum] page_size
1318
+ # Optional. Limit on the number of ReusableConfigs to include in the response.
1319
+ # Further ReusableConfigs can subsequently be obtained by including the
1320
+ # ListReusableConfigsResponse.next_page_token in a subsequent request. If
1321
+ # unspecified, the server will pick an appropriate default.
1322
+ # @param [String] page_token
1323
+ # Optional. Pagination token, returned earlier via ListReusableConfigsResponse.
1324
+ # next_page_token.
1325
+ # @param [String] fields
1326
+ # Selector specifying which fields to include in a partial response.
1327
+ # @param [String] quota_user
1328
+ # Available to use for quota purposes for server-side applications. Can be any
1329
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1330
+ # @param [Google::Apis::RequestOptions] options
1331
+ # Request-specific options
1332
+ #
1333
+ # @yield [result, err] Result & error if block supplied
1334
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse] parsed result object
1335
+ # @yieldparam err [StandardError] error object if request failed
1336
+ #
1337
+ # @return [Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse]
1338
+ #
1339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1342
+ def list_project_location_reusable_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1343
+ command = make_simple_command(:get, 'v1beta1/{+parent}/reusableConfigs', options)
1344
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse::Representation
1345
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse
1346
+ command.params['parent'] = parent unless parent.nil?
1347
+ command.query['filter'] = filter unless filter.nil?
1348
+ command.query['orderBy'] = order_by unless order_by.nil?
1349
+ command.query['pageSize'] = page_size unless page_size.nil?
1350
+ command.query['pageToken'] = page_token unless page_token.nil?
1351
+ command.query['fields'] = fields unless fields.nil?
1352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1353
+ execute_or_queue_command(command, &block)
1354
+ end
1355
+
1356
+ # Sets the access control policy on the specified resource. Replaces any
1357
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1358
+ # PERMISSION_DENIED` errors.
1359
+ # @param [String] resource
1360
+ # REQUIRED: The resource for which the policy is being specified. See the
1361
+ # operation documentation for the appropriate value for this field.
1362
+ # @param [Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
1363
+ # @param [String] fields
1364
+ # Selector specifying which fields to include in a partial response.
1365
+ # @param [String] quota_user
1366
+ # Available to use for quota purposes for server-side applications. Can be any
1367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1368
+ # @param [Google::Apis::RequestOptions] options
1369
+ # Request-specific options
1370
+ #
1371
+ # @yield [result, err] Result & error if block supplied
1372
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
1373
+ # @yieldparam err [StandardError] error object if request failed
1374
+ #
1375
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
1376
+ #
1377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1380
+ def set_reusable_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1381
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
1382
+ command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation
1383
+ command.request_object = set_iam_policy_request_object
1384
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
1385
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
1386
+ command.params['resource'] = resource unless resource.nil?
1387
+ command.query['fields'] = fields unless fields.nil?
1388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1389
+ execute_or_queue_command(command, &block)
1390
+ end
1391
+
1392
+ # Returns permissions that a caller has on the specified resource. If the
1393
+ # resource does not exist, this will return an empty set of permissions, not a `
1394
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1395
+ # permission-aware UIs and command-line tools, not for authorization checking.
1396
+ # This operation may "fail open" without warning.
1397
+ # @param [String] resource
1398
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1399
+ # operation documentation for the appropriate value for this field.
1400
+ # @param [Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
1401
+ # @param [String] fields
1402
+ # Selector specifying which fields to include in a partial response.
1403
+ # @param [String] quota_user
1404
+ # Available to use for quota purposes for server-side applications. Can be any
1405
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1406
+ # @param [Google::Apis::RequestOptions] options
1407
+ # Request-specific options
1408
+ #
1409
+ # @yield [result, err] Result & error if block supplied
1410
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse] parsed result object
1411
+ # @yieldparam err [StandardError] error object if request failed
1412
+ #
1413
+ # @return [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse]
1414
+ #
1415
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1416
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1417
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1418
+ def test_reusable_config_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1419
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
1420
+ command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation
1421
+ command.request_object = test_iam_permissions_request_object
1422
+ command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation
1423
+ command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
1424
+ command.params['resource'] = resource unless resource.nil?
1425
+ command.query['fields'] = fields unless fields.nil?
1426
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1427
+ execute_or_queue_command(command, &block)
1428
+ end
1429
+
1430
+ protected
1431
+
1432
+ def apply_command_defaults(command)
1433
+ command.query['key'] = key unless key.nil?
1434
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1435
+ end
1436
+ end
1437
+ end
1438
+ end
1439
+ end