Class: Google::Apis::SecuritycenterV1beta2::Details

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

Details of a subscription.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Details

Returns a new instance of Details.



669
670
671
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 669

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

Instance Attribute Details

#end_timeString

The time the subscription has or will end. Corresponds to the JSON property endTime

Returns:

  • (String)


657
658
659
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 657

def end_time
  @end_time
end

#start_timeString

The time the subscription has or will start. Corresponds to the JSON property startTime

Returns:

  • (String)


662
663
664
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 662

def start_time
  @start_time
end

#typeString

The type of subscription Corresponds to the JSON property type

Returns:

  • (String)


667
668
669
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 667

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



674
675
676
677
678
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 674

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