Class: Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1ObservationPeriod

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

Overview

Represents data observation period.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicyanalyzerV1ObservationPeriod

Returns a new instance of GoogleCloudPolicyanalyzerV1ObservationPeriod.



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

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

Instance Attribute Details

#end_timeString

The observation end time. The time in this timestamp is always 07:00:00Z. Corresponds to the JSON property endTime

Returns:

  • (String)


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

def end_time
  @end_time
end

#start_timeString

The observation start time. The time in this timestamp is always 07:00:00Z. Corresponds to the JSON property startTime

Returns:

  • (String)


76
77
78
# File 'lib/google/apis/policyanalyzer_v1/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_v1/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