Class: Google::Apis::AccessapprovalV1::EnrolledService

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/accessapproval_v1/classes.rb,
generated/google/apis/accessapproval_v1/representations.rb,
generated/google/apis/accessapproval_v1/representations.rb

Overview

Represents the enrollment of a cloud resource into a specific service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EnrolledService

Returns a new instance of EnrolledService.


333
334
335
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 333

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cloud_productString

The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): 1. all 2. appengine.googleapis.com 3. bigquery. googleapis.com 4. bigtable.googleapis.com 5. cloudkms.googleapis.com 6. compute.googleapis.com 7. dataflow.googleapis.com 8. iam.googleapis.com 9. pubsub.googleapis.com 10. storage.googleapis.com Corresponds to the JSON property cloudProduct

Returns:

  • (String)

326
327
328
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 326

def cloud_product
  @cloud_product
end

#enrollment_levelString

The enrollment level of the service. Corresponds to the JSON property enrollmentLevel

Returns:

  • (String)

331
332
333
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 331

def enrollment_level
  @enrollment_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


338
339
340
341
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 338

def update!(**args)
  @cloud_product = args[:cloud_product] if args.key?(:cloud_product)
  @enrollment_level = args[:enrollment_level] if args.key?(:enrollment_level)
end