Class: Google::Apis::SecuritycenterV1beta2::Subscription
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::Subscription
- 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
-
#details ⇒ Google::Apis::SecuritycenterV1beta2::Details
Details of a subscription.
-
#name ⇒ String
The resource name of the subscription.
-
#tier ⇒ String
The tier of SCC features this organization currently has access to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subscription
constructor
A new instance of Subscription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subscription
Returns a new instance of Subscription.
2932 2933 2934 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2932 def initialize(**args) update!(**args) end |
Instance Attribute Details
#details ⇒ Google::Apis::SecuritycenterV1beta2::Details
Details of a subscription.
Corresponds to the JSON property details
2919 2920 2921 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2919 def details @details end |
#name ⇒ String
The resource name of the subscription. Format: organizations/organization/
subscription
Corresponds to the JSON property name
2925 2926 2927 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2925 def name @name end |
#tier ⇒ String
The tier of SCC features this organization currently has access to.
Corresponds to the JSON property tier
2930 2931 2932 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2930 def tier @tier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2937 2938 2939 2940 2941 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2937 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 |