MaintenanceWindow Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| MaintenanceWindow() |
Initializes a new instance of the MaintenanceWindow class. |
| MaintenanceWindow(Schedule, Int32, String, String, Nullable<DateTime>, IList<DateSpan>) |
Initializes a new instance of the MaintenanceWindow class. |
MaintenanceWindow()
Initializes a new instance of the MaintenanceWindow class.
public MaintenanceWindow();
Public Sub New ()
Applies to
MaintenanceWindow(Schedule, Int32, String, String, Nullable<DateTime>, IList<DateSpan>)
Initializes a new instance of the MaintenanceWindow class.
public MaintenanceWindow(Microsoft.Azure.Management.ContainerService.Models.Schedule schedule, int durationHours, string startTime, string utcOffset = default, DateTime? startDate = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerService.Models.DateSpan> notAllowedDates = default);
new Microsoft.Azure.Management.ContainerService.Models.MaintenanceWindow : Microsoft.Azure.Management.ContainerService.Models.Schedule * int * string * string * Nullable<DateTime> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerService.Models.DateSpan> -> Microsoft.Azure.Management.ContainerService.Models.MaintenanceWindow
Public Sub New (schedule As Schedule, durationHours As Integer, startTime As String, Optional utcOffset As String = Nothing, Optional startDate As Nullable(Of DateTime) = Nothing, Optional notAllowedDates As IList(Of DateSpan) = Nothing)
Parameters
- schedule
- Schedule
Recurrence schedule for the maintenance window.
- durationHours
- Int32
Length of maintenance window range from 4 to 24 hours.
- startTime
- String
The start time of the maintenance window. Accepted values are from '00:00' to '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'.
- utcOffset
- String
The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for PST. If not specified, the default is '+00:00'.
The date the maintenance window activates. If the current date is before this date, the maintenance window is inactive and will not be used for upgrades. If not specified, the maintenance window will be active right away.
Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time.