Class: Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1ObservationPeriod

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

Overview

Represents data observation period.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicyanalyzerV1beta1ObservationPeriod

Returns a new instance of GoogleCloudPolicyanalyzerV1beta1ObservationPeriod.



78
79
80
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 78

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

Instance Attribute Details

#end_timeString

The observation end time. Corresponds to the JSON property endTime

Returns:

  • (String)


71
72
73
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 71

def end_time
  @end_time
end

#start_timeString

The observation start time. Corresponds to the JSON property startTime

Returns:

  • (String)


76
77
78
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 76

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



83
84
85
86
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 83

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end