Class: Google::Apis::SecuritycenterV1beta2::Subscription

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

Overview

Resource capturing the state of an organization's subscription.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Subscription

Returns a new instance of Subscription.



9483
9484
9485
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9483

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

Instance Attribute Details

#detailsGoogle::Apis::SecuritycenterV1beta2::Details

Details of a subscription. Corresponds to the JSON property details



9470
9471
9472
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9470

def details
  @details
end

#nameString

The resource name of the subscription. Format: organizations/organization/ subscription Corresponds to the JSON property name

Returns:

  • (String)


9476
9477
9478
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9476

def name
  @name
end

#tierString

The tier of SCC features this organization currently has access to. Corresponds to the JSON property tier

Returns:

  • (String)


9481
9482
9483
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9481

def tier
  @tier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9488
9489
9490
9491
9492
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9488

def update!(**args)
  @details = args[:details] if args.key?(:details)
  @name = args[:name] if args.key?(:name)
  @tier = args[:tier] if args.key?(:tier)
end