Condividi tramite


MaintenanceConfigurationData Class

Definition

A class representing the MaintenanceConfiguration data model. Maintenance configuration record type

public class MaintenanceConfigurationData : Azure.ResourceManager.Models.TrackedResourceData
public class MaintenanceConfigurationData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Maintenance.MaintenanceConfigurationData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Maintenance.MaintenanceConfigurationData>
type MaintenanceConfigurationData = class
    inherit TrackedResourceData
type MaintenanceConfigurationData = class
    inherit TrackedResourceData
    interface IJsonModel<MaintenanceConfigurationData>
    interface IPersistableModel<MaintenanceConfigurationData>
Public Class MaintenanceConfigurationData
Inherits TrackedResourceData
Public Class MaintenanceConfigurationData
Inherits TrackedResourceData
Implements IJsonModel(Of MaintenanceConfigurationData), IPersistableModel(Of MaintenanceConfigurationData)
Inheritance
MaintenanceConfigurationData
Implements

Constructors

MaintenanceConfigurationData(AzureLocation)

Initializes a new instance of MaintenanceConfigurationData.

Properties

Duration

Duration of the maintenance window in HH:mm format. If not provided, default value will be used based on maintenance scope provided. Example: 05:00.

ExpireOn

Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.

ExtensionProperties

Gets or sets extensionProperties of the maintenanceConfiguration.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
InstallPatches

The input parameters to be passed to the patch run operation.

Location

The geo-location where the resource lives.

(Inherited from TrackedResourceData)
MaintenanceScope

Gets or sets maintenanceScope of the configuration.

Name

The name of the resource.

(Inherited from ResourceData)
Namespace

Gets or sets namespace of the resource.

RecurEvery

Rate at which a Maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules. Daily schedule are formatted as recurEvery: [Frequency as integer]['Day(s)']. If no frequency is provided, the default frequency is 1. Daily schedule examples are recurEvery: Day, recurEvery: 3Days. Weekly schedule are formatted as recurEvery: [Frequency as integer]['Week(s)'] [Optional comma separated list of weekdays Monday-Sunday]. Weekly schedule examples are recurEvery: 3Weeks, recurEvery: Week Saturday,Sunday. Monthly schedules are formatted as [Frequency as integer]['Month(s)'] [Comma separated list of month days] or [Frequency as integer]['Month(s)'] [Week of Month (First, Second, Third, Fourth, Last)] [Weekday Monday-Sunday] [Optional Offset(No. of days)]. Offset value must be between -6 to 6 inclusive. Monthly schedule examples are recurEvery: Month, recurEvery: 2Months, recurEvery: Month day23,day24, recurEvery: Month Last Sunday, recurEvery: Month Fourth Monday, recurEvery: Month Last Sunday Offset-3, recurEvery: Month Third Sunday Offset6.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
StartOn

Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Tags

Resource tags.

(Inherited from TrackedResourceData)
TimeZone

Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.

Visibility

Gets or sets the visibility of the configuration. The default value is 'Custom'.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from TrackedResourceData)

Explicit Interface Implementations

IJsonModel<MaintenanceConfigurationData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MaintenanceConfigurationData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MaintenanceConfigurationData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MaintenanceConfigurationData>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MaintenanceConfigurationData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to