diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md index eddbce0bbc00..8ac7ad46b9f8 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 1.3.0-beta.5 (Unreleased) +## 1.3.0-beta.5 (2025-11-19) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Upgraded to api-version 2025-10-01-preview. ## 1.3.0-beta.4 (2025-10-16) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.net8.0.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.net8.0.cs index d202884fa83c..b95d1b6305bf 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.net8.0.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.net8.0.cs @@ -50,6 +50,8 @@ protected ServiceFabricManagedApplicationResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation FetchHealth(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task FetchHealthAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthContent content, 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; } public virtual Azure.Response GetServiceFabricManagedService(string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -59,6 +61,8 @@ protected ServiceFabricManagedApplicationResource() { } public virtual System.Threading.Tasks.Task ReadUpgradeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation RestartDeployedCodePackage(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RestartDeployedCodePackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation ResumeUpgrade(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeResumeApplicationUpgradeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ResumeUpgradeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeResumeApplicationUpgradeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -70,8 +74,12 @@ protected ServiceFabricManagedApplicationResource() { } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedApplicationData 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.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response Update(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation UpdateUpgrade(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpdateApplicationUpgradeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task UpdateUpgradeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpdateApplicationUpgradeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -305,8 +313,12 @@ protected ServiceFabricManagedClusterResource() { } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData 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.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response Update(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class ServiceFabricManagedClustersExtensions { @@ -508,6 +520,8 @@ protected ServiceFabricManagedServiceResource() { } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation RestartReplica(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RestartReplicaAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -573,6 +587,43 @@ 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 ApplicationFetchHealthContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ApplicationFetchHealthContent() { } + public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter? DeployedApplicationsHealthStateFilter { get { throw null; } set { } } + public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter? EventsHealthStateFilter { get { throw null; } set { } } + public bool? ExcludeHealthStatistics { get { throw null; } set { } } + public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter? ServicesHealthStateFilter { get { throw null; } set { } } + public long? TimeoutInSeconds { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthContent 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.ServiceFabricManagedClusters.Models.ApplicationFetchHealthContent 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 ApplicationFetchHealthFilter : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ApplicationFetchHealthFilter(string value) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter All { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter Default { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter Error { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter None { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter Ok { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter 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.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter right) { throw null; } + public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter right) { throw null; } + public override string ToString() { throw null; } + } public partial class ApplicationHealthPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ApplicationHealthPolicy(bool considerWarningAsError, int maxPercentUnhealthyDeployedApplications) { } @@ -623,12 +674,14 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedAzResiliencyStatus ManagedAzResiliencyStatus(System.Collections.Generic.IEnumerable baseResourceStatus = null, bool? isClusterZoneResilient = default(bool?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedMaintenanceWindowStatus ManagedMaintenanceWindowStatus(bool? isWindowEnabled = default(bool?), bool? isRegionReady = default(bool?), bool? isWindowActive = default(bool?), bool? canApplyUpdates = default(bool?), System.DateTimeOffset? lastWindowStatusUpdatedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastWindowStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastWindowEndOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceProperties ManagedServiceProperties(string placementConstraints = null, System.Collections.Generic.IEnumerable correlationScheme = null, System.Collections.Generic.IEnumerable serviceLoadMetrics = null, System.Collections.Generic.IEnumerable servicePlacementPolicies = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServiceMoveCost? defaultMoveCost = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServiceMoveCost?), System.Collections.Generic.IEnumerable scalingPolicies = null, string provisioningState = null, string serviceKind = null, string serviceTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode?), string serviceDnsName = null) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent ManagedServiceRestartReplicaContent(string partitionId = null, System.Collections.Generic.IEnumerable replicaIds = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind restartKind = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind), bool? forceRestart = default(bool?), long? timeoutInSeconds = default(long?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeAvailableSku NodeTypeAvailableSku(Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSupportedSku sku = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSkuCapacity capacity = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation NodeTypeFaultSimulation(string nodeTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? status = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus?), string operationId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus? operationStatus = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSkuCapacity NodeTypeSkuCapacity(int? minimum = default(int?), int? maximum = default(int?), int? @default = default(int?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSkuScaleType? scaleType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSkuScaleType?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSupportedSku NodeTypeSupportedSku(string name = null, string tier = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeVmssExtension NodeTypeVmssExtension(string name = null, string publisher = null, string vmssExtensionPropertiesType = null, string typeHandlerVersion = null, bool? autoUpgradeMinorVersion = default(bool?), System.BinaryData settings = null, System.BinaryData protectedSettings = null, string forceUpdateTag = null, System.Collections.Generic.IEnumerable provisionAfterExtensions = null, string provisioningState = null, bool? isAutomaticUpgradeEnabled = default(bool?), System.Collections.Generic.IEnumerable setupOrder = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ResourceAzStatus ResourceAzStatus(string resourceName = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), bool? isZoneResilient = default(bool?), string details = null) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent RestartDeployedCodePackageContent(string nodeName = null, string serviceManifestName = null, string codePackageName = null, string codePackageInstanceId = null, string servicePackageActivationId = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeApplicationHealthPolicy RuntimeApplicationHealthPolicy(bool considerWarningAsError = false, int maxPercentUnhealthyDeployedApplications = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeServiceTypeHealthPolicy defaultServiceTypeHealthPolicy = null, System.Collections.Generic.IDictionary serviceTypeHealthPolicyMap = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeRollingUpgradeUpdateMonitoringPolicy RuntimeRollingUpgradeUpdateMonitoringPolicy(Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeRollingUpgradeMode rollingUpgradeMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeRollingUpgradeMode), bool? forceRestart = default(bool?), long? replicaSetCheckTimeoutInMilliseconds = default(long?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeFailureAction? failureAction = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeFailureAction?), string healthCheckWaitDurationInMilliseconds = null, string healthCheckStableDurationInMilliseconds = null, string healthCheckRetryTimeoutInMilliseconds = null, string upgradeTimeoutInMilliseconds = null, string upgradeDomainTimeoutInMilliseconds = null, long? instanceCloseDelayDurationInSeconds = default(long?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpdateApplicationUpgradeContent RuntimeUpdateApplicationUpgradeContent(string name = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpgradeKind upgradeKind = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpgradeKind), Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeApplicationHealthPolicy applicationHealthPolicy = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeRollingUpgradeUpdateMonitoringPolicy updateDescription = null) { throw null; } @@ -1266,6 +1319,38 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write 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 ManagedServiceRestartKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedServiceRestartKind(string value) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind Simultaneous { get { throw null; } } + public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind 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.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind right) { throw null; } + public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ManagedServiceRestartReplicaContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ManagedServiceRestartReplicaContent(string partitionId, System.Collections.Generic.IEnumerable replicaIds, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind restartKind) { } + public bool? ForceRestart { get { throw null; } set { } } + public string PartitionId { get { throw null; } } + public System.Collections.Generic.IList ReplicaIds { get { throw null; } } + public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind RestartKind { get { throw null; } } + public long? TimeoutInSeconds { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent 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.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent 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 abstract partial class ManagedServiceScalingMechanism : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected ManagedServiceScalingMechanism() { } @@ -1591,6 +1676,21 @@ 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 RestartDeployedCodePackageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RestartDeployedCodePackageContent(string nodeName, string serviceManifestName, string codePackageName, string codePackageInstanceId) { } + public string CodePackageInstanceId { get { throw null; } } + public string CodePackageName { get { throw null; } } + public string NodeName { get { throw null; } } + public string ServiceManifestName { get { throw null; } } + public string ServicePackageActivationId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent 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.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent 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 RollingUpgradeMode : System.IEquatable { @@ -1754,6 +1854,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class ServiceFabricManagedApplicationPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ServiceFabricManagedApplicationPatch() { } + public System.Collections.Generic.IDictionary ApplicationUpdateParameters { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.netstandard2.0.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.netstandard2.0.cs index d202884fa83c..b95d1b6305bf 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.netstandard2.0.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.netstandard2.0.cs @@ -50,6 +50,8 @@ protected ServiceFabricManagedApplicationResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation FetchHealth(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task FetchHealthAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthContent content, 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; } public virtual Azure.Response GetServiceFabricManagedService(string serviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -59,6 +61,8 @@ protected ServiceFabricManagedApplicationResource() { } public virtual System.Threading.Tasks.Task ReadUpgradeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation RestartDeployedCodePackage(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RestartDeployedCodePackageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation ResumeUpgrade(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeResumeApplicationUpgradeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ResumeUpgradeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeResumeApplicationUpgradeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -70,8 +74,12 @@ protected ServiceFabricManagedApplicationResource() { } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedApplicationData 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.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response Update(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation UpdateUpgrade(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpdateApplicationUpgradeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task UpdateUpgradeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpdateApplicationUpgradeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -305,8 +313,12 @@ protected ServiceFabricManagedClusterResource() { } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData 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.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.Response Update(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class ServiceFabricManagedClustersExtensions { @@ -508,6 +520,8 @@ protected ServiceFabricManagedServiceResource() { } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation RestartReplica(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RestartReplicaAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -573,6 +587,43 @@ 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 ApplicationFetchHealthContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ApplicationFetchHealthContent() { } + public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter? DeployedApplicationsHealthStateFilter { get { throw null; } set { } } + public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter? EventsHealthStateFilter { get { throw null; } set { } } + public bool? ExcludeHealthStatistics { get { throw null; } set { } } + public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter? ServicesHealthStateFilter { get { throw null; } set { } } + public long? TimeoutInSeconds { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthContent 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.ServiceFabricManagedClusters.Models.ApplicationFetchHealthContent 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 ApplicationFetchHealthFilter : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ApplicationFetchHealthFilter(string value) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter All { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter Default { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter Error { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter None { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter Ok { get { throw null; } } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter 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.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter right) { throw null; } + public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationFetchHealthFilter right) { throw null; } + public override string ToString() { throw null; } + } public partial class ApplicationHealthPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ApplicationHealthPolicy(bool considerWarningAsError, int maxPercentUnhealthyDeployedApplications) { } @@ -623,12 +674,14 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedAzResiliencyStatus ManagedAzResiliencyStatus(System.Collections.Generic.IEnumerable baseResourceStatus = null, bool? isClusterZoneResilient = default(bool?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedMaintenanceWindowStatus ManagedMaintenanceWindowStatus(bool? isWindowEnabled = default(bool?), bool? isRegionReady = default(bool?), bool? isWindowActive = default(bool?), bool? canApplyUpdates = default(bool?), System.DateTimeOffset? lastWindowStatusUpdatedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastWindowStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastWindowEndOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceProperties ManagedServiceProperties(string placementConstraints = null, System.Collections.Generic.IEnumerable correlationScheme = null, System.Collections.Generic.IEnumerable serviceLoadMetrics = null, System.Collections.Generic.IEnumerable servicePlacementPolicies = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServiceMoveCost? defaultMoveCost = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServiceMoveCost?), System.Collections.Generic.IEnumerable scalingPolicies = null, string provisioningState = null, string serviceKind = null, string serviceTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode?), string serviceDnsName = null) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent ManagedServiceRestartReplicaContent(string partitionId = null, System.Collections.Generic.IEnumerable replicaIds = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind restartKind = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind), bool? forceRestart = default(bool?), long? timeoutInSeconds = default(long?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeAvailableSku NodeTypeAvailableSku(Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSupportedSku sku = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSkuCapacity capacity = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation NodeTypeFaultSimulation(string nodeTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? status = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus?), string operationId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus? operationStatus = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSkuCapacity NodeTypeSkuCapacity(int? minimum = default(int?), int? maximum = default(int?), int? @default = default(int?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSkuScaleType? scaleType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSkuScaleType?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSupportedSku NodeTypeSupportedSku(string name = null, string tier = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeVmssExtension NodeTypeVmssExtension(string name = null, string publisher = null, string vmssExtensionPropertiesType = null, string typeHandlerVersion = null, bool? autoUpgradeMinorVersion = default(bool?), System.BinaryData settings = null, System.BinaryData protectedSettings = null, string forceUpdateTag = null, System.Collections.Generic.IEnumerable provisionAfterExtensions = null, string provisioningState = null, bool? isAutomaticUpgradeEnabled = default(bool?), System.Collections.Generic.IEnumerable setupOrder = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ResourceAzStatus ResourceAzStatus(string resourceName = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), bool? isZoneResilient = default(bool?), string details = null) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent RestartDeployedCodePackageContent(string nodeName = null, string serviceManifestName = null, string codePackageName = null, string codePackageInstanceId = null, string servicePackageActivationId = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeApplicationHealthPolicy RuntimeApplicationHealthPolicy(bool considerWarningAsError = false, int maxPercentUnhealthyDeployedApplications = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeServiceTypeHealthPolicy defaultServiceTypeHealthPolicy = null, System.Collections.Generic.IDictionary serviceTypeHealthPolicyMap = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeRollingUpgradeUpdateMonitoringPolicy RuntimeRollingUpgradeUpdateMonitoringPolicy(Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeRollingUpgradeMode rollingUpgradeMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeRollingUpgradeMode), bool? forceRestart = default(bool?), long? replicaSetCheckTimeoutInMilliseconds = default(long?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeFailureAction? failureAction = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeFailureAction?), string healthCheckWaitDurationInMilliseconds = null, string healthCheckStableDurationInMilliseconds = null, string healthCheckRetryTimeoutInMilliseconds = null, string upgradeTimeoutInMilliseconds = null, string upgradeDomainTimeoutInMilliseconds = null, long? instanceCloseDelayDurationInSeconds = default(long?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpdateApplicationUpgradeContent RuntimeUpdateApplicationUpgradeContent(string name = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpgradeKind upgradeKind = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeUpgradeKind), Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeApplicationHealthPolicy applicationHealthPolicy = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.RuntimeRollingUpgradeUpdateMonitoringPolicy updateDescription = null) { throw null; } @@ -1266,6 +1319,38 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write 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 ManagedServiceRestartKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedServiceRestartKind(string value) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind Simultaneous { get { throw null; } } + public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind 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.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind right) { throw null; } + public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ManagedServiceRestartReplicaContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ManagedServiceRestartReplicaContent(string partitionId, System.Collections.Generic.IEnumerable replicaIds, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind restartKind) { } + public bool? ForceRestart { get { throw null; } set { } } + public string PartitionId { get { throw null; } } + public System.Collections.Generic.IList ReplicaIds { get { throw null; } } + public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartKind RestartKind { get { throw null; } } + public long? TimeoutInSeconds { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent 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.ServiceFabricManagedClusters.Models.ManagedServiceRestartReplicaContent 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 abstract partial class ManagedServiceScalingMechanism : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected ManagedServiceScalingMechanism() { } @@ -1591,6 +1676,21 @@ 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 RestartDeployedCodePackageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RestartDeployedCodePackageContent(string nodeName, string serviceManifestName, string codePackageName, string codePackageInstanceId) { } + public string CodePackageInstanceId { get { throw null; } } + public string CodePackageName { get { throw null; } } + public string NodeName { get { throw null; } } + public string ServiceManifestName { get { throw null; } } + public string ServicePackageActivationId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent 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.ServiceFabricManagedClusters.Models.RestartDeployedCodePackageContent 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 RollingUpgradeMode : System.IEquatable { @@ -1754,6 +1854,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class ServiceFabricManagedApplicationPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ServiceFabricManagedApplicationPatch() { } + public System.Collections.Generic.IDictionary ApplicationUpdateParameters { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/ServiceFabricManagedApplicationResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/ServiceFabricManagedApplicationResource.cs new file mode 100644 index 000000000000..b9ac8232a03e --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/ServiceFabricManagedApplicationResource.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.ComponentModel; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.ResourceManager.ServiceFabricManagedClusters.Models; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters +{ + /// + /// A Class representing a ServiceFabricManagedApplication along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetServiceFabricManagedApplicationResource method. + /// Otherwise you can get one from its parent resource using the GetServiceFabricManagedApplication method. + /// + public partial class ServiceFabricManagedApplicationResource : ArmResource + { + /// + /// Updates the tags of an application resource of a given managed cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName} + /// + /// + /// Operation Id + /// ApplicationResource_Update + /// + /// + /// Resource + /// + /// + /// + /// + /// The application resource updated tags. + /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> UpdateAsync(ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) + { + var response = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value, null); + } + + /// + /// Updates the tags of an application resource of a given managed cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName} + /// + /// + /// Operation Id + /// ApplicationResource_Update + /// + /// + /// Resource + /// + /// + /// + /// + /// The application resource updated tags. + /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response Update(ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) + { + return Response.FromValue(Update(WaitUntil.Completed, patch, cancellationToken).Value, null); + } + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/ServiceFabricManagedClusterResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/ServiceFabricManagedClusterResource.cs index efde1ba192b1..1c559c100b0f 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/ServiceFabricManagedClusterResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/ServiceFabricManagedClusterResource.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; using System.Threading.Tasks; using System.Threading; using Azure.ResourceManager.ServiceFabricManagedClusters.Models; @@ -57,5 +58,56 @@ public virtual Response GetManagedMaintenanceWin { return GetManagedMaintenanceWindowStatu(cancellationToken); } + + /// + /// Update the tags of of a Service Fabric managed cluster resource with the specified name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName} + /// + /// + /// Operation Id + /// ManagedCluster_Update + /// + /// + /// Resource + /// + /// + /// + /// + /// The managed cluster resource updated tags. + /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> UpdateAsync(ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) + { + var response = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value, null); + } + + /// + /// Update the tags of of a Service Fabric managed cluster resource with the specified name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName} + /// + /// + /// Operation Id + /// ManagedCluster_Update + /// + /// + /// Resource + /// + /// + /// + /// + /// The managed cluster resource updated tags. + /// The cancellation token to use. + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual Response Update(ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) + { + return Response.FromValue(Update(WaitUntil.Completed, patch, cancellationToken).Value, null); + } } } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ArmServiceFabricManagedClustersModelFactory.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ArmServiceFabricManagedClustersModelFactory.cs index 7b195594a858..8292d735feba 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ArmServiceFabricManagedClustersModelFactory.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ArmServiceFabricManagedClustersModelFactory.cs @@ -114,6 +114,24 @@ public static RuntimeRollingUpgradeUpdateMonitoringPolicy RuntimeRollingUpgradeU serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The name of the node where the code package needs to be restarted. Use '*' to restart on all nodes where the code package is running. + /// The name of the service manifest as specified in the code package. + /// The name of the code package as specified in the service manifest. + /// The instance ID for currently running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry point executable is run, its instance ID will change. If 0 is passed in as the code package instance ID, the API will restart the code package with whatever instance ID it is currently running. If an instance ID other than 0 is passed in, the API will restart the code package only if the current Instance ID matches the passed in instance ID. Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one restart of the code package. + /// The activation id of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId is always an empty string. + /// A new instance for mocking. + public static RestartDeployedCodePackageContent RestartDeployedCodePackageContent(string nodeName = null, string serviceManifestName = null, string codePackageName = null, string codePackageInstanceId = null, string servicePackageActivationId = null) + { + return new RestartDeployedCodePackageContent( + nodeName, + serviceManifestName, + codePackageName, + codePackageInstanceId, + servicePackageActivationId, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -357,6 +375,26 @@ public static StatelessServiceProperties StatelessServiceProperties(string place minInstancePercentage); } + /// Initializes a new instance of . + /// The ID of the partition. + /// The IDs of the replicas to be restarted. + /// The kind of restart to perform. + /// If true, the restart operation will be forced. Use this option with care, as it may cause data loss. + /// The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default value for this parameter is 60 seconds. + /// A new instance for mocking. + public static ManagedServiceRestartReplicaContent ManagedServiceRestartReplicaContent(string partitionId = null, IEnumerable replicaIds = null, ManagedServiceRestartKind restartKind = default, bool? forceRestart = null, long? timeoutInSeconds = null) + { + replicaIds ??= new List(); + + return new ManagedServiceRestartReplicaContent( + partitionId, + replicaIds?.ToList(), + restartKind, + forceRestart, + timeoutInSeconds, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersResourceGroupResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersResourceGroupResource.cs index 5330f123bc27..8bed86efa012 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersResourceGroupResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual ServiceFabricManagedClusterCollection GetServiceFabricManagedClus /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetServ /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersSubscriptionResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersSubscriptionResource.cs index b1d8104d15e2..0c0494d5ebd9 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersSubscriptionResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersSubscriptionResource.cs @@ -63,7 +63,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -103,7 +103,7 @@ public virtual async Task> GetManag /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -143,7 +143,7 @@ public virtual Response GetManagedClusterVer /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -169,7 +169,7 @@ public virtual AsyncPageable GetManagedClust /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -195,7 +195,7 @@ public virtual Pageable GetManagedClusterVer /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -236,7 +236,7 @@ public virtual async Task> GetManag /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -277,7 +277,7 @@ public virtual Response GetManagedClusterVer /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -304,7 +304,7 @@ public virtual AsyncPageable GetManagedClust /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -331,7 +331,7 @@ public virtual Pageable GetManagedClusterVer /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -371,7 +371,7 @@ public virtual async Task> GetMa /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -411,7 +411,7 @@ public virtual Response GetManagedUnsuppo /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -438,7 +438,7 @@ public virtual AsyncPageable GetManagedUn /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -465,7 +465,7 @@ public virtual Pageable GetManagedUnsuppo /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -495,7 +495,7 @@ public virtual AsyncPageable GetServiceFabr /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/ServiceFabricManagedClustersExtensions.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/ServiceFabricManagedClustersExtensions.cs index bfbc142d4fba..080759b8708d 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/ServiceFabricManagedClustersExtensions.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/ServiceFabricManagedClustersExtensions.cs @@ -177,7 +177,7 @@ public static ServiceFabricManagedClusterCollection GetServiceFabricManagedClust /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -215,7 +215,7 @@ public static async Task> GetServi /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -253,7 +253,7 @@ public static Response GetServiceFabricMana /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -287,7 +287,7 @@ public static async Task> GetManage /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -321,7 +321,7 @@ public static Response GetManagedClusterVers /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -354,7 +354,7 @@ public static AsyncPageable GetManagedCluste /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -387,7 +387,7 @@ public static Pageable GetManagedClusterVers /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -422,7 +422,7 @@ public static async Task> GetManage /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -457,7 +457,7 @@ public static Response GetManagedClusterVers /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -491,7 +491,7 @@ public static AsyncPageable GetManagedCluste /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -525,7 +525,7 @@ public static Pageable GetManagedClusterVers /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -559,7 +559,7 @@ public static async Task> GetMan /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -593,7 +593,7 @@ public static Response GetManagedUnsuppor /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -626,7 +626,7 @@ public static AsyncPageable GetManagedUns /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -659,7 +659,7 @@ public static Pageable GetManagedUnsuppor /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -695,7 +695,7 @@ public static AsyncPageable GetServiceFabri /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthContent.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthContent.Serialization.cs new file mode 100644 index 000000000000..d23acb280010 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthContent.Serialization.cs @@ -0,0 +1,199 @@ +// 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.ServiceFabricManagedClusters.Models +{ + public partial class ApplicationFetchHealthContent : 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(ApplicationFetchHealthContent)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(EventsHealthStateFilter)) + { + writer.WritePropertyName("eventsHealthStateFilter"u8); + writer.WriteStringValue(EventsHealthStateFilter.Value.ToString()); + } + if (Optional.IsDefined(DeployedApplicationsHealthStateFilter)) + { + writer.WritePropertyName("deployedApplicationsHealthStateFilter"u8); + writer.WriteStringValue(DeployedApplicationsHealthStateFilter.Value.ToString()); + } + if (Optional.IsDefined(ServicesHealthStateFilter)) + { + writer.WritePropertyName("servicesHealthStateFilter"u8); + writer.WriteStringValue(ServicesHealthStateFilter.Value.ToString()); + } + if (Optional.IsDefined(ExcludeHealthStatistics)) + { + writer.WritePropertyName("excludeHealthStatistics"u8); + writer.WriteBooleanValue(ExcludeHealthStatistics.Value); + } + if (Optional.IsDefined(TimeoutInSeconds)) + { + writer.WritePropertyName("timeout"u8); + writer.WriteNumberValue(TimeoutInSeconds.Value); + } + 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 + } + } + } + + ApplicationFetchHealthContent 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(ApplicationFetchHealthContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeApplicationFetchHealthContent(document.RootElement, options); + } + + internal static ApplicationFetchHealthContent DeserializeApplicationFetchHealthContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ApplicationFetchHealthFilter? eventsHealthStateFilter = default; + ApplicationFetchHealthFilter? deployedApplicationsHealthStateFilter = default; + ApplicationFetchHealthFilter? servicesHealthStateFilter = default; + bool? excludeHealthStatistics = default; + long? timeout = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("eventsHealthStateFilter"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + eventsHealthStateFilter = new ApplicationFetchHealthFilter(property.Value.GetString()); + continue; + } + if (property.NameEquals("deployedApplicationsHealthStateFilter"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deployedApplicationsHealthStateFilter = new ApplicationFetchHealthFilter(property.Value.GetString()); + continue; + } + if (property.NameEquals("servicesHealthStateFilter"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + servicesHealthStateFilter = new ApplicationFetchHealthFilter(property.Value.GetString()); + continue; + } + if (property.NameEquals("excludeHealthStatistics"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + excludeHealthStatistics = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("timeout"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + timeout = property.Value.GetInt64(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ApplicationFetchHealthContent( + eventsHealthStateFilter, + deployedApplicationsHealthStateFilter, + servicesHealthStateFilter, + excludeHealthStatistics, + timeout, + 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, AzureResourceManagerServiceFabricManagedClustersContext.Default); + default: + throw new FormatException($"The model {nameof(ApplicationFetchHealthContent)} does not support writing '{options.Format}' format."); + } + } + + ApplicationFetchHealthContent 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 DeserializeApplicationFetchHealthContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ApplicationFetchHealthContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthContent.cs new file mode 100644 index 000000000000..82f7ee9317ef --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthContent.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models +{ + /// Parameters for fetching the health of an application. + public partial class ApplicationFetchHealthContent + { + /// + /// 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 ApplicationFetchHealthContent() + { + } + + /// Initializes a new instance of . + /// Allows filtering of the health events returned in the response based on health state. + /// Allows filtering of the deployed applications health state objects returned in the result of application health query based on their health state. + /// Allows filtering of the services health state objects returned in the result of services health query based on their health state. + /// Indicates whether the health statistics should be returned as part of the query result. False by default. The statistics show the number of children entities in health state Ok, Warning, and Error. + /// Request timeout for the health query in seconds. The default value is 60 seconds. + /// Keeps track of any properties unknown to the library. + internal ApplicationFetchHealthContent(ApplicationFetchHealthFilter? eventsHealthStateFilter, ApplicationFetchHealthFilter? deployedApplicationsHealthStateFilter, ApplicationFetchHealthFilter? servicesHealthStateFilter, bool? excludeHealthStatistics, long? timeoutInSeconds, IDictionary serializedAdditionalRawData) + { + EventsHealthStateFilter = eventsHealthStateFilter; + DeployedApplicationsHealthStateFilter = deployedApplicationsHealthStateFilter; + ServicesHealthStateFilter = servicesHealthStateFilter; + ExcludeHealthStatistics = excludeHealthStatistics; + TimeoutInSeconds = timeoutInSeconds; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Allows filtering of the health events returned in the response based on health state. + public ApplicationFetchHealthFilter? EventsHealthStateFilter { get; set; } + /// Allows filtering of the deployed applications health state objects returned in the result of application health query based on their health state. + public ApplicationFetchHealthFilter? DeployedApplicationsHealthStateFilter { get; set; } + /// Allows filtering of the services health state objects returned in the result of services health query based on their health state. + public ApplicationFetchHealthFilter? ServicesHealthStateFilter { get; set; } + /// Indicates whether the health statistics should be returned as part of the query result. False by default. The statistics show the number of children entities in health state Ok, Warning, and Error. + public bool? ExcludeHealthStatistics { get; set; } + /// Request timeout for the health query in seconds. The default value is 60 seconds. + public long? TimeoutInSeconds { get; set; } + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthFilter.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthFilter.cs new file mode 100644 index 000000000000..7ff8d6a4eda0 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationFetchHealthFilter.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models +{ + /// Enum for filtering health events. + public readonly partial struct ApplicationFetchHealthFilter : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ApplicationFetchHealthFilter(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DefaultValue = "Default"; + private const string NoneValue = "None"; + private const string OkValue = "Ok"; + private const string WarningValue = "Warning"; + private const string ErrorValue = "Error"; + private const string AllValue = "All"; + + /// Default value. Matches any health state. + public static ApplicationFetchHealthFilter Default { get; } = new ApplicationFetchHealthFilter(DefaultValue); + /// Filter that doesn't match any health state. Used to return no results on a given collection of health entities. + public static ApplicationFetchHealthFilter None { get; } = new ApplicationFetchHealthFilter(NoneValue); + /// Filter for health state Ok. + public static ApplicationFetchHealthFilter Ok { get; } = new ApplicationFetchHealthFilter(OkValue); + /// Filter for health state Warning. + public static ApplicationFetchHealthFilter Warning { get; } = new ApplicationFetchHealthFilter(WarningValue); + /// Filter for health state Error. + public static ApplicationFetchHealthFilter Error { get; } = new ApplicationFetchHealthFilter(ErrorValue); + /// Filter that matches input with any health state. + public static ApplicationFetchHealthFilter All { get; } = new ApplicationFetchHealthFilter(AllValue); + /// Determines if two values are the same. + public static bool operator ==(ApplicationFetchHealthFilter left, ApplicationFetchHealthFilter right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ApplicationFetchHealthFilter left, ApplicationFetchHealthFilter right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ApplicationFetchHealthFilter(string value) => new ApplicationFetchHealthFilter(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ApplicationFetchHealthFilter other && Equals(other); + /// + public bool Equals(ApplicationFetchHealthFilter 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/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationUpdateParametersProperties.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationUpdateParametersProperties.Serialization.cs new file mode 100644 index 000000000000..e9c0d7a6ccb0 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationUpdateParametersProperties.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.ServiceFabricManagedClusters.Models +{ + internal partial class ApplicationUpdateParametersProperties : 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(ApplicationUpdateParametersProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Parameters)) + { + writer.WritePropertyName("parameters"u8); + writer.WriteStartObject(); + foreach (var item in Parameters) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + 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 + } + } + } + + ApplicationUpdateParametersProperties 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(ApplicationUpdateParametersProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeApplicationUpdateParametersProperties(document.RootElement, options); + } + + internal static ApplicationUpdateParametersProperties DeserializeApplicationUpdateParametersProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary parameters = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("parameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + parameters = dictionary; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ApplicationUpdateParametersProperties(parameters ?? new ChangeTrackingDictionary(), 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, AzureResourceManagerServiceFabricManagedClustersContext.Default); + default: + throw new FormatException($"The model {nameof(ApplicationUpdateParametersProperties)} does not support writing '{options.Format}' format."); + } + } + + ApplicationUpdateParametersProperties 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 DeserializeApplicationUpdateParametersProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ApplicationUpdateParametersProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationUpdateParametersProperties.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationUpdateParametersProperties.cs new file mode 100644 index 000000000000..32f6f8dbf99a --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ApplicationUpdateParametersProperties.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models +{ + /// Properties for application update request. + internal partial class ApplicationUpdateParametersProperties + { + /// + /// 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 ApplicationUpdateParametersProperties() + { + Parameters = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// List of application parameters with overridden values from their default values specified in the application manifest. + /// Keeps track of any properties unknown to the library. + internal ApplicationUpdateParametersProperties(IDictionary parameters, IDictionary serializedAdditionalRawData) + { + Parameters = parameters; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// List of application parameters with overridden values from their default values specified in the application manifest. + public IDictionary Parameters { get; } + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/AzureResourceManagerServiceFabricManagedClustersContext.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/AzureResourceManagerServiceFabricManagedClustersContext.cs index aeb0107e02a9..6822c5031e76 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/AzureResourceManagerServiceFabricManagedClustersContext.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/AzureResourceManagerServiceFabricManagedClustersContext.cs @@ -17,11 +17,13 @@ namespace Azure.ResourceManager.ServiceFabricManagedClusters /// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md' /// [ModelReaderWriterBuildable(typeof(AdditionalNetworkInterfaceConfiguration))] + [ModelReaderWriterBuildable(typeof(ApplicationFetchHealthContent))] [ModelReaderWriterBuildable(typeof(ApplicationHealthPolicy))] [ModelReaderWriterBuildable(typeof(ApplicationResourceList))] [ModelReaderWriterBuildable(typeof(ApplicationTypeResourceList))] [ModelReaderWriterBuildable(typeof(ApplicationTypeVersionResourceList))] [ModelReaderWriterBuildable(typeof(ApplicationTypeVersionsCleanupPolicy))] + [ModelReaderWriterBuildable(typeof(ApplicationUpdateParametersProperties))] [ModelReaderWriterBuildable(typeof(ApplicationUpgradePolicy))] [ModelReaderWriterBuildable(typeof(ApplicationUserAssignedIdentityInfo))] [ModelReaderWriterBuildable(typeof(AveragePartitionLoadScalingTrigger))] @@ -56,6 +58,7 @@ namespace Azure.ResourceManager.ServiceFabricManagedClusters [ModelReaderWriterBuildable(typeof(ManagedServicePartitionScheme))] [ModelReaderWriterBuildable(typeof(ManagedServicePlacementPolicy))] [ModelReaderWriterBuildable(typeof(ManagedServiceProperties))] + [ModelReaderWriterBuildable(typeof(ManagedServiceRestartReplicaContent))] [ModelReaderWriterBuildable(typeof(ManagedServiceScalingMechanism))] [ModelReaderWriterBuildable(typeof(ManagedServiceScalingPolicy))] [ModelReaderWriterBuildable(typeof(ManagedServiceScalingTrigger))] @@ -79,6 +82,7 @@ namespace Azure.ResourceManager.ServiceFabricManagedClusters [ModelReaderWriterBuildable(typeof(PartitionInstanceCountScalingMechanism))] [ModelReaderWriterBuildable(typeof(ResourceAzStatus))] [ModelReaderWriterBuildable(typeof(ResponseError))] + [ModelReaderWriterBuildable(typeof(RestartDeployedCodePackageContent))] [ModelReaderWriterBuildable(typeof(RollingUpgradeMonitoringPolicy))] [ModelReaderWriterBuildable(typeof(RuntimeApplicationHealthPolicy))] [ModelReaderWriterBuildable(typeof(RuntimeResumeApplicationUpgradeContent))] diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartKind.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartKind.cs new file mode 100644 index 000000000000..9154447367e3 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartKind.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models +{ + /// The kind of restart to perform. + public readonly partial struct ManagedServiceRestartKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedServiceRestartKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SimultaneousValue = "Simultaneous"; + + /// Restart all listed replicas at the same time. + public static ManagedServiceRestartKind Simultaneous { get; } = new ManagedServiceRestartKind(SimultaneousValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedServiceRestartKind left, ManagedServiceRestartKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedServiceRestartKind left, ManagedServiceRestartKind right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ManagedServiceRestartKind(string value) => new ManagedServiceRestartKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedServiceRestartKind other && Equals(other); + /// + public bool Equals(ManagedServiceRestartKind 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/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartReplicaContent.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartReplicaContent.Serialization.cs new file mode 100644 index 000000000000..9929242bb4e7 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartReplicaContent.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.ServiceFabricManagedClusters.Models +{ + public partial class ManagedServiceRestartReplicaContent : 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(ManagedServiceRestartReplicaContent)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("partitionId"u8); + writer.WriteStringValue(PartitionId); + writer.WritePropertyName("replicaIds"u8); + writer.WriteStartArray(); + foreach (var item in ReplicaIds) + { + writer.WriteNumberValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("restartKind"u8); + writer.WriteStringValue(RestartKind.ToString()); + if (Optional.IsDefined(ForceRestart)) + { + writer.WritePropertyName("forceRestart"u8); + writer.WriteBooleanValue(ForceRestart.Value); + } + if (Optional.IsDefined(TimeoutInSeconds)) + { + writer.WritePropertyName("timeout"u8); + writer.WriteNumberValue(TimeoutInSeconds.Value); + } + 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 + } + } + } + + ManagedServiceRestartReplicaContent 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(ManagedServiceRestartReplicaContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeManagedServiceRestartReplicaContent(document.RootElement, options); + } + + internal static ManagedServiceRestartReplicaContent DeserializeManagedServiceRestartReplicaContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string partitionId = default; + IList replicaIds = default; + ManagedServiceRestartKind restartKind = default; + bool? forceRestart = default; + long? timeout = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("partitionId"u8)) + { + partitionId = property.Value.GetString(); + continue; + } + if (property.NameEquals("replicaIds"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetInt64()); + } + replicaIds = array; + continue; + } + if (property.NameEquals("restartKind"u8)) + { + restartKind = new ManagedServiceRestartKind(property.Value.GetString()); + continue; + } + if (property.NameEquals("forceRestart"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + forceRestart = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("timeout"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + timeout = property.Value.GetInt64(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ManagedServiceRestartReplicaContent( + partitionId, + replicaIds, + restartKind, + forceRestart, + timeout, + 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, AzureResourceManagerServiceFabricManagedClustersContext.Default); + default: + throw new FormatException($"The model {nameof(ManagedServiceRestartReplicaContent)} does not support writing '{options.Format}' format."); + } + } + + ManagedServiceRestartReplicaContent 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 DeserializeManagedServiceRestartReplicaContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ManagedServiceRestartReplicaContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartReplicaContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartReplicaContent.cs new file mode 100644 index 000000000000..767b052f3859 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedServiceRestartReplicaContent.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models +{ + /// Request to restart a replica. + public partial class ManagedServiceRestartReplicaContent + { + /// + /// 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 ID of the partition. + /// The IDs of the replicas to be restarted. + /// The kind of restart to perform. + /// or is null. + public ManagedServiceRestartReplicaContent(string partitionId, IEnumerable replicaIds, ManagedServiceRestartKind restartKind) + { + Argument.AssertNotNull(partitionId, nameof(partitionId)); + Argument.AssertNotNull(replicaIds, nameof(replicaIds)); + + PartitionId = partitionId; + ReplicaIds = replicaIds.ToList(); + RestartKind = restartKind; + } + + /// Initializes a new instance of . + /// The ID of the partition. + /// The IDs of the replicas to be restarted. + /// The kind of restart to perform. + /// If true, the restart operation will be forced. Use this option with care, as it may cause data loss. + /// The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default value for this parameter is 60 seconds. + /// Keeps track of any properties unknown to the library. + internal ManagedServiceRestartReplicaContent(string partitionId, IList replicaIds, ManagedServiceRestartKind restartKind, bool? forceRestart, long? timeoutInSeconds, IDictionary serializedAdditionalRawData) + { + PartitionId = partitionId; + ReplicaIds = replicaIds; + RestartKind = restartKind; + ForceRestart = forceRestart; + TimeoutInSeconds = timeoutInSeconds; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal ManagedServiceRestartReplicaContent() + { + } + + /// The ID of the partition. + public string PartitionId { get; } + /// The IDs of the replicas to be restarted. + public IList ReplicaIds { get; } + /// The kind of restart to perform. + public ManagedServiceRestartKind RestartKind { get; } + /// If true, the restart operation will be forced. Use this option with care, as it may cause data loss. + public bool? ForceRestart { get; set; } + /// The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default value for this parameter is 60 seconds. + public long? TimeoutInSeconds { get; set; } + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/RestartDeployedCodePackageContent.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/RestartDeployedCodePackageContent.Serialization.cs new file mode 100644 index 000000000000..811499202d16 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/RestartDeployedCodePackageContent.Serialization.cs @@ -0,0 +1,167 @@ +// 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.ServiceFabricManagedClusters.Models +{ + public partial class RestartDeployedCodePackageContent : 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(RestartDeployedCodePackageContent)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("nodeName"u8); + writer.WriteStringValue(NodeName); + writer.WritePropertyName("serviceManifestName"u8); + writer.WriteStringValue(ServiceManifestName); + writer.WritePropertyName("codePackageName"u8); + writer.WriteStringValue(CodePackageName); + writer.WritePropertyName("codePackageInstanceId"u8); + writer.WriteStringValue(CodePackageInstanceId); + if (Optional.IsDefined(ServicePackageActivationId)) + { + writer.WritePropertyName("servicePackageActivationId"u8); + writer.WriteStringValue(ServicePackageActivationId); + } + 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 + } + } + } + + RestartDeployedCodePackageContent 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(RestartDeployedCodePackageContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRestartDeployedCodePackageContent(document.RootElement, options); + } + + internal static RestartDeployedCodePackageContent DeserializeRestartDeployedCodePackageContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string nodeName = default; + string serviceManifestName = default; + string codePackageName = default; + string codePackageInstanceId = default; + string servicePackageActivationId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nodeName"u8)) + { + nodeName = property.Value.GetString(); + continue; + } + if (property.NameEquals("serviceManifestName"u8)) + { + serviceManifestName = property.Value.GetString(); + continue; + } + if (property.NameEquals("codePackageName"u8)) + { + codePackageName = property.Value.GetString(); + continue; + } + if (property.NameEquals("codePackageInstanceId"u8)) + { + codePackageInstanceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("servicePackageActivationId"u8)) + { + servicePackageActivationId = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RestartDeployedCodePackageContent( + nodeName, + serviceManifestName, + codePackageName, + codePackageInstanceId, + servicePackageActivationId, + 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, AzureResourceManagerServiceFabricManagedClustersContext.Default); + default: + throw new FormatException($"The model {nameof(RestartDeployedCodePackageContent)} does not support writing '{options.Format}' format."); + } + } + + RestartDeployedCodePackageContent 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 DeserializeRestartDeployedCodePackageContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RestartDeployedCodePackageContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/RestartDeployedCodePackageContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/RestartDeployedCodePackageContent.cs new file mode 100644 index 000000000000..52689c2f49a1 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/RestartDeployedCodePackageContent.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models +{ + /// Parameters for restarting a deployed code package. + public partial class RestartDeployedCodePackageContent + { + /// + /// 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 name of the node where the code package needs to be restarted. Use '*' to restart on all nodes where the code package is running. + /// The name of the service manifest as specified in the code package. + /// The name of the code package as specified in the service manifest. + /// The instance ID for currently running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry point executable is run, its instance ID will change. If 0 is passed in as the code package instance ID, the API will restart the code package with whatever instance ID it is currently running. If an instance ID other than 0 is passed in, the API will restart the code package only if the current Instance ID matches the passed in instance ID. Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one restart of the code package. + /// , , or is null. + public RestartDeployedCodePackageContent(string nodeName, string serviceManifestName, string codePackageName, string codePackageInstanceId) + { + Argument.AssertNotNull(nodeName, nameof(nodeName)); + Argument.AssertNotNull(serviceManifestName, nameof(serviceManifestName)); + Argument.AssertNotNull(codePackageName, nameof(codePackageName)); + Argument.AssertNotNull(codePackageInstanceId, nameof(codePackageInstanceId)); + + NodeName = nodeName; + ServiceManifestName = serviceManifestName; + CodePackageName = codePackageName; + CodePackageInstanceId = codePackageInstanceId; + } + + /// Initializes a new instance of . + /// The name of the node where the code package needs to be restarted. Use '*' to restart on all nodes where the code package is running. + /// The name of the service manifest as specified in the code package. + /// The name of the code package as specified in the service manifest. + /// The instance ID for currently running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry point executable is run, its instance ID will change. If 0 is passed in as the code package instance ID, the API will restart the code package with whatever instance ID it is currently running. If an instance ID other than 0 is passed in, the API will restart the code package only if the current Instance ID matches the passed in instance ID. Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one restart of the code package. + /// The activation id of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId is always an empty string. + /// Keeps track of any properties unknown to the library. + internal RestartDeployedCodePackageContent(string nodeName, string serviceManifestName, string codePackageName, string codePackageInstanceId, string servicePackageActivationId, IDictionary serializedAdditionalRawData) + { + NodeName = nodeName; + ServiceManifestName = serviceManifestName; + CodePackageName = codePackageName; + CodePackageInstanceId = codePackageInstanceId; + ServicePackageActivationId = servicePackageActivationId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal RestartDeployedCodePackageContent() + { + } + + /// The name of the node where the code package needs to be restarted. Use '*' to restart on all nodes where the code package is running. + public string NodeName { get; } + /// The name of the service manifest as specified in the code package. + public string ServiceManifestName { get; } + /// The name of the code package as specified in the service manifest. + public string CodePackageName { get; } + /// The instance ID for currently running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry point executable is run, its instance ID will change. If 0 is passed in as the code package instance ID, the API will restart the code package with whatever instance ID it is currently running. If an instance ID other than 0 is passed in, the API will restart the code package only if the current Instance ID matches the passed in instance ID. Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one restart of the code package. + public string CodePackageInstanceId { get; } + /// The activation id of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId is always an empty string. + public string ServicePackageActivationId { get; set; } + } +} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationPatch.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationPatch.Serialization.cs index 0d464977d21f..ea66a3083c2a 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationPatch.Serialization.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationPatch.Serialization.cs @@ -45,6 +45,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -83,6 +88,7 @@ internal static ServiceFabricManagedApplicationPatch DeserializeServiceFabricMan return null; } IDictionary tags = default; + ApplicationUpdateParametersProperties properties = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -101,13 +107,22 @@ internal static ServiceFabricManagedApplicationPatch DeserializeServiceFabricMan tags = dictionary; continue; } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = ApplicationUpdateParametersProperties.DeserializeApplicationUpdateParametersProperties(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new ServiceFabricManagedApplicationPatch(tags ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); + return new ServiceFabricManagedApplicationPatch(tags ?? new ChangeTrackingDictionary(), properties, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationPatch.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationPatch.cs index 7910085923bb..ec673fe4c206 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationPatch.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedApplicationPatch.cs @@ -53,14 +53,28 @@ public ServiceFabricManagedApplicationPatch() /// Initializes a new instance of . /// Application update parameters. + /// Application update parameters properties. /// Keeps track of any properties unknown to the library. - internal ServiceFabricManagedApplicationPatch(IDictionary tags, IDictionary serializedAdditionalRawData) + internal ServiceFabricManagedApplicationPatch(IDictionary tags, ApplicationUpdateParametersProperties properties, IDictionary serializedAdditionalRawData) { Tags = tags; + Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Application update parameters. public IDictionary Tags { get; } + /// Application update parameters properties. + internal ApplicationUpdateParametersProperties Properties { get; set; } + /// List of application parameters with overridden values from their default values specified in the application manifest. + public IDictionary ApplicationUpdateParameters + { + get + { + if (Properties is null) + Properties = new ApplicationUpdateParametersProperties(); + return Properties.Parameters; + } + } } } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs index 443b6c736f26..a5755ea2f6fe 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypeVersionsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationTypeVersionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypesRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypesRestOperations.cs index 4dc1f20e75e7..c6f5f842eb4f 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationTypesRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationTypesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationsRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationsRestOperations.cs index cb06e2c0b4b0..4b3151de373b 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationsRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ApplicationsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -282,7 +282,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Updates the tags of an application resource of a given managed cluster. + /// Updates an application resource of a given managed cluster. /// 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 cluster resource. @@ -291,7 +291,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) + public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -304,18 +304,14 @@ public async Task> UpdateAsync(str switch (message.Response.Status) { case 200: - { - ServiceFabricManagedApplicationData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = ServiceFabricManagedApplicationData.DeserializeServiceFabricManagedApplicationData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Updates the tags of an application resource of a given managed cluster. + /// Updates an application resource of a given managed cluster. /// 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 cluster resource. @@ -324,7 +320,7 @@ public async Task> UpdateAsync(str /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -337,12 +333,8 @@ public Response Update(string subscriptionI switch (message.Response.Status) { case 200: - { - ServiceFabricManagedApplicationData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = ServiceFabricManagedApplicationData.DeserializeServiceFabricManagedApplicationData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } @@ -913,6 +905,204 @@ public Response UpdateUpgrade(string subscriptionId, string resourceGroupName, s } } + internal RequestUriBuilder CreateFetchHealthRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ApplicationFetchHealthContent content) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/fetchHealth", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateFetchHealthRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ApplicationFetchHealthContent content) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/fetchHealth", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Get the status of the deployed application health. It will query the cluster to find the health of the deployed application. + /// 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 cluster resource. + /// The name of the application resource. + /// The parameters for fetching the health of a deployed application. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task FetchHealthAsync(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ApplicationFetchHealthContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateFetchHealthRequest(subscriptionId, resourceGroupName, clusterName, applicationName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get the status of the deployed application health. It will query the cluster to find the health of the deployed application. + /// 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 cluster resource. + /// The name of the application resource. + /// The parameters for fetching the health of a deployed application. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response FetchHealth(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, ApplicationFetchHealthContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateFetchHealthRequest(subscriptionId, resourceGroupName, clusterName, applicationName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateRestartDeployedCodePackageRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, RestartDeployedCodePackageContent content) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/restartDeployedCodePackage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateRestartDeployedCodePackageRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, RestartDeployedCodePackageContent content) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/restartDeployedCodePackage", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation that should be used with immense care. + /// 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 cluster resource. + /// The name of the application resource. + /// The parameters for restarting a deployed code package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task RestartDeployedCodePackageAsync(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, RestartDeployedCodePackageContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateRestartDeployedCodePackageRequest(subscriptionId, resourceGroupName, clusterName, applicationName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation that should be used with immense care. + /// 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 cluster resource. + /// The name of the application resource. + /// The parameters for restarting a deployed code package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response RestartDeployedCodePackage(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, RestartDeployedCodePackageContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateRestartDeployedCodePackageRequest(subscriptionId, resourceGroupName, clusterName, applicationName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedApplyMaintenanceWindowRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedApplyMaintenanceWindowRestOperations.cs index a95a3a0777e7..4cc92ef96458 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedApplyMaintenanceWindowRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedApplyMaintenanceWindowRestOperations.cs @@ -30,7 +30,7 @@ public ManagedApplyMaintenanceWindowRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedAzResiliencyStatusRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedAzResiliencyStatusRestOperations.cs index bcc5cf19c5f8..ca5e4fbf0a78 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedAzResiliencyStatusRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedAzResiliencyStatusRestOperations.cs @@ -32,7 +32,7 @@ public ManagedAzResiliencyStatusRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClusterVersionRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClusterVersionRestOperations.cs index 271dd676cb93..da93ce031c2f 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClusterVersionRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClusterVersionRestOperations.cs @@ -33,7 +33,7 @@ public ManagedClusterVersionRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs index 246d5c79ddd6..55edd9e84d30 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs @@ -32,7 +32,7 @@ public ManagedClustersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -270,7 +270,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) + public async Task UpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -282,12 +282,8 @@ public async Task> UpdateAsync(string switch (message.Response.Status) { case 200: - { - ServiceFabricManagedClusterData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = ServiceFabricManagedClusterData.DeserializeServiceFabricManagedClusterData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } @@ -301,7 +297,7 @@ public async Task> UpdateAsync(string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string clusterName, ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -313,12 +309,8 @@ public Response Update(string subscriptionId, s switch (message.Response.Status) { case 200: - { - ServiceFabricManagedClusterData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = ServiceFabricManagedClusterData.DeserializeServiceFabricManagedClusterData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedMaintenanceWindowStatusRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedMaintenanceWindowStatusRestOperations.cs index a899f9d20e91..36180386c140 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedMaintenanceWindowStatusRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedMaintenanceWindowStatusRestOperations.cs @@ -32,7 +32,7 @@ public ManagedMaintenanceWindowStatusRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedUnsupportedVMSizesRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedUnsupportedVMSizesRestOperations.cs index 976f7f8b7ef4..9eae485b1994 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedUnsupportedVMSizesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedUnsupportedVMSizesRestOperations.cs @@ -32,7 +32,7 @@ public ManagedUnsupportedVMSizesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypeSkusRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypeSkusRestOperations.cs index d9c292320e43..2a0c0d661d9e 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypeSkusRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypeSkusRestOperations.cs @@ -32,7 +32,7 @@ public NodeTypeSkusRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs index 447d90dd278a..e246a331e90b 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs @@ -32,7 +32,7 @@ public NodeTypesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -282,7 +282,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Update the configuration of a node type of a given managed cluster, only updating tags. + /// Update the configuration of a node type of a given managed cluster, only updating tags or capacity. /// 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 cluster resource. @@ -311,7 +311,7 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } } - /// Update the configuration of a node type of a given managed cluster, only updating tags. + /// Update the configuration of a node type of a given managed cluster, only updating tags or capacity. /// 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 cluster resource. diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ServicesRestOperations.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ServicesRestOperations.cs index d7f40ff2c4bb..d54f7c1f55ad 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ServicesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ServicesRestOperations.cs @@ -32,7 +32,7 @@ public ServicesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2025-06-01-preview"; + _apiVersion = apiVersion ?? "2025-10-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -573,6 +573,113 @@ public Response ListByApplications(string subscriptionId, s } } + internal RequestUriBuilder CreateRestartReplicaRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/restartReplica", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateRestartReplicaRequest(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent) + { + 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.ServiceFabric/managedClusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationName, true); + uri.AppendPath("/services/", false); + uri.AppendPath(serviceName, true); + uri.AppendPath("/restartReplica", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(managedServiceRestartReplicaContent, ModelSerializationExtensions.WireOptions); + request.Content = content; + _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 cluster resource. + /// The name of the application resource. + /// The name of the service resource in the format of {applicationName}~{serviceName}. + /// The parameters for restarting replicas. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task RestartReplicaAsync(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); + Argument.AssertNotNullOrEmpty(serviceName, nameof(serviceName)); + Argument.AssertNotNull(managedServiceRestartReplicaContent, nameof(managedServiceRestartReplicaContent)); + + using var message = CreateRestartReplicaRequest(subscriptionId, resourceGroupName, clusterName, applicationName, serviceName, managedServiceRestartReplicaContent); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + 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 cluster resource. + /// The name of the application resource. + /// The name of the service resource in the format of {applicationName}~{serviceName}. + /// The parameters for restarting replicas. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response RestartReplica(string subscriptionId, string resourceGroupName, string clusterName, string applicationName, string serviceName, ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(applicationName, nameof(applicationName)); + Argument.AssertNotNullOrEmpty(serviceName, nameof(serviceName)); + Argument.AssertNotNull(managedServiceRestartReplicaContent, nameof(managedServiceRestartReplicaContent)); + + using var message = CreateRestartReplicaRequest(subscriptionId, resourceGroupName, clusterName, applicationName, serviceName, managedServiceRestartReplicaContent); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListByApplicationsNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string applicationName) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationCollection.cs index 4796d76a0583..b16474f6eb59 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string appl /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string applicationName, Ca /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string applicationName, CancellationToken c /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationResource.cs index 824fe51af882..e10b04ae972e 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationResource.cs @@ -110,7 +110,7 @@ public virtual ServiceFabricManagedServiceCollection GetServiceFabricManagedServ /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetServ /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetServiceFabricMan /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -324,7 +324,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Updates the tags of an application resource of a given managed cluster. + /// Updates an application resource of a given managed cluster. /// /// /// Request Path @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -344,10 +344,11 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// + /// 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 application resource updated tags. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); @@ -356,7 +357,10 @@ public virtual async Task> Upd try { var response = await _serviceFabricManagedApplicationApplicationsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ServiceFabricManagedApplicationResource(Client, response.Value), response.GetRawResponse()); + var operation = new ServiceFabricManagedClustersArmOperation(new ServiceFabricManagedApplicationOperationSource(Client), _serviceFabricManagedApplicationApplicationsClientDiagnostics, Pipeline, _serviceFabricManagedApplicationApplicationsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; } catch (Exception e) { @@ -366,7 +370,7 @@ public virtual async Task> Upd } /// - /// Updates the tags of an application resource of a given managed cluster. + /// Updates an application resource of a given managed cluster. /// /// /// Request Path @@ -378,7 +382,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -386,10 +390,11 @@ public virtual async Task> Upd /// /// /// + /// 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 application resource updated tags. /// The cancellation token to use. /// is null. - public virtual Response Update(ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, ServiceFabricManagedApplicationPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); @@ -398,7 +403,10 @@ public virtual Response Update(ServiceF try { var response = _serviceFabricManagedApplicationApplicationsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new ServiceFabricManagedApplicationResource(Client, response.Value), response.GetRawResponse()); + var operation = new ServiceFabricManagedClustersArmOperation(new ServiceFabricManagedApplicationOperationSource(Client), _serviceFabricManagedApplicationApplicationsClientDiagnostics, Pipeline, _serviceFabricManagedApplicationApplicationsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; } catch (Exception e) { @@ -420,7 +428,7 @@ public virtual Response Update(ServiceF /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -462,7 +470,7 @@ public virtual async Task ReadUpgradeAsync(WaitUntil waitUntil, Ca /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -504,7 +512,7 @@ public virtual ArmOperation ReadUpgrade(WaitUntil waitUntil, CancellationToken c /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -550,7 +558,7 @@ public virtual async Task ResumeUpgradeAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -596,7 +604,7 @@ public virtual ArmOperation ResumeUpgrade(WaitUntil waitUntil, RuntimeResumeAppl /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -638,7 +646,7 @@ public virtual async Task StartRollbackAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -680,7 +688,7 @@ public virtual ArmOperation StartRollback(WaitUntil waitUntil, CancellationToken /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -726,7 +734,7 @@ public virtual async Task UpdateUpgradeAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -759,6 +767,190 @@ public virtual ArmOperation UpdateUpgrade(WaitUntil waitUntil, RuntimeUpdateAppl } } + /// + /// Get the status of the deployed application health. It will query the cluster to find the health of the deployed application. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/fetchHealth + /// + /// + /// Operation Id + /// Applications_FetchHealth + /// + /// + /// Default Api Version + /// 2025-10-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 parameters for fetching the health of a deployed application. + /// The cancellation token to use. + /// is null. + public virtual async Task FetchHealthAsync(WaitUntil waitUntil, ApplicationFetchHealthContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _serviceFabricManagedApplicationApplicationsClientDiagnostics.CreateScope("ServiceFabricManagedApplicationResource.FetchHealth"); + scope.Start(); + try + { + var response = await _serviceFabricManagedApplicationApplicationsRestClient.FetchHealthAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new ServiceFabricManagedClustersArmOperation(_serviceFabricManagedApplicationApplicationsClientDiagnostics, Pipeline, _serviceFabricManagedApplicationApplicationsRestClient.CreateFetchHealthRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the status of the deployed application health. It will query the cluster to find the health of the deployed application. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/fetchHealth + /// + /// + /// Operation Id + /// Applications_FetchHealth + /// + /// + /// Default Api Version + /// 2025-10-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 parameters for fetching the health of a deployed application. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation FetchHealth(WaitUntil waitUntil, ApplicationFetchHealthContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _serviceFabricManagedApplicationApplicationsClientDiagnostics.CreateScope("ServiceFabricManagedApplicationResource.FetchHealth"); + scope.Start(); + try + { + var response = _serviceFabricManagedApplicationApplicationsRestClient.FetchHealth(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new ServiceFabricManagedClustersArmOperation(_serviceFabricManagedApplicationApplicationsClientDiagnostics, Pipeline, _serviceFabricManagedApplicationApplicationsRestClient.CreateFetchHealthRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation that should be used with immense care. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/restartDeployedCodePackage + /// + /// + /// Operation Id + /// Applications_RestartDeployedCodePackage + /// + /// + /// Default Api Version + /// 2025-10-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 parameters for restarting a deployed code package. + /// The cancellation token to use. + /// is null. + public virtual async Task RestartDeployedCodePackageAsync(WaitUntil waitUntil, RestartDeployedCodePackageContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _serviceFabricManagedApplicationApplicationsClientDiagnostics.CreateScope("ServiceFabricManagedApplicationResource.RestartDeployedCodePackage"); + scope.Start(); + try + { + var response = await _serviceFabricManagedApplicationApplicationsRestClient.RestartDeployedCodePackageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new ServiceFabricManagedClustersArmOperation(_serviceFabricManagedApplicationApplicationsClientDiagnostics, Pipeline, _serviceFabricManagedApplicationApplicationsRestClient.CreateRestartDeployedCodePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Restart a code package instance of a service replica or instance. This is a potentially destabilizing operation that should be used with immense care. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/restartDeployedCodePackage + /// + /// + /// Operation Id + /// Applications_RestartDeployedCodePackage + /// + /// + /// Default Api Version + /// 2025-10-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 parameters for restarting a deployed code package. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation RestartDeployedCodePackage(WaitUntil waitUntil, RestartDeployedCodePackageContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _serviceFabricManagedApplicationApplicationsClientDiagnostics.CreateScope("ServiceFabricManagedApplicationResource.RestartDeployedCodePackage"); + scope.Start(); + try + { + var response = _serviceFabricManagedApplicationApplicationsRestClient.RestartDeployedCodePackage(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new ServiceFabricManagedClustersArmOperation(_serviceFabricManagedApplicationApplicationsClientDiagnostics, Pipeline, _serviceFabricManagedApplicationApplicationsRestClient.CreateRestartDeployedCodePackageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Add a tag to the current resource. /// @@ -772,7 +964,7 @@ public virtual ArmOperation UpdateUpgrade(WaitUntil waitUntil, RuntimeUpdateAppl /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -810,8 +1002,8 @@ public virtual async Task> Add patch.Tags.Add(tag); } patch.Tags[key] = value; - var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); - return result; + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -834,7 +1026,7 @@ public virtual async Task> Add /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -872,8 +1064,8 @@ public virtual Response AddTag(string k patch.Tags.Add(tag); } patch.Tags[key] = value; - var result = Update(patch, cancellationToken: cancellationToken); - return result; + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -896,7 +1088,7 @@ public virtual Response AddTag(string k /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -929,8 +1121,8 @@ public virtual async Task> Set var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; var patch = new ServiceFabricManagedApplicationPatch(); patch.Tags.ReplaceWith(tags); - var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); - return result; + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -953,7 +1145,7 @@ public virtual async Task> Set /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -986,8 +1178,8 @@ public virtual Response SetTags(IDictio var current = Get(cancellationToken: cancellationToken).Value.Data; var patch = new ServiceFabricManagedApplicationPatch(); patch.Tags.ReplaceWith(tags); - var result = Update(patch, cancellationToken: cancellationToken); - return result; + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -1010,7 +1202,7 @@ public virtual Response SetTags(IDictio /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1046,8 +1238,8 @@ public virtual async Task> Rem patch.Tags.Add(tag); } patch.Tags.Remove(key); - var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); - return result; + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -1070,7 +1262,7 @@ public virtual async Task> Rem /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1106,8 +1298,8 @@ public virtual Response RemoveTag(strin patch.Tags.Add(tag); } patch.Tags.Remove(key); - var result = Update(patch, cancellationToken: cancellationToken); - return result; + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs index b8d36293fa27..86d0d181bc2c 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateO /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAll /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(Canc /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string applicationTypeName /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string applicationTypeName, CancellationTok /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeResource.cs index b9ac795eadfa..68a2a21deae7 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeResource.cs @@ -110,7 +110,7 @@ public virtual ServiceFabricManagedApplicationTypeVersionCollection GetServiceFa /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetS /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(Cancell /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -378,7 +378,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -420,7 +420,7 @@ public virtual Response Update(Serv /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -482,7 +482,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -544,7 +544,7 @@ public virtual Response AddTag(stri /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -601,7 +601,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -658,7 +658,7 @@ public virtual Response SetTags(IDi /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -718,7 +718,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionCollection.cs index b861e59573ed..9bd8924afdda 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get( /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetA /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string version, Cancellati /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string version, CancellationToken cancellat /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionResource.cs index 6b22823c2388..e50828b13cc2 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get( /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -310,7 +310,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -352,7 +352,7 @@ public virtual Response Upda /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -414,7 +414,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -476,7 +476,7 @@ public virtual Response AddT /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -533,7 +533,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -590,7 +590,7 @@ public virtual Response SetT /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -650,7 +650,7 @@ public virtual async Task /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterCollection.cs index 293247d26486..e814e9c79983 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string clusterN /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterResource.cs index f6092f037bfa..3b48bb6be33e 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterResource.cs @@ -123,7 +123,7 @@ public virtual ServiceFabricManagedApplicationCollection GetServiceFabricManaged /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -154,7 +154,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -192,7 +192,7 @@ public virtual ServiceFabricManagedApplicationTypeCollection GetServiceFabricMan /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -261,7 +261,7 @@ public virtual ServiceFabricManagedNodeTypeCollection GetServiceFabricManagedNod /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -292,7 +292,7 @@ public virtual async Task> GetSer /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Response GetServiceFabricMa /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -487,7 +487,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -495,10 +495,11 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// + /// 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 managed cluster resource updated tags. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); @@ -507,7 +508,10 @@ public virtual async Task> UpdateA try { var response = await _serviceFabricManagedClusterManagedClustersRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ServiceFabricManagedClusterResource(Client, response.Value), response.GetRawResponse()); + var operation = new ServiceFabricManagedClustersArmOperation(new ServiceFabricManagedClusterOperationSource(Client), _serviceFabricManagedClusterManagedClustersClientDiagnostics, Pipeline, _serviceFabricManagedClusterManagedClustersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; } catch (Exception e) { @@ -529,7 +533,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -537,10 +541,11 @@ public virtual async Task> UpdateA /// /// /// + /// 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 managed cluster resource updated tags. /// The cancellation token to use. /// is null. - public virtual Response Update(ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, ServiceFabricManagedClusterPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); @@ -549,7 +554,10 @@ public virtual Response Update(ServiceFabri try { var response = _serviceFabricManagedClusterManagedClustersRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken); - return Response.FromValue(new ServiceFabricManagedClusterResource(Client, response.Value), response.GetRawResponse()); + var operation = new ServiceFabricManagedClustersArmOperation(new ServiceFabricManagedClusterOperationSource(Client), _serviceFabricManagedClusterManagedClustersClientDiagnostics, Pipeline, _serviceFabricManagedClusterManagedClustersRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; } catch (Exception e) { @@ -571,7 +579,7 @@ public virtual Response Update(ServiceFabri /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -613,7 +621,7 @@ public virtual async Task> GetFaultSimulationAsync(Fau /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -655,7 +663,7 @@ public virtual Response GetFaultSimulation(FaultSimulationIdCon /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -685,7 +693,7 @@ public virtual AsyncPageable GetFaultSimulationAsync(Cancellati /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -715,7 +723,7 @@ public virtual Pageable GetFaultSimulation(CancellationToken ca /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -761,7 +769,7 @@ public virtual async Task> StartFaultSimulationAsy /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -807,7 +815,7 @@ public virtual ArmOperation StartFaultSimulation(WaitUntil wait /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -853,7 +861,7 @@ public virtual async Task> StopFaultSimulationAsyn /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -899,7 +907,7 @@ public virtual ArmOperation StopFaultSimulation(WaitUntil waitU /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -933,7 +941,7 @@ public virtual async Task> GetManagedAzResil /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -967,7 +975,7 @@ public virtual Response GetManagedAzResiliencyStatus( /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -1001,7 +1009,7 @@ public virtual async Task PostManagedApplyMaintenanceWindowAsync(Cance /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -1035,7 +1043,7 @@ public virtual Response PostManagedApplyMaintenanceWindow(CancellationToken canc /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -1069,7 +1077,7 @@ public virtual async Task> GetManagedMa /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -1103,7 +1111,7 @@ public virtual Response GetManagedMaintenanceWin /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1141,8 +1149,8 @@ public virtual async Task> AddTagA patch.Tags.Add(tag); } patch.Tags[key] = value; - var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); - return result; + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -1165,7 +1173,7 @@ public virtual async Task> AddTagA /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1203,8 +1211,8 @@ public virtual Response AddTag(string key, patch.Tags.Add(tag); } patch.Tags[key] = value; - var result = Update(patch, cancellationToken: cancellationToken); - return result; + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -1227,7 +1235,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1260,8 +1268,8 @@ public virtual async Task> SetTags var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; var patch = new ServiceFabricManagedClusterPatch(); patch.Tags.ReplaceWith(tags); - var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); - return result; + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -1284,7 +1292,7 @@ public virtual async Task> SetTags /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1317,8 +1325,8 @@ public virtual Response SetTags(IDictionary var current = Get(cancellationToken: cancellationToken).Value.Data; var patch = new ServiceFabricManagedClusterPatch(); patch.Tags.ReplaceWith(tags); - var result = Update(patch, cancellationToken: cancellationToken); - return result; + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -1341,7 +1349,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1377,8 +1385,8 @@ public virtual async Task> RemoveT patch.Tags.Add(tag); } patch.Tags.Remove(key); - var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); - return result; + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) @@ -1401,7 +1409,7 @@ public virtual async Task> RemoveT /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1437,8 +1445,8 @@ public virtual Response RemoveTag(string ke patch.Tags.Add(tag); } patch.Tags.Remove(key); - var result = Update(patch, cancellationToken: cancellationToken); - return result; + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); } } catch (Exception e) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeCollection.cs index c81eb8e695f7..4e36910fa1fa 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string nodeTyp /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string nodeTypeName, Cance /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string nodeTypeName, CancellationToken canc /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeResource.cs index 2d90876db0fd..b30bdf26f668 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeResource.cs @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -260,7 +260,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Update the configuration of a node type of a given managed cluster, only updating tags. + /// Update the configuration of a node type of a given managed cluster, only updating tags or capacity. /// /// /// Request Path @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -306,7 +306,7 @@ public virtual async Task> Up } /// - /// Update the configuration of a node type of a given managed cluster, only updating tags. + /// Update the configuration of a node type of a given managed cluster, only updating tags or capacity. /// /// /// Request Path @@ -318,7 +318,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Update(WaitUnt /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -410,7 +410,7 @@ public virtual async Task DeallocateAsync(WaitUntil waitUntil, Nod /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -456,7 +456,7 @@ public virtual ArmOperation Deallocate(WaitUntil waitUntil, NodeTypeActionConten /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -502,7 +502,7 @@ public virtual async Task DeleteNodeAsync(WaitUntil waitUntil, Nod /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -548,7 +548,7 @@ public virtual ArmOperation DeleteNode(WaitUntil waitUntil, NodeTypeActionConten /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -594,7 +594,7 @@ public virtual async Task RedeployAsync(WaitUntil waitUntil, NodeT /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -640,7 +640,7 @@ public virtual ArmOperation Redeploy(WaitUntil waitUntil, NodeTypeActionContent /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -686,7 +686,7 @@ public virtual async Task ReimageAsync(WaitUntil waitUntil, NodeTy /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -732,7 +732,7 @@ public virtual ArmOperation Reimage(WaitUntil waitUntil, NodeTypeActionContent c /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -778,7 +778,7 @@ public virtual async Task RestartAsync(WaitUntil waitUntil, NodeTy /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -824,7 +824,7 @@ public virtual ArmOperation Restart(WaitUntil waitUntil, NodeTypeActionContent c /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -870,7 +870,7 @@ public virtual async Task StartAsync(WaitUntil waitUntil, NodeType /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -916,7 +916,7 @@ public virtual ArmOperation Start(WaitUntil waitUntil, NodeTypeActionContent con /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -962,7 +962,7 @@ public virtual async Task> StartFaultSimulationAsy /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1008,7 +1008,7 @@ public virtual ArmOperation StartFaultSimulation(WaitUntil wait /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1054,7 +1054,7 @@ public virtual async Task> StopFaultSimulationAsyn /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1100,7 +1100,7 @@ public virtual ArmOperation StopFaultSimulation(WaitUntil waitU /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1142,7 +1142,7 @@ public virtual async Task> GetFaultSimulationAsync(Fau /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1184,7 +1184,7 @@ public virtual Response GetFaultSimulation(FaultSimulationIdCon /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1214,7 +1214,7 @@ public virtual AsyncPageable GetFaultSimulationAsync(Cancellati /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1244,7 +1244,7 @@ public virtual Pageable GetFaultSimulation(CancellationToken ca /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -1270,7 +1270,7 @@ public virtual AsyncPageable GetAvailableSkusAsync(Cancell /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// @@ -1296,7 +1296,7 @@ public virtual Pageable GetAvailableSkus(CancellationToken /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1358,7 +1358,7 @@ public virtual async Task> AddTag /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1420,7 +1420,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1477,7 +1477,7 @@ public virtual async Task> SetTag /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1534,7 +1534,7 @@ public virtual Response SetTags(IDictionar /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -1594,7 +1594,7 @@ public virtual async Task> Remove /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceCollection.cs index fe5a5e38f88f..5ac4ee0a3e1b 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string serviceN /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string serviceName, Cancel /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string serviceName, CancellationToken cance /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceResource.cs index 7147deb7c5d3..9c272af48062 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -310,7 +310,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -339,6 +339,98 @@ public virtual Response Update(ServiceFabri } } + /// + /// A long-running resource action. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services/{serviceName}/restartReplica + /// + /// + /// Operation Id + /// Services_RestartReplica + /// + /// + /// Default Api Version + /// 2025-10-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 parameters for restarting replicas. + /// The cancellation token to use. + /// is null. + public virtual async Task RestartReplicaAsync(WaitUntil waitUntil, ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(managedServiceRestartReplicaContent, nameof(managedServiceRestartReplicaContent)); + + using var scope = _serviceFabricManagedServiceServicesClientDiagnostics.CreateScope("ServiceFabricManagedServiceResource.RestartReplica"); + scope.Start(); + try + { + var response = await _serviceFabricManagedServiceServicesRestClient.RestartReplicaAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, managedServiceRestartReplicaContent, cancellationToken).ConfigureAwait(false); + var operation = new ServiceFabricManagedClustersArmOperation(_serviceFabricManagedServiceServicesClientDiagnostics, Pipeline, _serviceFabricManagedServiceServicesRestClient.CreateRestartReplicaRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, managedServiceRestartReplicaContent).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(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.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services/{serviceName}/restartReplica + /// + /// + /// Operation Id + /// Services_RestartReplica + /// + /// + /// Default Api Version + /// 2025-10-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// 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 parameters for restarting replicas. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation RestartReplica(WaitUntil waitUntil, ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(managedServiceRestartReplicaContent, nameof(managedServiceRestartReplicaContent)); + + using var scope = _serviceFabricManagedServiceServicesClientDiagnostics.CreateScope("ServiceFabricManagedServiceResource.RestartReplica"); + scope.Start(); + try + { + var response = _serviceFabricManagedServiceServicesRestClient.RestartReplica(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, managedServiceRestartReplicaContent, cancellationToken); + var operation = new ServiceFabricManagedClustersArmOperation(_serviceFabricManagedServiceServicesClientDiagnostics, Pipeline, _serviceFabricManagedServiceServicesRestClient.CreateRestartReplicaRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, managedServiceRestartReplicaContent).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Add a tag to the current resource. /// @@ -352,7 +444,7 @@ public virtual Response Update(ServiceFabri /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -414,7 +506,7 @@ public virtual async Task> AddTagA /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -476,7 +568,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -533,7 +625,7 @@ public virtual async Task> SetTags /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -590,7 +682,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource @@ -650,7 +742,7 @@ public virtual async Task> RemoveT /// /// /// Default Api Version - /// 2025-06-01-preview + /// 2025-10-01-preview /// /// /// Resource diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationCollection.cs index b9289fb131d3..bbb3d650e349 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ServiceFabricManagedApplicationCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAnApplicationWithMaximumParameters() { - // Generated from example definition: 2025-06-01-preview/ApplicationPutOperation_example_max.json + // Generated from example definition: 2025-10-01-preview/ApplicationPutOperation_example_max.json // this example is just showing the usage of "ApplicationResource_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 @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_PutAnApplicationWithMaximumParameters() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAnApplicationWithMinimumParameters() { - // Generated from example definition: 2025-06-01-preview/ApplicationPutOperation_example_min.json + // Generated from example definition: 2025-10-01-preview/ApplicationPutOperation_example_min.json // this example is just showing the usage of "ApplicationResource_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 @@ -97,7 +97,7 @@ public async Task CreateOrUpdate_PutAnApplicationWithMinimumParameters() [Ignore("Only validating compilation of examples")] public async Task Get_GetAnApplication() { - // Generated from example definition: 2025-06-01-preview/ApplicationGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationGetOperation_example.json // this example is just showing the usage of "ApplicationResource_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 @@ -131,7 +131,7 @@ public async Task Get_GetAnApplication() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAListOfApplicationResources() { - // Generated from example definition: 2025-06-01-preview/ApplicationListOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationListOperation_example.json // this example is just showing the usage of "ApplicationResource_List" 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,7 +167,7 @@ public async Task GetAll_GetAListOfApplicationResources() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAnApplication() { - // Generated from example definition: 2025-06-01-preview/ApplicationGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationGetOperation_example.json // this example is just showing the usage of "ApplicationResource_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 @@ -197,7 +197,7 @@ public async Task Exists_GetAnApplication() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAnApplication() { - // Generated from example definition: 2025-06-01-preview/ApplicationGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationGetOperation_example.json // this example is just showing the usage of "ApplicationResource_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationResource.cs index f3b0cfc20942..a796b8040a85 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceFabricManagedApplicationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAnApplication() { - // Generated from example definition: 2025-06-01-preview/ApplicationGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationGetOperation_example.json // this example is just showing the usage of "ApplicationResource_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 @@ -51,7 +51,7 @@ public async Task Get_GetAnApplication() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAnApplication() { - // Generated from example definition: 2025-06-01-preview/ApplicationDeleteOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationDeleteOperation_example.json // this example is just showing the usage of "ApplicationResource_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 @@ -78,7 +78,7 @@ public async Task Delete_DeleteAnApplication() [Ignore("Only validating compilation of examples")] public async Task Update_PatchAnApplication() { - // Generated from example definition: 2025-06-01-preview/ApplicationPatchOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationPatchOperation_example.json // this example is just showing the usage of "ApplicationResource_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 @@ -101,9 +101,15 @@ public async Task Update_PatchAnApplication() Tags = { ["a"] = "b" +}, + ApplicationUpdateParameters = +{ +["param1"] = "value1", +["param2"] = "value2" }, }; - ServiceFabricManagedApplicationResource result = await serviceFabricManagedApplication.UpdateAsync(patch); + ArmOperation lro = await serviceFabricManagedApplication.UpdateAsync(WaitUntil.Completed, patch); + ServiceFabricManagedApplicationResource 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 @@ -116,7 +122,7 @@ public async Task Update_PatchAnApplication() [Ignore("Only validating compilation of examples")] public async Task ReadUpgrade_GetAnApplicationUpgrade() { - // Generated from example definition: 2025-06-01-preview/ApplicationActionGetUpgrade_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationActionGetUpgrade_example.json // this example is just showing the usage of "Applications_ReadUpgrade" 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 @@ -143,7 +149,7 @@ public async Task ReadUpgrade_GetAnApplicationUpgrade() [Ignore("Only validating compilation of examples")] public async Task ResumeUpgrade_ResumeUpgrade() { - // Generated from example definition: 2025-06-01-preview/ApplicationActionResumeUpgrade_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationActionResumeUpgrade_example.json // this example is just showing the usage of "Applications_ResumeUpgrade" 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 @@ -174,7 +180,7 @@ public async Task ResumeUpgrade_ResumeUpgrade() [Ignore("Only validating compilation of examples")] public async Task StartRollback_StartAnApplicationUpgradeRollback() { - // Generated from example definition: 2025-06-01-preview/ApplicationActionStartRollback_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationActionStartRollback_example.json // this example is just showing the usage of "Applications_StartRollback" 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 @@ -201,7 +207,7 @@ public async Task StartRollback_StartAnApplicationUpgradeRollback() [Ignore("Only validating compilation of examples")] public async Task UpdateUpgrade_UpdateAnApplicationUpgrade() { - // Generated from example definition: 2025-06-01-preview/ApplicationActionUpdateUpgrade_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationActionUpdateUpgrade_example.json // this example is just showing the usage of "Applications_UpdateUpgrade" 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 @@ -244,5 +250,71 @@ public async Task UpdateUpgrade_UpdateAnApplicationUpgrade() Console.WriteLine("Succeeded"); } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task FetchHealth_FetchApplicationHealth() + { + // Generated from example definition: 2025-10-01-preview/ApplicationActionFetchHealth_example.json + // this example is just showing the usage of "Applications_FetchHealth" 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 ServiceFabricManagedApplicationResource created on azure + // for more information of creating ServiceFabricManagedApplicationResource, please refer to the document of ServiceFabricManagedApplicationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "resRg"; + string clusterName = "myCluster"; + string applicationName = "myApp"; + ResourceIdentifier serviceFabricManagedApplicationResourceId = ServiceFabricManagedApplicationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, applicationName); + ServiceFabricManagedApplicationResource serviceFabricManagedApplication = client.GetServiceFabricManagedApplicationResource(serviceFabricManagedApplicationResourceId); + + // invoke the operation + ApplicationFetchHealthContent content = new ApplicationFetchHealthContent + { + EventsHealthStateFilter = ApplicationFetchHealthFilter.Error, + DeployedApplicationsHealthStateFilter = ApplicationFetchHealthFilter.Error, + ServicesHealthStateFilter = ApplicationFetchHealthFilter.Error, + ExcludeHealthStatistics = true, + TimeoutInSeconds = 30L, + }; + await serviceFabricManagedApplication.FetchHealthAsync(WaitUntil.Completed, content); + + Console.WriteLine("Succeeded"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task RestartDeployedCodePackage_RestartDeployedCodePackage() + { + // Generated from example definition: 2025-10-01-preview/ApplicationActionRestartDeployedCodePackage_example.json + // this example is just showing the usage of "Applications_RestartDeployedCodePackage" 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 ServiceFabricManagedApplicationResource created on azure + // for more information of creating ServiceFabricManagedApplicationResource, please refer to the document of ServiceFabricManagedApplicationResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "resRg"; + string clusterName = "myCluster"; + string applicationName = "myApp"; + ResourceIdentifier serviceFabricManagedApplicationResourceId = ServiceFabricManagedApplicationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, applicationName); + ServiceFabricManagedApplicationResource serviceFabricManagedApplication = client.GetServiceFabricManagedApplicationResource(serviceFabricManagedApplicationResourceId); + + // invoke the operation + RestartDeployedCodePackageContent content = new RestartDeployedCodePackageContent("nt1_0", "TestPkg", "Code", "133991326715515522") + { + ServicePackageActivationId = "sharedProcess", + }; + await serviceFabricManagedApplication.RestartDeployedCodePackageAsync(WaitUntil.Completed, content); + + Console.WriteLine("Succeeded"); + } } } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeCollection.cs index af701e741973..6dd000f907f0 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ServiceFabricManagedApplicationTypeCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAnApplicationType() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeNamePutOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeNamePutOperation_example.json // this example is just showing the usage of "ApplicationTypeResource_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,7 +55,7 @@ public async Task CreateOrUpdate_PutAnApplicationType() [Ignore("Only validating compilation of examples")] public async Task Get_GetAnApplicationType() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeNameGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeNameGetOperation_example.json // this example is just showing the usage of "ApplicationTypeResource_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,7 +89,7 @@ public async Task Get_GetAnApplicationType() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAListOfApplicationTypeNameResources() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeNameListOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeNameListOperation_example.json // this example is just showing the usage of "ApplicationTypeResource_List" 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,7 +125,7 @@ public async Task GetAll_GetAListOfApplicationTypeNameResources() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAnApplicationType() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeNameGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeNameGetOperation_example.json // this example is just showing the usage of "ApplicationTypeResource_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,7 +155,7 @@ public async Task Exists_GetAnApplicationType() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAnApplicationType() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeNameGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeNameGetOperation_example.json // this example is just showing the usage of "ApplicationTypeResource_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeResource.cs index e3335b28d16a..a704e98653d8 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceFabricManagedApplicationTypeResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAnApplicationType() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeNameGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeNameGetOperation_example.json // this example is just showing the usage of "ApplicationTypeResource_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 @@ -51,7 +51,7 @@ public async Task Get_GetAnApplicationType() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAnApplicationType() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeNameDeleteOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeNameDeleteOperation_example.json // this example is just showing the usage of "ApplicationTypeResource_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 @@ -78,7 +78,7 @@ public async Task Delete_DeleteAnApplicationType() [Ignore("Only validating compilation of examples")] public async Task Update_PatchAnApplicationType() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeNamePatchOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeNamePatchOperation_example.json // this example is just showing the usage of "ApplicationTypeResource_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeVersionCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeVersionCollection.cs index 2374b05e4315..0157c8d085d4 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeVersionCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeVersionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ServiceFabricManagedApplicationTypeVersionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAnApplicationTypeVersion() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeVersionPutOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeVersionPutOperation_example.json // this example is just showing the usage of "ApplicationTypeVersionResource_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 @@ -56,7 +56,7 @@ public async Task CreateOrUpdate_PutAnApplicationTypeVersion() [Ignore("Only validating compilation of examples")] public async Task Get_GetAnApplicationTypeVersion() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeVersionGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeVersionGetOperation_example.json // this example is just showing the usage of "ApplicationTypeVersionResource_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 @@ -91,7 +91,7 @@ public async Task Get_GetAnApplicationTypeVersion() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAListOfApplicationTypeVersionResources() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeVersionListOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeVersionListOperation_example.json // this example is just showing the usage of "ApplicationTypeVersionResource_ListByApplicationTypes" 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 @@ -128,7 +128,7 @@ public async Task GetAll_GetAListOfApplicationTypeVersionResources() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAnApplicationTypeVersion() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeVersionGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeVersionGetOperation_example.json // this example is just showing the usage of "ApplicationTypeVersionResource_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,7 +159,7 @@ public async Task Exists_GetAnApplicationTypeVersion() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAnApplicationTypeVersion() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeVersionGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeVersionGetOperation_example.json // this example is just showing the usage of "ApplicationTypeVersionResource_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeVersionResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeVersionResource.cs index 92ad87cda3f0..ea02383a5203 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeVersionResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedApplicationTypeVersionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceFabricManagedApplicationTypeVersionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAnApplicationTypeVersion() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeVersionGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeVersionGetOperation_example.json // this example is just showing the usage of "ApplicationTypeVersionResource_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 @@ -52,7 +52,7 @@ public async Task Get_GetAnApplicationTypeVersion() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAnApplicationTypeVersion() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeVersionDeleteOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeVersionDeleteOperation_example.json // this example is just showing the usage of "ApplicationTypeVersionResource_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 @@ -80,7 +80,7 @@ public async Task Delete_DeleteAnApplicationTypeVersion() [Ignore("Only validating compilation of examples")] public async Task Update_PatchAnApplicationTypeVersion() { - // Generated from example definition: 2025-06-01-preview/ApplicationTypeVersionPatchOperation_example.json + // Generated from example definition: 2025-10-01-preview/ApplicationTypeVersionPatchOperation_example.json // this example is just showing the usage of "ApplicationTypeVersionResource_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedClusterCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedClusterCollection.cs index 4423151a36e0..838a7a99dcc5 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedClusterCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedClusterCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ServiceFabricManagedClusterCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAClusterWithMaximumParameters() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterPutOperation_example_max.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterPutOperation_example_max.json // this example is just showing the usage of "ManagedCluster_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,7 +59,7 @@ public async Task CreateOrUpdate_PutAClusterWithMaximumParameters() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAClusterWithMinimumParameters() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterPutOperation_example_min.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterPutOperation_example_min.json // this example is just showing the usage of "ManagedCluster_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 @@ -94,7 +94,7 @@ public async Task CreateOrUpdate_PutAClusterWithMinimumParameters() [Ignore("Only validating compilation of examples")] public async Task Get_GetACluster() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterGetOperation_example.json // this example is just showing the usage of "ManagedCluster_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 @@ -127,7 +127,7 @@ public async Task Get_GetACluster() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListClusterByResourceGroup() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterListByResourceGroupOperation_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterListByResourceGroupOperation_example.json // this example is just showing the usage of "ManagedCluster_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 @@ -162,7 +162,7 @@ public async Task GetAll_ListClusterByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetACluster() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterGetOperation_example.json // this example is just showing the usage of "ManagedCluster_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 @@ -191,7 +191,7 @@ public async Task Exists_GetACluster() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetACluster() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterGetOperation_example.json // this example is just showing the usage of "ManagedCluster_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedClusterResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedClusterResource.cs index 845a4f72ba4d..9218b1c31ee5 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedClusterResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedClusterResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceFabricManagedClusterResource [Ignore("Only validating compilation of examples")] public async Task Get_GetACluster() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterGetOperation_example.json // this example is just showing the usage of "ManagedCluster_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 @@ -50,7 +50,7 @@ public async Task Get_GetACluster() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteACluster() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterDeleteOperation_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterDeleteOperation_example.json // this example is just showing the usage of "ManagedCluster_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 @@ -76,7 +76,7 @@ public async Task Delete_DeleteACluster() [Ignore("Only validating compilation of examples")] public async Task Update_PatchAManagedCluster() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterPatchOperation_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterPatchOperation_example.json // this example is just showing the usage of "ManagedCluster_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 @@ -100,7 +100,8 @@ public async Task Update_PatchAManagedCluster() ["a"] = "b" }, }; - ServiceFabricManagedClusterResource result = await serviceFabricManagedCluster.UpdateAsync(patch); + ArmOperation lro = await serviceFabricManagedCluster.UpdateAsync(WaitUntil.Completed, patch); + ServiceFabricManagedClusterResource 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 @@ -113,7 +114,7 @@ public async Task Update_PatchAManagedCluster() [Ignore("Only validating compilation of examples")] public async Task GetFaultSimulation_GetManagedClusterFaultSimulation() { - // Generated from example definition: 2025-06-01-preview/faultSimulation/ManagedClusterGetFaultSimulation_example.json + // Generated from example definition: 2025-10-01-preview/faultSimulation/ManagedClusterGetFaultSimulation_example.json // this example is just showing the usage of "ManagedClusters_GetFaultSimulation" 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 @@ -140,7 +141,7 @@ public async Task GetFaultSimulation_GetManagedClusterFaultSimulation() [Ignore("Only validating compilation of examples")] public async Task GetFaultSimulation_ListManagedClusterFaultSimulation() { - // Generated from example definition: 2025-06-01-preview/faultSimulation/ManagedClusterListFaultSimulation_example.json + // Generated from example definition: 2025-10-01-preview/faultSimulation/ManagedClusterListFaultSimulation_example.json // this example is just showing the usage of "ManagedClusters_ListFaultSimulation" 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 @@ -169,7 +170,7 @@ public async Task GetFaultSimulation_ListManagedClusterFaultSimulation() [Ignore("Only validating compilation of examples")] public async Task StartFaultSimulation_StartManagedClusterFaultSimulation() { - // Generated from example definition: 2025-06-01-preview/faultSimulation/ManagedClusterStartFaultSimulation_example.json + // Generated from example definition: 2025-10-01-preview/faultSimulation/ManagedClusterStartFaultSimulation_example.json // this example is just showing the usage of "ManagedClusters_StartFaultSimulation" 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,7 +201,7 @@ public async Task StartFaultSimulation_StartManagedClusterFaultSimulation() [Ignore("Only validating compilation of examples")] public async Task StopFaultSimulation_StopManagedClusterFaultSimulation() { - // Generated from example definition: 2025-06-01-preview/faultSimulation/ManagedClusterStopFaultSimulation_example.json + // Generated from example definition: 2025-10-01-preview/faultSimulation/ManagedClusterStopFaultSimulation_example.json // this example is just showing the usage of "ManagedClusters_StopFaultSimulation" 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 @@ -228,7 +229,7 @@ public async Task StopFaultSimulation_StopManagedClusterFaultSimulation() [Ignore("Only validating compilation of examples")] public async Task GetManagedAzResiliencyStatus_AzResiliencyStatusOfBaseResources() { - // Generated from example definition: 2025-06-01-preview/managedAzResiliencyStatusGet_example.json + // Generated from example definition: 2025-10-01-preview/managedAzResiliencyStatusGet_example.json // this example is just showing the usage of "ManagedAzResiliencyStatus_GetManagedAzResiliencyStatus" 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 @@ -254,7 +255,7 @@ public async Task GetManagedAzResiliencyStatus_AzResiliencyStatusOfBaseResources [Ignore("Only validating compilation of examples")] public async Task PostManagedApplyMaintenanceWindow_ApplyMaintenanceWindowStatus() { - // Generated from example definition: 2025-06-01-preview/ManagedApplyMaintenanceWindowPost_example.json + // Generated from example definition: 2025-10-01-preview/ManagedApplyMaintenanceWindowPost_example.json // this example is just showing the usage of "ManagedApplyMaintenanceWindow_Post" 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 @@ -280,7 +281,7 @@ public async Task PostManagedApplyMaintenanceWindow_ApplyMaintenanceWindowStatus [Ignore("Only validating compilation of examples")] public async Task GetManagedMaintenanceWindowStatu_GetMaintenanceWindowStatus() { - // Generated from example definition: 2025-06-01-preview/ManagedMaintenanceWindowStatusGet_example.json + // Generated from example definition: 2025-10-01-preview/ManagedMaintenanceWindowStatusGet_example.json // this example is just showing the usage of "ManagedMaintenanceWindowStatus_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedNodeTypeCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedNodeTypeCollection.cs index 54dc9c2ce0a0..feb4b2d828d0 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedNodeTypeCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedNodeTypeCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ServiceFabricManagedNodeTypeCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutANodeTypeWithAutoScaleParameters() { - // Generated from example definition: 2025-06-01-preview/NodeTypePutOperationAutoScale_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypePutOperationAutoScale_example.json // this example is just showing the usage of "NodeType_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,7 +55,7 @@ public async Task CreateOrUpdate_PutANodeTypeWithAutoScaleParameters() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutNodeTypeWithCustomVmImage() { - // Generated from example definition: 2025-06-01-preview/NodeTypePutOperationCustomImage_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypePutOperationCustomImage_example.json // this example is just showing the usage of "NodeType_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 @@ -91,7 +91,7 @@ public async Task CreateOrUpdate_PutNodeTypeWithCustomVmImage() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutNodeTypeWithSharedGalleriesCustomVmImage() { - // Generated from example definition: 2025-06-01-preview/NodeTypePutOperationCustomSharedGalleriesImage_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypePutOperationCustomSharedGalleriesImage_example.json // this example is just showing the usage of "NodeType_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 @@ -127,7 +127,7 @@ public async Task CreateOrUpdate_PutNodeTypeWithSharedGalleriesCustomVmImage() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutNodeTypeWithDedicatedHosts() { - // Generated from example definition: 2025-06-01-preview/NodeTypePutOperationDedicatedHost_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypePutOperationDedicatedHost_example.json // this example is just showing the usage of "NodeType_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 @@ -163,7 +163,7 @@ public async Task CreateOrUpdate_PutNodeTypeWithDedicatedHosts() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAnStatelessNodeTypeWithTemporaryDiskForServiceFabric() { - // Generated from example definition: 2025-06-01-preview/NodeTypePutOperationStateless_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypePutOperationStateless_example.json // this example is just showing the usage of "NodeType_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 @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_PutAnStatelessNodeTypeWithTemporaryDiskForServi [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutNodeTypeWithVmImagePlan() { - // Generated from example definition: 2025-06-01-preview/NodeTypePutOperationVmImagePlan_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypePutOperationVmImagePlan_example.json // this example is just showing the usage of "NodeType_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 @@ -235,7 +235,7 @@ public async Task CreateOrUpdate_PutNodeTypeWithVmImagePlan() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutANodeTypeWithMaximumParameters() { - // Generated from example definition: 2025-06-01-preview/NodeTypePutOperation_example_max.json + // Generated from example definition: 2025-10-01-preview/NodeTypePutOperation_example_max.json // this example is just showing the usage of "NodeType_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 @@ -271,7 +271,7 @@ public async Task CreateOrUpdate_PutANodeTypeWithMaximumParameters() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutANodeTypeWithMinimumParameters() { - // Generated from example definition: 2025-06-01-preview/NodeTypePutOperation_example_min.json + // Generated from example definition: 2025-10-01-preview/NodeTypePutOperation_example_min.json // this example is just showing the usage of "NodeType_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 @@ -307,7 +307,7 @@ public async Task CreateOrUpdate_PutANodeTypeWithMinimumParameters() [Ignore("Only validating compilation of examples")] public async Task Get_GetANodeType() { - // Generated from example definition: 2025-06-01-preview/NodeTypeGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypeGetOperation_example.json // this example is just showing the usage of "NodeType_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 @@ -341,7 +341,7 @@ public async Task Get_GetANodeType() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNodeTypeOfTheSpecifiedManagedCluster() { - // Generated from example definition: 2025-06-01-preview/NodeTypeListOperation_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypeListOperation_example.json // this example is just showing the usage of "NodeType_ListByManagedClusters" 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 @@ -377,7 +377,7 @@ public async Task GetAll_ListNodeTypeOfTheSpecifiedManagedCluster() [Ignore("Only validating compilation of examples")] public async Task Exists_GetANodeType() { - // Generated from example definition: 2025-06-01-preview/NodeTypeGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypeGetOperation_example.json // this example is just showing the usage of "NodeType_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 @@ -407,7 +407,7 @@ public async Task Exists_GetANodeType() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetANodeType() { - // Generated from example definition: 2025-06-01-preview/NodeTypeGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypeGetOperation_example.json // this example is just showing the usage of "NodeType_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedNodeTypeResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedNodeTypeResource.cs index 35ce880f0727..95b96597263c 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedNodeTypeResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedNodeTypeResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceFabricManagedNodeTypeResource [Ignore("Only validating compilation of examples")] public async Task Get_GetANodeType() { - // Generated from example definition: 2025-06-01-preview/NodeTypeGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypeGetOperation_example.json // this example is just showing the usage of "NodeType_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 @@ -51,7 +51,7 @@ public async Task Get_GetANodeType() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteANodeType() { - // Generated from example definition: 2025-06-01-preview/NodeTypeDeleteOperation_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypeDeleteOperation_example.json // this example is just showing the usage of "NodeType_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 @@ -78,7 +78,7 @@ public async Task Delete_DeleteANodeType() [Ignore("Only validating compilation of examples")] public async Task Update_PatchANodeTypeWhileAutoScaling() { - // Generated from example definition: 2025-06-01-preview/NodeTypePatchOperationAutoScale_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypePatchOperationAutoScale_example.json // this example is just showing the usage of "NodeType_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 @@ -122,7 +122,7 @@ public async Task Update_PatchANodeTypeWhileAutoScaling() [Ignore("Only validating compilation of examples")] public async Task Update_PatchANodeType() { - // Generated from example definition: 2025-06-01-preview/NodeTypePatchOperation_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypePatchOperation_example.json // this example is just showing the usage of "NodeType_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 @@ -161,7 +161,7 @@ public async Task Update_PatchANodeType() [Ignore("Only validating compilation of examples")] public async Task Deallocate_DeallocateNodes() { - // Generated from example definition: 2025-06-01-preview/DeallocateNodes_example.json + // Generated from example definition: 2025-10-01-preview/DeallocateNodes_example.json // this example is just showing the usage of "NodeTypes_Deallocate" 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 @@ -192,7 +192,7 @@ public async Task Deallocate_DeallocateNodes() [Ignore("Only validating compilation of examples")] public async Task DeleteNode_DeleteNodes() { - // Generated from example definition: 2025-06-01-preview/DeleteNodes_example.json + // Generated from example definition: 2025-10-01-preview/DeleteNodes_example.json // this example is just showing the usage of "NodeTypes_DeleteNode" 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 @@ -223,7 +223,7 @@ public async Task DeleteNode_DeleteNodes() [Ignore("Only validating compilation of examples")] public async Task Redeploy_RedeployAllNodesByUpgradeDomain() { - // Generated from example definition: 2025-06-01-preview/RedeployNodes_UD_example.json + // Generated from example definition: 2025-10-01-preview/RedeployNodes_UD_example.json // this example is just showing the usage of "NodeTypes_Redeploy" 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 @@ -254,7 +254,7 @@ public async Task Redeploy_RedeployAllNodesByUpgradeDomain() [Ignore("Only validating compilation of examples")] public async Task Redeploy_RedeployNodes() { - // Generated from example definition: 2025-06-01-preview/RedeployNodes_example.json + // Generated from example definition: 2025-10-01-preview/RedeployNodes_example.json // this example is just showing the usage of "NodeTypes_Redeploy" 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 @@ -285,7 +285,7 @@ public async Task Redeploy_RedeployNodes() [Ignore("Only validating compilation of examples")] public async Task Reimage_ReimageAllNodesByUpgradeDomain() { - // Generated from example definition: 2025-06-01-preview/ReimageNodes_UD_example.json + // Generated from example definition: 2025-10-01-preview/ReimageNodes_UD_example.json // this example is just showing the usage of "NodeTypes_Reimage" 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 @@ -316,7 +316,7 @@ public async Task Reimage_ReimageAllNodesByUpgradeDomain() [Ignore("Only validating compilation of examples")] public async Task Reimage_ReimageNodes() { - // Generated from example definition: 2025-06-01-preview/ReimageNodes_example.json + // Generated from example definition: 2025-10-01-preview/ReimageNodes_example.json // this example is just showing the usage of "NodeTypes_Reimage" 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 @@ -347,7 +347,7 @@ public async Task Reimage_ReimageNodes() [Ignore("Only validating compilation of examples")] public async Task Restart_RestartNodes() { - // Generated from example definition: 2025-06-01-preview/RestartNodes_example.json + // Generated from example definition: 2025-10-01-preview/RestartNodes_example.json // this example is just showing the usage of "NodeTypes_Restart" 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 @@ -378,7 +378,7 @@ public async Task Restart_RestartNodes() [Ignore("Only validating compilation of examples")] public async Task Start_StartNodes() { - // Generated from example definition: 2025-06-01-preview/StartNodes_example.json + // Generated from example definition: 2025-10-01-preview/StartNodes_example.json // this example is just showing the usage of "NodeTypes_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 @@ -409,7 +409,7 @@ public async Task Start_StartNodes() [Ignore("Only validating compilation of examples")] public async Task StartFaultSimulation_StartNodeTypeFaultSimulation() { - // Generated from example definition: 2025-06-01-preview/faultSimulation/NodeTypeStartFaultSimulation_example.json + // Generated from example definition: 2025-10-01-preview/faultSimulation/NodeTypeStartFaultSimulation_example.json // this example is just showing the usage of "NodeTypes_StartFaultSimulation" 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 @@ -441,7 +441,7 @@ public async Task StartFaultSimulation_StartNodeTypeFaultSimulation() [Ignore("Only validating compilation of examples")] public async Task StopFaultSimulation_StopNodeTypeFaultSimulation() { - // Generated from example definition: 2025-06-01-preview/faultSimulation/NodeTypeStopFaultSimulation_example.json + // Generated from example definition: 2025-10-01-preview/faultSimulation/NodeTypeStopFaultSimulation_example.json // this example is just showing the usage of "NodeTypes_StopFaultSimulation" 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 @@ -470,7 +470,7 @@ public async Task StopFaultSimulation_StopNodeTypeFaultSimulation() [Ignore("Only validating compilation of examples")] public async Task GetFaultSimulation_GetNodeTypeFaultSimulation() { - // Generated from example definition: 2025-06-01-preview/faultSimulation/NodeTypeGetFaultSimulation_example.json + // Generated from example definition: 2025-10-01-preview/faultSimulation/NodeTypeGetFaultSimulation_example.json // this example is just showing the usage of "NodeTypes_GetFaultSimulation" 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 @@ -498,7 +498,7 @@ public async Task GetFaultSimulation_GetNodeTypeFaultSimulation() [Ignore("Only validating compilation of examples")] public async Task GetFaultSimulation_ListNodeTypeFaultSimulation() { - // Generated from example definition: 2025-06-01-preview/faultSimulation/NodeTypeListFaultSimulation_example.json + // Generated from example definition: 2025-10-01-preview/faultSimulation/NodeTypeListFaultSimulation_example.json // this example is just showing the usage of "NodeTypes_ListFaultSimulation" 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 @@ -528,7 +528,7 @@ public async Task GetFaultSimulation_ListNodeTypeFaultSimulation() [Ignore("Only validating compilation of examples")] public async Task GetAvailableSkus_ListANodeTypeSKUs() { - // Generated from example definition: 2025-06-01-preview/NodeTypeSkusListOperation_example.json + // Generated from example definition: 2025-10-01-preview/NodeTypeSkusListOperation_example.json // this example is just showing the usage of "NodeTypeSkus_GetAvailableSkus" 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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedServiceCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedServiceCollection.cs index 9564037872de..d8152ad2cbd4 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedServiceCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedServiceCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceFabricManagedServiceCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAServiceWithMaximumParameters() { - // Generated from example definition: 2025-06-01-preview/ServicePutOperation_example_max.json + // Generated from example definition: 2025-10-01-preview/ServicePutOperation_example_max.json // this example is just showing the usage of "ServiceResource_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 @@ -80,7 +80,7 @@ public async Task CreateOrUpdate_PutAServiceWithMaximumParameters() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutAServiceWithMinimumParameters() { - // Generated from example definition: 2025-06-01-preview/ServicePutOperation_example_min.json + // Generated from example definition: 2025-10-01-preview/ServicePutOperation_example_min.json // this example is just showing the usage of "ServiceResource_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 @@ -120,7 +120,7 @@ public async Task CreateOrUpdate_PutAServiceWithMinimumParameters() [Ignore("Only validating compilation of examples")] public async Task Get_GetAService() { - // Generated from example definition: 2025-06-01-preview/ServiceGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ServiceGetOperation_example.json // this example is just showing the usage of "ServiceResource_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,7 +155,7 @@ public async Task Get_GetAService() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetAListOfServiceResources() { - // Generated from example definition: 2025-06-01-preview/ServiceListOperation_example.json + // Generated from example definition: 2025-10-01-preview/ServiceListOperation_example.json // this example is just showing the usage of "ServiceResource_ListByApplications" 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 @@ -192,7 +192,7 @@ public async Task GetAll_GetAListOfServiceResources() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAService() { - // Generated from example definition: 2025-06-01-preview/ServiceGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ServiceGetOperation_example.json // this example is just showing the usage of "ServiceResource_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 @@ -223,7 +223,7 @@ public async Task Exists_GetAService() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAService() { - // Generated from example definition: 2025-06-01-preview/ServiceGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ServiceGetOperation_example.json // this example is just showing the usage of "ServiceResource_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedServiceResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedServiceResource.cs index f11b2acede25..0ba42b4ce0f2 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedServiceResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_ServiceFabricManagedServiceResource.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Threading.Tasks; using Azure.Core; using Azure.Identity; @@ -20,7 +21,7 @@ public partial class Sample_ServiceFabricManagedServiceResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAService() { - // Generated from example definition: 2025-06-01-preview/ServiceGetOperation_example.json + // Generated from example definition: 2025-10-01-preview/ServiceGetOperation_example.json // this example is just showing the usage of "ServiceResource_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 @@ -52,7 +53,7 @@ public async Task Get_GetAService() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAService() { - // Generated from example definition: 2025-06-01-preview/ServiceDeleteOperation_example.json + // Generated from example definition: 2025-10-01-preview/ServiceDeleteOperation_example.json // this example is just showing the usage of "ServiceResource_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 @@ -80,7 +81,7 @@ public async Task Delete_DeleteAService() [Ignore("Only validating compilation of examples")] public async Task Update_PatchAService() { - // Generated from example definition: 2025-06-01-preview/ServicePatchOperation_example.json + // Generated from example definition: 2025-10-01-preview/ServicePatchOperation_example.json // this example is just showing the usage of "ServiceResource_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 @@ -114,5 +115,34 @@ public async Task Update_PatchAService() // 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 RestartReplica_RestartReplicas() + { + // Generated from example definition: 2025-10-01-preview/ServiceActionRestartReplica_example.json + // this example is just showing the usage of "Services_RestartReplica" 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 ServiceFabricManagedServiceResource created on azure + // for more information of creating ServiceFabricManagedServiceResource, please refer to the document of ServiceFabricManagedServiceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "resRg"; + string clusterName = "myCluster"; + string applicationName = "myApp"; + string serviceName = "myService"; + ResourceIdentifier serviceFabricManagedServiceResourceId = ServiceFabricManagedServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, applicationName, serviceName); + ServiceFabricManagedServiceResource serviceFabricManagedService = client.GetServiceFabricManagedServiceResource(serviceFabricManagedServiceResourceId); + + // invoke the operation + ManagedServiceRestartReplicaContent managedServiceRestartReplicaContent = new ManagedServiceRestartReplicaContent(null, null, default); + await serviceFabricManagedService.RestartReplicaAsync(WaitUntil.Completed, managedServiceRestartReplicaContent); + + Console.WriteLine("Succeeded"); + } } } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 4ba32424a44f..60124f197821 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetManagedClusterVersion_GetClusterVersion() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterVersionGet_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterVersionGet_example.json // this example is just showing the usage of "ManagedClusterVersion_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,7 +47,7 @@ public async Task GetManagedClusterVersion_GetClusterVersion() [Ignore("Only validating compilation of examples")] public async Task GetManagedClusterVersions_ListClusterVersions() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterVersionList_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterVersionList_example.json // this example is just showing the usage of "ManagedClusterVersion_List" 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 @@ -75,7 +75,7 @@ public async Task GetManagedClusterVersions_ListClusterVersions() [Ignore("Only validating compilation of examples")] public async Task GetManagedClusterVersionByEnvironment_GetClusterVersionByEnvironment() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterVersionGetByEnvironment_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterVersionGetByEnvironment_example.json // this example is just showing the usage of "ManagedClusterVersion_GetManagedClusterVersionByEnvironment" 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 +102,7 @@ public async Task GetManagedClusterVersionByEnvironment_GetClusterVersionByEnvir [Ignore("Only validating compilation of examples")] public async Task GetManagedClusterVersionsByEnvironment_ListClusterVersionsByEnvironment() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterVersionListByEnvironment.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterVersionListByEnvironment.json // this example is just showing the usage of "ManagedClusterVersion_ListByEnvironment" 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 @@ -131,7 +131,7 @@ public async Task GetManagedClusterVersionsByEnvironment_ListClusterVersionsByEn [Ignore("Only validating compilation of examples")] public async Task GetManagedUnsupportedVmSize_GetUnsupportedVmSizes() { - // Generated from example definition: 2025-06-01-preview/managedUnsupportedVMSizesGet_example.json + // Generated from example definition: 2025-10-01-preview/managedUnsupportedVMSizesGet_example.json // this example is just showing the usage of "ManagedUnsupportedVMSizes_GetManagedUnsupportedVmSize" 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 @@ -157,7 +157,7 @@ public async Task GetManagedUnsupportedVmSize_GetUnsupportedVmSizes() [Ignore("Only validating compilation of examples")] public async Task GetManagedUnsupportedVmSizes_ListUnsupportedVmSizes() { - // Generated from example definition: 2025-06-01-preview/managedUnsupportedVMSizesList_example.json + // Generated from example definition: 2025-10-01-preview/managedUnsupportedVMSizesList_example.json // this example is just showing the usage of "ManagedUnsupportedVMSizes_GetManagedUnsupportedVmSizes" 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 @@ -185,7 +185,7 @@ public async Task GetManagedUnsupportedVmSizes_ListUnsupportedVmSizes() [Ignore("Only validating compilation of examples")] public async Task GetServiceFabricManagedClusters_ListManagedClusters() { - // Generated from example definition: 2025-06-01-preview/ManagedClusterListBySubscriptionOperation_example.json + // Generated from example definition: 2025-10-01-preview/ManagedClusterListBySubscriptionOperation_example.json // this example is just showing the usage of "ManagedCluster_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 diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tsp-location.yaml b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tsp-location.yaml index b06647bcddba..8cb8dbad1eea 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tsp-location.yaml +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tsp-location.yaml @@ -1,3 +1,4 @@ directory: specification/servicefabricmanagedclusters/resource-manager/Microsoft.ServiceFabric/ServiceFabricManagedClusters -commit: 43ad039a24dc67633aee23176c5213b31aa1bc9f +commit: 8933ca1338d1a5ba0a44b2c240f10c9fb7ec8037 repo: Azure/azure-rest-api-specs +