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