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.



6930
6931
6932
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6930

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

Instance Attribute Details

#details ⇒ Google::Apis::SecuritycenterV1beta2::Details

Details of a subscription. Corresponds to the JSON property details



6917
6918
6919
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6917

def details
  @details
end

#name ⇒ String

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

Returns:

  • (String)


6923
6924
6925
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6923

def name
  @name
end

#tier ⇒ String

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

Returns:

  • (String)


6928
6929
6930
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6928

def tier
  @tier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6935
6936
6937
6938
6939
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6935

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