Class: Google::Apis::PolicyanalyzerV1beta1::PolicyAnalyzerService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::PolicyanalyzerV1beta1::PolicyAnalyzerService
- Defined in:
- lib/google/apis/policyanalyzer_v1beta1/service.rb
Overview
Policy Analyzer API
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://policyanalyzer.$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
-
#initialize ⇒ PolicyAnalyzerService
constructor
A new instance of PolicyAnalyzerService.
-
#query_folder_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse
Queries policy activities on GCP resources.
-
#query_organization_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse
Queries policy activities on GCP resources.
-
#query_project_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse
Queries policy activities on GCP resources.
Constructor Details
#initialize ⇒ PolicyAnalyzerService
Returns a new instance of PolicyAnalyzerService.
47 48 49 50 51 52 |
# File 'lib/google/apis/policyanalyzer_v1beta1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-policyanalyzer_v1beta1', client_version: Google::Apis::PolicyanalyzerV1beta1::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/policyanalyzer_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/policyanalyzer_v1beta1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#query_folder_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse
Queries policy activities on GCP resources.
90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/google/apis/policyanalyzer_v1beta1/service.rb', line 90 def query_folder_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/activities:query', ) command.response_representation = Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse::Representation command.response_class = Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse command.params['parent'] = parent unless parent.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 |
#query_organization_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse
Queries policy activities on GCP resources.
139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/google/apis/policyanalyzer_v1beta1/service.rb', line 139 def query_organization_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/activities:query', ) command.response_representation = Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse::Representation command.response_class = Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse command.params['parent'] = parent unless parent.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 |
#query_project_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse
Queries policy activities on GCP resources.
188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/google/apis/policyanalyzer_v1beta1/service.rb', line 188 def query_project_location_activity_type_activity(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/activities:query', ) command.response_representation = Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse::Representation command.response_class = Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse command.params['parent'] = parent unless parent.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 |