Class: Google::Apis::SecuritycenterV1beta2::Details
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::Details
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/securitycenter_v1beta2/classes.rb,
generated/google/apis/securitycenter_v1beta2/representations.rb,
generated/google/apis/securitycenter_v1beta2/representations.rb
Overview
Details of a subscription.
Instance Attribute Summary collapse
-
#end_time ⇒ String
The time the subscription has or will end.
-
#start_time ⇒ String
The time the subscription has or will start.
-
#type ⇒ String
The type of subscription Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Details
constructor
A new instance of Details.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Details
Returns a new instance of Details.
122 123 124 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 122 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
The time the subscription has or will end.
Corresponds to the JSON property endTime
110 111 112 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 110 def end_time @end_time end |
#start_time ⇒ String
The time the subscription has or will start.
Corresponds to the JSON property startTime
115 116 117 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 115 def start_time @start_time end |
#type ⇒ String
The type of subscription
Corresponds to the JSON property type
120 121 122 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 120 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
127 128 129 130 131 |
# File 'generated/google/apis/securitycenter_v1beta2/classes.rb', line 127 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) @type = args[:type] if args.key?(:type) end |