Partilhar via


ArmContainerServiceFleetModelFactory.ContainerServiceFleetUpdateRunData Method

Definition

Initializes a new instance of ContainerServiceFleetUpdateRunData.

public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData (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.ContainerServiceFleetUpdateRunProvisioningState? provisioningState = default, Azure.Core.ResourceIdentifier updateStrategyId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStage> strategyStages = default, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = default, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus status = default);
static member ContainerServiceFleetUpdateRunData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ETag> * Nullable<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState> * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStage> * Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate * Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus -> Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData
Public Shared Function ContainerServiceFleetUpdateRunData (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 ContainerServiceFleetUpdateRunProvisioningState) = Nothing, Optional updateStrategyId As ResourceIdentifier = Nothing, Optional strategyStages As IEnumerable(Of ContainerServiceFleetUpdateStage) = Nothing, Optional managedClusterUpdate As ContainerServiceFleetManagedClusterUpdate = Nothing, Optional status As ContainerServiceFleetUpdateRunStatus = Nothing) As ContainerServiceFleetUpdateRunData

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<ContainerServiceFleetUpdateRunProvisioningState>

The provisioning state of the UpdateRun resource.

updateStrategyId
ResourceIdentifier

The resource id of the FleetUpdateStrategy resource to reference.

When creating a new run, there are three ways to define a strategy for the run:

  1. Define a new strategy in place: Set the "strategy" field.
  2. Use an existing strategy: Set the "updateStrategyId" field. (since 2023-08-15-preview)
  3. Use the default strategy to update all the members one by one: Leave both "updateStrategyId" and "strategy" unset. (since 2023-08-15-preview)

Setting both "updateStrategyId" and "strategy" is invalid.

UpdateRuns created by "updateStrategyId" snapshot the referenced UpdateStrategy at the time of creation and store it in the "strategy" field. Subsequent changes to the referenced FleetUpdateStrategy resource do not propagate. UpdateRunStrategy changes can be made directly on the "strategy" field before launching the UpdateRun.

strategyStages
IEnumerable<ContainerServiceFleetUpdateStage>

The strategy defines the order in which the clusters will be updated. If not set, all members will be updated sequentially. The UpdateRun status will show a single UpdateStage and a single UpdateGroup targeting all members. The strategy of the UpdateRun can be modified until the run is started.

managedClusterUpdate
ContainerServiceFleetManagedClusterUpdate

The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started.

status
ContainerServiceFleetUpdateRunStatus

The status of the UpdateRun.

Returns

A new ContainerServiceFleetUpdateRunData instance for mocking.

Applies to