Class: Google::Apis::ComposerV1::MaintenanceWindow
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComposerV1::MaintenanceWindow
 
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/composer_v1/classes.rb,
 lib/google/apis/composer_v1/representations.rb,
 lib/google/apis/composer_v1/representations.rb
Overview
The configuration settings for Cloud Composer maintenance window. The
following example: ` "startTime":"2019-08-01T01:00:00Z" "endTime":"2019-08-
01T07:00:00Z" "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE" ` would define a
maintenance window between 01 and 07 hours UTC during each Tuesday and
Wednesday.
Instance Attribute Summary collapse
- 
  
    
      #end_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #recurrence  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #start_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MaintenanceWindow 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MaintenanceWindow. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ MaintenanceWindow
Returns a new instance of MaintenanceWindow.
| 616 617 618 | # File 'lib/google/apis/composer_v1/classes.rb', line 616 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#end_time ⇒ String
Required. Maintenance window end time. It is used only to calculate the
duration of the maintenance window. The value for end-time must be in the
future, relative to start_time.
Corresponds to the JSON property endTime
| 601 602 603 | # File 'lib/google/apis/composer_v1/classes.rb', line 601 def end_time @end_time end | 
#recurrence ⇒ String
Required. Maintenance window recurrence. Format is a subset of RFC-5545 RRULE. The only allowed values for 
FREQ field are FREQ=DAILY and FREQ=WEEKLY;BYDAY=... Example values: FREQ=
WEEKLY;BYDAY=TU,WE, FREQ=DAILY.
Corresponds to the JSON property recurrence
| 609 610 611 | # File 'lib/google/apis/composer_v1/classes.rb', line 609 def recurrence @recurrence end | 
#start_time ⇒ String
Required. Start time of the first recurrence of the maintenance window.
Corresponds to the JSON property startTime
| 614 615 616 | # File 'lib/google/apis/composer_v1/classes.rb', line 614 def start_time @start_time end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 621 622 623 624 625 | # File 'lib/google/apis/composer_v1/classes.rb', line 621 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @recurrence = args[:recurrence] if args.key?(:recurrence) @start_time = args[:start_time] if args.key?(:start_time) end |