Class: Google::Apis::PrivatecaV1beta1::CertificateAuthorityServiceService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::PrivatecaV1beta1::CertificateAuthorityServiceService
- Defined in:
- lib/google/apis/privateca_v1beta1/service.rb
Overview
Certificate Authority API
The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys."
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#activate_certificate_authority(name, activate_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_certificate_authority(parent, certificate_authority_object = nil, certificate_authority_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Create a new CertificateAuthority in a given Project and Location.
-
#create_project_location_certificate_authority_certificate(parent, certificate_object = nil, certificate_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Certificate
Create a new Certificate in a given Project, Location from a particular CertificateAuthority.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Empty
Deletes a long-running operation.
-
#disable_certificate_authority(name, disable_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Disable a CertificateAuthority.
-
#enable_certificate_authority(name, enable_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Enable a CertificateAuthority.
-
#fetch_project_location_certificate_authority(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse
Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Location
Gets information about a location.
-
#get_project_location_certificate_authority(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::CertificateAuthority
Returns a CertificateAuthority.
-
#get_project_location_certificate_authority_certificate(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Certificate
Returns a Certificate.
-
#get_project_location_certificate_authority_certificate_revocation_list(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::CertificateRevocationList
Returns a CertificateRevocationList.
-
#get_project_location_certificate_authority_certificate_revocation_list_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Gets the access control policy for a resource.
-
#get_project_location_certificate_authority_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Gets the access control policy for a resource.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_reusable_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ReusableConfig
Returns a ReusableConfig.
-
#get_project_location_reusable_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Gets the access control policy for a resource.
-
#initialize ⇒ CertificateAuthorityServiceService
constructor
A new instance of CertificateAuthorityServiceService.
-
#list_project_location_certificate_authorities(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse
Lists CertificateAuthorities.
-
#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) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse
Lists CertificateRevocationLists.
-
#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) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListCertificatesResponse
Lists Certificates.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_reusable_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse
Lists ReusableConfigs.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_certificate_authority(name, certificate_authority_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Update a CertificateAuthority.
-
#patch_project_location_certificate_authority_certificate(name, certificate_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Certificate
Update a Certificate.
-
#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) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Update a CertificateRevocationList.
-
#restore_certificate_authority(name, restore_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Restore a CertificateAuthority that is scheduled for deletion.
-
#revoke_certificate(name, revoke_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Certificate
Revoke a Certificate.
-
#schedule_delete_certificate_authority(name, schedule_delete_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Schedule a CertificateAuthority for deletion.
-
#set_certificate_authority_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Sets the access control policy on the specified resource.
-
#set_certificate_revocation_list_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Sets the access control policy on the specified resource.
-
#set_reusable_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Sets the access control policy on the specified resource.
-
#test_certificate_authority_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_certificate_revocation_list_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_reusable_config_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
Constructor Details
#initialize ⇒ CertificateAuthorityServiceService
Returns a new instance of CertificateAuthorityServiceService.
47 48 49 50 51 52 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 47 def initialize super('https://privateca.googleapis.com/', '', client_name: 'google-apis-privateca_v1beta1', client_version: Google::Apis::PrivatecaV1beta1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45 46 47 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#activate_certificate_authority(name, activate_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process.
148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 148 def (name, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:activate', ) command.request_representation = Google::Apis::PrivatecaV1beta1::ActivateCertificateAuthorityRequest::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED
.
1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1116 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', ) command.request_representation = Google::Apis::PrivatecaV1beta1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::PrivatecaV1beta1::Empty::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_certificate_authority(parent, certificate_authority_object = nil, certificate_authority_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Create a new CertificateAuthority in a given Project and Location.
196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 196 def (parent, = nil, certificate_authority_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/certificateAuthorities', ) command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['parent'] = parent unless parent.nil? command.query['certificateAuthorityId'] = unless .nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_certificate_authority_certificate(parent, certificate_object = nil, certificate_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Certificate
Create a new Certificate in a given Project, Location from a particular CertificateAuthority.
907 908 909 910 911 912 913 914 915 916 917 918 919 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 907 def (parent, certificate_object = nil, certificate_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/certificates', ) command.request_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation command.request_object = certificate_object command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Certificate command.params['parent'] = parent unless parent.nil? command.query['certificateId'] = certificate_id unless certificate_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED
.
1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1151 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::PrivatecaV1beta1::Empty::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#disable_certificate_authority(name, disable_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Disable a CertificateAuthority.
232 233 234 235 236 237 238 239 240 241 242 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 232 def (name, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:disable', ) command.request_representation = Google::Apis::PrivatecaV1beta1::DisableCertificateAuthorityRequest::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#enable_certificate_authority(name, enable_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Enable a CertificateAuthority.
266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 266 def (name, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:enable', ) command.request_representation = Google::Apis::PrivatecaV1beta1::EnableCertificateAuthorityRequest::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#fetch_project_location_certificate_authority(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse
Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.
303 304 305 306 307 308 309 310 311 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 303 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}:fetch', ) command.response_representation = Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Location
Gets information about a location.
74 75 76 77 78 79 80 81 82 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 74 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::PrivatecaV1beta1::Location::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_certificate_authority(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::CertificateAuthority
Returns a CertificateAuthority.
333 334 335 336 337 338 339 340 341 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 333 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation command.response_class = Google::Apis::PrivatecaV1beta1::CertificateAuthority command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_certificate_authority_certificate(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Certificate
Returns a Certificate.
941 942 943 944 945 946 947 948 949 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 941 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Certificate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_certificate_authority_certificate_revocation_list(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::CertificateRevocationList
Returns a CertificateRevocationList.
643 644 645 646 647 648 649 650 651 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 643 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::PrivatecaV1beta1::CertificateRevocationList::Representation command.response_class = Google::Apis::PrivatecaV1beta1::CertificateRevocationList command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_certificate_authority_certificate_revocation_list_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
683 684 685 686 687 688 689 690 691 692 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 683 def (resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_certificate_authority_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
373 374 375 376 377 378 379 380 381 382 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 373 def (resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
1182 1183 1184 1185 1186 1187 1188 1189 1190 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1182 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_reusable_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ReusableConfig
Returns a ReusableConfig.
1258 1259 1260 1261 1262 1263 1264 1265 1266 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1258 def get_project_location_reusable_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::PrivatecaV1beta1::ReusableConfig::Representation command.response_class = Google::Apis::PrivatecaV1beta1::ReusableConfig command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_reusable_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1298 def get_project_location_reusable_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_certificate_authorities(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse
Lists CertificateAuthorities.
418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 418 def (parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/certificateAuthorities', ) command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#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) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse
Lists CertificateRevocationLists.
729 730 731 732 733 734 735 736 737 738 739 740 741 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 729 def (parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/certificateRevocationLists', ) command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#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) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListCertificatesResponse
Lists Certificates.
990 991 992 993 994 995 996 997 998 999 1000 1001 1002 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 990 def (parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/certificates', ) command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificatesResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificatesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
. NOTE: the name
binding allows API services to override the binding to use different resource
name schemes, such as users/*/operations
. To override the binding, API
services can add a binding such as "/v1/
name=users/*/operations"
to their
service configuration. For backwards compatibility, the default name includes
the operations collection id, however overriding users must ensure the name
binding is the parent resource, without the operations collection id.
1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1225 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}/operations', ) command.response_representation = Google::Apis::PrivatecaV1beta1::ListOperationsResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_reusable_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse
Lists ReusableConfigs.
1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 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) command = make_simple_command(:get, 'v1beta1/{+parent}/reusableConfigs', ) command.response_representation = Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::ListLocationsResponse
Lists information about the supported locations for this service.
110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 110 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}/locations', ) command.response_representation = Google::Apis::PrivatecaV1beta1::ListLocationsResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_certificate_authority(name, certificate_authority_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Update a CertificateAuthority.
467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 467 def (name, = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_certificate_authority_certificate(name, certificate_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Certificate
Update a Certificate. Currently, the only field you can update is the labels field.
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1040 def (name, certificate_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation command.request_object = certificate_object command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Certificate command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#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) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Update a CertificateRevocationList.
779 780 781 782 783 784 785 786 787 788 789 790 791 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 779 def (name, certificate_revocation_list_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', ) command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateRevocationList::Representation command.request_object = certificate_revocation_list_object command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#restore_certificate_authority(name, restore_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Restore a CertificateAuthority that is scheduled for deletion.
503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 503 def (name, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:restore', ) command.request_representation = Google::Apis::PrivatecaV1beta1::RestoreCertificateAuthorityRequest::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#revoke_certificate(name, revoke_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Certificate
Revoke a Certificate.
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1076 def revoke_certificate(name, revoke_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:revoke', ) command.request_representation = Google::Apis::PrivatecaV1beta1::RevokeCertificateRequest::Representation command.request_object = revoke_certificate_request_object command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Certificate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#schedule_delete_certificate_authority(name, schedule_delete_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Operation
Schedule a CertificateAuthority for deletion.
537 538 539 540 541 542 543 544 545 546 547 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 537 def (name, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:scheduleDelete', ) command.request_representation = Google::Apis::PrivatecaV1beta1::ScheduleDeleteCertificateAuthorityRequest::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_certificate_authority_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
573 574 575 576 577 578 579 580 581 582 583 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 573 def (resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_certificate_revocation_list_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
817 818 819 820 821 822 823 824 825 826 827 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 817 def set_certificate_revocation_list_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_reusable_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1380 def set_reusable_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation command.response_class = Google::Apis::PrivatecaV1beta1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_certificate_authority_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
611 612 613 614 615 616 617 618 619 620 621 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 611 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_certificate_revocation_list_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
855 856 857 858 859 860 861 862 863 864 865 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 855 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_reusable_config_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/google/apis/privateca_v1beta1/service.rb', line 1418 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |