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.



359
360
361
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 359

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
    1. Corresponds to the JSON property cloudProduct

Returns:

  • (String)


352
353
354
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 352

def cloud_product
  @cloud_product
end

#enrollment_levelString

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

Returns:

  • (String)


357
358
359
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 357

def enrollment_level
  @enrollment_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



364
365
366
367
# File 'generated/google/apis/accessapproval_v1/classes.rb', line 364

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