Class: Google::Apis::CloudcontrolspartnerV1beta::CloudControlsPartnerServiceService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::CloudcontrolspartnerV1beta::CloudControlsPartnerServiceService
- Defined in:
- lib/google/apis/cloudcontrolspartner_v1beta/service.rb
Overview
Cloud Controls Partner API
Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://cloudcontrolspartner.$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_organization_location_customer(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::Customer
Gets details of a single customer.
-
#get_organization_location_customer_workload(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::Workload
Gets details of a single workload.
-
#get_organization_location_customer_workload_ekm_connections(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::EkmConnections
Gets the EKM connections associated with a workload.
-
#get_organization_location_customer_workload_partner_permissions(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::PartnerPermissions
Gets the partner permissions granted for a workload.
-
#get_organization_location_customer_workload_violation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::Violation
Gets details of a single Violation.
-
#get_organization_location_partner(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::Partner
Get details of a Partner.
-
#initialize ⇒ CloudControlsPartnerServiceService
constructor
A new instance of CloudControlsPartnerServiceService.
-
#list_organization_location_customer_workload_access_approval_requests(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::ListAccessApprovalRequestsResponse
Deprecated: Only returns access approval requests directly associated with an assured workload folder.
-
#list_organization_location_customer_workload_violations(parent, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::ListViolationsResponse
Lists Violations for a workload Callers may also choose to read across multiple Customers or for a single customer as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of
customer
&workload
. -
#list_organization_location_customer_workloads(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::ListWorkloadsResponse
Lists customer workloads for a given customer org id.
-
#list_organization_location_customers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::ListCustomersResponse
Lists customers of a partner identified by its Google Cloud organization ID.
Constructor Details
#initialize ⇒ CloudControlsPartnerServiceService
Returns a new instance of CloudControlsPartnerServiceService.
48 49 50 51 52 53 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 48 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-cloudcontrolspartner_v1beta', client_version: Google::Apis::CloudcontrolspartnerV1beta::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.
41 42 43 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 41 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.
46 47 48 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 46 def quota_user @quota_user end |
Instance Method Details
#get_organization_location_customer(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::Customer
Gets details of a single customer
106 107 108 109 110 111 112 113 114 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 106 def get_organization_location_customer(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::Customer::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::Customer 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_organization_location_customer_workload(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::Workload
Gets details of a single workload
182 183 184 185 186 187 188 189 190 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 182 def get_organization_location_customer_workload(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::Workload::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::Workload 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_organization_location_customer_workload_ekm_connections(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::EkmConnections
Gets the EKM connections associated with a workload
213 214 215 216 217 218 219 220 221 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 213 def get_organization_location_customer_workload_ekm_connections(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::EkmConnections::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::EkmConnections 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_organization_location_customer_workload_partner_permissions(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::PartnerPermissions
Gets the partner permissions granted for a workload
245 246 247 248 249 250 251 252 253 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 245 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::PartnerPermissions::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::PartnerPermissions 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_organization_location_customer_workload_violation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::Violation
Gets details of a single Violation.
368 369 370 371 372 373 374 375 376 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 368 def get_organization_location_customer_workload_violation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::Violation::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::Violation 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_organization_location_partner(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::Partner
Get details of a Partner.
75 76 77 78 79 80 81 82 83 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 75 def get_organization_location_partner(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+name}', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::Partner::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::Partner 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 |
#list_organization_location_customer_workload_access_approval_requests(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::ListAccessApprovalRequestsResponse
Deprecated: Only returns access approval requests directly associated with an assured workload folder.
333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 333 def list_organization_location_customer_workload_access_approval_requests(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/accessApprovalRequests', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::ListAccessApprovalRequestsResponse::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::ListAccessApprovalRequestsResponse 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_organization_location_customer_workload_violations(parent, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::ListViolationsResponse
Lists Violations for a workload Callers may also choose to read across
multiple Customers or for a single customer as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard
character instead of customer
& workload
. Format: organizations/
organization/locations/
location/customers/
customer/workloads/
workload``
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 420 def list_organization_location_customer_workload_violations(parent, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/violations', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::ListViolationsResponse::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::ListViolationsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil? command.query['interval.startTime'] = interval_start_time unless interval_start_time.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_organization_location_customer_workloads(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::ListWorkloadsResponse
Lists customer workloads for a given customer org id
286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 286 def list_organization_location_customer_workloads(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/workloads', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::ListWorkloadsResponse::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::ListWorkloadsResponse 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_organization_location_customers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudcontrolspartnerV1beta::ListCustomersResponse
Lists customers of a partner identified by its Google Cloud organization ID
147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/google/apis/cloudcontrolspartner_v1beta/service.rb', line 147 def list_organization_location_customers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta/{+parent}/customers', ) command.response_representation = Google::Apis::CloudcontrolspartnerV1beta::ListCustomersResponse::Representation command.response_class = Google::Apis::CloudcontrolspartnerV1beta::ListCustomersResponse 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 |