Condividi tramite


ArmContainerServiceFleetModelFactory.AutoUpgradeProfileData Method

Definition

Initializes a new instance of AutoUpgradeProfileData.

public static Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData AutoUpgradeProfileData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ETag? eTag = default, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState? provisioningState = default, Azure.Core.ResourceIdentifier updateStrategyId = default, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel? channel = default, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType? selectionType = default, bool? disabled = default);
static member AutoUpgradeProfileData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ETag> * Nullable<Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState> * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel> * Nullable<Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType> * Nullable<bool> -> Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData
Public Shared Function AutoUpgradeProfileData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional eTag As Nullable(Of ETag) = Nothing, Optional provisioningState As Nullable(Of AutoUpgradeProfileProvisioningState) = Nothing, Optional updateStrategyId As ResourceIdentifier = Nothing, Optional channel As Nullable(Of ContainerServiceFleetUpgradeChannel) = Nothing, Optional selectionType As Nullable(Of AutoUpgradeNodeImageSelectionType) = Nothing, Optional disabled As Nullable(Of Boolean) = Nothing) As AutoUpgradeProfileData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

eTag
Nullable<ETag>

If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

provisioningState
Nullable<AutoUpgradeProfileProvisioningState>

The provisioning state of the AutoUpgradeProfile resource.

updateStrategyId
ResourceIdentifier

The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet.

channel
Nullable<ContainerServiceFleetUpgradeChannel>

Configures how auto-upgrade will be run.

selectionType
Nullable<AutoUpgradeNodeImageSelectionType>

The node image upgrade to be applied to the target clusters in auto upgrade.

disabled
Nullable<Boolean>

If set to False: the auto upgrade has effect - target managed clusters will be upgraded on schedule. If set to True: the auto upgrade has no effect - no upgrade will be run on the target managed clusters. This is a boolean and not an enum because enabled/disabled are all available states of the auto upgrade profile. By default, this is set to False.

Returns

A new AutoUpgradeProfileData instance for mocking.

Applies to