Class: Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle
 
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
 generated/google/apis/compute_alpha/representations.rb,
 generated/google/apis/compute_alpha/representations.rb
Overview
Time window specified for hourly operations.
Instance Attribute Summary collapse
- 
  
    
      #duration  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. 
- 
  
    
      #hours_in_cycle  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Allows to define schedule that runs every nth hour. 
- 
  
    
      #start_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time within the window to start the operations. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ResourcePolicyHourlyCycle 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ResourcePolicyHourlyCycle. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ResourcePolicyHourlyCycle
Returns a new instance of ResourcePolicyHourlyCycle
| 20233 20234 20235 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20233 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#duration ⇒ String
[Output only] Duration of the time window, automatically chosen to be smallest
possible in the given scenario.
Corresponds to the JSON property duration
| 20220 20221 20222 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20220 def duration @duration end | 
#hours_in_cycle ⇒ Fixnum
Allows to define schedule that runs every nth hour.
Corresponds to the JSON property hoursInCycle
| 20225 20226 20227 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20225 def hours_in_cycle @hours_in_cycle end | 
#start_time ⇒ String
Time within the window to start the operations. It must be in format "HH:MM?,
where HH : [00-23] and MM : [00-59] GMT.
Corresponds to the JSON property startTime
| 20231 20232 20233 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20231 def start_time @start_time end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 20238 20239 20240 20241 20242 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20238 def update!(**args) @duration = args[:duration] if args.key?(:duration) @hours_in_cycle = args[:hours_in_cycle] if args.key?(:hours_in_cycle) @start_time = args[:start_time] if args.key?(:start_time) end |