Class: Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1ObservationPeriod
- Inherits:
-
Object
- Object
- Google::Apis::PolicyanalyzerV1::GoogleCloudPolicyanalyzerV1ObservationPeriod
- 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
-
#end_time ⇒ String
The observation end time.
-
#start_time ⇒ String
The observation start time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicyanalyzerV1ObservationPeriod
constructor
A new instance of GoogleCloudPolicyanalyzerV1ObservationPeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_time ⇒ String
The observation end time. The time in this timestamp is always 07:00:00Z
.
Corresponds to the JSON property endTime
71 72 73 |
# File 'lib/google/apis/policyanalyzer_v1/classes.rb', line 71 def end_time @end_time end |
#start_time ⇒ String
The observation start time. The time in this timestamp is always 07:00:00Z
.
Corresponds to the JSON property startTime
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 |