diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props
index 9a2e41a4f31d..a2c487306cf1 100644
--- a/eng/Packages.Data.props
+++ b/eng/Packages.Data.props
@@ -306,6 +306,7 @@
+
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/Azure.ResourceManager.ContainerServiceFleet.sln b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/Azure.ResourceManager.ContainerServiceFleet.sln
index 51e0eec27293..06cf0f63c744 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/Azure.ResourceManager.ContainerServiceFleet.sln
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/Azure.ResourceManager.ContainerServiceFleet.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.30309.148
+# Visual Studio Version 17
+VisualStudioVersion = 17.13.35931.197 d17.13
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.ContainerServiceFleet", "src\Azure.ResourceManager.ContainerServiceFleet.csproj", "{848F28F3-DA60-4234-A348-872B4D46BDF2}"
EndProject
@@ -9,17 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.Conta
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.ContainerServiceFleet.Samples", "samples\Azure.ResourceManager.ContainerServiceFleet.Samples.csproj", "{AB50CDAA-32F7-484A-A1B8-CAB0E95B8E33}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{2C9469EC-669F-4AB2-B909-F50342C83740}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.ContainerService", "..\..\containerservice\Azure.ResourceManager.ContainerService\src\Azure.ResourceManager.ContainerService.csproj", "{5E5506DF-D8D9-4A78-9168-E029548C20C9}"
-EndProject
Global
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {A6FFC348-C044-4BD3-BAA3-D3DFA56A5D85}
- EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
@@ -65,29 +55,11 @@ Global
{AB50CDAA-32F7-484A-A1B8-CAB0E95B8E33}.Release|x64.Build.0 = Release|Any CPU
{AB50CDAA-32F7-484A-A1B8-CAB0E95B8E33}.Release|x86.ActiveCfg = Release|Any CPU
{AB50CDAA-32F7-484A-A1B8-CAB0E95B8E33}.Release|x86.Build.0 = Release|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Debug|x64.ActiveCfg = Debug|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Debug|x64.Build.0 = Debug|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Debug|x86.ActiveCfg = Debug|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Debug|x86.Build.0 = Debug|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Release|Any CPU.Build.0 = Release|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Release|x64.ActiveCfg = Release|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Release|x64.Build.0 = Release|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Release|x86.ActiveCfg = Release|Any CPU
- {2C9469EC-669F-4AB2-B909-F50342C83740}.Release|x86.Build.0 = Release|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Debug|x64.ActiveCfg = Debug|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Debug|x64.Build.0 = Debug|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Debug|x86.ActiveCfg = Debug|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Debug|x86.Build.0 = Debug|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Release|Any CPU.Build.0 = Release|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Release|x64.ActiveCfg = Release|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Release|x64.Build.0 = Release|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Release|x86.ActiveCfg = Release|Any CPU
- {5E5506DF-D8D9-4A78-9168-E029548C20C9}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A6FFC348-C044-4BD3-BAA3-D3DFA56A5D85}
EndGlobalSection
EndGlobal
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/CHANGELOG.md b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/CHANGELOG.md
index 2aa6746d4891..d846a301db8b 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/CHANGELOG.md
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/CHANGELOG.md
@@ -1,14 +1,10 @@
# Release History
-## 1.1.0-beta.2 (Unreleased)
+## 1.1.0 (2025-04-22)
### Features Added
-### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
+- Add GA AutoUpgrade and API version 2025-03-01 support
## 1.1.0-beta.1 (2024-10-10)
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.net8.0.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.net8.0.cs
index 9f9e2768319f..43c5c5cf4f3f 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.net8.0.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.net8.0.cs
@@ -20,6 +20,7 @@ protected AutoUpgradeProfileCollection() { }
public partial class AutoUpgradeProfileData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public AutoUpgradeProfileData() { }
+ public Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus AutoUpgradeProfileStatus { get { throw null; } set { } }
public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel? Channel { get { throw null; } set { } }
public bool? Disabled { get { throw null; } set { } }
public Azure.ETag? ETag { get { throw null; } }
@@ -42,6 +43,8 @@ protected AutoUpgradeProfileResource() { }
public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName) { throw null; }
public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation GenerateUpdateRun(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GenerateUpdateRunAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -76,6 +79,7 @@ public ContainerServiceFleetData(Azure.Core.AzureLocation location) { }
public Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile HubProfile { get { throw null; } set { } }
public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
public Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus Status { get { throw null; } }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -120,6 +124,7 @@ public ContainerServiceFleetMemberData() { }
public Azure.ETag? ETag { get { throw null; } }
public string Group { get { throw null; } set { } }
public Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus Status { get { throw null; } }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -205,6 +210,7 @@ protected ContainerServiceFleetUpdateRunCollection() { }
public partial class ContainerServiceFleetUpdateRunData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public ContainerServiceFleetUpdateRunData() { }
+ public Azure.Core.ResourceIdentifier AutoUpgradeProfileId { get { throw null; } }
public Azure.ETag? ETag { get { throw null; } }
public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate ManagedClusterUpdate { get { throw null; } set { } }
public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? ProvisioningState { get { throw null; } }
@@ -322,13 +328,21 @@ namespace Azure.ResourceManager.ContainerServiceFleet.Models
{
public static partial class ArmContainerServiceFleetModelFactory
{
- public static Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData AutoUpgradeProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel? channel = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType? selectionType = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType?), bool? disabled = default(bool?)) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData AutoUpgradeProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel? channel = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType? selectionType = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType?), bool? disabled = default(bool?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus autoUpgradeProfileStatus = null) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileGenerateResult AutoUpgradeProfileGenerateResult(string id = null) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus AutoUpgradeProfileStatus(System.DateTimeOffset? lastTriggeredOn = default(System.DateTimeOffset?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus? lastTriggerStatus = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus?), Azure.ResponseError lastTriggerError = null, System.Collections.Generic.IEnumerable lastTriggerUpgradeVersions = null) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? eTag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState) { throw null; }
- public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState?), Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile hubProfile = null) { throw null; }
- public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.Core.ResourceIdentifier clusterResourceId = null, string group = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState?), Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile hubProfile = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus status = null) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ETag? eTag, Azure.Core.ResourceIdentifier clusterResourceId, string group, Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? provisioningState) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.Core.ResourceIdentifier clusterResourceId = null, string group = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus status = null) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus ContainerServiceFleetMemberStatus(string lastOperationId = null, Azure.ResponseError lastOperationError = null) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus ContainerServiceFleetStatus(string lastOperationId = null, Azure.ResponseError lastOperationError = null) { throw null; }
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateGroupStatus ContainerServiceFleetUpdateGroupStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, string name = null, System.Collections.Generic.IEnumerable members = null) { throw null; }
- public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, System.Collections.Generic.IEnumerable strategyStages = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus status = null) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ETag? eTag, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? provisioningState, Azure.Core.ResourceIdentifier updateStrategyId, System.Collections.Generic.IEnumerable strategyStages, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate managedClusterUpdate, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus status) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, System.Collections.Generic.IEnumerable strategyStages = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus status = null, Azure.Core.ResourceIdentifier autoUpgradeProfileId = null) { throw null; }
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus ContainerServiceFleetUpdateRunStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, System.Collections.Generic.IEnumerable stages = null, System.Collections.Generic.IEnumerable selectedNodeImageVersions = null) { throw null; }
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStageStatus ContainerServiceFleetUpdateStageStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, string name = null, System.Collections.Generic.IEnumerable groups = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetWaitStatus afterStageWaitStatus = null) { throw null; }
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus ContainerServiceFleetUpdateStatus(System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? completedOn = default(System.DateTimeOffset?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateState? state = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateState?), Azure.ResponseError error = null) { throw null; }
@@ -341,6 +355,24 @@ public static partial class ArmContainerServiceFleetModelFactory
public static Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageVersion NodeImageVersion(string version = null) { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AutoUpgradeLastTriggerStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AutoUpgradeLastTriggerStatus(string value) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus Failed { get { throw null; } }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus Succeeded { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus right) { throw null; }
+ public static implicit operator Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct AutoUpgradeNodeImageSelectionType : System.IEquatable
{
private readonly object _dummy;
@@ -358,6 +390,17 @@ public static partial class ArmContainerServiceFleetModelFactory
public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType right) { throw null; }
public override string ToString() { throw null; }
}
+ public partial class AutoUpgradeProfileGenerateResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AutoUpgradeProfileGenerateResult() { }
+ public string Id { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileGenerateResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileGenerateResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct AutoUpgradeProfileProvisioningState : System.IEquatable
{
@@ -377,6 +420,20 @@ public static partial class ArmContainerServiceFleetModelFactory
public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState right) { throw null; }
public override string ToString() { throw null; }
}
+ public partial class AutoUpgradeProfileStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AutoUpgradeProfileStatus() { }
+ public System.DateTimeOffset? LastTriggeredOn { get { throw null; } }
+ public Azure.ResponseError LastTriggerError { get { throw null; } }
+ public Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus? LastTriggerStatus { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList LastTriggerUpgradeVersions { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
public partial class ContainerServiceFleetAgentProfile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public ContainerServiceFleetAgentProfile() { }
@@ -458,6 +515,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
+ public partial class ContainerServiceFleetMemberStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal ContainerServiceFleetMemberStatus() { }
+ public Azure.ResponseError LastOperationError { get { throw null; } }
+ public string LastOperationId { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
public partial class ContainerServiceFleetPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public ContainerServiceFleetPatch() { }
@@ -493,6 +562,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
+ public partial class ContainerServiceFleetStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal ContainerServiceFleetStatus() { }
+ public Azure.ResponseError LastOperationError { get { throw null; } }
+ public string LastOperationId { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct ContainerServiceFleetTargetType : System.IEquatable
{
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs
index 9f9e2768319f..43c5c5cf4f3f 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/api/Azure.ResourceManager.ContainerServiceFleet.netstandard2.0.cs
@@ -20,6 +20,7 @@ protected AutoUpgradeProfileCollection() { }
public partial class AutoUpgradeProfileData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public AutoUpgradeProfileData() { }
+ public Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus AutoUpgradeProfileStatus { get { throw null; } set { } }
public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel? Channel { get { throw null; } set { } }
public bool? Disabled { get { throw null; } set { } }
public Azure.ETag? ETag { get { throw null; } }
@@ -42,6 +43,8 @@ protected AutoUpgradeProfileResource() { }
public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName) { throw null; }
public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation GenerateUpdateRun(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GenerateUpdateRunAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -76,6 +79,7 @@ public ContainerServiceFleetData(Azure.Core.AzureLocation location) { }
public Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile HubProfile { get { throw null; } set { } }
public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
public Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus Status { get { throw null; } }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -120,6 +124,7 @@ public ContainerServiceFleetMemberData() { }
public Azure.ETag? ETag { get { throw null; } }
public string Group { get { throw null; } set { } }
public Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus Status { get { throw null; } }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -205,6 +210,7 @@ protected ContainerServiceFleetUpdateRunCollection() { }
public partial class ContainerServiceFleetUpdateRunData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public ContainerServiceFleetUpdateRunData() { }
+ public Azure.Core.ResourceIdentifier AutoUpgradeProfileId { get { throw null; } }
public Azure.ETag? ETag { get { throw null; } }
public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate ManagedClusterUpdate { get { throw null; } set { } }
public Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? ProvisioningState { get { throw null; } }
@@ -322,13 +328,21 @@ namespace Azure.ResourceManager.ContainerServiceFleet.Models
{
public static partial class ArmContainerServiceFleetModelFactory
{
- public static Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData AutoUpgradeProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel? channel = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType? selectionType = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType?), bool? disabled = default(bool?)) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.AutoUpgradeProfileData AutoUpgradeProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel? channel = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpgradeChannel?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType? selectionType = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType?), bool? disabled = default(bool?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus autoUpgradeProfileStatus = null) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileGenerateResult AutoUpgradeProfileGenerateResult(string id = null) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus AutoUpgradeProfileStatus(System.DateTimeOffset? lastTriggeredOn = default(System.DateTimeOffset?), Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus? lastTriggerStatus = default(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus?), Azure.ResponseError lastTriggerError = null, System.Collections.Generic.IEnumerable lastTriggerUpgradeVersions = null) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ETag? eTag, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState) { throw null; }
- public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState?), Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile hubProfile = null) { throw null; }
- public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.Core.ResourceIdentifier clusterResourceId = null, string group = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetData ContainerServiceFleetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetProvisioningState?), Azure.ResourceManager.ContainerServiceFleet.Models.FleetHubProfile hubProfile = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus status = null) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ETag? eTag, Azure.Core.ResourceIdentifier clusterResourceId, string group, Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? provisioningState) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.Core.ResourceIdentifier clusterResourceId = null, string group = null, Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.FleetMemberProvisioningState?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus status = null) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus ContainerServiceFleetMemberStatus(string lastOperationId = null, Azure.ResponseError lastOperationError = null) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus ContainerServiceFleetStatus(string lastOperationId = null, Azure.ResponseError lastOperationError = null) { throw null; }
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateGroupStatus ContainerServiceFleetUpdateGroupStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, string name = null, System.Collections.Generic.IEnumerable members = null) { throw null; }
- public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, System.Collections.Generic.IEnumerable strategyStages = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus status = null) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ETag? eTag, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? provisioningState, Azure.Core.ResourceIdentifier updateStrategyId, System.Collections.Generic.IEnumerable strategyStages, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate managedClusterUpdate, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus status) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? eTag = default(Azure.ETag?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState? provisioningState = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunProvisioningState?), Azure.Core.ResourceIdentifier updateStrategyId = null, System.Collections.Generic.IEnumerable strategyStages = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus status = null, Azure.Core.ResourceIdentifier autoUpgradeProfileId = null) { throw null; }
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateRunStatus ContainerServiceFleetUpdateRunStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, System.Collections.Generic.IEnumerable stages = null, System.Collections.Generic.IEnumerable selectedNodeImageVersions = null) { throw null; }
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStageStatus ContainerServiceFleetUpdateStageStatus(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus status = null, string name = null, System.Collections.Generic.IEnumerable groups = null, Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetWaitStatus afterStageWaitStatus = null) { throw null; }
public static Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateStatus ContainerServiceFleetUpdateStatus(System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? completedOn = default(System.DateTimeOffset?), Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateState? state = default(Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetUpdateState?), Azure.ResponseError error = null) { throw null; }
@@ -341,6 +355,24 @@ public static partial class ArmContainerServiceFleetModelFactory
public static Azure.ResourceManager.ContainerServiceFleet.Models.NodeImageVersion NodeImageVersion(string version = null) { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AutoUpgradeLastTriggerStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AutoUpgradeLastTriggerStatus(string value) { throw null; }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus Failed { get { throw null; } }
+ public static Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus Succeeded { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus right) { throw null; }
+ public static implicit operator Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct AutoUpgradeNodeImageSelectionType : System.IEquatable
{
private readonly object _dummy;
@@ -358,6 +390,17 @@ public static partial class ArmContainerServiceFleetModelFactory
public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeNodeImageSelectionType right) { throw null; }
public override string ToString() { throw null; }
}
+ public partial class AutoUpgradeProfileGenerateResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AutoUpgradeProfileGenerateResult() { }
+ public string Id { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileGenerateResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileGenerateResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct AutoUpgradeProfileProvisioningState : System.IEquatable
{
@@ -377,6 +420,20 @@ public static partial class ArmContainerServiceFleetModelFactory
public static bool operator !=(Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState left, Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileProvisioningState right) { throw null; }
public override string ToString() { throw null; }
}
+ public partial class AutoUpgradeProfileStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AutoUpgradeProfileStatus() { }
+ public System.DateTimeOffset? LastTriggeredOn { get { throw null; } }
+ public Azure.ResponseError LastTriggerError { get { throw null; } }
+ public Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeLastTriggerStatus? LastTriggerStatus { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList LastTriggerUpgradeVersions { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.AutoUpgradeProfileStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
public partial class ContainerServiceFleetAgentProfile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public ContainerServiceFleetAgentProfile() { }
@@ -458,6 +515,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
+ public partial class ContainerServiceFleetMemberStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal ContainerServiceFleetMemberStatus() { }
+ public Azure.ResponseError LastOperationError { get { throw null; } }
+ public string LastOperationId { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetMemberStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
public partial class ContainerServiceFleetPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public ContainerServiceFleetPatch() { }
@@ -493,6 +562,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
+ public partial class ContainerServiceFleetStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal ContainerServiceFleetStatus() { }
+ public Azure.ResponseError LastOperationError { get { throw null; } }
+ public string LastOperationId { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.ContainerServiceFleet.Models.ContainerServiceFleetStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct ContainerServiceFleetTargetType : System.IEquatable
{
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/assets.json b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/assets.json
index 6733078d8720..913565124ae9 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/assets.json
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/fleet/Azure.ResourceManager.ContainerServiceFleet",
- "Tag": "net/fleet/Azure.ResourceManager.ContainerServiceFleet_7e685762c6"
+ "Tag": "net/fleet/Azure.ResourceManager.ContainerServiceFleet_942e4814d5"
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileCollection.cs
index 34b4de957560..9c558c9e16aa 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_AutoUpgradeProfileCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreateAnAutoUpgradeProfile()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_CreateOrUpdate.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_CreateOrUpdate.json
// this example is just showing the usage of "AutoUpgradeProfiles_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -55,11 +55,56 @@ public async Task CreateOrUpdate_CreateAnAutoUpgradeProfile()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_CreateAnAutoUpgradeProfileGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfiles_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this AutoUpgradeProfileResource
+ AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles();
+
+ // invoke the operation
+ string autoUpgradeProfileName = "autoupgradeprofile1";
+ AutoUpgradeProfileData data = new AutoUpgradeProfileData
+ {
+ UpdateStrategyId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgfleets/providers/Microsoft.ContainerService/fleets/fleet1/updateStrategies/strategy1"),
+ Channel = ContainerServiceFleetUpgradeChannel.Stable,
+ SelectionType = AutoUpgradeNodeImageSelectionType.Latest,
+ Disabled = true,
+ AutoUpgradeProfileStatus = new AutoUpgradeProfileStatus(),
+ };
+ string ifMatch = "teikqmg";
+ string ifNoneMatch = "ghfmmyrekxincsxklbldnvhqd";
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, autoUpgradeProfileName, data, ifMatch: ifMatch, ifNoneMatch: ifNoneMatch);
+ AutoUpgradeProfileResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ AutoUpgradeProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAnAutoUpgradeProfileResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Get.json
// this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -89,11 +134,45 @@ public async Task Get_GetsAnAutoUpgradeProfileResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsAnAutoUpgradeProfileResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this AutoUpgradeProfileResource
+ AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles();
+
+ // invoke the operation
+ string autoUpgradeProfileName = "autoupgradeprofile1";
+ AutoUpgradeProfileResource result = await collection.GetAsync(autoUpgradeProfileName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ AutoUpgradeProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ListsTheAutoUpgradeProfileResourcesByFleet()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_ListByFleet.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_ListByFleet.json
// this example is just showing the usage of "AutoUpgradeProfiles_ListByFleet" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,11 +204,47 @@ public async Task GetAll_ListsTheAutoUpgradeProfileResourcesByFleet()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_ListsTheAutoUpgradeProfileResourcesByFleetGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_ListByFleet_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfiles_ListByFleet" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this AutoUpgradeProfileResource
+ AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles();
+
+ // invoke the operation and iterate over the result
+ await foreach (AutoUpgradeProfileResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ AutoUpgradeProfileData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsAnAutoUpgradeProfileResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Get.json
// this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -155,11 +270,41 @@ public async Task Exists_GetsAnAutoUpgradeProfileResource()
Console.WriteLine($"Succeeded: {result}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetsAnAutoUpgradeProfileResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this AutoUpgradeProfileResource
+ AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles();
+
+ // invoke the operation
+ string autoUpgradeProfileName = "autoupgradeprofile1";
+ bool result = await collection.ExistsAsync(autoUpgradeProfileName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsAnAutoUpgradeProfileResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Get.json
// this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -196,5 +341,47 @@ public async Task GetIfExists_GetsAnAutoUpgradeProfileResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetsAnAutoUpgradeProfileResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this AutoUpgradeProfileResource
+ AutoUpgradeProfileCollection collection = containerServiceFleet.GetAutoUpgradeProfiles();
+
+ // invoke the operation
+ string autoUpgradeProfileName = "autoupgradeprofile1";
+ NullableResponse response = await collection.GetIfExistsAsync(autoUpgradeProfileName);
+ AutoUpgradeProfileResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ AutoUpgradeProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileResource.cs
index dc50623bd247..d396b0e20835 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_AutoUpgradeProfileResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_AutoUpgradeProfileResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAnAutoUpgradeProfileResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Get.json
// this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -47,11 +47,42 @@ public async Task Get_GetsAnAutoUpgradeProfileResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsAnAutoUpgradeProfileResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfiles_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this AutoUpgradeProfileResource created on azure
+ // for more information of creating AutoUpgradeProfileResource, please refer to the document of AutoUpgradeProfileResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string autoUpgradeProfileName = "autoupgradeprofile1";
+ ResourceIdentifier autoUpgradeProfileResourceId = AutoUpgradeProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName);
+ AutoUpgradeProfileResource autoUpgradeProfile = client.GetAutoUpgradeProfileResource(autoUpgradeProfileResourceId);
+
+ // invoke the operation
+ AutoUpgradeProfileResource result = await autoUpgradeProfile.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ AutoUpgradeProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeleteAnAutoUpgradeProfileResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_Delete.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Delete.json
// this example is just showing the usage of "AutoUpgradeProfiles_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -61,7 +92,7 @@ public async Task Delete_DeleteAnAutoUpgradeProfileResource()
// this example assumes you already have this AutoUpgradeProfileResource created on azure
// for more information of creating AutoUpgradeProfileResource, please refer to the document of AutoUpgradeProfileResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
string autoUpgradeProfileName = "autoupgradeprofile1";
@@ -74,11 +105,39 @@ public async Task Delete_DeleteAnAutoUpgradeProfileResource()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Delete_DeleteAnAutoUpgradeProfileResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfiles_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this AutoUpgradeProfileResource created on azure
+ // for more information of creating AutoUpgradeProfileResource, please refer to the document of AutoUpgradeProfileResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string autoUpgradeProfileName = "autoupgradeprofile1";
+ ResourceIdentifier autoUpgradeProfileResourceId = AutoUpgradeProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName);
+ AutoUpgradeProfileResource autoUpgradeProfile = client.GetAutoUpgradeProfileResource(autoUpgradeProfileResourceId);
+
+ // invoke the operation
+ string ifMatch = "qmdsmmawj";
+ await autoUpgradeProfile.DeleteAsync(WaitUntil.Completed, ifMatch: ifMatch);
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Update_CreateAnAutoUpgradeProfile()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/AutoUpgradeProfiles_CreateOrUpdate.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_CreateOrUpdate.json
// this example is just showing the usage of "AutoUpgradeProfiles_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -109,5 +168,75 @@ public async Task Update_CreateAnAutoUpgradeProfile()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_CreateAnAutoUpgradeProfileGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfiles_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfiles_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this AutoUpgradeProfileResource created on azure
+ // for more information of creating AutoUpgradeProfileResource, please refer to the document of AutoUpgradeProfileResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string autoUpgradeProfileName = "autoupgradeprofile1";
+ ResourceIdentifier autoUpgradeProfileResourceId = AutoUpgradeProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName);
+ AutoUpgradeProfileResource autoUpgradeProfile = client.GetAutoUpgradeProfileResource(autoUpgradeProfileResourceId);
+
+ // invoke the operation
+ AutoUpgradeProfileData data = new AutoUpgradeProfileData
+ {
+ UpdateStrategyId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgfleets/providers/Microsoft.ContainerService/fleets/fleet1/updateStrategies/strategy1"),
+ Channel = ContainerServiceFleetUpgradeChannel.Stable,
+ SelectionType = AutoUpgradeNodeImageSelectionType.Latest,
+ Disabled = true,
+ AutoUpgradeProfileStatus = new AutoUpgradeProfileStatus(),
+ };
+ string ifMatch = "teikqmg";
+ string ifNoneMatch = "ghfmmyrekxincsxklbldnvhqd";
+ ArmOperation lro = await autoUpgradeProfile.UpdateAsync(WaitUntil.Completed, data, ifMatch: ifMatch, ifNoneMatch: ifNoneMatch);
+ AutoUpgradeProfileResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ AutoUpgradeProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GenerateUpdateRun_AutoUpgradeProfileOperationsGenerateUpdateRunMaximumSet()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/AutoUpgradeProfileOperations_GenerateUpdateRun_MaximumSet_Gen.json
+ // this example is just showing the usage of "AutoUpgradeProfileOperations_GenerateUpdateRun" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this AutoUpgradeProfileResource created on azure
+ // for more information of creating AutoUpgradeProfileResource, please refer to the document of AutoUpgradeProfileResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string autoUpgradeProfileName = "aup1";
+ ResourceIdentifier autoUpgradeProfileResourceId = AutoUpgradeProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName);
+ AutoUpgradeProfileResource autoUpgradeProfile = client.GetAutoUpgradeProfileResource(autoUpgradeProfileResourceId);
+
+ // invoke the operation
+ ArmOperation lro = await autoUpgradeProfile.GenerateUpdateRunAsync(WaitUntil.Completed);
+ AutoUpgradeProfileGenerateResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetCollection.cs
index 4954efbf6ecf..d173ba76af8b 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetCollection.cs
@@ -10,6 +10,7 @@
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.ContainerServiceFleet.Models;
+using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources;
using NUnit.Framework;
@@ -21,7 +22,7 @@ public partial class Sample_ContainerServiceFleetCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreatesAFleetResourceWithALongRunningOperation()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_CreateOrUpdate.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_CreateOrUpdate.json
// this example is just showing the usage of "Fleets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -31,7 +32,7 @@ public async Task CreateOrUpdate_CreatesAFleetResourceWithALongRunningOperation(
// this example assumes you already have this ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
@@ -67,11 +68,73 @@ public async Task CreateOrUpdate_CreatesAFleetResourceWithALongRunningOperation(
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_CreatesAFleetResourceWithALongRunningOperationGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ContainerServiceFleetResource
+ ContainerServiceFleetCollection collection = resourceGroupResource.GetContainerServiceFleets();
+
+ // invoke the operation
+ string fleetName = "fleet1";
+ ContainerServiceFleetData data = new ContainerServiceFleetData(new AzureLocation("East US"))
+ {
+ Identity = new ManagedServiceIdentity("None")
+ {
+ UserAssignedIdentities =
+{
+[new ResourceIdentifier("key126")] = new UserAssignedIdentity()
+},
+ },
+ HubProfile = new FleetHubProfile
+ {
+ DnsPrefix = "dnsprefix1",
+ ApiServerAccessProfile = new ContainerServiceFleetAPIServerAccessProfile
+ {
+ EnablePrivateCluster = true,
+ EnableVnetIntegration = true,
+ SubnetId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgfleets/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1"),
+ },
+ AgentProfile = new ContainerServiceFleetAgentProfile
+ {
+ SubnetId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgfleets/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1"),
+ VmSize = "Standard_DS1",
+ },
+ },
+ Tags = { },
+ };
+ string ifMatch = "jzlrwaylijhsnzp";
+ string ifNoneMatch = "cqpzdjshmggwolagomzxfy";
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, fleetName, data, ifMatch: ifMatch, ifNoneMatch: ifNoneMatch);
+ ContainerServiceFleetResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAFleetResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Get.json
// this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -81,7 +144,7 @@ public async Task Get_GetsAFleetResource()
// this example assumes you already have this ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
@@ -100,11 +163,44 @@ public async Task Get_GetsAFleetResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsAFleetResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ContainerServiceFleetResource
+ ContainerServiceFleetCollection collection = resourceGroupResource.GetContainerServiceFleets();
+
+ // invoke the operation
+ string fleetName = "fleet1";
+ ContainerServiceFleetResource result = await collection.GetAsync(fleetName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ListsTheFleetResourcesInAResourceGroup()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_ListByResourceGroup.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_ListByResourceGroup.json
// this example is just showing the usage of "Fleets_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -114,7 +210,7 @@ public async Task GetAll_ListsTheFleetResourcesInAResourceGroup()
// this example assumes you already have this ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
@@ -135,11 +231,46 @@ public async Task GetAll_ListsTheFleetResourcesInAResourceGroup()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_ListsTheFleetResourcesInAResourceGroupGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ContainerServiceFleetResource
+ ContainerServiceFleetCollection collection = resourceGroupResource.GetContainerServiceFleets();
+
+ // invoke the operation and iterate over the result
+ await foreach (ContainerServiceFleetResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsAFleetResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Get.json
// this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -149,7 +280,7 @@ public async Task Exists_GetsAFleetResource()
// this example assumes you already have this ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
@@ -164,11 +295,40 @@ public async Task Exists_GetsAFleetResource()
Console.WriteLine($"Succeeded: {result}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetsAFleetResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ContainerServiceFleetResource
+ ContainerServiceFleetCollection collection = resourceGroupResource.GetContainerServiceFleets();
+
+ // invoke the operation
+ string fleetName = "fleet1";
+ bool result = await collection.ExistsAsync(fleetName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsAFleetResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Get.json
// this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -178,7 +338,7 @@ public async Task GetIfExists_GetsAFleetResource()
// this example assumes you already have this ResourceGroupResource created on azure
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
@@ -204,5 +364,46 @@ public async Task GetIfExists_GetsAFleetResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetsAFleetResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ContainerServiceFleetResource
+ ContainerServiceFleetCollection collection = resourceGroupResource.GetContainerServiceFleets();
+
+ // invoke the operation
+ string fleetName = "fleet1";
+ NullableResponse response = await collection.GetIfExistsAsync(fleetName);
+ ContainerServiceFleetResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberCollection.cs
index de23acee8277..ee6f7c426055 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_ContainerServiceFleetMemberCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreatesAFleetMemberResourceWithALongRunningOperation()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Create.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Create.json
// this example is just showing the usage of "FleetMembers_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -29,7 +29,7 @@ public async Task CreateOrUpdate_CreatesAFleetMemberResourceWithALongRunningOper
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -54,11 +54,53 @@ public async Task CreateOrUpdate_CreatesAFleetMemberResourceWithALongRunningOper
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_CreatesAFleetMemberResourceWithALongRunningOperationGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Create_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetMembers_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetMemberResource
+ ContainerServiceFleetMemberCollection collection = containerServiceFleet.GetContainerServiceFleetMembers();
+
+ // invoke the operation
+ string fleetMemberName = "fleet1";
+ ContainerServiceFleetMemberData data = new ContainerServiceFleetMemberData
+ {
+ ClusterResourceId = new ResourceIdentifier("/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1"),
+ Group = "fleet1",
+ };
+ string ifMatch = "amkttadbw";
+ string ifNoneMatch = "zoljoccbcg";
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, fleetMemberName, data, ifMatch: ifMatch, ifNoneMatch: ifNoneMatch);
+ ContainerServiceFleetMemberResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetMemberData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAFleetMemberResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Get.json
// this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -68,7 +110,7 @@ public async Task Get_GetsAFleetMemberResource()
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -88,11 +130,45 @@ public async Task Get_GetsAFleetMemberResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsAFleetMemberResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetMemberResource
+ ContainerServiceFleetMemberCollection collection = containerServiceFleet.GetContainerServiceFleetMembers();
+
+ // invoke the operation
+ string fleetMemberName = "fleet1";
+ ContainerServiceFleetMemberResource result = await collection.GetAsync(fleetMemberName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetMemberData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ListsTheMembersOfAFleet()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_ListByFleet.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_ListByFleet.json
// this example is just showing the usage of "FleetMembers_ListByFleet" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -102,7 +178,7 @@ public async Task GetAll_ListsTheMembersOfAFleet()
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -124,11 +200,47 @@ public async Task GetAll_ListsTheMembersOfAFleet()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_ListsTheMembersOfAFleetGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_ListByFleet_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetMembers_ListByFleet" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetMemberResource
+ ContainerServiceFleetMemberCollection collection = containerServiceFleet.GetContainerServiceFleetMembers();
+
+ // invoke the operation and iterate over the result
+ await foreach (ContainerServiceFleetMemberResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetMemberData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsAFleetMemberResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Get.json
// this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -138,7 +250,7 @@ public async Task Exists_GetsAFleetMemberResource()
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -154,11 +266,41 @@ public async Task Exists_GetsAFleetMemberResource()
Console.WriteLine($"Succeeded: {result}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetsAFleetMemberResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetMemberResource
+ ContainerServiceFleetMemberCollection collection = containerServiceFleet.GetContainerServiceFleetMembers();
+
+ // invoke the operation
+ string fleetMemberName = "fleet1";
+ bool result = await collection.ExistsAsync(fleetMemberName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsAFleetMemberResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Get.json
// this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -168,7 +310,7 @@ public async Task GetIfExists_GetsAFleetMemberResource()
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -195,5 +337,47 @@ public async Task GetIfExists_GetsAFleetMemberResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetsAFleetMemberResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetMemberResource
+ ContainerServiceFleetMemberCollection collection = containerServiceFleet.GetContainerServiceFleetMembers();
+
+ // invoke the operation
+ string fleetMemberName = "fleet1";
+ NullableResponse response = await collection.GetIfExistsAsync(fleetMemberName);
+ ContainerServiceFleetMemberResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetMemberData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberResource.cs
index 2d8d2e247cde..f907e97973e3 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetMemberResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ContainerServiceFleetMemberResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAFleetMemberResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Get.json
// this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -30,7 +30,7 @@ public async Task Get_GetsAFleetMemberResource()
// this example assumes you already have this ContainerServiceFleetMemberResource created on azure
// for more information of creating ContainerServiceFleetMemberResource, please refer to the document of ContainerServiceFleetMemberResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
string fleetMemberName = "member-1";
@@ -47,11 +47,42 @@ public async Task Get_GetsAFleetMemberResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsAFleetMemberResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetMembers_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetMemberResource created on azure
+ // for more information of creating ContainerServiceFleetMemberResource, please refer to the document of ContainerServiceFleetMemberResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string fleetMemberName = "fleet1";
+ ResourceIdentifier containerServiceFleetMemberResourceId = ContainerServiceFleetMemberResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, fleetMemberName);
+ ContainerServiceFleetMemberResource containerServiceFleetMember = client.GetContainerServiceFleetMemberResource(containerServiceFleetMemberResourceId);
+
+ // invoke the operation
+ ContainerServiceFleetMemberResource result = await containerServiceFleetMember.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetMemberData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeletesAFleetMemberResourceAsynchronouslyWithALongRunningOperation()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Delete.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Delete.json
// this example is just showing the usage of "FleetMembers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -61,7 +92,7 @@ public async Task Delete_DeletesAFleetMemberResourceAsynchronouslyWithALongRunni
// this example assumes you already have this ContainerServiceFleetMemberResource created on azure
// for more information of creating ContainerServiceFleetMemberResource, please refer to the document of ContainerServiceFleetMemberResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
string fleetMemberName = "member-1";
@@ -74,11 +105,39 @@ public async Task Delete_DeletesAFleetMemberResourceAsynchronouslyWithALongRunni
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Delete_DeletesAFleetMemberResourceAsynchronouslyWithALongRunningOperationGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetMembers_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetMemberResource created on azure
+ // for more information of creating ContainerServiceFleetMemberResource, please refer to the document of ContainerServiceFleetMemberResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string fleetMemberName = "fleet1";
+ ResourceIdentifier containerServiceFleetMemberResourceId = ContainerServiceFleetMemberResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, fleetMemberName);
+ ContainerServiceFleetMemberResource containerServiceFleetMember = client.GetContainerServiceFleetMemberResource(containerServiceFleetMemberResourceId);
+
+ // invoke the operation
+ string ifMatch = "klroqfozx";
+ await containerServiceFleetMember.DeleteAsync(WaitUntil.Completed, ifMatch: ifMatch);
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdatesAFleetMemberResourceSynchronously()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/FleetMembers_Update.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Update.json
// this example is just showing the usage of "FleetMembers_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -88,7 +147,7 @@ public async Task Update_UpdatesAFleetMemberResourceSynchronously()
// this example assumes you already have this ContainerServiceFleetMemberResource created on azure
// for more information of creating ContainerServiceFleetMemberResource, please refer to the document of ContainerServiceFleetMemberResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
string fleetMemberName = "member-1";
@@ -109,5 +168,42 @@ public async Task Update_UpdatesAFleetMemberResourceSynchronously()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_UpdatesAFleetMemberResourceSynchronouslyGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetMembers_Update_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetMembers_Update" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetMemberResource created on azure
+ // for more information of creating ContainerServiceFleetMemberResource, please refer to the document of ContainerServiceFleetMemberResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string fleetMemberName = "fleet1";
+ ResourceIdentifier containerServiceFleetMemberResourceId = ContainerServiceFleetMemberResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, fleetMemberName);
+ ContainerServiceFleetMemberResource containerServiceFleetMember = client.GetContainerServiceFleetMemberResource(containerServiceFleetMemberResourceId);
+
+ // invoke the operation
+ ContainerServiceFleetMemberPatch patch = new ContainerServiceFleetMemberPatch
+ {
+ Group = "staging",
+ };
+ string ifMatch = "bjyjzzxvbs";
+ ArmOperation lro = await containerServiceFleetMember.UpdateAsync(WaitUntil.Completed, patch, ifMatch: ifMatch);
+ ContainerServiceFleetMemberResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetMemberData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetResource.cs
index 895927c3677c..b0b42a4214d3 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetResource.cs
@@ -10,6 +10,7 @@
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.ContainerServiceFleet.Models;
+using Azure.ResourceManager.Models;
using NUnit.Framework;
namespace Azure.ResourceManager.ContainerServiceFleet.Samples
@@ -20,7 +21,7 @@ public partial class Sample_ContainerServiceFleetResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAFleetResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Get.json
// this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -30,7 +31,7 @@ public async Task Get_GetsAFleetResource()
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -46,11 +47,41 @@ public async Task Get_GetsAFleetResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsAFleetResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // invoke the operation
+ ContainerServiceFleetResource result = await containerServiceFleet.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeletesAFleetResourceAsynchronouslyWithALongRunningOperation()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_Delete.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Delete.json
// this example is just showing the usage of "Fleets_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -60,7 +91,7 @@ public async Task Delete_DeletesAFleetResourceAsynchronouslyWithALongRunningOper
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -72,11 +103,38 @@ public async Task Delete_DeletesAFleetResourceAsynchronouslyWithALongRunningOper
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Delete_DeletesAFleetResourceAsynchronouslyWithALongRunningOperationGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // invoke the operation
+ string ifMatch = "crsgokrdxddjsvqxpplerummnmzav";
+ await containerServiceFleet.DeleteAsync(WaitUntil.Completed, ifMatch: ifMatch);
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdateAFleet()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_PatchTags.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_PatchTags.json
// this example is just showing the usage of "Fleets_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -86,7 +144,7 @@ public async Task Update_UpdateAFleet()
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -112,11 +170,54 @@ public async Task Update_UpdateAFleet()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_UpdateAFleetGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_Update_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_Update" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // invoke the operation
+ ContainerServiceFleetPatch patch = new ContainerServiceFleetPatch
+ {
+ Tags = { },
+ Identity = new ManagedServiceIdentity("None")
+ {
+ UserAssignedIdentities =
+{
+[new ResourceIdentifier("key126")] = new UserAssignedIdentity()
+},
+ },
+ };
+ string ifMatch = "lgoeir";
+ ArmOperation lro = await containerServiceFleet.UpdateAsync(WaitUntil.Completed, patch, ifMatch: ifMatch);
+ ContainerServiceFleetResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetCredentials_ListsTheUserCredentialsOfAFleet()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_ListCredentialsResult.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_ListCredentialsResult.json
// this example is just showing the usage of "Fleets_ListCredentials" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -126,7 +227,7 @@ public async Task GetCredentials_ListsTheUserCredentialsOfAFleet()
// this example assumes you already have this ContainerServiceFleetResource created on azure
// for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet";
ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
@@ -137,5 +238,31 @@ public async Task GetCredentials_ListsTheUserCredentialsOfAFleet()
Console.WriteLine($"Succeeded: {result}");
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetCredentials_ListsTheUserCredentialsOfAFleetGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_ListCredentials_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_ListCredentials" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // invoke the operation
+ FleetCredentialResults result = await containerServiceFleet.GetCredentialsAsync();
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunCollection.cs
index 2e2d9cbbb542..22f8b46f3e07 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_ContainerServiceFleetUpdateRunCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreateAnUpdateRun()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_CreateOrUpdate.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_CreateOrUpdate.json
// this example is just showing the usage of "UpdateRuns_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -67,11 +67,67 @@ public async Task CreateOrUpdate_CreateAnUpdateRun()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_CreateAnUpdateRunGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetUpdateRunResource
+ ContainerServiceFleetUpdateRunCollection collection = containerServiceFleet.GetContainerServiceFleetUpdateRuns();
+
+ // invoke the operation
+ string updateRunName = "fleet1";
+ ContainerServiceFleetUpdateRunData data = new ContainerServiceFleetUpdateRunData
+ {
+ UpdateStrategyId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1"),
+ StrategyStages = {new ContainerServiceFleetUpdateStage("stage1")
+{
+Groups = {new ContainerServiceFleetUpdateGroup("group-a")},
+AfterStageWaitInSeconds = 3600,
+}},
+ ManagedClusterUpdate = new ContainerServiceFleetManagedClusterUpdate(new ContainerServiceFleetManagedClusterUpgradeSpec(ContainerServiceFleetManagedClusterUpgradeType.Full)
+ {
+ KubernetesVersion = "1.26.1",
+ })
+ {
+ NodeImageSelection = new NodeImageSelection(NodeImageSelectionType.Latest)
+ {
+ CustomNodeImageVersions = { new NodeImageVersion() },
+ },
+ },
+ };
+ string ifMatch = "wyolpuaxgybeygcbz";
+ string ifNoneMatch = "rwrhonlormgshamadufoo";
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, updateRunName, data, ifMatch: ifMatch, ifNoneMatch: ifNoneMatch);
+ ContainerServiceFleetUpdateRunResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAnUpdateRunResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Get.json
// this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -101,11 +157,45 @@ public async Task Get_GetsAnUpdateRunResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsAnUpdateRunResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetUpdateRunResource
+ ContainerServiceFleetUpdateRunCollection collection = containerServiceFleet.GetContainerServiceFleetUpdateRuns();
+
+ // invoke the operation
+ string updateRunName = "fleet1";
+ ContainerServiceFleetUpdateRunResource result = await collection.GetAsync(updateRunName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ListsTheUpdateRunResourcesByFleet()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_ListByFleet.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_ListByFleet.json
// this example is just showing the usage of "UpdateRuns_ListByFleet" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -137,11 +227,47 @@ public async Task GetAll_ListsTheUpdateRunResourcesByFleet()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_ListsTheUpdateRunResourcesByFleetGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_ListByFleet_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_ListByFleet" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetUpdateRunResource
+ ContainerServiceFleetUpdateRunCollection collection = containerServiceFleet.GetContainerServiceFleetUpdateRuns();
+
+ // invoke the operation and iterate over the result
+ await foreach (ContainerServiceFleetUpdateRunResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsAnUpdateRunResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Get.json
// this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -167,11 +293,41 @@ public async Task Exists_GetsAnUpdateRunResource()
Console.WriteLine($"Succeeded: {result}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetsAnUpdateRunResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetUpdateRunResource
+ ContainerServiceFleetUpdateRunCollection collection = containerServiceFleet.GetContainerServiceFleetUpdateRuns();
+
+ // invoke the operation
+ string updateRunName = "fleet1";
+ bool result = await collection.ExistsAsync(updateRunName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsAnUpdateRunResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Get.json
// this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -208,5 +364,47 @@ public async Task GetIfExists_GetsAnUpdateRunResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetsAnUpdateRunResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this ContainerServiceFleetUpdateRunResource
+ ContainerServiceFleetUpdateRunCollection collection = containerServiceFleet.GetContainerServiceFleetUpdateRuns();
+
+ // invoke the operation
+ string updateRunName = "fleet1";
+ NullableResponse response = await collection.GetIfExistsAsync(updateRunName);
+ ContainerServiceFleetUpdateRunResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunResource.cs
index f221983e7581..e081f4623bcb 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_ContainerServiceFleetUpdateRunResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ContainerServiceFleetUpdateRunResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAnUpdateRunResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Get.json
// this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -47,11 +47,42 @@ public async Task Get_GetsAnUpdateRunResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsAnUpdateRunResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetUpdateRunResource created on azure
+ // for more information of creating ContainerServiceFleetUpdateRunResource, please refer to the document of ContainerServiceFleetUpdateRunResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateRunName = "fleet1";
+ ResourceIdentifier containerServiceFleetUpdateRunResourceId = ContainerServiceFleetUpdateRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateRunName);
+ ContainerServiceFleetUpdateRunResource containerServiceFleetUpdateRun = client.GetContainerServiceFleetUpdateRunResource(containerServiceFleetUpdateRunResourceId);
+
+ // invoke the operation
+ ContainerServiceFleetUpdateRunResource result = await containerServiceFleetUpdateRun.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeleteAnUpdateRunResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Delete.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Delete.json
// this example is just showing the usage of "UpdateRuns_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -61,7 +92,7 @@ public async Task Delete_DeleteAnUpdateRunResource()
// this example assumes you already have this ContainerServiceFleetUpdateRunResource created on azure
// for more information of creating ContainerServiceFleetUpdateRunResource, please refer to the document of ContainerServiceFleetUpdateRunResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
string updateRunName = "run1";
@@ -74,11 +105,39 @@ public async Task Delete_DeleteAnUpdateRunResource()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Delete_DeleteAnUpdateRunResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetUpdateRunResource created on azure
+ // for more information of creating ContainerServiceFleetUpdateRunResource, please refer to the document of ContainerServiceFleetUpdateRunResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateRunName = "fleet1";
+ ResourceIdentifier containerServiceFleetUpdateRunResourceId = ContainerServiceFleetUpdateRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateRunName);
+ ContainerServiceFleetUpdateRunResource containerServiceFleetUpdateRun = client.GetContainerServiceFleetUpdateRunResource(containerServiceFleetUpdateRunResourceId);
+
+ // invoke the operation
+ string ifMatch = "xnbwucfeufeagpa";
+ await containerServiceFleetUpdateRun.DeleteAsync(WaitUntil.Completed, ifMatch: ifMatch);
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Update_CreateAnUpdateRun()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_CreateOrUpdate.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_CreateOrUpdate.json
// this example is just showing the usage of "UpdateRuns_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,11 +181,64 @@ public async Task Update_CreateAnUpdateRun()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_CreateAnUpdateRunGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetUpdateRunResource created on azure
+ // for more information of creating ContainerServiceFleetUpdateRunResource, please refer to the document of ContainerServiceFleetUpdateRunResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateRunName = "fleet1";
+ ResourceIdentifier containerServiceFleetUpdateRunResourceId = ContainerServiceFleetUpdateRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateRunName);
+ ContainerServiceFleetUpdateRunResource containerServiceFleetUpdateRun = client.GetContainerServiceFleetUpdateRunResource(containerServiceFleetUpdateRunResourceId);
+
+ // invoke the operation
+ ContainerServiceFleetUpdateRunData data = new ContainerServiceFleetUpdateRunData
+ {
+ UpdateStrategyId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1"),
+ StrategyStages = {new ContainerServiceFleetUpdateStage("stage1")
+{
+Groups = {new ContainerServiceFleetUpdateGroup("group-a")},
+AfterStageWaitInSeconds = 3600,
+}},
+ ManagedClusterUpdate = new ContainerServiceFleetManagedClusterUpdate(new ContainerServiceFleetManagedClusterUpgradeSpec(ContainerServiceFleetManagedClusterUpgradeType.Full)
+ {
+ KubernetesVersion = "1.26.1",
+ })
+ {
+ NodeImageSelection = new NodeImageSelection(NodeImageSelectionType.Latest)
+ {
+ CustomNodeImageVersions = { new NodeImageVersion() },
+ },
+ },
+ };
+ string ifMatch = "wyolpuaxgybeygcbz";
+ string ifNoneMatch = "rwrhonlormgshamadufoo";
+ ArmOperation lro = await containerServiceFleetUpdateRun.UpdateAsync(WaitUntil.Completed, data, ifMatch: ifMatch, ifNoneMatch: ifNoneMatch);
+ ContainerServiceFleetUpdateRunResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Skip_SkipsOneOrMoreMemberGroupStageAfterStageWaitSOfAnUpdateRun()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Skip.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Skip.json
// this example is just showing the usage of "UpdateRuns_Skip" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -159,11 +271,49 @@ public async Task Skip_SkipsOneOrMoreMemberGroupStageAfterStageWaitSOfAnUpdateRu
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Skip_SkipsOneOrMoreMemberGroupStageAfterStageWaitSOfAnUpdateRunGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Skip_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_Skip" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetUpdateRunResource created on azure
+ // for more information of creating ContainerServiceFleetUpdateRunResource, please refer to the document of ContainerServiceFleetUpdateRunResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateRunName = "fleet1";
+ ResourceIdentifier containerServiceFleetUpdateRunResourceId = ContainerServiceFleetUpdateRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateRunName);
+ ContainerServiceFleetUpdateRunResource containerServiceFleetUpdateRun = client.GetContainerServiceFleetUpdateRunResource(containerServiceFleetUpdateRunResourceId);
+
+ // invoke the operation
+ ContainerServiceFleetSkipProperties body = new ContainerServiceFleetSkipProperties(new ContainerServiceFleetSkipTarget[]
+ {
+new ContainerServiceFleetSkipTarget(ContainerServiceFleetTargetType.Member, "member-one"),
+new ContainerServiceFleetSkipTarget(ContainerServiceFleetTargetType.AfterStageWait, "stage1")
+ });
+ string ifMatch = "rncfubdzrhcihvpqflbsjvoau";
+ ArmOperation lro = await containerServiceFleetUpdateRun.SkipAsync(WaitUntil.Completed, body, ifMatch: ifMatch);
+ ContainerServiceFleetUpdateRunResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Start_StartsAnUpdateRun()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Start.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Start.json
// this example is just showing the usage of "UpdateRuns_Start" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -191,11 +341,44 @@ public async Task Start_StartsAnUpdateRun()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_StartsAnUpdateRunGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Start_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_Start" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetUpdateRunResource created on azure
+ // for more information of creating ContainerServiceFleetUpdateRunResource, please refer to the document of ContainerServiceFleetUpdateRunResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateRunName = "fleet1";
+ ResourceIdentifier containerServiceFleetUpdateRunResourceId = ContainerServiceFleetUpdateRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateRunName);
+ ContainerServiceFleetUpdateRunResource containerServiceFleetUpdateRun = client.GetContainerServiceFleetUpdateRunResource(containerServiceFleetUpdateRunResourceId);
+
+ // invoke the operation
+ string ifMatch = "bvhjlqeindkmljbbiypbqiaqgtkhlu";
+ ArmOperation lro = await containerServiceFleetUpdateRun.StartAsync(WaitUntil.Completed, ifMatch: ifMatch);
+ ContainerServiceFleetUpdateRunResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Stop_StopsAnUpdateRun()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateRuns_Stop.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Stop.json
// this example is just showing the usage of "UpdateRuns_Stop" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -222,5 +405,38 @@ public async Task Stop_StopsAnUpdateRun()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_StopsAnUpdateRunGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateRuns_Stop_MaximumSet_Gen.json
+ // this example is just showing the usage of "UpdateRuns_Stop" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetUpdateRunResource created on azure
+ // for more information of creating ContainerServiceFleetUpdateRunResource, please refer to the document of ContainerServiceFleetUpdateRunResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateRunName = "fleet1";
+ ResourceIdentifier containerServiceFleetUpdateRunResourceId = ContainerServiceFleetUpdateRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateRunName);
+ ContainerServiceFleetUpdateRunResource containerServiceFleetUpdateRun = client.GetContainerServiceFleetUpdateRunResource(containerServiceFleetUpdateRunResourceId);
+
+ // invoke the operation
+ string ifMatch = "jb";
+ ArmOperation lro = await containerServiceFleetUpdateRun.StopAsync(WaitUntil.Completed, ifMatch: ifMatch);
+ ContainerServiceFleetUpdateRunResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetUpdateRunData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyCollection.cs
index e7a5d0afcfe0..bc13756c4c26 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_FleetUpdateStrategyCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreateAFleetUpdateStrategy()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_CreateOrUpdate.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateStrategies_CreateOrUpdate.json
// this example is just showing the usage of "FleetUpdateStrategies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -59,11 +59,56 @@ public async Task CreateOrUpdate_CreateAFleetUpdateStrategy()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_CreateAFleetUpdateStrategyGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetUpdateStrategies_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetUpdateStrategies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this FleetUpdateStrategyResource
+ FleetUpdateStrategyCollection collection = containerServiceFleet.GetFleetUpdateStrategies();
+
+ // invoke the operation
+ string updateStrategyName = "fleet1";
+ FleetUpdateStrategyData data = new FleetUpdateStrategyData
+ {
+ StrategyStages = {new ContainerServiceFleetUpdateStage("stage1")
+{
+Groups = {new ContainerServiceFleetUpdateGroup("group-a")},
+AfterStageWaitInSeconds = 3600,
+}},
+ };
+ string ifMatch = "bttptpmhheves";
+ string ifNoneMatch = "tlx";
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, updateStrategyName, data, ifMatch: ifMatch, ifNoneMatch: ifNoneMatch);
+ FleetUpdateStrategyResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ FleetUpdateStrategyData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Get_GetAFleetUpdateStrategyResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateStrategies_Get.json
// this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,11 +138,45 @@ public async Task Get_GetAFleetUpdateStrategyResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetAFleetUpdateStrategyResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetUpdateStrategies_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this FleetUpdateStrategyResource
+ FleetUpdateStrategyCollection collection = containerServiceFleet.GetFleetUpdateStrategies();
+
+ // invoke the operation
+ string updateStrategyName = "fleet1";
+ FleetUpdateStrategyResource result = await collection.GetAsync(updateStrategyName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ FleetUpdateStrategyData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ListTheFleetUpdateStrategyResourcesByFleet()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_ListByFleet.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateStrategies_ListByFleet.json
// this example is just showing the usage of "FleetUpdateStrategies_ListByFleet" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -129,11 +208,47 @@ public async Task GetAll_ListTheFleetUpdateStrategyResourcesByFleet()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_ListTheFleetUpdateStrategyResourcesByFleetGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetUpdateStrategies_ListByFleet_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetUpdateStrategies_ListByFleet" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this FleetUpdateStrategyResource
+ FleetUpdateStrategyCollection collection = containerServiceFleet.GetFleetUpdateStrategies();
+
+ // invoke the operation and iterate over the result
+ await foreach (FleetUpdateStrategyResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ FleetUpdateStrategyData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetAFleetUpdateStrategyResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateStrategies_Get.json
// this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -159,11 +274,41 @@ public async Task Exists_GetAFleetUpdateStrategyResource()
Console.WriteLine($"Succeeded: {result}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetAFleetUpdateStrategyResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetUpdateStrategies_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this FleetUpdateStrategyResource
+ FleetUpdateStrategyCollection collection = containerServiceFleet.GetFleetUpdateStrategies();
+
+ // invoke the operation
+ string updateStrategyName = "fleet1";
+ bool result = await collection.ExistsAsync(updateStrategyName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetAFleetUpdateStrategyResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateStrategies_Get.json
// this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -200,5 +345,47 @@ public async Task GetIfExists_GetAFleetUpdateStrategyResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetAFleetUpdateStrategyResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetUpdateStrategies_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ContainerServiceFleetResource created on azure
+ // for more information of creating ContainerServiceFleetResource, please refer to the document of ContainerServiceFleetResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ ResourceIdentifier containerServiceFleetResourceId = ContainerServiceFleetResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName);
+ ContainerServiceFleetResource containerServiceFleet = client.GetContainerServiceFleetResource(containerServiceFleetResourceId);
+
+ // get the collection of this FleetUpdateStrategyResource
+ FleetUpdateStrategyCollection collection = containerServiceFleet.GetFleetUpdateStrategies();
+
+ // invoke the operation
+ string updateStrategyName = "fleet1";
+ NullableResponse response = await collection.GetIfExistsAsync(updateStrategyName);
+ FleetUpdateStrategyResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ FleetUpdateStrategyData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyResource.cs
index 3b264e4059e4..8261148edfe1 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_FleetUpdateStrategyResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_FleetUpdateStrategyResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetAFleetUpdateStrategyResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Get.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateStrategies_Get.json
// this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -47,11 +47,42 @@ public async Task Get_GetAFleetUpdateStrategyResource()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetAFleetUpdateStrategyResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetUpdateStrategies_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetUpdateStrategies_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this FleetUpdateStrategyResource created on azure
+ // for more information of creating FleetUpdateStrategyResource, please refer to the document of FleetUpdateStrategyResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateStrategyName = "fleet1";
+ ResourceIdentifier fleetUpdateStrategyResourceId = FleetUpdateStrategyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateStrategyName);
+ FleetUpdateStrategyResource fleetUpdateStrategy = client.GetFleetUpdateStrategyResource(fleetUpdateStrategyResourceId);
+
+ // invoke the operation
+ FleetUpdateStrategyResource result = await fleetUpdateStrategy.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ FleetUpdateStrategyData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeleteAFleetUpdateStrategyResource()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_Delete.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateStrategies_Delete.json
// this example is just showing the usage of "FleetUpdateStrategies_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -61,7 +92,7 @@ public async Task Delete_DeleteAFleetUpdateStrategyResource()
// this example assumes you already have this FleetUpdateStrategyResource created on azure
// for more information of creating FleetUpdateStrategyResource, please refer to the document of FleetUpdateStrategyResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
string resourceGroupName = "rg1";
string fleetName = "fleet1";
string updateStrategyName = "strategy1";
@@ -74,11 +105,39 @@ public async Task Delete_DeleteAFleetUpdateStrategyResource()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Delete_DeleteAFleetUpdateStrategyResourceGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetUpdateStrategies_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetUpdateStrategies_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this FleetUpdateStrategyResource created on azure
+ // for more information of creating FleetUpdateStrategyResource, please refer to the document of FleetUpdateStrategyResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateStrategyName = "fleet1";
+ ResourceIdentifier fleetUpdateStrategyResourceId = FleetUpdateStrategyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateStrategyName);
+ FleetUpdateStrategyResource fleetUpdateStrategy = client.GetFleetUpdateStrategyResource(fleetUpdateStrategyResourceId);
+
+ // invoke the operation
+ string ifMatch = "saqprswlk";
+ await fleetUpdateStrategy.DeleteAsync(WaitUntil.Completed, ifMatch: ifMatch);
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task Update_CreateAFleetUpdateStrategy()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/UpdateStrategies_CreateOrUpdate.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/UpdateStrategies_CreateOrUpdate.json
// this example is just showing the usage of "FleetUpdateStrategies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -113,5 +172,47 @@ public async Task Update_CreateAFleetUpdateStrategy()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_CreateAFleetUpdateStrategyGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/FleetUpdateStrategies_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "FleetUpdateStrategies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this FleetUpdateStrategyResource created on azure
+ // for more information of creating FleetUpdateStrategyResource, please refer to the document of FleetUpdateStrategyResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "rgfleets";
+ string fleetName = "fleet1";
+ string updateStrategyName = "fleet1";
+ ResourceIdentifier fleetUpdateStrategyResourceId = FleetUpdateStrategyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, fleetName, updateStrategyName);
+ FleetUpdateStrategyResource fleetUpdateStrategy = client.GetFleetUpdateStrategyResource(fleetUpdateStrategyResourceId);
+
+ // invoke the operation
+ FleetUpdateStrategyData data = new FleetUpdateStrategyData
+ {
+ StrategyStages = {new ContainerServiceFleetUpdateStage("stage1")
+{
+Groups = {new ContainerServiceFleetUpdateGroup("group-a")},
+AfterStageWaitInSeconds = 3600,
+}},
+ };
+ string ifMatch = "bttptpmhheves";
+ string ifNoneMatch = "tlx";
+ ArmOperation lro = await fleetUpdateStrategy.UpdateAsync(WaitUntil.Completed, data, ifMatch: ifMatch, ifNoneMatch: ifNoneMatch);
+ FleetUpdateStrategyResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ FleetUpdateStrategyData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
index b007779d187f..6c4f9c7ba772 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
@@ -20,7 +20,7 @@ public partial class Sample_SubscriptionResourceExtensions
[Ignore("Only validating compilation of examples")]
public async Task GetContainerServiceFleets_ListsTheFleetResourcesInASubscription()
{
- // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-05-02-preview/examples/Fleets_ListBySub.json
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_ListBySub.json
// this example is just showing the usage of "Fleets_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -30,7 +30,38 @@ public async Task GetContainerServiceFleets_ListsTheFleetResourcesInASubscriptio
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
- string subscriptionId = "subid1";
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (ContainerServiceFleetResource item in subscriptionResource.GetContainerServiceFleetsAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ContainerServiceFleetData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetContainerServiceFleets_ListsTheFleetResourcesInASubscriptionGeneratedByMaximumSetRule()
+ {
+ // Generated from example definition: specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2025-03-01/examples/Fleets_ListBySubscription_MaximumSet_Gen.json
+ // this example is just showing the usage of "Fleets_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Azure.ResourceManager.ContainerServiceFleet.csproj b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Azure.ResourceManager.ContainerServiceFleet.csproj
index 6d1832eab0c4..7b85e110d827 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Azure.ResourceManager.ContainerServiceFleet.csproj
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Azure.ResourceManager.ContainerServiceFleet.csproj
@@ -1,6 +1,6 @@
- 1.1.0-beta.2
+ 1.1.0
1.0.0
Azure.ResourceManager.ContainerServiceFleet
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ArmContainerServiceFleetModelFactory.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ArmContainerServiceFleetModelFactory.cs
index 6c1a73fc7969..238c36a8a0d5 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ArmContainerServiceFleetModelFactory.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ArmContainerServiceFleetModelFactory.cs
@@ -28,8 +28,9 @@ public static partial class ArmContainerServiceFleetModelFactory
/// Managed identity.
/// The status of the last operation.
/// The FleetHubProfile configures the Fleet's hub.
+ /// Status information for the fleet.
/// A new instance for mocking.
- public static ContainerServiceFleetData ContainerServiceFleetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? eTag = null, ManagedServiceIdentity identity = null, FleetProvisioningState? provisioningState = null, FleetHubProfile hubProfile = null)
+ public static ContainerServiceFleetData ContainerServiceFleetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? eTag = null, ManagedServiceIdentity identity = null, FleetProvisioningState? provisioningState = null, FleetHubProfile hubProfile = null, ContainerServiceFleetStatus status = null)
{
tags ??= new Dictionary();
@@ -44,6 +45,7 @@ public static ContainerServiceFleetData ContainerServiceFleetData(ResourceIdenti
identity,
provisioningState,
hubProfile,
+ status,
serializedAdditionalRawData: null);
}
@@ -67,6 +69,15 @@ public static FleetHubProfile FleetHubProfile(string dnsPrefix = null, Container
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The last operation ID for the fleet.
+ /// The last operation error for the fleet.
+ /// A new instance for mocking.
+ public static ContainerServiceFleetStatus ContainerServiceFleetStatus(string lastOperationId = null, ResponseError lastOperationError = null)
+ {
+ return new ContainerServiceFleetStatus(lastOperationId, lastOperationError, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -83,8 +94,9 @@ public static FleetHubProfile FleetHubProfile(string dnsPrefix = null, Container
/// 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.
///
+ /// The status of the auto upgrade profile.
/// A new instance for mocking.
- public static AutoUpgradeProfileData AutoUpgradeProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? eTag = null, AutoUpgradeProfileProvisioningState? provisioningState = null, ResourceIdentifier updateStrategyId = null, ContainerServiceFleetUpgradeChannel? channel = null, AutoUpgradeNodeImageSelectionType? selectionType = null, bool? disabled = null)
+ public static AutoUpgradeProfileData AutoUpgradeProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? eTag = null, AutoUpgradeProfileProvisioningState? provisioningState = null, ResourceIdentifier updateStrategyId = null, ContainerServiceFleetUpgradeChannel? channel = null, AutoUpgradeNodeImageSelectionType? selectionType = null, bool? disabled = null, AutoUpgradeProfileStatus autoUpgradeProfileStatus = null)
{
return new AutoUpgradeProfileData(
id,
@@ -97,9 +109,31 @@ public static AutoUpgradeProfileData AutoUpgradeProfileData(ResourceIdentifier i
channel,
selectionType.HasValue ? new AutoUpgradeNodeImageSelection(selectionType.Value, serializedAdditionalRawData: null) : null,
disabled,
+ autoUpgradeProfileStatus,
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The UTC time of the last attempt to automatically create and start an UpdateRun as triggered by the release of new versions.
+ /// The status of the last AutoUpgrade trigger.
+ /// The error details of the last trigger.
+ /// The target Kubernetes version or node image versions of the last trigger.
+ /// A new instance for mocking.
+ public static AutoUpgradeProfileStatus AutoUpgradeProfileStatus(DateTimeOffset? lastTriggeredOn = null, AutoUpgradeLastTriggerStatus? lastTriggerStatus = null, ResponseError lastTriggerError = null, IEnumerable lastTriggerUpgradeVersions = null)
+ {
+ lastTriggerUpgradeVersions ??= new List();
+
+ return new AutoUpgradeProfileStatus(lastTriggeredOn, lastTriggerStatus, lastTriggerError, lastTriggerUpgradeVersions?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The ARM resource id of the generated UpdateRun. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}'.
+ /// A new instance for mocking.
+ public static AutoUpgradeProfileGenerateResult AutoUpgradeProfileGenerateResult(string id = null)
+ {
+ return new AutoUpgradeProfileGenerateResult(id, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// Array of base64-encoded Kubernetes configuration files.
/// A new instance for mocking.
@@ -128,8 +162,9 @@ public static FleetCredentialResult FleetCredentialResult(string name = null, by
/// The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.
/// The group this member belongs to for multi-cluster update management.
/// The status of the last operation.
+ /// Status information of the last operation for fleet member.
/// A new instance for mocking.
- public static ContainerServiceFleetMemberData ContainerServiceFleetMemberData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? eTag = null, ResourceIdentifier clusterResourceId = null, string group = null, FleetMemberProvisioningState? provisioningState = null)
+ public static ContainerServiceFleetMemberData ContainerServiceFleetMemberData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? eTag = null, ResourceIdentifier clusterResourceId = null, string group = null, FleetMemberProvisioningState? provisioningState = null, ContainerServiceFleetMemberStatus status = null)
{
return new ContainerServiceFleetMemberData(
id,
@@ -140,9 +175,19 @@ public static ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Re
clusterResourceId,
group,
provisioningState,
+ status,
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The last operation ID for the fleet member.
+ /// The last operation error of the fleet member.
+ /// A new instance for mocking.
+ public static ContainerServiceFleetMemberStatus ContainerServiceFleetMemberStatus(string lastOperationId = null, ResponseError lastOperationError = null)
+ {
+ return new ContainerServiceFleetMemberStatus(lastOperationId, lastOperationError, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -171,8 +216,9 @@ public static ContainerServiceFleetMemberData ContainerServiceFleetMemberData(Re
///
/// The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started.
/// The status of the UpdateRun.
+ /// AutoUpgradeProfileId is the id of an auto upgrade profile resource.
/// A new instance for mocking.
- public static ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? eTag = null, ContainerServiceFleetUpdateRunProvisioningState? provisioningState = null, ResourceIdentifier updateStrategyId = null, IEnumerable strategyStages = null, ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = null, ContainerServiceFleetUpdateRunStatus status = null)
+ public static ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? eTag = null, ContainerServiceFleetUpdateRunProvisioningState? provisioningState = null, ResourceIdentifier updateStrategyId = null, IEnumerable strategyStages = null, ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = null, ContainerServiceFleetUpdateRunStatus status = null, ResourceIdentifier autoUpgradeProfileId = null)
{
strategyStages ??= new List();
@@ -187,6 +233,7 @@ public static ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunD
strategyStages != null ? new ContainerServiceFleetUpdateRunStrategy(strategyStages?.ToList(), serializedAdditionalRawData: null) : null,
managedClusterUpdate,
status,
+ autoUpgradeProfileId,
serializedAdditionalRawData: null);
}
@@ -312,7 +359,55 @@ public static FleetUpdateStrategyData FleetUpdateStrategyData(ResourceIdentifier
[EditorBrowsable(EditorBrowsableState.Never)]
public static ContainerServiceFleetData ContainerServiceFleetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? eTag, ManagedServiceIdentity identity, FleetProvisioningState? provisioningState)
{
- return ContainerServiceFleetData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, eTag: eTag, identity: identity, provisioningState: provisioningState, hubProfile: default);
+ return ContainerServiceFleetData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, eTag: eTag, identity: identity, provisioningState: provisioningState, hubProfile: default, status: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// 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.
+ /// The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.
+ /// The group this member belongs to for multi-cluster update management.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static ContainerServiceFleetMemberData ContainerServiceFleetMemberData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, ResourceIdentifier clusterResourceId, string group, FleetMemberProvisioningState? provisioningState)
+ {
+ return ContainerServiceFleetMemberData(id: id, name: name, resourceType: resourceType, systemData: systemData, eTag: eTag, clusterResourceId: clusterResourceId, group: group, provisioningState: provisioningState, status: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// 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.
+ /// The provisioning state of the UpdateRun resource.
+ ///
+ /// 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.
+ ///
+ ///
+ /// 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.
+ ///
+ /// The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started.
+ /// The status of the UpdateRun.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static ContainerServiceFleetUpdateRunData ContainerServiceFleetUpdateRunData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, ContainerServiceFleetUpdateRunProvisioningState? provisioningState, ResourceIdentifier updateStrategyId, IEnumerable strategyStages, ContainerServiceFleetManagedClusterUpdate managedClusterUpdate, ContainerServiceFleetUpdateRunStatus status)
+ {
+ return ContainerServiceFleetUpdateRunData(id: id, name: name, resourceType: resourceType, systemData: systemData, eTag: eTag, provisioningState: provisioningState, updateStrategyId: updateStrategyId, strategyStages: strategyStages, managedClusterUpdate: managedClusterUpdate, status: status, autoUpgradeProfileId: default);
}
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileCollection.cs
index 7cb39a39a567..31c33940055c 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpda
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -256,7 +256,7 @@ public virtual Response Get(string autoUpgradeProfil
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken can
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string autoUpgradeProfileN
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -402,7 +402,7 @@ public virtual Response Exists(string autoUpgradeProfileName, Cancellation
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -447,7 +447,7 @@ public virtual async Task> GetIfExi
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.Serialization.cs
index 9b9b3f6e2c05..604e6cc5af12 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.Serialization.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.Serialization.cs
@@ -69,6 +69,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
writer.WritePropertyName("disabled"u8);
writer.WriteBooleanValue(Disabled.Value);
}
+ if (Optional.IsDefined(AutoUpgradeProfileStatus))
+ {
+ writer.WritePropertyName("autoUpgradeProfileStatus"u8);
+ writer.WriteObjectValue(AutoUpgradeProfileStatus, options);
+ }
writer.WriteEndObject();
}
@@ -102,6 +107,7 @@ internal static AutoUpgradeProfileData DeserializeAutoUpgradeProfileData(JsonEle
ContainerServiceFleetUpgradeChannel? channel = default;
AutoUpgradeNodeImageSelection nodeImageSelection = default;
bool? disabled = default;
+ AutoUpgradeProfileStatus autoUpgradeProfileStatus = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -193,6 +199,15 @@ internal static AutoUpgradeProfileData DeserializeAutoUpgradeProfileData(JsonEle
disabled = property0.Value.GetBoolean();
continue;
}
+ if (property0.NameEquals("autoUpgradeProfileStatus"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ autoUpgradeProfileStatus = AutoUpgradeProfileStatus.DeserializeAutoUpgradeProfileStatus(property0.Value, options);
+ continue;
+ }
}
continue;
}
@@ -213,6 +228,7 @@ internal static AutoUpgradeProfileData DeserializeAutoUpgradeProfileData(JsonEle
channel,
nodeImageSelection,
disabled,
+ autoUpgradeProfileStatus,
serializedAdditionalRawData);
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.cs
index 4b97106a4984..1a41352658ca 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileData.cs
@@ -72,8 +72,9 @@ public AutoUpgradeProfileData()
/// 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.
///
+ /// The status of the auto upgrade profile.
/// Keeps track of any properties unknown to the library.
- internal AutoUpgradeProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, AutoUpgradeProfileProvisioningState? provisioningState, ResourceIdentifier updateStrategyId, ContainerServiceFleetUpgradeChannel? channel, AutoUpgradeNodeImageSelection nodeImageSelection, bool? disabled, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ internal AutoUpgradeProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, AutoUpgradeProfileProvisioningState? provisioningState, ResourceIdentifier updateStrategyId, ContainerServiceFleetUpgradeChannel? channel, AutoUpgradeNodeImageSelection nodeImageSelection, bool? disabled, AutoUpgradeProfileStatus autoUpgradeProfileStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
{
ETag = eTag;
ProvisioningState = provisioningState;
@@ -81,6 +82,7 @@ internal AutoUpgradeProfileData(ResourceIdentifier id, string name, ResourceType
Channel = channel;
NodeImageSelection = nodeImageSelection;
Disabled = disabled;
+ AutoUpgradeProfileStatus = autoUpgradeProfileStatus;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -111,5 +113,7 @@ public AutoUpgradeNodeImageSelectionType? SelectionType
/// By default, this is set to False.
///
public bool? Disabled { get; set; }
+ /// The status of the auto upgrade profile.
+ public AutoUpgradeProfileStatus AutoUpgradeProfileStatus { get; set; }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.cs
index c5deec2cc26f..d7415e021c78 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/AutoUpgradeProfileResource.cs
@@ -11,6 +11,7 @@
using System.Threading.Tasks;
using Azure.Core;
using Azure.Core.Pipeline;
+using Azure.ResourceManager.ContainerServiceFleet.Models;
namespace Azure.ResourceManager.ContainerServiceFleet
{
@@ -35,6 +36,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId,
private readonly ClientDiagnostics _autoUpgradeProfileClientDiagnostics;
private readonly AutoUpgradeProfilesRestOperations _autoUpgradeProfileRestClient;
+ private readonly ClientDiagnostics _autoUpgradeProfileOperationsClientDiagnostics;
+ private readonly AutoUpgradeProfileRestOperations _autoUpgradeProfileOperationsRestClient;
private readonly AutoUpgradeProfileData _data;
/// Gets the resource type for the operations.
@@ -62,6 +65,8 @@ internal AutoUpgradeProfileResource(ArmClient client, ResourceIdentifier id) : b
_autoUpgradeProfileClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerServiceFleet", ResourceType.Namespace, Diagnostics);
TryGetApiVersion(ResourceType, out string autoUpgradeProfileApiVersion);
_autoUpgradeProfileRestClient = new AutoUpgradeProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, autoUpgradeProfileApiVersion);
+ _autoUpgradeProfileOperationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ContainerServiceFleet", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ _autoUpgradeProfileOperationsRestClient = new AutoUpgradeProfileRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
#if DEBUG
ValidateResourceId(Id);
#endif
@@ -101,7 +106,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -141,7 +146,7 @@ public virtual async Task> GetAsync(Cancell
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -181,7 +186,7 @@ public virtual Response Get(CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -224,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -267,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -315,7 +320,7 @@ public virtual async Task> UpdateAsync(
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -349,5 +354,81 @@ public virtual ArmOperation Update(WaitUntil waitUnt
throw;
}
}
+
+ ///
+ /// A long-running resource action.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}/generateUpdateRun
+ ///
+ /// -
+ /// Operation Id
+ /// AutoUpgradeProfileOperations_GenerateUpdateRun
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task> GenerateUpdateRunAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _autoUpgradeProfileOperationsClientDiagnostics.CreateScope("AutoUpgradeProfileResource.GenerateUpdateRun");
+ scope.Start();
+ try
+ {
+ var response = await _autoUpgradeProfileOperationsRestClient.GenerateUpdateRunAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new ContainerServiceFleetArmOperation(new AutoUpgradeProfileGenerateResultOperationSource(), _autoUpgradeProfileOperationsClientDiagnostics, Pipeline, _autoUpgradeProfileOperationsRestClient.CreateGenerateUpdateRunRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// A long-running resource action.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}/generateUpdateRun
+ ///
+ /// -
+ /// Operation Id
+ /// AutoUpgradeProfileOperations_GenerateUpdateRun
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-03-01
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation GenerateUpdateRun(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _autoUpgradeProfileOperationsClientDiagnostics.CreateScope("AutoUpgradeProfileResource.GenerateUpdateRun");
+ scope.Start();
+ try
+ {
+ var response = _autoUpgradeProfileOperationsRestClient.GenerateUpdateRun(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ var operation = new ContainerServiceFleetArmOperation(new AutoUpgradeProfileGenerateResultOperationSource(), _autoUpgradeProfileOperationsClientDiagnostics, Pipeline, _autoUpgradeProfileOperationsRestClient.CreateGenerateUpdateRunRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetCollection.cs
index 45c7429dcb9e..fde77a40b472 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -91,7 +91,7 @@ public virtual async Task> CreateOrU
try
{
var response = await _containerServiceFleetFleetsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -116,7 +116,7 @@ public virtual async Task> CreateOrU
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -142,7 +142,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn
try
{
var response = _containerServiceFleetFleetsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, fleetName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -212,7 +212,7 @@ public virtual async Task> GetAsync(stri
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -257,7 +257,7 @@ public virtual Response Get(string fleetName, Can
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancella
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string fleetName, Cancella
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -403,7 +403,7 @@ public virtual Response Exists(string fleetName, CancellationToken cancell
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -448,7 +448,7 @@ public virtual async Task> GetIf
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.Serialization.cs
index 43e6792fd388..7c9463878d7f 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.Serialization.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.Serialization.cs
@@ -59,6 +59,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
writer.WritePropertyName("hubProfile"u8);
writer.WriteObjectValue(HubProfile, options);
}
+ if (options.Format != "W" && Optional.IsDefined(Status))
+ {
+ writer.WritePropertyName("status"u8);
+ writer.WriteObjectValue(Status, options);
+ }
writer.WriteEndObject();
}
@@ -92,6 +97,7 @@ internal static ContainerServiceFleetData DeserializeContainerServiceFleetData(J
SystemData systemData = default;
FleetProvisioningState? provisioningState = default;
FleetHubProfile hubProfile = default;
+ ContainerServiceFleetStatus status = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -184,6 +190,15 @@ internal static ContainerServiceFleetData DeserializeContainerServiceFleetData(J
hubProfile = FleetHubProfile.DeserializeFleetHubProfile(property0.Value, options);
continue;
}
+ if (property0.NameEquals("status"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ status = ContainerServiceFleetStatus.DeserializeContainerServiceFleetStatus(property0.Value, options);
+ continue;
+ }
}
continue;
}
@@ -204,6 +219,7 @@ internal static ContainerServiceFleetData DeserializeContainerServiceFleetData(J
identity,
provisioningState,
hubProfile,
+ status,
serializedAdditionalRawData);
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.cs
index f0f517e6dfcc..587538542a0d 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetData.cs
@@ -68,13 +68,15 @@ public ContainerServiceFleetData(AzureLocation location) : base(location)
/// Managed identity.
/// The status of the last operation.
/// The FleetHubProfile configures the Fleet's hub.
+ /// Status information for the fleet.
/// Keeps track of any properties unknown to the library.
- internal ContainerServiceFleetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? eTag, ManagedServiceIdentity identity, FleetProvisioningState? provisioningState, FleetHubProfile hubProfile, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
+ internal ContainerServiceFleetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? eTag, ManagedServiceIdentity identity, FleetProvisioningState? provisioningState, FleetHubProfile hubProfile, ContainerServiceFleetStatus status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
{
ETag = eTag;
Identity = identity;
ProvisioningState = provisioningState;
HubProfile = hubProfile;
+ Status = status;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -91,5 +93,7 @@ internal ContainerServiceFleetData()
public FleetProvisioningState? ProvisioningState { get; }
/// The FleetHubProfile configures the Fleet's hub.
public FleetHubProfile HubProfile { get; set; }
+ /// Status information for the fleet.
+ public ContainerServiceFleetStatus Status { get; }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberCollection.cs
index b7aea330dc85..5aabb2e34a3e 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -90,7 +90,7 @@ public virtual async Task> Cre
try
{
var response = await _containerServiceFleetMemberFleetMembersRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -115,7 +115,7 @@ public virtual async Task> Cre
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -141,7 +141,7 @@ public virtual ArmOperation CreateOrUpdate(
try
{
var response = _containerServiceFleetMemberFleetMembersRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, fleetMemberName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task> GetAsyn
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -256,7 +256,7 @@ public virtual Response Get(string fleetMem
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Ca
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancellation
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string fleetMemberName, Ca
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -402,7 +402,7 @@ public virtual Response Exists(string fleetMemberName, CancellationToken c
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -447,7 +447,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberData.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberData.Serialization.cs
index b940d27cb931..6725ffe00b0d 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberData.Serialization.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberData.Serialization.cs
@@ -59,6 +59,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
writer.WritePropertyName("provisioningState"u8);
writer.WriteStringValue(ProvisioningState.Value.ToString());
}
+ if (options.Format != "W" && Optional.IsDefined(Status))
+ {
+ writer.WritePropertyName("status"u8);
+ writer.WriteObjectValue(Status, options);
+ }
writer.WriteEndObject();
}
@@ -90,6 +95,7 @@ internal static ContainerServiceFleetMemberData DeserializeContainerServiceFleet
ResourceIdentifier clusterResourceId = default;
string group = default;
FleetMemberProvisioningState? provisioningState = default;
+ ContainerServiceFleetMemberStatus status = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -159,6 +165,15 @@ internal static ContainerServiceFleetMemberData DeserializeContainerServiceFleet
provisioningState = new FleetMemberProvisioningState(property0.Value.GetString());
continue;
}
+ if (property0.NameEquals("status"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ status = ContainerServiceFleetMemberStatus.DeserializeContainerServiceFleetMemberStatus(property0.Value, options);
+ continue;
+ }
}
continue;
}
@@ -177,6 +192,7 @@ internal static ContainerServiceFleetMemberData DeserializeContainerServiceFleet
clusterResourceId,
group,
provisioningState,
+ status,
serializedAdditionalRawData);
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberData.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberData.cs
index da19ba0286aa..1a15be87ffd0 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberData.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberData.cs
@@ -65,13 +65,15 @@ public ContainerServiceFleetMemberData()
/// The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.
/// The group this member belongs to for multi-cluster update management.
/// The status of the last operation.
+ /// Status information of the last operation for fleet member.
/// Keeps track of any properties unknown to the library.
- internal ContainerServiceFleetMemberData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, ResourceIdentifier clusterResourceId, string group, FleetMemberProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ internal ContainerServiceFleetMemberData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, ResourceIdentifier clusterResourceId, string group, FleetMemberProvisioningState? provisioningState, ContainerServiceFleetMemberStatus status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
{
ETag = eTag;
ClusterResourceId = clusterResourceId;
Group = group;
ProvisioningState = provisioningState;
+ Status = status;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -83,5 +85,7 @@ internal ContainerServiceFleetMemberData(ResourceIdentifier id, string name, Res
public string Group { get; set; }
/// The status of the last operation.
public FleetMemberProvisioningState? ProvisioningState { get; }
+ /// Status information of the last operation for fleet member.
+ public ContainerServiceFleetMemberStatus Status { get; }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberResource.cs
index e0683ad16deb..b4542ff93067 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetMemberResource.cs
@@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -142,7 +142,7 @@ public virtual async Task> GetAsyn
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -182,7 +182,7 @@ public virtual Response Get(CancellationTok
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -200,7 +200,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
try
{
var response = await _containerServiceFleetMemberFleetMembersRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location);
+ var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -243,7 +243,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
try
{
var response = _containerServiceFleetMemberFleetMembersRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location);
+ var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletionResponse(cancellationToken);
return operation;
@@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -290,7 +290,7 @@ public virtual async Task> Upd
try
{
var response = await _containerServiceFleetMemberFleetMembersRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -315,7 +315,7 @@ public virtual async Task> Upd
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -337,7 +337,7 @@ public virtual ArmOperation Update(WaitUnti
try
{
var response = _containerServiceFleetMemberFleetMembersRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetMemberOperationSource(Client), _containerServiceFleetMemberFleetMembersClientDiagnostics, Pipeline, _containerServiceFleetMemberFleetMembersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetResource.cs
index 99c0fb94def0..53ccdefc344b 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetResource.cs
@@ -110,7 +110,7 @@ public virtual AutoUpgradeProfileCollection GetAutoUpgradeProfiles()
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -141,7 +141,7 @@ public virtual async Task> GetAutoUpgradePr
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -179,7 +179,7 @@ public virtual ContainerServiceFleetMemberCollection GetContainerServiceFleetMem
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -210,7 +210,7 @@ public virtual async Task> GetCont
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -248,7 +248,7 @@ public virtual ContainerServiceFleetUpdateRunCollection GetContainerServiceFleet
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -279,7 +279,7 @@ public virtual async Task> GetC
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -317,7 +317,7 @@ public virtual FleetUpdateStrategyCollection GetFleetUpdateStrategies()
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -348,7 +348,7 @@ public virtual async Task> GetFleetUpdateS
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -379,7 +379,7 @@ public virtual Response GetFleetUpdateStrategy(stri
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -419,7 +419,7 @@ public virtual async Task> GetAsync(Canc
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -459,7 +459,7 @@ public virtual Response Get(CancellationToken can
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -477,7 +477,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
try
{
var response = await _containerServiceFleetFleetsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location);
+ var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -502,7 +502,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -520,7 +520,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
try
{
var response = _containerServiceFleetFleetsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location);
+ var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletionResponse(cancellationToken);
return operation;
@@ -545,7 +545,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -567,7 +567,7 @@ public virtual async Task> UpdateAsy
try
{
var response = await _containerServiceFleetFleetsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -592,7 +592,7 @@ public virtual async Task> UpdateAsy
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -614,7 +614,7 @@ public virtual ArmOperation Update(WaitUntil wait
try
{
var response = _containerServiceFleetFleetsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetOperationSource(Client), _containerServiceFleetFleetsClientDiagnostics, Pipeline, _containerServiceFleetFleetsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, ifMatch).Request, response, OperationFinalStateVia.OriginalUri, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -639,7 +639,7 @@ public virtual ArmOperation Update(WaitUntil wait
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -677,7 +677,7 @@ public virtual async Task> GetCredentialsAsync(
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -715,7 +715,7 @@ public virtual Response GetCredentials(CancellationToken
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -777,7 +777,7 @@ public virtual async Task> AddTagAsync(s
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -839,7 +839,7 @@ public virtual Response AddTag(string key, string
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -896,7 +896,7 @@ public virtual async Task> SetTagsAsync(
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -953,7 +953,7 @@ public virtual Response SetTags(IDictionary
///
-
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -1013,7 +1013,7 @@ public virtual async Task> RemoveTagAsyn
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunCollection.cs
index 7a27bc475f7f..dd862798eda4 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -90,7 +90,7 @@ public virtual async Task>
try
{
var response = await _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -115,7 +115,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -141,7 +141,7 @@ public virtual ArmOperation CreateOrUpda
try
{
var response = _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateRunName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpda
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task> GetA
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -256,7 +256,7 @@ public virtual Response Get(string updat
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -316,7 +316,7 @@ public virtual Pageable GetAll(Cancellat
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string updateRunName, Canc
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -402,7 +402,7 @@ public virtual Response Exists(string updateRunName, CancellationToken can
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -447,7 +447,7 @@ public virtual async Task
///
-
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunData.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunData.Serialization.cs
index b587a151c68c..1bc5978e1a42 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunData.Serialization.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunData.Serialization.cs
@@ -69,6 +69,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
writer.WritePropertyName("status"u8);
writer.WriteObjectValue(Status, options);
}
+ if (options.Format != "W" && Optional.IsDefined(AutoUpgradeProfileId))
+ {
+ writer.WritePropertyName("autoUpgradeProfileId"u8);
+ writer.WriteStringValue(AutoUpgradeProfileId);
+ }
writer.WriteEndObject();
}
@@ -102,6 +107,7 @@ internal static ContainerServiceFleetUpdateRunData DeserializeContainerServiceFl
ContainerServiceFleetUpdateRunStrategy strategy = default;
ContainerServiceFleetManagedClusterUpdate managedClusterUpdate = default;
ContainerServiceFleetUpdateRunStatus status = default;
+ ResourceIdentifier autoUpgradeProfileId = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -193,6 +199,15 @@ internal static ContainerServiceFleetUpdateRunData DeserializeContainerServiceFl
status = ContainerServiceFleetUpdateRunStatus.DeserializeContainerServiceFleetUpdateRunStatus(property0.Value, options);
continue;
}
+ if (property0.NameEquals("autoUpgradeProfileId"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ autoUpgradeProfileId = new ResourceIdentifier(property0.Value.GetString());
+ continue;
+ }
}
continue;
}
@@ -213,6 +228,7 @@ internal static ContainerServiceFleetUpdateRunData DeserializeContainerServiceFl
strategy,
managedClusterUpdate,
status,
+ autoUpgradeProfileId,
serializedAdditionalRawData);
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunData.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunData.cs
index 3930ce681f47..fc4a70011fa4 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunData.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunData.cs
@@ -84,8 +84,9 @@ public ContainerServiceFleetUpdateRunData()
///
/// The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started.
/// The status of the UpdateRun.
+ /// AutoUpgradeProfileId is the id of an auto upgrade profile resource.
/// Keeps track of any properties unknown to the library.
- internal ContainerServiceFleetUpdateRunData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, ContainerServiceFleetUpdateRunProvisioningState? provisioningState, ResourceIdentifier updateStrategyId, ContainerServiceFleetUpdateRunStrategy strategy, ContainerServiceFleetManagedClusterUpdate managedClusterUpdate, ContainerServiceFleetUpdateRunStatus status, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ internal ContainerServiceFleetUpdateRunData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ETag? eTag, ContainerServiceFleetUpdateRunProvisioningState? provisioningState, ResourceIdentifier updateStrategyId, ContainerServiceFleetUpdateRunStrategy strategy, ContainerServiceFleetManagedClusterUpdate managedClusterUpdate, ContainerServiceFleetUpdateRunStatus status, ResourceIdentifier autoUpgradeProfileId, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
{
ETag = eTag;
ProvisioningState = provisioningState;
@@ -93,6 +94,7 @@ internal ContainerServiceFleetUpdateRunData(ResourceIdentifier id, string name,
Strategy = strategy;
ManagedClusterUpdate = managedClusterUpdate;
Status = status;
+ AutoUpgradeProfileId = autoUpgradeProfileId;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -132,5 +134,7 @@ public IList StrategyStages
public ContainerServiceFleetManagedClusterUpdate ManagedClusterUpdate { get; set; }
/// The status of the UpdateRun.
public ContainerServiceFleetUpdateRunStatus Status { get; }
+ /// AutoUpgradeProfileId is the id of an auto upgrade profile resource.
+ public ResourceIdentifier AutoUpgradeProfileId { get; }
}
}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunResource.cs
index 4d87ffb505b2..3b1023222225 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/ContainerServiceFleetUpdateRunResource.cs
@@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -142,7 +142,7 @@ public virtual async Task> GetA
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -182,7 +182,7 @@ public virtual Response Get(Cancellation
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -200,7 +200,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
try
{
var response = await _containerServiceFleetUpdateRunUpdateRunsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location);
+ var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -243,7 +243,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
try
{
var response = _containerServiceFleetUpdateRunUpdateRunsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location);
+ var operation = new ContainerServiceFleetArmOperation(_containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.Location, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletionResponse(cancellationToken);
return operation;
@@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -291,7 +291,7 @@ public virtual async Task>
try
{
var response = await _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -316,7 +316,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -339,7 +339,7 @@ public virtual ArmOperation Update(WaitU
try
{
var response = _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new ContainerServiceFleetUpdateRunOperationSource(Client), _containerServiceFleetUpdateRunUpdateRunsClientDiagnostics, Pipeline, _containerServiceFleetUpdateRunUpdateRunsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -364,7 +364,7 @@ public virtual ArmOperation Update(WaitU
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -411,7 +411,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -458,7 +458,7 @@ public virtual ArmOperation Skip(WaitUnt
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -501,7 +501,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -544,7 +544,7 @@ public virtual ArmOperation Start(WaitUn
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -587,7 +587,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/ContainerServiceFleetExtensions.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/ContainerServiceFleetExtensions.cs
index 24943cf4b275..c3e33cf5db88 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/ContainerServiceFleetExtensions.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/ContainerServiceFleetExtensions.cs
@@ -157,7 +157,7 @@ public static ContainerServiceFleetCollection GetContainerServiceFleets(this Res
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -195,7 +195,7 @@ public static async Task> GetContainerSe
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -233,7 +233,7 @@ public static Response GetContainerServiceFleet(t
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -269,7 +269,7 @@ public static AsyncPageable GetContainerServiceFl
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetResourceGroupResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetResourceGroupResource.cs
index d9814eb3b8ce..c0a8b07fc70a 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetResourceGroupResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetResourceGroupResource.cs
@@ -53,7 +53,7 @@ public virtual ContainerServiceFleetCollection GetContainerServiceFleets()
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -84,7 +84,7 @@ public virtual async Task> GetContainerS
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetSubscriptionResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetSubscriptionResource.cs
index 07c4f8c9ad37..8748a7f4ad2f 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetSubscriptionResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Extensions/MockableContainerServiceFleetSubscriptionResource.cs
@@ -52,7 +52,7 @@ private string GetApiVersionOrNull(ResourceType resourceType)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -82,7 +82,7 @@ public virtual AsyncPageable GetContainerServiceF
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyCollection.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyCollection.cs
index 2f843c53b7a6..0d3f978a7600 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyCollection.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -90,7 +90,7 @@ public virtual async Task> CreateOrUpd
try
{
var response = await _fleetUpdateStrategyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpd
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -141,7 +141,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti
try
{
var response = _fleetUpdateStrategyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, updateStrategyName, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
@@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -256,7 +256,7 @@ public virtual Response Get(string updateStrategyNa
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken ca
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string updateStrategyName,
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -402,7 +402,7 @@ public virtual Response Exists(string updateStrategyName, CancellationToke
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -447,7 +447,7 @@ public virtual async Task> GetIfEx
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyResource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyResource.cs
index 21c4315ecf1d..6a6b26080940 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyResource.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/FleetUpdateStrategyResource.cs
@@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -199,7 +199,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
try
{
var response = await _fleetUpdateStrategyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(_fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(_fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -242,7 +242,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
try
{
var response = _fleetUpdateStrategyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(_fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(_fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletionResponse(cancellationToken);
return operation;
@@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string ifMatch = null, C
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -290,7 +290,7 @@ public virtual async Task> UpdateAsync
try
{
var response = await _fleetUpdateStrategyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken).ConfigureAwait(false);
- var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
return operation;
@@ -315,7 +315,7 @@ public virtual async Task> UpdateAsync
///
/// -
/// Default Api Version
- /// 2024-05-02-preview
+ /// 2025-03-01
///
/// -
/// Resource
@@ -338,7 +338,7 @@ public virtual ArmOperation Update(WaitUntil waitUn
try
{
var response = _fleetUpdateStrategyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch, cancellationToken);
- var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ var operation = new ContainerServiceFleetArmOperation(new FleetUpdateStrategyOperationSource(Client), _fleetUpdateStrategyClientDiagnostics, Pipeline, _fleetUpdateStrategyRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, ifNoneMatch).Request, response, OperationFinalStateVia.AzureAsyncOperation, apiVersionOverrideValue: "2016-03-30");
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
return operation;
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/AutoUpgradeProfileGenerateResultOperationSource.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/AutoUpgradeProfileGenerateResultOperationSource.cs
new file mode 100644
index 000000000000..f940fe6789ee
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/LongRunningOperation/AutoUpgradeProfileGenerateResultOperationSource.cs
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.ResourceManager.ContainerServiceFleet.Models;
+
+namespace Azure.ResourceManager.ContainerServiceFleet
+{
+ internal class AutoUpgradeProfileGenerateResultOperationSource : IOperationSource
+ {
+ AutoUpgradeProfileGenerateResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions);
+ return AutoUpgradeProfileGenerateResult.DeserializeAutoUpgradeProfileGenerateResult(document.RootElement);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false);
+ return AutoUpgradeProfileGenerateResult.DeserializeAutoUpgradeProfileGenerateResult(document.RootElement);
+ }
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeLastTriggerStatus.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeLastTriggerStatus.cs
new file mode 100644
index 000000000000..1256f8cc3ed7
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeLastTriggerStatus.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ /// AutoUpgradeLastTriggerStatus is the status of the last AutoUpgrade trigger (attempt to automatically create and start UpdateRun when there are new released versions) of an auto upgrade profile.
+ public readonly partial struct AutoUpgradeLastTriggerStatus : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public AutoUpgradeLastTriggerStatus(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string SucceededValue = "Succeeded";
+ private const string FailedValue = "Failed";
+
+ /// The last AutoUpgrade trigger was succeeded.
+ public static AutoUpgradeLastTriggerStatus Succeeded { get; } = new AutoUpgradeLastTriggerStatus(SucceededValue);
+ /// The last AutoUpgrade trigger failed.
+ public static AutoUpgradeLastTriggerStatus Failed { get; } = new AutoUpgradeLastTriggerStatus(FailedValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(AutoUpgradeLastTriggerStatus left, AutoUpgradeLastTriggerStatus right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(AutoUpgradeLastTriggerStatus left, AutoUpgradeLastTriggerStatus right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator AutoUpgradeLastTriggerStatus(string value) => new AutoUpgradeLastTriggerStatus(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is AutoUpgradeLastTriggerStatus other && Equals(other);
+ ///
+ public bool Equals(AutoUpgradeLastTriggerStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileGenerateResult.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileGenerateResult.Serialization.cs
new file mode 100644
index 000000000000..dd69f159af73
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileGenerateResult.Serialization.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ public partial class AutoUpgradeProfileGenerateResult : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AutoUpgradeProfileGenerateResult)} does not support writing '{format}' format.");
+ }
+
+ if (options.Format != "W")
+ {
+ writer.WritePropertyName("id"u8);
+ writer.WriteStringValue(Id);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ AutoUpgradeProfileGenerateResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AutoUpgradeProfileGenerateResult)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAutoUpgradeProfileGenerateResult(document.RootElement, options);
+ }
+
+ internal static AutoUpgradeProfileGenerateResult DeserializeAutoUpgradeProfileGenerateResult(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string id = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("id"u8))
+ {
+ id = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AutoUpgradeProfileGenerateResult(id, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AutoUpgradeProfileGenerateResult)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AutoUpgradeProfileGenerateResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeAutoUpgradeProfileGenerateResult(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AutoUpgradeProfileGenerateResult)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileGenerateResult.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileGenerateResult.cs
new file mode 100644
index 000000000000..bd2787e8b01b
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileGenerateResult.cs
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ /// GenerateResponse is the response of a generate request.
+ public partial class AutoUpgradeProfileGenerateResult
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The ARM resource id of the generated UpdateRun. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}'.
+ internal AutoUpgradeProfileGenerateResult(string id)
+ {
+ Id = id;
+ }
+
+ /// Initializes a new instance of .
+ /// The ARM resource id of the generated UpdateRun. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}'.
+ /// Keeps track of any properties unknown to the library.
+ internal AutoUpgradeProfileGenerateResult(string id, IDictionary serializedAdditionalRawData)
+ {
+ Id = id;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal AutoUpgradeProfileGenerateResult()
+ {
+ }
+
+ /// The ARM resource id of the generated UpdateRun. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}'.
+ public string Id { get; }
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileStatus.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileStatus.Serialization.cs
new file mode 100644
index 000000000000..590658d96bf6
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileStatus.Serialization.cs
@@ -0,0 +1,188 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ public partial class AutoUpgradeProfileStatus : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AutoUpgradeProfileStatus)} does not support writing '{format}' format.");
+ }
+
+ if (options.Format != "W" && Optional.IsDefined(LastTriggeredOn))
+ {
+ writer.WritePropertyName("lastTriggeredAt"u8);
+ writer.WriteStringValue(LastTriggeredOn.Value, "O");
+ }
+ if (options.Format != "W" && Optional.IsDefined(LastTriggerStatus))
+ {
+ writer.WritePropertyName("lastTriggerStatus"u8);
+ writer.WriteStringValue(LastTriggerStatus.Value.ToString());
+ }
+ if (options.Format != "W" && Optional.IsDefined(LastTriggerError))
+ {
+ writer.WritePropertyName("lastTriggerError"u8);
+ JsonSerializer.Serialize(writer, LastTriggerError);
+ }
+ if (options.Format != "W" && Optional.IsCollectionDefined(LastTriggerUpgradeVersions))
+ {
+ writer.WritePropertyName("lastTriggerUpgradeVersions"u8);
+ writer.WriteStartArray();
+ foreach (var item in LastTriggerUpgradeVersions)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ AutoUpgradeProfileStatus IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AutoUpgradeProfileStatus)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAutoUpgradeProfileStatus(document.RootElement, options);
+ }
+
+ internal static AutoUpgradeProfileStatus DeserializeAutoUpgradeProfileStatus(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ DateTimeOffset? lastTriggeredAt = default;
+ AutoUpgradeLastTriggerStatus? lastTriggerStatus = default;
+ ResponseError lastTriggerError = default;
+ IReadOnlyList lastTriggerUpgradeVersions = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("lastTriggeredAt"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ lastTriggeredAt = property.Value.GetDateTimeOffset("O");
+ continue;
+ }
+ if (property.NameEquals("lastTriggerStatus"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ lastTriggerStatus = new AutoUpgradeLastTriggerStatus(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("lastTriggerError"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ lastTriggerError = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (property.NameEquals("lastTriggerUpgradeVersions"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ lastTriggerUpgradeVersions = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AutoUpgradeProfileStatus(lastTriggeredAt, lastTriggerStatus, lastTriggerError, lastTriggerUpgradeVersions ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(AutoUpgradeProfileStatus)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AutoUpgradeProfileStatus IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeAutoUpgradeProfileStatus(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AutoUpgradeProfileStatus)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileStatus.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileStatus.cs
new file mode 100644
index 000000000000..c0e44168a356
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/AutoUpgradeProfileStatus.cs
@@ -0,0 +1,78 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ /// AutoUpgradeProfileStatus is the status of an auto upgrade profile.
+ public partial class AutoUpgradeProfileStatus
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public AutoUpgradeProfileStatus()
+ {
+ LastTriggerUpgradeVersions = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of .
+ /// The UTC time of the last attempt to automatically create and start an UpdateRun as triggered by the release of new versions.
+ /// The status of the last AutoUpgrade trigger.
+ /// The error details of the last trigger.
+ /// The target Kubernetes version or node image versions of the last trigger.
+ /// Keeps track of any properties unknown to the library.
+ internal AutoUpgradeProfileStatus(DateTimeOffset? lastTriggeredOn, AutoUpgradeLastTriggerStatus? lastTriggerStatus, ResponseError lastTriggerError, IReadOnlyList lastTriggerUpgradeVersions, IDictionary serializedAdditionalRawData)
+ {
+ LastTriggeredOn = lastTriggeredOn;
+ LastTriggerStatus = lastTriggerStatus;
+ LastTriggerError = lastTriggerError;
+ LastTriggerUpgradeVersions = lastTriggerUpgradeVersions;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The UTC time of the last attempt to automatically create and start an UpdateRun as triggered by the release of new versions.
+ public DateTimeOffset? LastTriggeredOn { get; }
+ /// The status of the last AutoUpgrade trigger.
+ public AutoUpgradeLastTriggerStatus? LastTriggerStatus { get; }
+ /// The error details of the last trigger.
+ public ResponseError LastTriggerError { get; }
+ /// The target Kubernetes version or node image versions of the last trigger.
+ public IReadOnlyList LastTriggerUpgradeVersions { get; }
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberStatus.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberStatus.Serialization.cs
new file mode 100644
index 000000000000..78c3e0ceca29
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberStatus.Serialization.cs
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ public partial class ContainerServiceFleetMemberStatus : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ContainerServiceFleetMemberStatus)} does not support writing '{format}' format.");
+ }
+
+ if (options.Format != "W" && Optional.IsDefined(LastOperationId))
+ {
+ writer.WritePropertyName("lastOperationId"u8);
+ writer.WriteStringValue(LastOperationId);
+ }
+ if (options.Format != "W" && Optional.IsDefined(LastOperationError))
+ {
+ writer.WritePropertyName("lastOperationError"u8);
+ JsonSerializer.Serialize(writer, LastOperationError);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ ContainerServiceFleetMemberStatus IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ContainerServiceFleetMemberStatus)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeContainerServiceFleetMemberStatus(document.RootElement, options);
+ }
+
+ internal static ContainerServiceFleetMemberStatus DeserializeContainerServiceFleetMemberStatus(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string lastOperationId = default;
+ ResponseError lastOperationError = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("lastOperationId"u8))
+ {
+ lastOperationId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("lastOperationError"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ lastOperationError = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ContainerServiceFleetMemberStatus(lastOperationId, lastOperationError, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(ContainerServiceFleetMemberStatus)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ContainerServiceFleetMemberStatus IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeContainerServiceFleetMemberStatus(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ContainerServiceFleetMemberStatus)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberStatus.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberStatus.cs
new file mode 100644
index 000000000000..269abb5ba2b9
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetMemberStatus.cs
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ /// Status information for the fleet member.
+ public partial class ContainerServiceFleetMemberStatus
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ internal ContainerServiceFleetMemberStatus()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The last operation ID for the fleet member.
+ /// The last operation error of the fleet member.
+ /// Keeps track of any properties unknown to the library.
+ internal ContainerServiceFleetMemberStatus(string lastOperationId, ResponseError lastOperationError, IDictionary serializedAdditionalRawData)
+ {
+ LastOperationId = lastOperationId;
+ LastOperationError = lastOperationError;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The last operation ID for the fleet member.
+ public string LastOperationId { get; }
+ /// The last operation error of the fleet member.
+ public ResponseError LastOperationError { get; }
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetStatus.Serialization.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetStatus.Serialization.cs
new file mode 100644
index 000000000000..605fc2e70974
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetStatus.Serialization.cs
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ public partial class ContainerServiceFleetStatus : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ContainerServiceFleetStatus)} does not support writing '{format}' format.");
+ }
+
+ if (options.Format != "W" && Optional.IsDefined(LastOperationId))
+ {
+ writer.WritePropertyName("lastOperationId"u8);
+ writer.WriteStringValue(LastOperationId);
+ }
+ if (options.Format != "W" && Optional.IsDefined(LastOperationError))
+ {
+ writer.WritePropertyName("lastOperationError"u8);
+ JsonSerializer.Serialize(writer, LastOperationError);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ ContainerServiceFleetStatus IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ContainerServiceFleetStatus)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeContainerServiceFleetStatus(document.RootElement, options);
+ }
+
+ internal static ContainerServiceFleetStatus DeserializeContainerServiceFleetStatus(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string lastOperationId = default;
+ ResponseError lastOperationError = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("lastOperationId"u8))
+ {
+ lastOperationId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("lastOperationError"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ lastOperationError = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ContainerServiceFleetStatus(lastOperationId, lastOperationError, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(ContainerServiceFleetStatus)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ContainerServiceFleetStatus IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeContainerServiceFleetStatus(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ContainerServiceFleetStatus)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetStatus.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetStatus.cs
new file mode 100644
index 000000000000..2a086c62edd3
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/Models/ContainerServiceFleetStatus.cs
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.ContainerServiceFleet.Models
+{
+ /// Status information for the fleet.
+ public partial class ContainerServiceFleetStatus
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ internal ContainerServiceFleetStatus()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The last operation ID for the fleet.
+ /// The last operation error for the fleet.
+ /// Keeps track of any properties unknown to the library.
+ internal ContainerServiceFleetStatus(string lastOperationId, ResponseError lastOperationError, IDictionary serializedAdditionalRawData)
+ {
+ LastOperationId = lastOperationId;
+ LastOperationError = lastOperationError;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The last operation ID for the fleet.
+ public string LastOperationId { get; }
+ /// The last operation error for the fleet.
+ public ResponseError LastOperationError { get; }
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfileRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfileRestOperations.cs
new file mode 100644
index 000000000000..a0d4904a01de
--- /dev/null
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfileRestOperations.cs
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.ContainerServiceFleet
+{
+ internal partial class AutoUpgradeProfileRestOperations
+ {
+ private readonly TelemetryDetails _userAgent;
+ private readonly HttpPipeline _pipeline;
+ private readonly Uri _endpoint;
+ private readonly string _apiVersion;
+
+ /// Initializes a new instance of AutoUpgradeProfileRestOperations.
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ /// The application id to use for user agent.
+ /// server parameter.
+ /// Api Version.
+ /// or is null.
+ public AutoUpgradeProfileRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default)
+ {
+ _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
+ _endpoint = endpoint ?? new Uri("https://management.azure.com");
+ _apiVersion = apiVersion ?? "2025-03-01";
+ _userAgent = new TelemetryDetails(GetType().Assembly, applicationId);
+ }
+
+ internal RequestUriBuilder CreateGenerateUpdateRunRequestUri(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName)
+ {
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/subscriptions/", false);
+ uri.AppendPath(subscriptionId, true);
+ uri.AppendPath("/resourceGroups/", false);
+ uri.AppendPath(resourceGroupName, true);
+ uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false);
+ uri.AppendPath(fleetName, true);
+ uri.AppendPath("/autoUpgradeProfiles/", false);
+ uri.AppendPath(autoUpgradeProfileName, true);
+ uri.AppendPath("/generateUpdateRun", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ return uri;
+ }
+
+ internal HttpMessage CreateGenerateUpdateRunRequest(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName)
+ {
+ var message = _pipeline.CreateMessage();
+ var request = message.Request;
+ request.Method = RequestMethod.Post;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/subscriptions/", false);
+ uri.AppendPath(subscriptionId, true);
+ uri.AppendPath("/resourceGroups/", false);
+ uri.AppendPath(resourceGroupName, true);
+ uri.AppendPath("/providers/Microsoft.ContainerService/fleets/", false);
+ uri.AppendPath(fleetName, true);
+ uri.AppendPath("/autoUpgradeProfiles/", false);
+ uri.AppendPath(autoUpgradeProfileName, true);
+ uri.AppendPath("/generateUpdateRun", false);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ _userAgent.Apply(message);
+ return message;
+ }
+
+ /// A long-running resource action.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the Fleet resource.
+ /// The name of the AutoUpgradeProfile resource.
+ /// The cancellation token to use.
+ /// , , or is null.
+ /// , , or is an empty string, and was expected to be non-empty.
+ public async Task GenerateUpdateRunAsync(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId));
+ Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName));
+ Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName));
+ Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName));
+
+ using var message = CreateGenerateUpdateRunRequest(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName);
+ await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
+ switch (message.Response.Status)
+ {
+ case 200:
+ case 202:
+ return message.Response;
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ /// A long-running resource action.
+ /// The ID of the target subscription. The value must be an UUID.
+ /// The name of the resource group. The name is case insensitive.
+ /// The name of the Fleet resource.
+ /// The name of the AutoUpgradeProfile resource.
+ /// The cancellation token to use.
+ /// , , or is null.
+ /// , , or is an empty string, and was expected to be non-empty.
+ public Response GenerateUpdateRun(string subscriptionId, string resourceGroupName, string fleetName, string autoUpgradeProfileName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId));
+ Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName));
+ Argument.AssertNotNullOrEmpty(fleetName, nameof(fleetName));
+ Argument.AssertNotNullOrEmpty(autoUpgradeProfileName, nameof(autoUpgradeProfileName));
+
+ using var message = CreateGenerateUpdateRunRequest(subscriptionId, resourceGroupName, fleetName, autoUpgradeProfileName);
+ _pipeline.Send(message, cancellationToken);
+ switch (message.Response.Status)
+ {
+ case 200:
+ case 202:
+ return message.Response;
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+ }
+}
diff --git a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfilesRestOperations.cs b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfilesRestOperations.cs
index 589a5e524c23..46fe47b3e0af 100644
--- a/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfilesRestOperations.cs
+++ b/sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/src/Generated/RestOperations/AutoUpgradeProfilesRestOperations.cs
@@ -32,7 +32,7 @@ public AutoUpgradeProfilesRestOperations(HttpPipeline pipeline, string applicati
{
_pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
_endpoint = endpoint ?? new Uri("https://management.azure.com");
- _apiVersion = apiVersion ?? "2024-05-02-preview";
+ _apiVersion = apiVersion ?? "2025-03-01";
_userAgent = new TelemetryDetails(GetType().Assembly, applicationId);
}
@@ -73,7 +73,7 @@ internal HttpMessage CreateListByFleetRequest(string subscriptionId, string reso
}
/// List AutoUpgradeProfile resources by Fleet.
- /// The ID of the target subscription.
+ /// The ID of the target subscription. The value must be an UUID.
/// The name of the resource group. The name is case insensitive.
/// The name of the Fleet resource.
/// The cancellation token to use.
@@ -102,7 +102,7 @@ public async Task> ListByFleetAsync(strin
}
/// List AutoUpgradeProfile resources by Fleet.
- /// The ID of the target subscription.
+ /// The ID of the target subscription. The value must be an UUID.
/// The name of the resource group. The name is case insensitive.
/// The name of the Fleet resource.
/// The cancellation token to use.
@@ -169,7 +169,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou
}
/// Get a AutoUpgradeProfile.
- /// The ID of the target subscription.
+ /// The ID of the target subscription. The value must be an UUID.
/// The name of the resource group. The name is case insensitive.
/// The name of the Fleet resource.
/// The name of the AutoUpgradeProfile resource.
@@ -202,7 +202,7 @@ public async Task> GetAsync(string subscription
}
///