Compartilhar via


ContainerServiceMaintenanceWindow Class

Definition

Maintenance window used to configure scheduled auto-upgrade for a Managed Cluster.

public class ContainerServiceMaintenanceWindow : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceWindow>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceWindow>
public class ContainerServiceMaintenanceWindow
type ContainerServiceMaintenanceWindow = class
    interface IJsonModel<ContainerServiceMaintenanceWindow>
    interface IPersistableModel<ContainerServiceMaintenanceWindow>
type ContainerServiceMaintenanceWindow = class
Public Class ContainerServiceMaintenanceWindow
Implements IJsonModel(Of ContainerServiceMaintenanceWindow), IPersistableModel(Of ContainerServiceMaintenanceWindow)
Public Class ContainerServiceMaintenanceWindow
Inheritance
ContainerServiceMaintenanceWindow
Implements

Constructors

ContainerServiceMaintenanceWindow(ContainerServiceMaintenanceSchedule, Int32, String)

Initializes a new instance of ContainerServiceMaintenanceWindow.

Properties

DurationHours

Length of maintenance window range from 4 to 24 hours.

NotAllowedDates

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.

Schedule

Recurrence schedule for the maintenance window.

StartDate

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

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

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'.

Explicit Interface Implementations

IJsonModel<ContainerServiceMaintenanceWindow>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ContainerServiceMaintenanceWindow>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ContainerServiceMaintenanceWindow>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ContainerServiceMaintenanceWindow>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ContainerServiceMaintenanceWindow>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to