Class: Google::Apis::IapV1beta1::CloudIAPService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::IapV1beta1::CloudIAPService
- Defined in:
- lib/google/apis/iap_v1beta1/service.rb
Overview
Cloud Identity-Aware Proxy API
Controls access to cloud applications running on Google Cloud Platform.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://iap.$UNIVERSE_DOMAIN$/"
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
-
#get_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IapV1beta1::Policy
Gets the access control policy for an Identity-Aware Proxy protected resource.
-
#initialize ⇒ CloudIAPService
constructor
A new instance of CloudIAPService.
-
#set_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IapV1beta1::Policy
Sets the access control policy for an Identity-Aware Proxy protected resource.
-
#test_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IapV1beta1::TestIamPermissionsResponse
Returns permissions that a caller has on the Identity-Aware Proxy protected resource.
Constructor Details
#initialize ⇒ CloudIAPService
Returns a new instance of CloudIAPService.
47 48 49 50 51 52 |
# File 'lib/google/apis/iap_v1beta1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-iap_v1beta1', client_version: Google::Apis::IapV1beta1::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/iap_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/iap_v1beta1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#get_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IapV1beta1::Policy
Gets the access control policy for an Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud. google.com/iap/docs/managing-access#managing_access_via_the_api
79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/google/apis/iap_v1beta1/service.rb', line 79 def get_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::IapV1beta1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::IapV1beta1::Policy::Representation command.response_class = Google::Apis::IapV1beta1::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_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IapV1beta1::Policy
Sets the access control policy for an Identity-Aware Proxy protected resource. Replaces any existing policy. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access# managing_access_via_the_api
117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/google/apis/iap_v1beta1/service.rb', line 117 def set_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::IapV1beta1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::IapV1beta1::Policy::Representation command.response_class = Google::Apis::IapV1beta1::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_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::IapV1beta1::TestIamPermissionsResponse
Returns permissions that a caller has on the Identity-Aware Proxy protected resource. If the resource does not exist or the caller does not have Identity- Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] will be returned. More information about managing access via IAP can be found at: https://cloud. google.com/iap/docs/managing-access#managing_access_via_the_api
156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/google/apis/iap_v1beta1/service.rb', line 156 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::IapV1beta1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::IapV1beta1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::IapV1beta1::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 |