ArmContainerServiceModelFactory.ContainerServiceMaintenanceWindow Method
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.
Maintenance window used to configure scheduled auto-upgrade for a Managed Cluster.
public static Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceWindow ContainerServiceMaintenanceWindow(Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceSchedule schedule = default, int durationHours = 0, string utcOffset = default, string startDate = default, string startTime = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerService.Models.ContainerServiceDateSpan> notAllowedDates = default);
static member ContainerServiceMaintenanceWindow : Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceSchedule * int * string * string * string * seq<Azure.ResourceManager.ContainerService.Models.ContainerServiceDateSpan> -> Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceWindow
Public Shared Function ContainerServiceMaintenanceWindow (Optional schedule As ContainerServiceMaintenanceSchedule = Nothing, Optional durationHours As Integer = 0, Optional utcOffset As String = Nothing, Optional startDate As String = Nothing, Optional startTime As String = Nothing, Optional notAllowedDates As IEnumerable(Of ContainerServiceDateSpan) = Nothing) As ContainerServiceMaintenanceWindow
Parameters
- schedule
- ContainerServiceMaintenanceSchedule
Recurrence schedule for the maintenance window.
- durationHours
- Int32
Length of maintenance window range from 4 to 24 hours.
- 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'.
- startDate
- String
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.
- 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'.
- notAllowedDates
- IEnumerable<ContainerServiceDateSpan>
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.
Returns
A new ContainerServiceMaintenanceWindow instance for mocking.