From 0def9104e877d0d766b45a5fdcc1986089337d73 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 24 Feb 2026 17:45:21 +0000 Subject: [PATCH 1/6] Configurations: 'specification/servicefabricmanagedclusters/resource-manager/Microsoft.ServiceFabric/ServiceFabricManagedClusters/tspconfig.yaml', API Version: 2026-02-01, SDK Release Type: stable, and CommitSHA: '57a2504930224552a409d9435d523e631a6c93e2' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5919240 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../metadata.json | 2 +- ...anager.ServiceFabricManagedClusters.csproj | 6 +- ...erviceFabricManagedClustersModelFactory.cs | 81 +-- ...FaultSimulationAsyncCollectionResultOfT.cs | 84 ---- ...rsGetFaultSimulationCollectionResultOfT.cs | 83 ---- ...FaultSimulationAsyncCollectionResultOfT.cs | 87 ---- ...esGetFaultSimulationCollectionResultOfT.cs | 86 ---- ...ricManagedClustersResourceGroupResource.cs | 4 +- ...bricManagedClustersSubscriptionResource.cs | 26 +- .../FaultSimulationOperationSource.cs | 45 -- ...agerServiceFabricManagedClustersContext.cs | 10 - .../src/Generated/Models/FaultKind.cs | 66 --- .../Models/FaultSimulation.Serialization.cs | 215 -------- .../src/Generated/Models/FaultSimulation.cs | 56 --- ...aultSimulationConstraints.Serialization.cs | 145 ------ .../Models/FaultSimulationConstraints.cs | 36 -- .../FaultSimulationContent.Serialization.cs | 145 ------ .../Models/FaultSimulationContent.cs | 68 --- ...tSimulationContentWrapper.Serialization.cs | 156 ------ .../Models/FaultSimulationContentWrapper.cs | 42 -- .../FaultSimulationDetails.Serialization.cs | 192 -------- .../Models/FaultSimulationDetails.cs | 50 -- .../FaultSimulationIdContent.Serialization.cs | 156 ------ .../Models/FaultSimulationIdContent.cs | 42 -- ...FaultSimulationListResult.Serialization.cs | 176 ------- .../Models/FaultSimulationListResult.cs | 44 -- .../Generated/Models/FaultSimulationStatus.cs | 91 ---- .../ManagedClusterProperties.Serialization.cs | 16 + .../Models/ManagedClusterProperties.cs | 7 +- .../NodeTypeFaultSimulation.Serialization.cs | 182 ------- .../Models/NodeTypeFaultSimulation.cs | 51 -- ...ManagedNodeTypeProperties.Serialization.cs | 16 + .../ServiceFabricManagedNodeTypeProperties.cs | 7 +- .../Generated/Models/SfmcOperationStatus.cs | 91 ---- ...ownFaultSimulationContent.Serialization.cs | 146 ------ .../Models/UnknownFaultSimulationContent.cs | 24 - ...oneFaultSimulationContent.Serialization.cs | 179 ------- .../Models/ZoneFaultSimulationContent.cs | 37 -- .../ManagedClustersRestOperations.cs | 97 ---- .../RestOperations/NodeTypesRestOperations.cs | 105 ---- ...rviceFabricManagedApplicationCollection.cs | 22 +- ...ServiceFabricManagedApplicationResource.cs | 38 +- ...eFabricManagedApplicationTypeCollection.cs | 22 +- ...iceFabricManagedApplicationTypeResource.cs | 14 +- ...ManagedApplicationTypeVersionCollection.cs | 22 +- ...icManagedApplicationTypeVersionResource.cs | 14 +- .../ServiceFabricManagedClusterCollection.cs | 28 +- .../ServiceFabricManagedClusterData.cs | 17 + .../ServiceFabricManagedClusterResource.cs | 436 +---------------- .../ServiceFabricManagedNodeTypeCollection.cs | 24 +- .../ServiceFabricManagedNodeTypeData.cs | 17 + .../ServiceFabricManagedNodeTypeResource.cs | 460 +----------------- .../ServiceFabricManagedServiceCollection.cs | 22 +- .../ServiceFabricManagedServiceResource.cs | 18 +- .../tsp-location.yaml | 6 +- 55 files changed, 259 insertions(+), 4053 deletions(-) delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/ManagedClustersGetFaultSimulationAsyncCollectionResultOfT.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/ManagedClustersGetFaultSimulationCollectionResultOfT.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/NodeTypesGetFaultSimulationAsyncCollectionResultOfT.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/NodeTypesGetFaultSimulationCollectionResultOfT.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/FaultSimulationOperationSource.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultKind.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulation.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulation.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationConstraints.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationConstraints.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContent.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContent.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContentWrapper.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContentWrapper.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationDetails.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationDetails.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationIdContent.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationIdContent.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationListResult.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationListResult.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationStatus.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeFaultSimulation.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeFaultSimulation.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/SfmcOperationStatus.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/UnknownFaultSimulationContent.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/UnknownFaultSimulationContent.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ZoneFaultSimulationContent.Serialization.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ZoneFaultSimulationContent.cs diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/metadata.json b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/metadata.json index c0891a0352d9..9902da4df6df 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/metadata.json +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/metadata.json @@ -1,3 +1,3 @@ { - "apiVersion": "2025-10-01-preview" + "apiVersion": "2026-02-01" } \ No newline at end of file diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Azure.ResourceManager.ServiceFabricManagedClusters.csproj b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Azure.ResourceManager.ServiceFabricManagedClusters.csproj index 07a72fe9e882..f711fdb1c046 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Azure.ResourceManager.ServiceFabricManagedClusters.csproj +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Azure.ResourceManager.ServiceFabricManagedClusters.csproj @@ -1,10 +1,10 @@ - 1.3.0-beta.6 + 1.3.0 - 1.2.0 + 1.2.0 Azure.ResourceManager.ServiceFabricManagedClusters Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.ServiceFabric ManagedClusters. azure;management;arm;resource manager;servicefabricmanagedclusters - + \ No newline at end of file diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ArmServiceFabricManagedClustersModelFactory.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ArmServiceFabricManagedClustersModelFactory.cs index 37c83d6ec208..cf801b98750b 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ArmServiceFabricManagedClustersModelFactory.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ArmServiceFabricManagedClustersModelFactory.cs @@ -481,11 +481,12 @@ public static ServiceFabricManagedUnsupportedVmSize ServiceFabricManagedUnsuppor /// The number of outbound ports allocated for SNAT for each node in the backend pool of the default load balancer. The default value is 0 which provides dynamic port allocation based on pool size. /// The VM image the node types are configured with. This property controls the Service Fabric component packages to be used for the cluster. Allowed values are: 'Windows'. The default value is 'Windows'. /// Enable the creation of node types with only outbound traffic enabled. If set, a separate load balancer backend pool will be created for node types with inbound traffic enabled. Can only be set at the time of cluster creation. + /// Determines whether to skip the assignment of the managed network security group (SF-NSG) to the cluster subnet when using a bring-your-own virtual network (BYOVNET) configuration. The default value is false. /// Number of unused versions per application type to keep. /// If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",. /// Sku Name. /// A new instance for mocking. - public static ServiceFabricManagedClusterData ServiceFabricManagedClusterData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, string dnsName = default, string fqdn = default, IPAddress iPv4Address = default, Guid? clusterId = default, ServiceFabricManagedClusterState? clusterState = default, IEnumerable clusterCertificateThumbprints = default, int? clientConnectionPort = default, int? httpGatewayConnectionPort = default, string adminUserName = default, string adminPassword = default, IEnumerable loadBalancingRules = default, bool? isRdpAccessAllowed = default, IEnumerable networkSecurityRules = default, IEnumerable clients = default, ManagedClusterAzureActiveDirectory azureActiveDirectory = default, IEnumerable fabricSettings = default, ServiceFabricManagedResourceProvisioningState? provisioningState = default, string clusterCodeVersion = default, ManagedClusterUpgradeMode? clusterUpgradeMode = default, ManagedClusterUpgradeCadence? clusterUpgradeCadence = default, IEnumerable addOnFeatures = default, bool? isAutoOSUpgradeEnabled = default, bool? hasZoneResiliency = default, bool? isIPv6Enabled = default, string subnetId = default, IEnumerable ipTags = default, IPAddress iPv6Address = default, bool? isServicePublicIPEnabled = default, IEnumerable auxiliarySubnets = default, IEnumerable serviceEndpoints = default, ZonalUpdateMode? zonalUpdateMode = default, bool? useCustomVnet = default, ResourceIdentifier publicIPPrefixId = default, ResourceIdentifier publicIPv6PrefixId = default, ResourceIdentifier ddosProtectionPlanId = default, ManagedClusterUpgradePolicy upgradeDescription = default, int? httpGatewayTokenAuthConnectionPort = default, bool? isHttpGatewayExclusiveAuthModeEnabled = default, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default, int? allocatedOutboundPorts = default, string vmImage = default, bool? enableOutboundOnlyNodeTypes = default, int? maxUnusedVersionsToKeep = default, ETag? etag = default, ServiceFabricManagedClustersSkuName? skuName = default) + public static ServiceFabricManagedClusterData ServiceFabricManagedClusterData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, string dnsName = default, string fqdn = default, IPAddress iPv4Address = default, Guid? clusterId = default, ServiceFabricManagedClusterState? clusterState = default, IEnumerable clusterCertificateThumbprints = default, int? clientConnectionPort = default, int? httpGatewayConnectionPort = default, string adminUserName = default, string adminPassword = default, IEnumerable loadBalancingRules = default, bool? isRdpAccessAllowed = default, IEnumerable networkSecurityRules = default, IEnumerable clients = default, ManagedClusterAzureActiveDirectory azureActiveDirectory = default, IEnumerable fabricSettings = default, ServiceFabricManagedResourceProvisioningState? provisioningState = default, string clusterCodeVersion = default, ManagedClusterUpgradeMode? clusterUpgradeMode = default, ManagedClusterUpgradeCadence? clusterUpgradeCadence = default, IEnumerable addOnFeatures = default, bool? isAutoOSUpgradeEnabled = default, bool? hasZoneResiliency = default, bool? isIPv6Enabled = default, string subnetId = default, IEnumerable ipTags = default, IPAddress iPv6Address = default, bool? isServicePublicIPEnabled = default, IEnumerable auxiliarySubnets = default, IEnumerable serviceEndpoints = default, ZonalUpdateMode? zonalUpdateMode = default, bool? useCustomVnet = default, ResourceIdentifier publicIPPrefixId = default, ResourceIdentifier publicIPv6PrefixId = default, ResourceIdentifier ddosProtectionPlanId = default, ManagedClusterUpgradePolicy upgradeDescription = default, int? httpGatewayTokenAuthConnectionPort = default, bool? isHttpGatewayExclusiveAuthModeEnabled = default, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default, int? allocatedOutboundPorts = default, string vmImage = default, bool? enableOutboundOnlyNodeTypes = default, bool? skipManagedNsgAssignment = default, int? maxUnusedVersionsToKeep = default, ETag? etag = default, ServiceFabricManagedClustersSkuName? skuName = default) { tags ??= new ChangeTrackingDictionary(); @@ -497,7 +498,7 @@ public static ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Re additionalBinaryDataProperties: null, tags, location, - dnsName is null && fqdn is null && iPv4Address is null && clusterId is null && clusterState is null && clusterCertificateThumbprints is null && clientConnectionPort is null && httpGatewayConnectionPort is null && adminUserName is null && adminPassword is null && loadBalancingRules is null && isRdpAccessAllowed is null && networkSecurityRules is null && clients is null && azureActiveDirectory is null && fabricSettings is null && provisioningState is null && clusterCodeVersion is null && clusterUpgradeMode is null && clusterUpgradeCadence is null && addOnFeatures is null && isAutoOSUpgradeEnabled is null && hasZoneResiliency is null && isIPv6Enabled is null && subnetId is null && ipTags is null && iPv6Address is null && isServicePublicIPEnabled is null && auxiliarySubnets is null && serviceEndpoints is null && zonalUpdateMode is null && useCustomVnet is null && publicIPPrefixId is null && publicIPv6PrefixId is null && ddosProtectionPlanId is null && upgradeDescription is null && httpGatewayTokenAuthConnectionPort is null && isHttpGatewayExclusiveAuthModeEnabled is null && autoGeneratedDomainNameLabelScope is null && allocatedOutboundPorts is null && vmImage is null && enableOutboundOnlyNodeTypes is null && maxUnusedVersionsToKeep is null ? default : new ManagedClusterProperties( + dnsName is null && fqdn is null && iPv4Address is null && clusterId is null && clusterState is null && clusterCertificateThumbprints is null && clientConnectionPort is null && httpGatewayConnectionPort is null && adminUserName is null && adminPassword is null && loadBalancingRules is null && isRdpAccessAllowed is null && networkSecurityRules is null && clients is null && azureActiveDirectory is null && fabricSettings is null && provisioningState is null && clusterCodeVersion is null && clusterUpgradeMode is null && clusterUpgradeCadence is null && addOnFeatures is null && isAutoOSUpgradeEnabled is null && hasZoneResiliency is null && isIPv6Enabled is null && subnetId is null && ipTags is null && iPv6Address is null && isServicePublicIPEnabled is null && auxiliarySubnets is null && serviceEndpoints is null && zonalUpdateMode is null && useCustomVnet is null && publicIPPrefixId is null && publicIPv6PrefixId is null && ddosProtectionPlanId is null && upgradeDescription is null && httpGatewayTokenAuthConnectionPort is null && isHttpGatewayExclusiveAuthModeEnabled is null && autoGeneratedDomainNameLabelScope is null && allocatedOutboundPorts is null && vmImage is null && enableOutboundOnlyNodeTypes is null && skipManagedNsgAssignment is null && maxUnusedVersionsToKeep is null ? default : new ManagedClusterProperties( dnsName, fqdn, iPv4Address, @@ -541,6 +542,7 @@ public static ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Re allocatedOutboundPorts, vmImage, enableOutboundOnlyNodeTypes, + skipManagedNsgAssignment, null), etag, skuName is null ? default : new ServiceFabricManagedClustersSku(skuName.Value, null)); @@ -620,75 +622,6 @@ public static ServiceFabricManagedClusterPatch ServiceFabricManagedClusterPatch( return new ServiceFabricManagedClusterPatch(tags, additionalBinaryDataProperties: null); } - /// Parameters for Fault Simulation id. - /// unique identifier for the fault simulation. - /// A new instance for mocking. - public static FaultSimulationIdContent FaultSimulationIdContent(string simulationId = default) - { - return new FaultSimulationIdContent(simulationId, additionalBinaryDataProperties: null); - } - - /// Fault simulation object with status. - /// unique identifier for the fault simulation. - /// Fault simulation status. - /// The start time of the fault simulation. - /// The end time of the fault simulation. - /// Fault simulation details. - /// A new instance for mocking. - public static FaultSimulation FaultSimulation(string simulationId = default, FaultSimulationStatus? status = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, FaultSimulationDetails details = default) - { - return new FaultSimulation( - simulationId, - status, - startOn, - endOn, - details, - additionalBinaryDataProperties: null); - } - - /// Details for Fault Simulation. - /// unique identifier for the cluster resource. - /// unique identifier for the operation associated with the fault simulation. - /// List of node type simulations associated with the cluster fault simulation. - /// Fault simulation parameters. - /// A new instance for mocking. - public static FaultSimulationDetails FaultSimulationDetails(string clusterId = default, string operationId = default, IEnumerable nodeTypeFaultSimulation = default, FaultSimulationContent parameters = default) - { - nodeTypeFaultSimulation ??= new ChangeTrackingList(); - - return new FaultSimulationDetails(clusterId, operationId, nodeTypeFaultSimulation.ToList(), parameters, additionalBinaryDataProperties: null); - } - - /// Node type fault simulation object with status. - /// Node type name. - /// Fault simulation status. - /// Current or latest asynchronous operation identifier on the node type. - /// Current or latest asynchronous operation status on the node type. - /// A new instance for mocking. - public static NodeTypeFaultSimulation NodeTypeFaultSimulation(string nodeTypeName = default, FaultSimulationStatus? status = default, string operationId = default, SfmcOperationStatus? operationStatus = default) - { - return new NodeTypeFaultSimulation(nodeTypeName, status, operationId, operationStatus, additionalBinaryDataProperties: null); - } - - /// Force the action to go through without any check on the cluster. - /// The absolute expiration timestamp (UTC) after which this fault simulation should be stopped if it's still active. - /// Indicates the zones of the fault simulation. - /// A new instance for mocking. - public static ZoneFaultSimulationContent ZoneFaultSimulationContent(bool? isForced = default, DateTimeOffset? constraintsExpireOn = default, IEnumerable zones = default) - { - zones ??= new ChangeTrackingList(); - - return new ZoneFaultSimulationContent(FaultKind.Zone, isForced, constraintsExpireOn is null ? default : new FaultSimulationConstraints(constraintsExpireOn, null), additionalBinaryDataProperties: null, zones.ToList()); - } - - /// Fault Simulation Request for Start action. - /// Parameters for Fault Simulation start action. - /// A new instance for mocking. - public static FaultSimulationContentWrapper FaultSimulationContentWrapper(FaultSimulationContent parameters = default) - { - return new FaultSimulationContentWrapper(parameters, additionalBinaryDataProperties: null); - } - /// Describes the result of the request to list Managed VM Sizes for Service Fabric Managed Clusters. /// List of Managed VM Sizes for Service Fabric Managed Clusters. /// URL to get the next set of Managed VM Sizes if there are any. @@ -789,11 +722,12 @@ public static ManagedMaintenanceWindowStatus ManagedMaintenanceWindowStatus(bool /// Specifies the gallery applications that should be made available to the underlying VMSS. /// Setting this to true allows stateless node types to scale out without equal distribution across zones. /// Specifies the node type should be configured for only outbound traffic and not inbound traffic. + /// Specifies whether the node type should use a resilient ephemeral OS disk when using a supported SKU size. A resilient ephemeral OS disk provides improved reliability for ephemeral OS disks by enabling full caching. /// The list of user identities associated with the virtual machine scale set under the node type. Each entry will be an ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. /// Resource tags. /// The node type sku. /// A new instance for mocking. - public static ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, bool? isPrimary = default, int? vmInstanceCount = default, int? dataDiskSizeInGB = default, ServiceFabricManagedDataDiskType? dataDiskType = default, string dataDiskLetter = default, IDictionary placementProperties = default, IDictionary capacities = default, EndpointRangeDescription applicationPorts = default, EndpointRangeDescription ephemeralPorts = default, string vmSize = default, string vmImagePublisher = default, string vmImageOffer = default, string vmImageSku = default, string vmImageVersion = default, IEnumerable vmSecrets = default, IEnumerable vmExtensions = default, bool? isStateless = default, bool? hasMultiplePlacementGroups = default, IEnumerable frontendConfigurations = default, IEnumerable networkSecurityRules = default, IEnumerable additionalDataDisks = default, bool? isEncryptionAtHostEnabled = default, ServiceFabricManagedResourceProvisioningState? provisioningState = default, bool? isAcceleratedNetworkingEnabled = default, bool? useDefaultPublicLoadBalancer = default, bool? useTempDataDisk = default, bool? isOverProvisioningEnabled = default, IEnumerable zones = default, bool? isSpotVm = default, string hostGroupId = default, bool? useEphemeralOSDisk = default, string spotRestoreTimeout = default, SpotNodeVmEvictionPolicyType? evictionPolicy = default, ResourceIdentifier vmImageResourceId = default, ResourceIdentifier subnetId = default, IEnumerable vmSetupActions = default, ServiceFabricManagedClusterSecurityType? securityType = default, NodeTypeSecurityEncryptionType? securityEncryptionType = default, bool? isSecureBootEnabled = default, bool? isNodePublicIPEnabled = default, bool? isNodePublicIPv6Enabled = default, ResourceIdentifier vmSharedGalleryImageId = default, ResourceIdentifier natGatewayId = default, IEnumerable natConfigurations = default, VmImagePlan vmImagePlan = default, ResourceIdentifier serviceArtifactReferenceId = default, ResourceIdentifier dscpConfigurationId = default, IEnumerable additionalNetworkInterfaceConfigurations = default, string computerNamePrefix = default, IEnumerable vmApplications = default, bool? isZoneBalanceEnabled = default, bool? isOutboundOnly = default, IEnumerable vmManagedIdentityUserAssignedIdentities = default, IDictionary tags = default, NodeTypeSku sku = default) + public static ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, bool? isPrimary = default, int? vmInstanceCount = default, int? dataDiskSizeInGB = default, ServiceFabricManagedDataDiskType? dataDiskType = default, string dataDiskLetter = default, IDictionary placementProperties = default, IDictionary capacities = default, EndpointRangeDescription applicationPorts = default, EndpointRangeDescription ephemeralPorts = default, string vmSize = default, string vmImagePublisher = default, string vmImageOffer = default, string vmImageSku = default, string vmImageVersion = default, IEnumerable vmSecrets = default, IEnumerable vmExtensions = default, bool? isStateless = default, bool? hasMultiplePlacementGroups = default, IEnumerable frontendConfigurations = default, IEnumerable networkSecurityRules = default, IEnumerable additionalDataDisks = default, bool? isEncryptionAtHostEnabled = default, ServiceFabricManagedResourceProvisioningState? provisioningState = default, bool? isAcceleratedNetworkingEnabled = default, bool? useDefaultPublicLoadBalancer = default, bool? useTempDataDisk = default, bool? isOverProvisioningEnabled = default, IEnumerable zones = default, bool? isSpotVm = default, string hostGroupId = default, bool? useEphemeralOSDisk = default, string spotRestoreTimeout = default, SpotNodeVmEvictionPolicyType? evictionPolicy = default, ResourceIdentifier vmImageResourceId = default, ResourceIdentifier subnetId = default, IEnumerable vmSetupActions = default, ServiceFabricManagedClusterSecurityType? securityType = default, NodeTypeSecurityEncryptionType? securityEncryptionType = default, bool? isSecureBootEnabled = default, bool? isNodePublicIPEnabled = default, bool? isNodePublicIPv6Enabled = default, ResourceIdentifier vmSharedGalleryImageId = default, ResourceIdentifier natGatewayId = default, IEnumerable natConfigurations = default, VmImagePlan vmImagePlan = default, ResourceIdentifier serviceArtifactReferenceId = default, ResourceIdentifier dscpConfigurationId = default, IEnumerable additionalNetworkInterfaceConfigurations = default, string computerNamePrefix = default, IEnumerable vmApplications = default, bool? isZoneBalanceEnabled = default, bool? isOutboundOnly = default, bool? enableResilientEphemeralOsDisk = default, IEnumerable vmManagedIdentityUserAssignedIdentities = default, IDictionary tags = default, NodeTypeSku sku = default) { tags ??= new ChangeTrackingDictionary(); @@ -803,7 +737,7 @@ public static ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData( resourceType, systemData, additionalBinaryDataProperties: null, - isPrimary is null && vmInstanceCount is null && dataDiskSizeInGB is null && dataDiskType is null && dataDiskLetter is null && placementProperties is null && capacities is null && applicationPorts is null && ephemeralPorts is null && vmSize is null && vmImagePublisher is null && vmImageOffer is null && vmImageSku is null && vmImageVersion is null && vmSecrets is null && vmExtensions is null && isStateless is null && hasMultiplePlacementGroups is null && frontendConfigurations is null && networkSecurityRules is null && additionalDataDisks is null && isEncryptionAtHostEnabled is null && provisioningState is null && isAcceleratedNetworkingEnabled is null && useDefaultPublicLoadBalancer is null && useTempDataDisk is null && isOverProvisioningEnabled is null && zones is null && isSpotVm is null && hostGroupId is null && useEphemeralOSDisk is null && spotRestoreTimeout is null && evictionPolicy is null && vmImageResourceId is null && subnetId is null && vmSetupActions is null && securityType is null && securityEncryptionType is null && isSecureBootEnabled is null && isNodePublicIPEnabled is null && isNodePublicIPv6Enabled is null && vmSharedGalleryImageId is null && natGatewayId is null && natConfigurations is null && vmImagePlan is null && serviceArtifactReferenceId is null && dscpConfigurationId is null && additionalNetworkInterfaceConfigurations is null && computerNamePrefix is null && vmApplications is null && isZoneBalanceEnabled is null && isOutboundOnly is null && vmManagedIdentityUserAssignedIdentities is null ? default : new ServiceFabricManagedNodeTypeProperties( + isPrimary is null && vmInstanceCount is null && dataDiskSizeInGB is null && dataDiskType is null && dataDiskLetter is null && placementProperties is null && capacities is null && applicationPorts is null && ephemeralPorts is null && vmSize is null && vmImagePublisher is null && vmImageOffer is null && vmImageSku is null && vmImageVersion is null && vmSecrets is null && vmExtensions is null && isStateless is null && hasMultiplePlacementGroups is null && frontendConfigurations is null && networkSecurityRules is null && additionalDataDisks is null && isEncryptionAtHostEnabled is null && provisioningState is null && isAcceleratedNetworkingEnabled is null && useDefaultPublicLoadBalancer is null && useTempDataDisk is null && isOverProvisioningEnabled is null && zones is null && isSpotVm is null && hostGroupId is null && useEphemeralOSDisk is null && spotRestoreTimeout is null && evictionPolicy is null && vmImageResourceId is null && subnetId is null && vmSetupActions is null && securityType is null && securityEncryptionType is null && isSecureBootEnabled is null && isNodePublicIPEnabled is null && isNodePublicIPv6Enabled is null && vmSharedGalleryImageId is null && natGatewayId is null && natConfigurations is null && vmImagePlan is null && serviceArtifactReferenceId is null && dscpConfigurationId is null && additionalNetworkInterfaceConfigurations is null && computerNamePrefix is null && vmApplications is null && isZoneBalanceEnabled is null && isOutboundOnly is null && enableResilientEphemeralOsDisk is null && vmManagedIdentityUserAssignedIdentities is null ? default : new ServiceFabricManagedNodeTypeProperties( isPrimary.Value, vmInstanceCount.Value, dataDiskSizeInGB, @@ -857,6 +791,7 @@ public static ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData( (vmApplications ?? new ChangeTrackingList()).ToList(), isZoneBalanceEnabled, isOutboundOnly, + enableResilientEphemeralOsDisk, null), tags, sku); diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/ManagedClustersGetFaultSimulationAsyncCollectionResultOfT.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/ManagedClustersGetFaultSimulationAsyncCollectionResultOfT.cs deleted file mode 100644 index 7328ce0c7c67..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/ManagedClustersGetFaultSimulationAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ServiceFabricManagedClusters.Models; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters -{ - internal partial class ManagedClustersGetFaultSimulationAsyncCollectionResultOfT : AsyncPageable - { - private readonly ManagedClusters _client; - private readonly string _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _clusterName; - private readonly RequestContext _context; - - /// Initializes a new instance of ManagedClustersGetFaultSimulationAsyncCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The ManagedClusters client used to send requests. - /// 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 request options, which can override default behaviors of the client pipeline on a per-call basis. - public ManagedClustersGetFaultSimulationAsyncCollectionResultOfT(ManagedClusters client, string subscriptionId, string resourceGroupName, string clusterName, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _clusterName = clusterName; - _context = context; - } - - /// Gets the pages of ManagedClustersGetFaultSimulationAsyncCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ManagedClustersGetFaultSimulationAsyncCollectionResultOfT as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - while (true) - { - Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - FaultSimulationListResult result = FaultSimulationListResult.FromResponse(response); - yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.AbsoluteUri, response); - nextPage = result.NextLink; - if (nextPage == null) - { - yield break; - } - } - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetFaultSimulationRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _context) : _client.CreateGetFaultSimulationRequest(_subscriptionId, _resourceGroupName, _clusterName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("ServiceFabricManagedClusterResource.GetFaultSimulation"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/ManagedClustersGetFaultSimulationCollectionResultOfT.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/ManagedClustersGetFaultSimulationCollectionResultOfT.cs deleted file mode 100644 index 29f258d514f2..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/ManagedClustersGetFaultSimulationCollectionResultOfT.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ServiceFabricManagedClusters.Models; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters -{ - internal partial class ManagedClustersGetFaultSimulationCollectionResultOfT : Pageable - { - private readonly ManagedClusters _client; - private readonly string _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _clusterName; - private readonly RequestContext _context; - - /// Initializes a new instance of ManagedClustersGetFaultSimulationCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The ManagedClusters client used to send requests. - /// 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 request options, which can override default behaviors of the client pipeline on a per-call basis. - public ManagedClustersGetFaultSimulationCollectionResultOfT(ManagedClusters client, string subscriptionId, string resourceGroupName, string clusterName, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _clusterName = clusterName; - _context = context; - } - - /// Gets the pages of ManagedClustersGetFaultSimulationCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ManagedClustersGetFaultSimulationCollectionResultOfT as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - while (true) - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - FaultSimulationListResult result = FaultSimulationListResult.FromResponse(response); - yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.AbsoluteUri, response); - nextPage = result.NextLink; - if (nextPage == null) - { - yield break; - } - } - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetFaultSimulationRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _context) : _client.CreateGetFaultSimulationRequest(_subscriptionId, _resourceGroupName, _clusterName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("ServiceFabricManagedClusterResource.GetFaultSimulation"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/NodeTypesGetFaultSimulationAsyncCollectionResultOfT.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/NodeTypesGetFaultSimulationAsyncCollectionResultOfT.cs deleted file mode 100644 index e4d7f46fb05b..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/NodeTypesGetFaultSimulationAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ServiceFabricManagedClusters.Models; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters -{ - internal partial class NodeTypesGetFaultSimulationAsyncCollectionResultOfT : AsyncPageable - { - private readonly NodeTypes _client; - private readonly string _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _clusterName; - private readonly string _nodeTypeName; - private readonly RequestContext _context; - - /// Initializes a new instance of NodeTypesGetFaultSimulationAsyncCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The NodeTypes client used to send requests. - /// 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 node type. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - public NodeTypesGetFaultSimulationAsyncCollectionResultOfT(NodeTypes client, string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _clusterName = clusterName; - _nodeTypeName = nodeTypeName; - _context = context; - } - - /// Gets the pages of NodeTypesGetFaultSimulationAsyncCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of NodeTypesGetFaultSimulationAsyncCollectionResultOfT as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - while (true) - { - Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - FaultSimulationListResult result = FaultSimulationListResult.FromResponse(response); - yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.AbsoluteUri, response); - nextPage = result.NextLink; - if (nextPage == null) - { - yield break; - } - } - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetFaultSimulationRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _nodeTypeName, _context) : _client.CreateGetFaultSimulationRequest(_subscriptionId, _resourceGroupName, _clusterName, _nodeTypeName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("ServiceFabricManagedNodeTypeResource.GetFaultSimulation"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/NodeTypesGetFaultSimulationCollectionResultOfT.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/NodeTypesGetFaultSimulationCollectionResultOfT.cs deleted file mode 100644 index 3587ab7544d0..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/CollectionResults/NodeTypesGetFaultSimulationCollectionResultOfT.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ServiceFabricManagedClusters.Models; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters -{ - internal partial class NodeTypesGetFaultSimulationCollectionResultOfT : Pageable - { - private readonly NodeTypes _client; - private readonly string _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _clusterName; - private readonly string _nodeTypeName; - private readonly RequestContext _context; - - /// Initializes a new instance of NodeTypesGetFaultSimulationCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The NodeTypes client used to send requests. - /// 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 node type. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - public NodeTypesGetFaultSimulationCollectionResultOfT(NodeTypes client, string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _clusterName = clusterName; - _nodeTypeName = nodeTypeName; - _context = context; - } - - /// Gets the pages of NodeTypesGetFaultSimulationCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of NodeTypesGetFaultSimulationCollectionResultOfT as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - while (true) - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - FaultSimulationListResult result = FaultSimulationListResult.FromResponse(response); - yield return Page.FromValues((IReadOnlyList)result.Value, nextPage?.AbsoluteUri, response); - nextPage = result.NextLink; - if (nextPage == null) - { - yield break; - } - } - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetFaultSimulationRequest(nextLink, _subscriptionId, _resourceGroupName, _clusterName, _nodeTypeName, _context) : _client.CreateGetFaultSimulationRequest(_subscriptionId, _resourceGroupName, _clusterName, _nodeTypeName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("ServiceFabricManagedNodeTypeResource.GetFaultSimulation"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} 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 37f049c8a9d4..434ef040fa1b 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersResourceGroupResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersResourceGroupResource.cs @@ -51,7 +51,7 @@ public virtual ServiceFabricManagedClusterCollection GetServiceFabricManagedClus /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -80,7 +80,7 @@ public virtual async Task> GetServ /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// 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 8968ad8b395d..f3b010c294d9 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersSubscriptionResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Extensions/MockableServiceFabricManagedClustersSubscriptionResource.cs @@ -42,15 +42,15 @@ internal MockableServiceFabricManagedClustersSubscriptionResource(ArmClient clie private ClientDiagnostics ManagedClustersClientDiagnostics => _managedClustersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters.Mocking", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ManagedClusters ManagedClustersRestClient => _managedClustersRestClient ??= new ManagedClusters(ManagedClustersClientDiagnostics, Pipeline, Endpoint, "2025-10-01-preview"); + private ManagedClusters ManagedClustersRestClient => _managedClustersRestClient ??= new ManagedClusters(ManagedClustersClientDiagnostics, Pipeline, Endpoint, "2026-02-01"); private ClientDiagnostics ManagedClusterVersionClientDiagnostics => _managedClusterVersionClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters.Mocking", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ManagedClusterVersion ManagedClusterVersionRestClient => _managedClusterVersionRestClient ??= new ManagedClusterVersion(ManagedClusterVersionClientDiagnostics, Pipeline, Endpoint, "2025-10-01-preview"); + private ManagedClusterVersion ManagedClusterVersionRestClient => _managedClusterVersionRestClient ??= new ManagedClusterVersion(ManagedClusterVersionClientDiagnostics, Pipeline, Endpoint, "2026-02-01"); private ClientDiagnostics ManagedUnsupportedVMSizesClientDiagnostics => _managedUnsupportedVMSizesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters.Mocking", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private ManagedUnsupportedVMSizes ManagedUnsupportedVMSizesRestClient => _managedUnsupportedVMSizesRestClient ??= new ManagedUnsupportedVMSizes(ManagedUnsupportedVMSizesClientDiagnostics, Pipeline, Endpoint, "2025-10-01-preview"); + private ManagedUnsupportedVMSizes ManagedUnsupportedVMSizesRestClient => _managedUnsupportedVMSizesRestClient ??= new ManagedUnsupportedVMSizes(ManagedUnsupportedVMSizesClientDiagnostics, Pipeline, Endpoint, "2026-02-01"); /// /// Gets all Service Fabric cluster resources created or in the process of being created in the subscription. @@ -65,7 +65,7 @@ internal MockableServiceFabricManagedClustersSubscriptionResource(ArmClient clie /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -93,7 +93,7 @@ public virtual AsyncPageable GetServiceFabr /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -121,7 +121,7 @@ public virtual Pageable GetServiceFabricMan /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -171,7 +171,7 @@ public virtual async Task> GetManag /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -221,7 +221,7 @@ public virtual Response GetManagedClusterVer /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -272,7 +272,7 @@ public virtual async Task> GetManag /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -323,7 +323,7 @@ public virtual Response GetManagedClusterVer /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -373,7 +373,7 @@ public virtual async Task> GetMa /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -423,7 +423,7 @@ public virtual Response GetManagedUnsuppo /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -452,7 +452,7 @@ public virtual AsyncPageable GetManagedUn /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/FaultSimulationOperationSource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/FaultSimulationOperationSource.cs deleted file mode 100644 index b5f30c5c1b17..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/LongRunningOperation/FaultSimulationOperationSource.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager.ServiceFabricManagedClusters.Models; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters -{ - /// - internal partial class FaultSimulationOperationSource : IOperationSource - { - /// - internal FaultSimulationOperationSource() - { - } - - /// The response from the service. - /// The cancellation token to use. - /// - FaultSimulation IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = JsonDocument.Parse(response.ContentStream); - FaultSimulation result = FaultSimulation.DeserializeFaultSimulation(document.RootElement, ModelSerializationExtensions.WireOptions); - return result; - } - - /// The response from the service. - /// The cancellation token to use. - /// - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - FaultSimulation result = FaultSimulation.DeserializeFaultSimulation(document.RootElement, ModelSerializationExtensions.WireOptions); - return result; - } - } -} 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 7058302724e7..374e130c9e35 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/AzureResourceManagerServiceFabricManagedClustersContext.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/AzureResourceManagerServiceFabricManagedClustersContext.cs @@ -35,13 +35,6 @@ namespace Azure.ResourceManager.ServiceFabricManagedClusters [ModelReaderWriterBuildable(typeof(ClusterFabricSettingsParameterDescription))] [ModelReaderWriterBuildable(typeof(ClusterFabricSettingsSection))] [ModelReaderWriterBuildable(typeof(EndpointRangeDescription))] - [ModelReaderWriterBuildable(typeof(FaultSimulation))] - [ModelReaderWriterBuildable(typeof(FaultSimulationConstraints))] - [ModelReaderWriterBuildable(typeof(FaultSimulationContent))] - [ModelReaderWriterBuildable(typeof(FaultSimulationContentWrapper))] - [ModelReaderWriterBuildable(typeof(FaultSimulationDetails))] - [ModelReaderWriterBuildable(typeof(FaultSimulationIdContent))] - [ModelReaderWriterBuildable(typeof(FaultSimulationListResult))] [ModelReaderWriterBuildable(typeof(Models.ManagedAzResiliencyStatus))] [ModelReaderWriterBuildable(typeof(ManagedClusterAzureActiveDirectory))] [ModelReaderWriterBuildable(typeof(ManagedClusterClientCertificate))] @@ -72,7 +65,6 @@ namespace Azure.ResourceManager.ServiceFabricManagedClusters [ModelReaderWriterBuildable(typeof(NamedPartitionScheme))] [ModelReaderWriterBuildable(typeof(NodeTypeActionContent))] [ModelReaderWriterBuildable(typeof(NodeTypeAvailableSku))] - [ModelReaderWriterBuildable(typeof(NodeTypeFaultSimulation))] [ModelReaderWriterBuildable(typeof(NodeTypeFrontendConfiguration))] [ModelReaderWriterBuildable(typeof(NodeTypeListResult))] [ModelReaderWriterBuildable(typeof(NodeTypeListSkuResult))] @@ -135,7 +127,6 @@ namespace Azure.ResourceManager.ServiceFabricManagedClusters [ModelReaderWriterBuildable(typeof(Models.SubResource))] [ModelReaderWriterBuildable(typeof(SystemData))] [ModelReaderWriterBuildable(typeof(UniformInt64RangePartitionScheme))] - [ModelReaderWriterBuildable(typeof(UnknownFaultSimulationContent))] [ModelReaderWriterBuildable(typeof(UnknownManagedServiceProperties))] [ModelReaderWriterBuildable(typeof(UnknownPartition))] [ModelReaderWriterBuildable(typeof(UnknownScalingMechanism))] @@ -146,7 +137,6 @@ namespace Azure.ResourceManager.ServiceFabricManagedClusters [ModelReaderWriterBuildable(typeof(VmManagedIdentity))] [ModelReaderWriterBuildable(typeof(VmssExtensionProperties))] [ModelReaderWriterBuildable(typeof(WritableSubResource))] - [ModelReaderWriterBuildable(typeof(ZoneFaultSimulationContent))] public partial class AzureResourceManagerServiceFabricManagedClustersContext : ModelReaderWriterContext { } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultKind.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultKind.cs deleted file mode 100644 index 175373de0c8d..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultKind.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// The kind of fault simulation. - internal readonly partial struct FaultKind : IEquatable - { - private readonly string _value; - /// Simulates an availability zone down. - private const string ZoneValue = "Zone"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public FaultKind(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Simulates an availability zone down. - public static FaultKind Zone { get; } = new FaultKind(ZoneValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(FaultKind left, FaultKind right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(FaultKind left, FaultKind right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator FaultKind(string value) => new FaultKind(value); - - /// Converts a string to a . - /// The value. - public static implicit operator FaultKind?(string value) => value == null ? null : new FaultKind(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is FaultKind other && Equals(other); - - /// - public bool Equals(FaultKind 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/FaultSimulation.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulation.Serialization.cs deleted file mode 100644 index 1b878c815b8e..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulation.Serialization.cs +++ /dev/null @@ -1,215 +0,0 @@ -// 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; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Fault simulation object with status. - public partial class FaultSimulation : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual FaultSimulation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeFaultSimulation(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(FaultSimulation)} does not support reading '{options.Format}' format."); - } - } - - /// The to deserialize the from. - internal static FaultSimulation FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeFaultSimulation(document.RootElement, ModelSerializationExtensions.WireOptions); - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulation)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(SimulationId)) - { - writer.WritePropertyName("simulationId"u8); - writer.WriteStringValue(SimulationId); - } - if (Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToString()); - } - if (Optional.IsDefined(StartOn)) - { - writer.WritePropertyName("startTime"u8); - writer.WriteStringValue(StartOn.Value, "O"); - } - if (Optional.IsDefined(EndOn)) - { - writer.WritePropertyName("endTime"u8); - writer.WriteStringValue(EndOn.Value, "O"); - } - if (Optional.IsDefined(Details)) - { - writer.WritePropertyName("details"u8); - writer.WriteObjectValue(Details, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - FaultSimulation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual FaultSimulation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulation)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeFaultSimulation(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static FaultSimulation DeserializeFaultSimulation(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string simulationId = default; - FaultSimulationStatus? status = default; - DateTimeOffset? startOn = default; - DateTimeOffset? endOn = default; - FaultSimulationDetails details = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("simulationId"u8)) - { - simulationId = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("status"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = new FaultSimulationStatus(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("startTime"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - startOn = prop.Value.GetDateTimeOffset("O"); - continue; - } - if (prop.NameEquals("endTime"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - endOn = prop.Value.GetDateTimeOffset("O"); - continue; - } - if (prop.NameEquals("details"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - details = FaultSimulationDetails.DeserializeFaultSimulationDetails(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new FaultSimulation( - simulationId, - status, - startOn, - endOn, - details, - additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(FaultSimulation)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - FaultSimulation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulation.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulation.cs deleted file mode 100644 index 7c78cbcb298d..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulation.cs +++ /dev/null @@ -1,56 +0,0 @@ -// 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 -{ - /// Fault simulation object with status. - public partial class FaultSimulation - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal FaultSimulation() - { - } - - /// Initializes a new instance of . - /// unique identifier for the fault simulation. - /// Fault simulation status. - /// The start time of the fault simulation. - /// The end time of the fault simulation. - /// Fault simulation details. - /// Keeps track of any properties unknown to the library. - internal FaultSimulation(string simulationId, FaultSimulationStatus? status, DateTimeOffset? startOn, DateTimeOffset? endOn, FaultSimulationDetails details, IDictionary additionalBinaryDataProperties) - { - SimulationId = simulationId; - Status = status; - StartOn = startOn; - EndOn = endOn; - Details = details; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// unique identifier for the fault simulation. - public string SimulationId { get; } - - /// Fault simulation status. - public FaultSimulationStatus? Status { get; } - - /// The start time of the fault simulation. - public DateTimeOffset? StartOn { get; } - - /// The end time of the fault simulation. - public DateTimeOffset? EndOn { get; } - - /// Fault simulation details. - public FaultSimulationDetails Details { get; } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationConstraints.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationConstraints.Serialization.cs deleted file mode 100644 index 3c4e2fd3f319..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationConstraints.Serialization.cs +++ /dev/null @@ -1,145 +0,0 @@ -// 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.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Constraints for Fault Simulation action. - internal partial class FaultSimulationConstraints : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual FaultSimulationConstraints PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeFaultSimulationConstraints(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(FaultSimulationConstraints)} does not support reading '{options.Format}' format."); - } - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationConstraints)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(ExpireOn)) - { - writer.WritePropertyName("expirationTime"u8); - writer.WriteStringValue(ExpireOn.Value, "O"); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - FaultSimulationConstraints IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual FaultSimulationConstraints JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationConstraints)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeFaultSimulationConstraints(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static FaultSimulationConstraints DeserializeFaultSimulationConstraints(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - DateTimeOffset? expireOn = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("expirationTime"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - expireOn = prop.Value.GetDateTimeOffset("O"); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new FaultSimulationConstraints(expireOn, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(FaultSimulationConstraints)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - FaultSimulationConstraints IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationConstraints.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationConstraints.cs deleted file mode 100644 index 7791a214f5b5..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationConstraints.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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 -{ - /// Constraints for Fault Simulation action. - internal partial class FaultSimulationConstraints - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - public FaultSimulationConstraints() - { - } - - /// Initializes a new instance of . - /// The absolute expiration timestamp (UTC) after which this fault simulation should be stopped if it's still active. - /// Keeps track of any properties unknown to the library. - internal FaultSimulationConstraints(DateTimeOffset? expireOn, IDictionary additionalBinaryDataProperties) - { - ExpireOn = expireOn; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The absolute expiration timestamp (UTC) after which this fault simulation should be stopped if it's still active. - public DateTimeOffset? ExpireOn { get; set; } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContent.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContent.Serialization.cs deleted file mode 100644 index 7533e00bfe4d..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContent.Serialization.cs +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// - /// Parameters for Fault Simulation action. - /// Please note this is the abstract base class. The derived classes available for instantiation are: . - /// - [PersistableModelProxy(typeof(UnknownFaultSimulationContent))] - public abstract partial class FaultSimulationContent : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual FaultSimulationContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeFaultSimulationContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(FaultSimulationContent)} does not support reading '{options.Format}' format."); - } - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationContent)} does not support writing '{format}' format."); - } - writer.WritePropertyName("faultKind"u8); - writer.WriteStringValue(FaultKind.ToString()); - if (Optional.IsDefined(IsForced)) - { - writer.WritePropertyName("force"u8); - writer.WriteBooleanValue(IsForced.Value); - } - if (Optional.IsDefined(Constraints)) - { - writer.WritePropertyName("constraints"u8); - writer.WriteObjectValue(Constraints, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - FaultSimulationContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual FaultSimulationContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationContent)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeFaultSimulationContent(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static FaultSimulationContent DeserializeFaultSimulationContent(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - if (element.TryGetProperty("faultKind"u8, out JsonElement discriminator)) - { - switch (discriminator.GetString()) - { - case "Zone": - return ZoneFaultSimulationContent.DeserializeZoneFaultSimulationContent(element, options); - } - } - return UnknownFaultSimulationContent.DeserializeUnknownFaultSimulationContent(element, options); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(FaultSimulationContent)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - FaultSimulationContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContent.cs deleted file mode 100644 index 1931265ccbc1..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContent.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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 Fault Simulation action. - /// Please note this is the abstract base class. The derived classes available for instantiation are: . - /// - public abstract partial class FaultSimulationContent - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The kind of fault to be simulated. - private protected FaultSimulationContent(FaultKind faultKind) - { - FaultKind = faultKind; - } - - /// Initializes a new instance of . - /// The kind of fault to be simulated. - /// Force the action to go through without any check on the cluster. - /// Constraints for Fault Simulation action. - /// Keeps track of any properties unknown to the library. - internal FaultSimulationContent(FaultKind faultKind, bool? isForced, FaultSimulationConstraints constraints, IDictionary additionalBinaryDataProperties) - { - FaultKind = faultKind; - IsForced = isForced; - Constraints = constraints; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The kind of fault to be simulated. - internal FaultKind FaultKind { get; set; } - - /// Force the action to go through without any check on the cluster. - public bool? IsForced { get; set; } - - /// Constraints for Fault Simulation action. - internal FaultSimulationConstraints Constraints { get; set; } - - /// The absolute expiration timestamp (UTC) after which this fault simulation should be stopped if it's still active. - public DateTimeOffset? ConstraintsExpireOn - { - get - { - return Constraints is null ? default : Constraints.ExpireOn; - } - set - { - if (Constraints is null) - { - Constraints = new FaultSimulationConstraints(); - } - Constraints.ExpireOn = value; - } - } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContentWrapper.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContentWrapper.Serialization.cs deleted file mode 100644 index 9cc8284138a7..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContentWrapper.Serialization.cs +++ /dev/null @@ -1,156 +0,0 @@ -// 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; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Fault Simulation Request for Start action. - public partial class FaultSimulationContentWrapper : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal FaultSimulationContentWrapper() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual FaultSimulationContentWrapper PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeFaultSimulationContentWrapper(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(FaultSimulationContentWrapper)} does not support reading '{options.Format}' format."); - } - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationContentWrapper)} does not support writing '{format}' format."); - } - writer.WritePropertyName("parameters"u8); - writer.WriteObjectValue(Parameters, options); - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - FaultSimulationContentWrapper IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual FaultSimulationContentWrapper JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationContentWrapper)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeFaultSimulationContentWrapper(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static FaultSimulationContentWrapper DeserializeFaultSimulationContentWrapper(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - FaultSimulationContent parameters = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("parameters"u8)) - { - parameters = FaultSimulationContent.DeserializeFaultSimulationContent(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new FaultSimulationContentWrapper(parameters, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(FaultSimulationContentWrapper)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - FaultSimulationContentWrapper IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to serialize into . - internal static RequestContent ToRequestContent(FaultSimulationContentWrapper faultSimulationContentWrapper) - { - if (faultSimulationContentWrapper == null) - { - return null; - } - Utf8JsonRequestContent content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(faultSimulationContentWrapper, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContentWrapper.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContentWrapper.cs deleted file mode 100644 index fad8250b849f..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationContentWrapper.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Fault Simulation Request for Start action. - public partial class FaultSimulationContentWrapper - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// Parameters for Fault Simulation start action. - /// is null. - public FaultSimulationContentWrapper(FaultSimulationContent parameters) - { - Argument.AssertNotNull(parameters, nameof(parameters)); - - Parameters = parameters; - } - - /// Initializes a new instance of . - /// Parameters for Fault Simulation start action. - /// Keeps track of any properties unknown to the library. - internal FaultSimulationContentWrapper(FaultSimulationContent parameters, IDictionary additionalBinaryDataProperties) - { - Parameters = parameters; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Parameters for Fault Simulation start action. - public FaultSimulationContent Parameters { get; } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationDetails.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationDetails.Serialization.cs deleted file mode 100644 index 6bb328a2c059..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationDetails.Serialization.cs +++ /dev/null @@ -1,192 +0,0 @@ -// 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.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Details for Fault Simulation. - public partial class FaultSimulationDetails : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual FaultSimulationDetails PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeFaultSimulationDetails(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(FaultSimulationDetails)} does not support reading '{options.Format}' format."); - } - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationDetails)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(ClusterId)) - { - writer.WritePropertyName("clusterId"u8); - writer.WriteStringValue(ClusterId); - } - if (Optional.IsDefined(OperationId)) - { - writer.WritePropertyName("operationId"u8); - writer.WriteStringValue(OperationId); - } - if (Optional.IsCollectionDefined(NodeTypeFaultSimulation)) - { - writer.WritePropertyName("nodeTypeFaultSimulation"u8); - writer.WriteStartArray(); - foreach (NodeTypeFaultSimulation item in NodeTypeFaultSimulation) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(Parameters)) - { - writer.WritePropertyName("parameters"u8); - writer.WriteObjectValue(Parameters, options); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - FaultSimulationDetails IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual FaultSimulationDetails JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationDetails)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeFaultSimulationDetails(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static FaultSimulationDetails DeserializeFaultSimulationDetails(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string clusterId = default; - string operationId = default; - IReadOnlyList nodeTypeFaultSimulation = default; - FaultSimulationContent parameters = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("clusterId"u8)) - { - clusterId = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("operationId"u8)) - { - operationId = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("nodeTypeFaultSimulation"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(Models.NodeTypeFaultSimulation.DeserializeNodeTypeFaultSimulation(item, options)); - } - nodeTypeFaultSimulation = array; - continue; - } - if (prop.NameEquals("parameters"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - parameters = FaultSimulationContent.DeserializeFaultSimulationContent(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new FaultSimulationDetails(clusterId, operationId, nodeTypeFaultSimulation ?? new ChangeTrackingList(), parameters, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(FaultSimulationDetails)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - FaultSimulationDetails IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationDetails.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationDetails.cs deleted file mode 100644 index 332c59a45b20..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationDetails.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Details for Fault Simulation. - public partial class FaultSimulationDetails - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal FaultSimulationDetails() - { - NodeTypeFaultSimulation = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// unique identifier for the cluster resource. - /// unique identifier for the operation associated with the fault simulation. - /// List of node type simulations associated with the cluster fault simulation. - /// Fault simulation parameters. - /// Keeps track of any properties unknown to the library. - internal FaultSimulationDetails(string clusterId, string operationId, IReadOnlyList nodeTypeFaultSimulation, FaultSimulationContent parameters, IDictionary additionalBinaryDataProperties) - { - ClusterId = clusterId; - OperationId = operationId; - NodeTypeFaultSimulation = nodeTypeFaultSimulation; - Parameters = parameters; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// unique identifier for the cluster resource. - public string ClusterId { get; } - - /// unique identifier for the operation associated with the fault simulation. - public string OperationId { get; } - - /// Fault simulation parameters. - public FaultSimulationContent Parameters { get; } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationIdContent.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationIdContent.Serialization.cs deleted file mode 100644 index 647131d3576b..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationIdContent.Serialization.cs +++ /dev/null @@ -1,156 +0,0 @@ -// 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; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Parameters for Fault Simulation id. - public partial class FaultSimulationIdContent : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal FaultSimulationIdContent() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual FaultSimulationIdContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeFaultSimulationIdContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(FaultSimulationIdContent)} does not support reading '{options.Format}' format."); - } - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationIdContent)} does not support writing '{format}' format."); - } - writer.WritePropertyName("simulationId"u8); - writer.WriteStringValue(SimulationId); - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - FaultSimulationIdContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual FaultSimulationIdContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationIdContent)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeFaultSimulationIdContent(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static FaultSimulationIdContent DeserializeFaultSimulationIdContent(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string simulationId = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("simulationId"u8)) - { - simulationId = prop.Value.GetString(); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new FaultSimulationIdContent(simulationId, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(FaultSimulationIdContent)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - FaultSimulationIdContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to serialize into . - internal static RequestContent ToRequestContent(FaultSimulationIdContent faultSimulationIdContent) - { - if (faultSimulationIdContent == null) - { - return null; - } - Utf8JsonRequestContent content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(faultSimulationIdContent, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationIdContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationIdContent.cs deleted file mode 100644 index 5f98cb243972..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationIdContent.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Parameters for Fault Simulation id. - public partial class FaultSimulationIdContent - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// unique identifier for the fault simulation. - /// is null. - public FaultSimulationIdContent(string simulationId) - { - Argument.AssertNotNull(simulationId, nameof(simulationId)); - - SimulationId = simulationId; - } - - /// Initializes a new instance of . - /// unique identifier for the fault simulation. - /// Keeps track of any properties unknown to the library. - internal FaultSimulationIdContent(string simulationId, IDictionary additionalBinaryDataProperties) - { - SimulationId = simulationId; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// unique identifier for the fault simulation. - public string SimulationId { get; } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationListResult.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationListResult.Serialization.cs deleted file mode 100644 index 295b8b9ff3e4..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationListResult.Serialization.cs +++ /dev/null @@ -1,176 +0,0 @@ -// 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; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Fault simulation list results. - internal partial class FaultSimulationListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal FaultSimulationListResult() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual FaultSimulationListResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeFaultSimulationListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(FaultSimulationListResult)} does not support reading '{options.Format}' format."); - } - } - - /// The to deserialize the from. - internal static FaultSimulationListResult FromResponse(Response response) - { - using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeFaultSimulationListResult(document.RootElement, ModelSerializationExtensions.WireOptions); - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (FaultSimulation item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - FaultSimulationListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual FaultSimulationListResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeFaultSimulationListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static FaultSimulationListResult DeserializeFaultSimulationListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(FaultSimulation.DeserializeFaultSimulation(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = string.IsNullOrEmpty(prop.Value.GetString()) ? null : new Uri(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new FaultSimulationListResult(value, nextLink, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(FaultSimulationListResult)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - FaultSimulationListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationListResult.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationListResult.cs deleted file mode 100644 index fcc7e63e7d26..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationListResult.cs +++ /dev/null @@ -1,44 +0,0 @@ -// 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 -{ - /// Fault simulation list results. - internal partial class FaultSimulationListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The FaultSimulation items on this page. - internal FaultSimulationListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The FaultSimulation items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal FaultSimulationListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The FaultSimulation items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationStatus.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationStatus.cs deleted file mode 100644 index 6fbecfbe234a..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/FaultSimulationStatus.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Fault simulation status. - public readonly partial struct FaultSimulationStatus : IEquatable - { - private readonly string _value; - /// Indicates the fault simulation is starting. The simulation will have this status while the start operation is in progress. - private const string StartingValue = "Starting"; - /// Indicates the fault simulation is active. The simulation will have this status after the start operation has completed successfully. - private const string ActiveValue = "Active"; - /// Indicates the fault simulation is stopping. The simulation will have this status while the stop operation is in progress. - private const string StoppingValue = "Stopping"; - /// Indicates the fault simulation is done. The simulation will have this status after the stop operation has completed successfully. - private const string DoneValue = "Done"; - /// Indicates the fault simulation has failed on start. The simulation will have this status after the start operation fails. - private const string StartFailedValue = "StartFailed"; - /// Indicates the fault simulation has failed on stop. The simulation will have this status after the stop operation fails. - private const string StopFailedValue = "StopFailed"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public FaultSimulationStatus(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Indicates the fault simulation is starting. The simulation will have this status while the start operation is in progress. - public static FaultSimulationStatus Starting { get; } = new FaultSimulationStatus(StartingValue); - - /// Indicates the fault simulation is active. The simulation will have this status after the start operation has completed successfully. - public static FaultSimulationStatus Active { get; } = new FaultSimulationStatus(ActiveValue); - - /// Indicates the fault simulation is stopping. The simulation will have this status while the stop operation is in progress. - public static FaultSimulationStatus Stopping { get; } = new FaultSimulationStatus(StoppingValue); - - /// Indicates the fault simulation is done. The simulation will have this status after the stop operation has completed successfully. - public static FaultSimulationStatus Done { get; } = new FaultSimulationStatus(DoneValue); - - /// Indicates the fault simulation has failed on start. The simulation will have this status after the start operation fails. - public static FaultSimulationStatus StartFailed { get; } = new FaultSimulationStatus(StartFailedValue); - - /// Indicates the fault simulation has failed on stop. The simulation will have this status after the stop operation fails. - public static FaultSimulationStatus StopFailed { get; } = new FaultSimulationStatus(StopFailedValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(FaultSimulationStatus left, FaultSimulationStatus right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(FaultSimulationStatus left, FaultSimulationStatus right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator FaultSimulationStatus(string value) => new FaultSimulationStatus(value); - - /// Converts a string to a . - /// The value. - public static implicit operator FaultSimulationStatus?(string value) => value == null ? null : new FaultSimulationStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is FaultSimulationStatus other && Equals(other); - - /// - public bool Equals(FaultSimulationStatus 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/ManagedClusterProperties.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterProperties.Serialization.cs index 52f003b4269d..48e318f1da1e 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterProperties.Serialization.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterProperties.Serialization.cs @@ -324,6 +324,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("enableOutboundOnlyNodeTypes"u8); writer.WriteBooleanValue(EnableOutboundOnlyNodeTypes.Value); } + if (Optional.IsDefined(SkipManagedNsgAssignment)) + { + writer.WritePropertyName("skipManagedNsgAssignment"u8); + writer.WriteBooleanValue(SkipManagedNsgAssignment.Value); + } if (options.Format != "W" && _additionalBinaryDataProperties != null) { foreach (var item in _additionalBinaryDataProperties) @@ -409,6 +414,7 @@ internal static ManagedClusterProperties DeserializeManagedClusterProperties(Jso int? allocatedOutboundPorts = default; string vmImage = default; bool? enableOutboundOnlyNodeTypes = default; + bool? skipManagedNsgAssignment = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -823,6 +829,15 @@ internal static ManagedClusterProperties DeserializeManagedClusterProperties(Jso enableOutboundOnlyNodeTypes = prop.Value.GetBoolean(); continue; } + if (prop.NameEquals("skipManagedNsgAssignment"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + skipManagedNsgAssignment = prop.Value.GetBoolean(); + continue; + } if (options.Format != "W") { additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); @@ -872,6 +887,7 @@ internal static ManagedClusterProperties DeserializeManagedClusterProperties(Jso allocatedOutboundPorts, vmImage, enableOutboundOnlyNodeTypes, + skipManagedNsgAssignment, additionalBinaryDataProperties); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterProperties.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterProperties.cs index a302bdc89f9f..86bf597523f3 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterProperties.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ManagedClusterProperties.cs @@ -86,8 +86,9 @@ public ManagedClusterProperties(string dnsName, string adminUserName) /// The number of outbound ports allocated for SNAT for each node in the backend pool of the default load balancer. The default value is 0 which provides dynamic port allocation based on pool size. /// The VM image the node types are configured with. This property controls the Service Fabric component packages to be used for the cluster. Allowed values are: 'Windows'. The default value is 'Windows'. /// Enable the creation of node types with only outbound traffic enabled. If set, a separate load balancer backend pool will be created for node types with inbound traffic enabled. Can only be set at the time of cluster creation. + /// Determines whether to skip the assignment of the managed network security group (SF-NSG) to the cluster subnet when using a bring-your-own virtual network (BYOVNET) configuration. The default value is false. /// Keeps track of any properties unknown to the library. - internal ManagedClusterProperties(string dnsName, string fqdn, IPAddress iPv4Address, Guid? clusterId, ServiceFabricManagedClusterState? clusterState, IReadOnlyList clusterCertificateThumbprints, int? clientConnectionPort, int? httpGatewayConnectionPort, string adminUserName, string adminPassword, IList loadBalancingRules, bool? isRdpAccessAllowed, IList networkSecurityRules, IList clients, ManagedClusterAzureActiveDirectory azureActiveDirectory, IList fabricSettings, ServiceFabricManagedResourceProvisioningState? provisioningState, string clusterCodeVersion, ManagedClusterUpgradeMode? clusterUpgradeMode, ManagedClusterUpgradeCadence? clusterUpgradeCadence, IList addOnFeatures, bool? isAutoOSUpgradeEnabled, bool? hasZoneResiliency, ApplicationTypeVersionsCleanupPolicy applicationTypeVersionsCleanupPolicy, bool? isIPv6Enabled, string subnetId, IList ipTags, IPAddress iPv6Address, bool? isServicePublicIPEnabled, IList auxiliarySubnets, IList serviceEndpoints, ZonalUpdateMode? zonalUpdateMode, bool? useCustomVnet, ResourceIdentifier publicIPPrefixId, ResourceIdentifier publicIPv6PrefixId, ResourceIdentifier ddosProtectionPlanId, ManagedClusterUpgradePolicy upgradeDescription, int? httpGatewayTokenAuthConnectionPort, bool? isHttpGatewayExclusiveAuthModeEnabled, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope, int? allocatedOutboundPorts, string vmImage, bool? enableOutboundOnlyNodeTypes, IDictionary additionalBinaryDataProperties) + internal ManagedClusterProperties(string dnsName, string fqdn, IPAddress iPv4Address, Guid? clusterId, ServiceFabricManagedClusterState? clusterState, IReadOnlyList clusterCertificateThumbprints, int? clientConnectionPort, int? httpGatewayConnectionPort, string adminUserName, string adminPassword, IList loadBalancingRules, bool? isRdpAccessAllowed, IList networkSecurityRules, IList clients, ManagedClusterAzureActiveDirectory azureActiveDirectory, IList fabricSettings, ServiceFabricManagedResourceProvisioningState? provisioningState, string clusterCodeVersion, ManagedClusterUpgradeMode? clusterUpgradeMode, ManagedClusterUpgradeCadence? clusterUpgradeCadence, IList addOnFeatures, bool? isAutoOSUpgradeEnabled, bool? hasZoneResiliency, ApplicationTypeVersionsCleanupPolicy applicationTypeVersionsCleanupPolicy, bool? isIPv6Enabled, string subnetId, IList ipTags, IPAddress iPv6Address, bool? isServicePublicIPEnabled, IList auxiliarySubnets, IList serviceEndpoints, ZonalUpdateMode? zonalUpdateMode, bool? useCustomVnet, ResourceIdentifier publicIPPrefixId, ResourceIdentifier publicIPv6PrefixId, ResourceIdentifier ddosProtectionPlanId, ManagedClusterUpgradePolicy upgradeDescription, int? httpGatewayTokenAuthConnectionPort, bool? isHttpGatewayExclusiveAuthModeEnabled, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope, int? allocatedOutboundPorts, string vmImage, bool? enableOutboundOnlyNodeTypes, bool? skipManagedNsgAssignment, IDictionary additionalBinaryDataProperties) { DnsName = dnsName; Fqdn = fqdn; @@ -132,6 +133,7 @@ internal ManagedClusterProperties(string dnsName, string fqdn, IPAddress iPv4Add AllocatedOutboundPorts = allocatedOutboundPorts; VmImage = vmImage; EnableOutboundOnlyNodeTypes = enableOutboundOnlyNodeTypes; + SkipManagedNsgAssignment = skipManagedNsgAssignment; _additionalBinaryDataProperties = additionalBinaryDataProperties; } @@ -289,6 +291,9 @@ internal ManagedClusterProperties(string dnsName, string fqdn, IPAddress iPv4Add /// Enable the creation of node types with only outbound traffic enabled. If set, a separate load balancer backend pool will be created for node types with inbound traffic enabled. Can only be set at the time of cluster creation. public bool? EnableOutboundOnlyNodeTypes { get; set; } + /// Determines whether to skip the assignment of the managed network security group (SF-NSG) to the cluster subnet when using a bring-your-own virtual network (BYOVNET) configuration. The default value is false. + public bool? SkipManagedNsgAssignment { get; set; } + /// Number of unused versions per application type to keep. public int? MaxUnusedVersionsToKeep { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeFaultSimulation.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeFaultSimulation.Serialization.cs deleted file mode 100644 index 60f5a4a977b5..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeFaultSimulation.Serialization.cs +++ /dev/null @@ -1,182 +0,0 @@ -// 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.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Node type fault simulation object with status. - public partial class NodeTypeFaultSimulation : IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected virtual NodeTypeFaultSimulation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeNodeTypeFaultSimulation(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NodeTypeFaultSimulation)} does not support reading '{options.Format}' format."); - } - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NodeTypeFaultSimulation)} does not support writing '{format}' format."); - } - if (Optional.IsDefined(NodeTypeName)) - { - writer.WritePropertyName("nodeTypeName"u8); - writer.WriteStringValue(NodeTypeName); - } - if (Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.Value.ToString()); - } - if (Optional.IsDefined(OperationId)) - { - writer.WritePropertyName("operationId"u8); - writer.WriteStringValue(OperationId); - } - if (Optional.IsDefined(OperationStatus)) - { - writer.WritePropertyName("operationStatus"u8); - writer.WriteStringValue(OperationStatus.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - NodeTypeFaultSimulation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual NodeTypeFaultSimulation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(NodeTypeFaultSimulation)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNodeTypeFaultSimulation(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static NodeTypeFaultSimulation DeserializeNodeTypeFaultSimulation(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string nodeTypeName = default; - FaultSimulationStatus? status = default; - string operationId = default; - SfmcOperationStatus? operationStatus = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("nodeTypeName"u8)) - { - nodeTypeName = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("status"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - status = new FaultSimulationStatus(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("operationId"u8)) - { - operationId = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("operationStatus"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - operationStatus = new SfmcOperationStatus(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new NodeTypeFaultSimulation(nodeTypeName, status, operationId, operationStatus, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(NodeTypeFaultSimulation)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - NodeTypeFaultSimulation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeFaultSimulation.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeFaultSimulation.cs deleted file mode 100644 index 103fe55e5d3e..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/NodeTypeFaultSimulation.cs +++ /dev/null @@ -1,51 +0,0 @@ -// 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 -{ - /// Node type fault simulation object with status. - public partial class NodeTypeFaultSimulation - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal NodeTypeFaultSimulation() - { - } - - /// Initializes a new instance of . - /// Node type name. - /// Fault simulation status. - /// Current or latest asynchronous operation identifier on the node type. - /// Current or latest asynchronous operation status on the node type. - /// Keeps track of any properties unknown to the library. - internal NodeTypeFaultSimulation(string nodeTypeName, FaultSimulationStatus? status, string operationId, SfmcOperationStatus? operationStatus, IDictionary additionalBinaryDataProperties) - { - NodeTypeName = nodeTypeName; - Status = status; - OperationId = operationId; - OperationStatus = operationStatus; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// Node type name. - public string NodeTypeName { get; } - - /// Fault simulation status. - public FaultSimulationStatus? Status { get; } - - /// Current or latest asynchronous operation identifier on the node type. - public string OperationId { get; } - - /// Current or latest asynchronous operation status on the node type. - public SfmcOperationStatus? OperationStatus { get; } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeProperties.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeProperties.Serialization.cs index d2abce5e282f..5fe207241e1d 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeProperties.Serialization.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeProperties.Serialization.cs @@ -393,6 +393,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("isOutboundOnly"u8); writer.WriteBooleanValue(IsOutboundOnly.Value); } + if (Optional.IsDefined(EnableResilientEphemeralOsDisk)) + { + writer.WritePropertyName("enableResilientEphemeralOsDisk"u8); + writer.WriteBooleanValue(EnableResilientEphemeralOsDisk.Value); + } if (options.Format != "W" && _additionalBinaryDataProperties != null) { foreach (var item in _additionalBinaryDataProperties) @@ -488,6 +493,7 @@ internal static ServiceFabricManagedNodeTypeProperties DeserializeServiceFabricM IList vmApplications = default; bool? isZoneBalanceEnabled = default; bool? isOutboundOnly = default; + bool? enableResilientEphemeralOsDisk = default; IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); foreach (var prop in element.EnumerateObject()) { @@ -1005,6 +1011,15 @@ internal static ServiceFabricManagedNodeTypeProperties DeserializeServiceFabricM isOutboundOnly = prop.Value.GetBoolean(); continue; } + if (prop.NameEquals("enableResilientEphemeralOsDisk"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableResilientEphemeralOsDisk = prop.Value.GetBoolean(); + continue; + } if (options.Format != "W") { additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); @@ -1064,6 +1079,7 @@ internal static ServiceFabricManagedNodeTypeProperties DeserializeServiceFabricM vmApplications ?? new ChangeTrackingList(), isZoneBalanceEnabled, isOutboundOnly, + enableResilientEphemeralOsDisk, additionalBinaryDataProperties); } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeProperties.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeProperties.cs index 4a49c93b4c3f..18d3c15518c1 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeProperties.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ServiceFabricManagedNodeTypeProperties.cs @@ -93,8 +93,9 @@ public ServiceFabricManagedNodeTypeProperties(bool isPrimary, int vmInstanceCoun /// Specifies the gallery applications that should be made available to the underlying VMSS. /// Setting this to true allows stateless node types to scale out without equal distribution across zones. /// Specifies the node type should be configured for only outbound traffic and not inbound traffic. + /// Specifies whether the node type should use a resilient ephemeral OS disk when using a supported SKU size. A resilient ephemeral OS disk provides improved reliability for ephemeral OS disks by enabling full caching. /// Keeps track of any properties unknown to the library. - internal ServiceFabricManagedNodeTypeProperties(bool isPrimary, int vmInstanceCount, int? dataDiskSizeInGB, ServiceFabricManagedDataDiskType? dataDiskType, string dataDiskLetter, IDictionary placementProperties, IDictionary capacities, EndpointRangeDescription applicationPorts, EndpointRangeDescription ephemeralPorts, string vmSize, string vmImagePublisher, string vmImageOffer, string vmImageSku, string vmImageVersion, IList vmSecrets, IList vmExtensions, VmManagedIdentity vmManagedIdentity, bool? isStateless, bool? hasMultiplePlacementGroups, IList frontendConfigurations, IList networkSecurityRules, IList additionalDataDisks, bool? isEncryptionAtHostEnabled, ServiceFabricManagedResourceProvisioningState? provisioningState, bool? isAcceleratedNetworkingEnabled, bool? useDefaultPublicLoadBalancer, bool? useTempDataDisk, bool? isOverProvisioningEnabled, IList zones, bool? isSpotVm, string hostGroupId, bool? useEphemeralOSDisk, string spotRestoreTimeout, SpotNodeVmEvictionPolicyType? evictionPolicy, ResourceIdentifier vmImageResourceId, ResourceIdentifier subnetId, IList vmSetupActions, ServiceFabricManagedClusterSecurityType? securityType, NodeTypeSecurityEncryptionType? securityEncryptionType, bool? isSecureBootEnabled, bool? isNodePublicIPEnabled, bool? isNodePublicIPv6Enabled, ResourceIdentifier vmSharedGalleryImageId, ResourceIdentifier natGatewayId, IList natConfigurations, VmImagePlan vmImagePlan, ResourceIdentifier serviceArtifactReferenceId, ResourceIdentifier dscpConfigurationId, IList additionalNetworkInterfaceConfigurations, string computerNamePrefix, IList vmApplications, bool? isZoneBalanceEnabled, bool? isOutboundOnly, IDictionary additionalBinaryDataProperties) + internal ServiceFabricManagedNodeTypeProperties(bool isPrimary, int vmInstanceCount, int? dataDiskSizeInGB, ServiceFabricManagedDataDiskType? dataDiskType, string dataDiskLetter, IDictionary placementProperties, IDictionary capacities, EndpointRangeDescription applicationPorts, EndpointRangeDescription ephemeralPorts, string vmSize, string vmImagePublisher, string vmImageOffer, string vmImageSku, string vmImageVersion, IList vmSecrets, IList vmExtensions, VmManagedIdentity vmManagedIdentity, bool? isStateless, bool? hasMultiplePlacementGroups, IList frontendConfigurations, IList networkSecurityRules, IList additionalDataDisks, bool? isEncryptionAtHostEnabled, ServiceFabricManagedResourceProvisioningState? provisioningState, bool? isAcceleratedNetworkingEnabled, bool? useDefaultPublicLoadBalancer, bool? useTempDataDisk, bool? isOverProvisioningEnabled, IList zones, bool? isSpotVm, string hostGroupId, bool? useEphemeralOSDisk, string spotRestoreTimeout, SpotNodeVmEvictionPolicyType? evictionPolicy, ResourceIdentifier vmImageResourceId, ResourceIdentifier subnetId, IList vmSetupActions, ServiceFabricManagedClusterSecurityType? securityType, NodeTypeSecurityEncryptionType? securityEncryptionType, bool? isSecureBootEnabled, bool? isNodePublicIPEnabled, bool? isNodePublicIPv6Enabled, ResourceIdentifier vmSharedGalleryImageId, ResourceIdentifier natGatewayId, IList natConfigurations, VmImagePlan vmImagePlan, ResourceIdentifier serviceArtifactReferenceId, ResourceIdentifier dscpConfigurationId, IList additionalNetworkInterfaceConfigurations, string computerNamePrefix, IList vmApplications, bool? isZoneBalanceEnabled, bool? isOutboundOnly, bool? enableResilientEphemeralOsDisk, IDictionary additionalBinaryDataProperties) { IsPrimary = isPrimary; VmInstanceCount = vmInstanceCount; @@ -149,6 +150,7 @@ internal ServiceFabricManagedNodeTypeProperties(bool isPrimary, int vmInstanceCo VmApplications = vmApplications; IsZoneBalanceEnabled = isZoneBalanceEnabled; IsOutboundOnly = isOutboundOnly; + EnableResilientEphemeralOsDisk = enableResilientEphemeralOsDisk; _additionalBinaryDataProperties = additionalBinaryDataProperties; } @@ -311,6 +313,9 @@ internal ServiceFabricManagedNodeTypeProperties(bool isPrimary, int vmInstanceCo /// Specifies the node type should be configured for only outbound traffic and not inbound traffic. public bool? IsOutboundOnly { get; set; } + /// Specifies whether the node type should use a resilient ephemeral OS disk when using a supported SKU size. A resilient ephemeral OS disk provides improved reliability for ephemeral OS disks by enabling full caching. + public bool? EnableResilientEphemeralOsDisk { get; set; } + /// The list of user identities associated with the virtual machine scale set under the node type. Each entry will be an ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. public IList VmManagedIdentityUserAssignedIdentities { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/SfmcOperationStatus.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/SfmcOperationStatus.cs deleted file mode 100644 index b82c56898025..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/SfmcOperationStatus.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Sfmc operation status. - public readonly partial struct SfmcOperationStatus : IEquatable - { - private readonly string _value; - /// Operation created. - private const string CreatedValue = "Created"; - /// Operation started. - private const string StartedValue = "Started"; - /// Operation succeeded. - private const string SucceededValue = "Succeeded"; - /// Operation failed. - private const string FailedValue = "Failed"; - /// Operation aborted. - private const string AbortedValue = "Aborted"; - /// Operation canceled. - private const string CanceledValue = "Canceled"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public SfmcOperationStatus(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Operation created. - public static SfmcOperationStatus Created { get; } = new SfmcOperationStatus(CreatedValue); - - /// Operation started. - public static SfmcOperationStatus Started { get; } = new SfmcOperationStatus(StartedValue); - - /// Operation succeeded. - public static SfmcOperationStatus Succeeded { get; } = new SfmcOperationStatus(SucceededValue); - - /// Operation failed. - public static SfmcOperationStatus Failed { get; } = new SfmcOperationStatus(FailedValue); - - /// Operation aborted. - public static SfmcOperationStatus Aborted { get; } = new SfmcOperationStatus(AbortedValue); - - /// Operation canceled. - public static SfmcOperationStatus Canceled { get; } = new SfmcOperationStatus(CanceledValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(SfmcOperationStatus left, SfmcOperationStatus right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(SfmcOperationStatus left, SfmcOperationStatus right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator SfmcOperationStatus(string value) => new SfmcOperationStatus(value); - - /// Converts a string to a . - /// The value. - public static implicit operator SfmcOperationStatus?(string value) => value == null ? null : new SfmcOperationStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SfmcOperationStatus other && Equals(other); - - /// - public bool Equals(SfmcOperationStatus 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/UnknownFaultSimulationContent.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/UnknownFaultSimulationContent.Serialization.cs deleted file mode 100644 index 8306a649b7ed..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/UnknownFaultSimulationContent.Serialization.cs +++ /dev/null @@ -1,146 +0,0 @@ -// 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.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - internal partial class UnknownFaultSimulationContent : FaultSimulationContent, IJsonModel - { - /// Initializes a new instance of for deserialization. - internal UnknownFaultSimulationContent() - { - } - - /// The data to parse. - /// The client options for reading and writing models. - protected override FaultSimulationContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeFaultSimulationContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(FaultSimulationContent)} does not support reading '{options.Format}' format."); - } - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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 override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationContent)} does not support writing '{format}' format."); - } - base.JsonModelWriteCore(writer, options); - } - - /// The JSON reader. - /// The client options for reading and writing models. - FaultSimulationContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected override FaultSimulationContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(FaultSimulationContent)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeFaultSimulationContent(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static UnknownFaultSimulationContent DeserializeUnknownFaultSimulationContent(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - FaultKind faultKind = default; - bool? isForced = default; - FaultSimulationConstraints constraints = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("faultKind"u8)) - { - faultKind = new FaultKind(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("force"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isForced = prop.Value.GetBoolean(); - continue; - } - if (prop.NameEquals("constraints"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - constraints = FaultSimulationConstraints.DeserializeFaultSimulationConstraints(prop.Value, options); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new UnknownFaultSimulationContent(faultKind, isForced, constraints, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(FaultSimulationContent)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - FaultSimulationContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/UnknownFaultSimulationContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/UnknownFaultSimulationContent.cs deleted file mode 100644 index 99557dd0772c..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/UnknownFaultSimulationContent.cs +++ /dev/null @@ -1,24 +0,0 @@ -// 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 -{ - internal partial class UnknownFaultSimulationContent : FaultSimulationContent - { - /// Initializes a new instance of . - /// The kind of fault to be simulated. - /// Force the action to go through without any check on the cluster. - /// Constraints for Fault Simulation action. - /// Keeps track of any properties unknown to the library. - internal UnknownFaultSimulationContent(FaultKind faultKind, bool? isForced, FaultSimulationConstraints constraints, IDictionary additionalBinaryDataProperties) : base(faultKind != default ? faultKind : "unknown", isForced, constraints, additionalBinaryDataProperties) - { - } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ZoneFaultSimulationContent.Serialization.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ZoneFaultSimulationContent.Serialization.cs deleted file mode 100644 index 21bacf47fc2d..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ZoneFaultSimulationContent.Serialization.cs +++ /dev/null @@ -1,179 +0,0 @@ -// 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.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Parameters for Zone Fault Simulation action. - public partial class ZoneFaultSimulationContent : FaultSimulationContent, IJsonModel - { - /// The data to parse. - /// The client options for reading and writing models. - protected override FaultSimulationContent PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) - { - return DeserializeZoneFaultSimulationContent(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(ZoneFaultSimulationContent)} does not support reading '{options.Format}' format."); - } - } - - /// The JSON writer. - /// The client options for reading and writing models. - 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 override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(ZoneFaultSimulationContent)} does not support writing '{format}' format."); - } - base.JsonModelWriteCore(writer, options); - if (Optional.IsCollectionDefined(Zones)) - { - writer.WritePropertyName("zones"u8); - writer.WriteStartArray(); - foreach (string item in Zones) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - ZoneFaultSimulationContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (ZoneFaultSimulationContent)JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected override FaultSimulationContent JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(ZoneFaultSimulationContent)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeZoneFaultSimulationContent(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static ZoneFaultSimulationContent DeserializeZoneFaultSimulationContent(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - FaultKind faultKind = default; - bool? isForced = default; - FaultSimulationConstraints constraints = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - IList zones = default; - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("faultKind"u8)) - { - faultKind = new FaultKind(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("force"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isForced = prop.Value.GetBoolean(); - continue; - } - if (prop.NameEquals("constraints"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - constraints = FaultSimulationConstraints.DeserializeFaultSimulationConstraints(prop.Value, options); - continue; - } - if (prop.NameEquals("zones"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetString()); - } - } - zones = array; - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new ZoneFaultSimulationContent(faultKind, isForced, constraints, additionalBinaryDataProperties, zones ?? new ChangeTrackingList()); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string 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(ZoneFaultSimulationContent)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - ZoneFaultSimulationContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (ZoneFaultSimulationContent)PersistableModelCreateCore(data, options); - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ZoneFaultSimulationContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ZoneFaultSimulationContent.cs deleted file mode 100644 index 229f531cbc9a..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/Models/ZoneFaultSimulationContent.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.ResourceManager.ServiceFabricManagedClusters; - -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - /// Parameters for Zone Fault Simulation action. - public partial class ZoneFaultSimulationContent : FaultSimulationContent - { - /// Initializes a new instance of . - public ZoneFaultSimulationContent() : base(FaultKind.Zone) - { - Zones = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The kind of fault to be simulated. - /// Force the action to go through without any check on the cluster. - /// Constraints for Fault Simulation action. - /// Keeps track of any properties unknown to the library. - /// Indicates the zones of the fault simulation. - internal ZoneFaultSimulationContent(FaultKind faultKind, bool? isForced, FaultSimulationConstraints constraints, IDictionary additionalBinaryDataProperties, IList zones) : base(faultKind, isForced, constraints, additionalBinaryDataProperties) - { - Zones = zones; - } - - /// Indicates the zones of the fault simulation. - public IList Zones { get; } - } -} 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 29dfd854b2f3..404a5a9b45a0 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/ManagedClustersRestOperations.cs @@ -179,102 +179,5 @@ internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, string sub request.Headers.SetValue("Accept", "application/json"); return message; } - - internal HttpMessage CreateGetFaultSimulationRequest(string subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder 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("/getFaultSimulation", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetFaultSimulationRequest(string subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder 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("/listFaultSimulation", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetFaultSimulationRequest(Uri nextPage, string subscriptionId, string resourceGroupName, string clusterName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(nextPage); - uri.UpdateQuery("api-version", _apiVersion); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateStartFaultSimulationRequest(string subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder 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("/startFaultSimulation", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateStopFaultSimulationRequest(string subscriptionId, string resourceGroupName, string clusterName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder 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("/stopFaultSimulation", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Content-Type", "application/json"); - request.Content = content; - return message; - } } } 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 fc9a026e9fe3..ebbebc5ea5d0 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/RestOperations/NodeTypesRestOperations.cs @@ -298,110 +298,5 @@ internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGr request.Content = content; return message; } - - internal HttpMessage CreateStartFaultSimulationRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder 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("/nodeTypes/", false); - uri.AppendPath(nodeTypeName, true); - uri.AppendPath("/startFaultSimulation", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateStopFaultSimulationRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder 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("/nodeTypes/", false); - uri.AppendPath(nodeTypeName, true); - uri.AppendPath("/stopFaultSimulation", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Content-Type", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetFaultSimulationRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, RequestContent content, RequestContext context) - { - RawRequestUriBuilder 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("/nodeTypes/", false); - uri.AppendPath(nodeTypeName, true); - uri.AppendPath("/getFaultSimulation", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Content-Type", "application/json"); - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - - internal HttpMessage CreateGetFaultSimulationRequest(string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, RequestContext context) - { - RawRequestUriBuilder 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("/nodeTypes/", false); - uri.AppendPath(nodeTypeName, true); - uri.AppendPath("/listFaultSimulation", false); - uri.AppendQuery("api-version", _apiVersion, true); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetFaultSimulationRequest(Uri nextPage, string subscriptionId, string resourceGroupName, string clusterName, string nodeTypeName, RequestContext context) - { - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(nextPage); - uri.UpdateQuery("api-version", _apiVersion); - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Uri = uri; - request.Method = RequestMethod.Post; - request.Headers.SetValue("Accept", "application/json"); - return message; - } } } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationCollection.cs index 4da5444460ac..b764f29791c7 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationCollection.cs @@ -40,7 +40,7 @@ internal ServiceFabricManagedApplicationCollection(ArmClient client, ResourceIde { TryGetApiVersion(ServiceFabricManagedApplicationResource.ResourceType, out string serviceFabricManagedApplicationApiVersion); _applicationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedApplicationResource.ResourceType.Namespace, Diagnostics); - _applicationsRestClient = new Applications(_applicationsClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationApiVersion ?? "2025-10-01-preview"); + _applicationsRestClient = new Applications(_applicationsClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -67,7 +67,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -125,7 +125,7 @@ public virtual async Task> /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -183,7 +183,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -232,7 +232,7 @@ public virtual async Task> Get /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -281,7 +281,7 @@ public virtual Response Get(string appl /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -309,7 +309,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -337,7 +337,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -394,7 +394,7 @@ public virtual async Task> ExistsAsync(string applicationName, Ca /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -451,7 +451,7 @@ public virtual Response Exists(string applicationName, CancellationToken c /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -512,7 +512,7 @@ public virtual async Task /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationResource.cs index 91ea48f66edc..a84d3b596019 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationResource.cs @@ -53,7 +53,7 @@ internal ServiceFabricManagedApplicationResource(ArmClient client, ResourceIdent { TryGetApiVersion(ResourceType, out string serviceFabricManagedApplicationApiVersion); _applicationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _applicationsRestClient = new Applications(_applicationsClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationApiVersion ?? "2025-10-01-preview"); + _applicationsRestClient = new Applications(_applicationsClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -155,7 +155,7 @@ public virtual async Task> Get /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -203,7 +203,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -262,7 +262,7 @@ public virtual async Task> /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -321,7 +321,7 @@ public virtual ArmOperation Update(Wait /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -370,7 +370,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -419,7 +419,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -472,7 +472,7 @@ public virtual async Task FetchHealthAsync(WaitUntil waitUntil, Ap /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -525,7 +525,7 @@ public virtual ArmOperation FetchHealth(WaitUntil waitUntil, ApplicationFetchHea /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -574,7 +574,7 @@ public virtual async Task ReadUpgradeAsync(WaitUntil waitUntil, Ca /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -623,7 +623,7 @@ public virtual ArmOperation ReadUpgrade(WaitUntil waitUntil, CancellationToken c /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -676,7 +676,7 @@ public virtual async Task RestartDeployedCodePackageAsync(WaitUnti /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -729,7 +729,7 @@ public virtual ArmOperation RestartDeployedCodePackage(WaitUntil waitUntil, Rest /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -782,7 +782,7 @@ public virtual async Task ResumeUpgradeAsync(WaitUntil waitUntil, /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -835,7 +835,7 @@ public virtual ArmOperation ResumeUpgrade(WaitUntil waitUntil, RuntimeResumeAppl /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -884,7 +884,7 @@ public virtual async Task StartRollbackAsync(WaitUntil waitUntil, /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -933,7 +933,7 @@ public virtual ArmOperation StartRollback(WaitUntil waitUntil, CancellationToken /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -986,7 +986,7 @@ public virtual async Task UpdateUpgradeAsync(WaitUntil waitUntil, /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs index e0cefcc36b3e..fb1ba6e6e078 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeCollection.cs @@ -40,7 +40,7 @@ internal ServiceFabricManagedApplicationTypeCollection(ArmClient client, Resourc { TryGetApiVersion(ServiceFabricManagedApplicationTypeResource.ResourceType, out string serviceFabricManagedApplicationTypeApiVersion); _applicationTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedApplicationTypeResource.ResourceType.Namespace, Diagnostics); - _applicationTypesRestClient = new ApplicationTypes(_applicationTypesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationTypeApiVersion ?? "2025-10-01-preview"); + _applicationTypesRestClient = new ApplicationTypes(_applicationTypesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationTypeApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -67,7 +67,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -122,7 +122,7 @@ public virtual async Task /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -177,7 +177,7 @@ public virtual ArmOperation CreateO /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -226,7 +226,7 @@ public virtual async Task> /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -275,7 +275,7 @@ public virtual Response Get(string /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -303,7 +303,7 @@ public virtual AsyncPageable GetAll /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -331,7 +331,7 @@ public virtual Pageable GetAll(Canc /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -388,7 +388,7 @@ public virtual async Task> ExistsAsync(string applicationTypeName /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -445,7 +445,7 @@ public virtual Response Exists(string applicationTypeName, CancellationTok /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -506,7 +506,7 @@ public virtual async Task /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeResource.cs index 1bd42d800e94..b0754c8d0adc 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeResource.cs @@ -53,7 +53,7 @@ internal ServiceFabricManagedApplicationTypeResource(ArmClient client, ResourceI { TryGetApiVersion(ResourceType, out string serviceFabricManagedApplicationTypeApiVersion); _applicationTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _applicationTypesRestClient = new ApplicationTypes(_applicationTypesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationTypeApiVersion ?? "2025-10-01-preview"); + _applicationTypesRestClient = new ApplicationTypes(_applicationTypesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationTypeApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -155,7 +155,7 @@ public virtual async Task> /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -203,7 +203,7 @@ public virtual Response Get(Cancell /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -255,7 +255,7 @@ public virtual async Task> /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -307,7 +307,7 @@ public virtual Response Update(Serv /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -356,7 +356,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionCollection.cs index 32ef5f6132f5..0fca8bd03a10 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionCollection.cs @@ -40,7 +40,7 @@ internal ServiceFabricManagedApplicationTypeVersionCollection(ArmClient client, { TryGetApiVersion(ServiceFabricManagedApplicationTypeVersionResource.ResourceType, out string serviceFabricManagedApplicationTypeVersionApiVersion); _applicationTypeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedApplicationTypeVersionResource.ResourceType.Namespace, Diagnostics); - _applicationTypeVersionsRestClient = new ApplicationTypeVersions(_applicationTypeVersionsClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationTypeVersionApiVersion ?? "2025-10-01-preview"); + _applicationTypeVersionsRestClient = new ApplicationTypeVersions(_applicationTypeVersionsClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationTypeVersionApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -67,7 +67,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -125,7 +125,7 @@ public virtual async Task /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -183,7 +183,7 @@ public virtual ArmOperation /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -232,7 +232,7 @@ public virtual async Task /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -281,7 +281,7 @@ public virtual Response Get( /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -315,7 +315,7 @@ public virtual AsyncPageable /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -349,7 +349,7 @@ public virtual Pageable GetA /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -406,7 +406,7 @@ public virtual async Task> ExistsAsync(string version, Cancellati /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -463,7 +463,7 @@ public virtual Response Exists(string version, CancellationToken cancellat /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -524,7 +524,7 @@ public virtual async Task /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionResource.cs index fa5649fcfb0c..3dfeccdfa049 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedApplicationTypeVersionResource.cs @@ -53,7 +53,7 @@ internal ServiceFabricManagedApplicationTypeVersionResource(ArmClient client, Re { TryGetApiVersion(ResourceType, out string serviceFabricManagedApplicationTypeVersionApiVersion); _applicationTypeVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _applicationTypeVersionsRestClient = new ApplicationTypeVersions(_applicationTypeVersionsClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationTypeVersionApiVersion ?? "2025-10-01-preview"); + _applicationTypeVersionsRestClient = new ApplicationTypeVersions(_applicationTypeVersionsClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedApplicationTypeVersionApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -156,7 +156,7 @@ public virtual async Task /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -204,7 +204,7 @@ public virtual Response Get( /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -256,7 +256,7 @@ public virtual async Task /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -308,7 +308,7 @@ public virtual Response Upda /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -357,7 +357,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterCollection.cs index da8fd7a686a9..cc8d92371d4e 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterCollection.cs @@ -47,13 +47,13 @@ internal ServiceFabricManagedClusterCollection(ArmClient client, ResourceIdentif { TryGetApiVersion(ServiceFabricManagedClusterResource.ResourceType, out string serviceFabricManagedClusterApiVersion); _managedClustersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedClusterResource.ResourceType.Namespace, Diagnostics); - _managedClustersRestClient = new ManagedClusters(_managedClustersClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2025-10-01-preview"); + _managedClustersRestClient = new ManagedClusters(_managedClustersClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2026-02-01"); _managedApplyMaintenanceWindowClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedClusterResource.ResourceType.Namespace, Diagnostics); - _managedApplyMaintenanceWindowRestClient = new ManagedApplyMaintenanceWindow(_managedApplyMaintenanceWindowClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2025-10-01-preview"); + _managedApplyMaintenanceWindowRestClient = new ManagedApplyMaintenanceWindow(_managedApplyMaintenanceWindowClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2026-02-01"); _managedAzResiliencyStatusClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedClusterResource.ResourceType.Namespace, Diagnostics); - _managedAzResiliencyStatusRestClient = new ManagedAzResiliencyStatus(_managedAzResiliencyStatusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2025-10-01-preview"); + _managedAzResiliencyStatusRestClient = new ManagedAzResiliencyStatus(_managedAzResiliencyStatusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2026-02-01"); _managedMaintenanceWindowStatusClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedClusterResource.ResourceType.Namespace, Diagnostics); - _managedMaintenanceWindowStatusRestClient = new ManagedMaintenanceWindowStatus(_managedMaintenanceWindowStatusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2025-10-01-preview"); + _managedMaintenanceWindowStatusRestClient = new ManagedMaintenanceWindowStatus(_managedMaintenanceWindowStatusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -80,7 +80,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -138,7 +138,7 @@ public virtual async Task> Cre /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -196,7 +196,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -245,7 +245,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -294,7 +294,7 @@ public virtual Response Get(string clusterN /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -322,7 +322,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -350,7 +350,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -407,7 +407,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -464,7 +464,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -525,7 +525,7 @@ public virtual async Task> /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterData.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterData.cs index 0d52b11b62a6..fa2443896686 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterData.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterData.cs @@ -643,6 +643,23 @@ public bool? EnableOutboundOnlyNodeTypes } } + /// Determines whether to skip the assignment of the managed network security group (SF-NSG) to the cluster subnet when using a bring-your-own virtual network (BYOVNET) configuration. The default value is false. + public bool? SkipManagedNsgAssignment + { + get + { + return Properties is null ? default : Properties.SkipManagedNsgAssignment; + } + set + { + if (Properties is null) + { + Properties = new ManagedClusterProperties(); + } + Properties.SkipManagedNsgAssignment = value.Value; + } + } + /// Number of unused versions per application type to keep. public int? MaxUnusedVersionsToKeep { diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterResource.cs index d9b578cfed72..71fd3b36204a 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedClusterResource.cs @@ -59,13 +59,13 @@ internal ServiceFabricManagedClusterResource(ArmClient client, ResourceIdentifie { TryGetApiVersion(ResourceType, out string serviceFabricManagedClusterApiVersion); _managedClustersClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _managedClustersRestClient = new ManagedClusters(_managedClustersClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2025-10-01-preview"); + _managedClustersRestClient = new ManagedClusters(_managedClustersClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2026-02-01"); _managedApplyMaintenanceWindowClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _managedApplyMaintenanceWindowRestClient = new ManagedApplyMaintenanceWindow(_managedApplyMaintenanceWindowClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2025-10-01-preview"); + _managedApplyMaintenanceWindowRestClient = new ManagedApplyMaintenanceWindow(_managedApplyMaintenanceWindowClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2026-02-01"); _managedAzResiliencyStatusClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _managedAzResiliencyStatusRestClient = new ManagedAzResiliencyStatus(_managedAzResiliencyStatusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2025-10-01-preview"); + _managedAzResiliencyStatusRestClient = new ManagedAzResiliencyStatus(_managedAzResiliencyStatusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2026-02-01"); _managedMaintenanceWindowStatusClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _managedMaintenanceWindowStatusRestClient = new ManagedMaintenanceWindowStatus(_managedMaintenanceWindowStatusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2025-10-01-preview"); + _managedMaintenanceWindowStatusRestClient = new ManagedMaintenanceWindowStatus(_managedMaintenanceWindowStatusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedClusterApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -118,7 +118,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -166,7 +166,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -214,7 +214,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -273,7 +273,7 @@ public virtual async Task> Upd /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -332,7 +332,7 @@ public virtual ArmOperation Update(WaitUnti /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -381,7 +381,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -430,7 +430,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -473,7 +473,7 @@ public virtual async Task PostManagedApplyMaintenanceWindowAsync(Cance /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -516,7 +516,7 @@ public virtual Response PostManagedApplyMaintenanceWindow(CancellationToken canc /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -564,7 +564,7 @@ public virtual Response PostManagedApplyMaintenanceWindow(CancellationToken canc /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -599,410 +599,6 @@ public virtual Response PostManagedApplyMaintenanceWindow(CancellationToken canc } } - /// - /// Gets a fault simulation by the simulationId. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/getFaultSimulation. - /// - /// - /// Operation Id. - /// ManagedClusters_GetFaultSimulation. - /// - /// - /// Default Api Version. - /// 2025-10-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// parameter with fault simulation id. - /// The cancellation token to use. - /// is null. - public virtual async Task> GetFaultSimulationAsync(FaultSimulationIdContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _managedClustersClientDiagnostics.CreateScope("ServiceFabricManagedClusterResource.GetFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _managedClustersRestClient.CreateGetFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, FaultSimulationIdContent.ToRequestContent(content), context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(FaultSimulation.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets a fault simulation by the simulationId. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/getFaultSimulation. - /// - /// - /// Operation Id. - /// ManagedClusters_GetFaultSimulation. - /// - /// - /// Default Api Version. - /// 2025-10-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// parameter with fault simulation id. - /// The cancellation token to use. - /// is null. - public virtual Response GetFaultSimulation(FaultSimulationIdContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _managedClustersClientDiagnostics.CreateScope("ServiceFabricManagedClusterResource.GetFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _managedClustersRestClient.CreateGetFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, FaultSimulationIdContent.ToRequestContent(content), context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(FaultSimulation.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the list of recent fault simulations for the cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/listFaultSimulation. - /// - /// - /// Operation Id. - /// ManagedClusters_ListFaultSimulation. - /// - /// - /// Default Api Version. - /// 2025-10-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetFaultSimulationAsync(CancellationToken cancellationToken = default) - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new ManagedClustersGetFaultSimulationAsyncCollectionResultOfT(_managedClustersRestClient, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, context); - } - - /// - /// Gets the list of recent fault simulations for the cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/listFaultSimulation. - /// - /// - /// Operation Id. - /// ManagedClusters_ListFaultSimulation. - /// - /// - /// Default Api Version. - /// 2025-10-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetFaultSimulation(CancellationToken cancellationToken = default) - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new ManagedClustersGetFaultSimulationCollectionResultOfT(_managedClustersRestClient, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, context); - } - - /// - /// Starts a fault simulation on the cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/startFaultSimulation. - /// - /// - /// Operation Id. - /// ManagedClusters_StartFaultSimulation. - /// - /// - /// 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. - /// parameters describing the fault simulation. - /// The cancellation token to use. - /// is null. - public virtual async Task> StartFaultSimulationAsync(WaitUntil waitUntil, FaultSimulationContentWrapper faultSimulationContentWrapper, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(faultSimulationContentWrapper, nameof(faultSimulationContentWrapper)); - - using DiagnosticScope scope = _managedClustersClientDiagnostics.CreateScope("ServiceFabricManagedClusterResource.StartFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _managedClustersRestClient.CreateStartFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, FaultSimulationContentWrapper.ToRequestContent(faultSimulationContentWrapper), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - ServiceFabricManagedClustersArmOperation operation = new ServiceFabricManagedClustersArmOperation( - new FaultSimulationOperationSource(), - _managedClustersClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Starts a fault simulation on the cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/startFaultSimulation. - /// - /// - /// Operation Id. - /// ManagedClusters_StartFaultSimulation. - /// - /// - /// 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. - /// parameters describing the fault simulation. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation StartFaultSimulation(WaitUntil waitUntil, FaultSimulationContentWrapper faultSimulationContentWrapper, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(faultSimulationContentWrapper, nameof(faultSimulationContentWrapper)); - - using DiagnosticScope scope = _managedClustersClientDiagnostics.CreateScope("ServiceFabricManagedClusterResource.StartFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _managedClustersRestClient.CreateStartFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, FaultSimulationContentWrapper.ToRequestContent(faultSimulationContentWrapper), context); - Response response = Pipeline.ProcessMessage(message, context); - ServiceFabricManagedClustersArmOperation operation = new ServiceFabricManagedClustersArmOperation( - new FaultSimulationOperationSource(), - _managedClustersClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletion(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Stops a fault simulation on the cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/stopFaultSimulation. - /// - /// - /// Operation Id. - /// ManagedClusters_StopFaultSimulation. - /// - /// - /// 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. - /// parameter with fault simulation id. - /// The cancellation token to use. - /// is null. - public virtual async Task> StopFaultSimulationAsync(WaitUntil waitUntil, FaultSimulationIdContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _managedClustersClientDiagnostics.CreateScope("ServiceFabricManagedClusterResource.StopFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _managedClustersRestClient.CreateStopFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, FaultSimulationIdContent.ToRequestContent(content), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - ServiceFabricManagedClustersArmOperation operation = new ServiceFabricManagedClustersArmOperation( - new FaultSimulationOperationSource(), - _managedClustersClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Stops a fault simulation on the cluster. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/stopFaultSimulation. - /// - /// - /// Operation Id. - /// ManagedClusters_StopFaultSimulation. - /// - /// - /// 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. - /// parameter with fault simulation id. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation StopFaultSimulation(WaitUntil waitUntil, FaultSimulationIdContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _managedClustersClientDiagnostics.CreateScope("ServiceFabricManagedClusterResource.StopFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _managedClustersRestClient.CreateStopFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, FaultSimulationIdContent.ToRequestContent(content), context); - Response response = Pipeline.ProcessMessage(message, context); - ServiceFabricManagedClustersArmOperation operation = new ServiceFabricManagedClustersArmOperation( - new FaultSimulationOperationSource(), - _managedClustersClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletion(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Action to get Maintenance Window Status of the Service Fabric Managed Clusters. /// @@ -1016,7 +612,7 @@ public virtual ArmOperation StopFaultSimulation(WaitUntil waitU /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -1064,7 +660,7 @@ public virtual ArmOperation StopFaultSimulation(WaitUntil waitU /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeCollection.cs index de7246fe1882..fedcb079d67b 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeCollection.cs @@ -42,9 +42,9 @@ internal ServiceFabricManagedNodeTypeCollection(ArmClient client, ResourceIdenti { TryGetApiVersion(ServiceFabricManagedNodeTypeResource.ResourceType, out string serviceFabricManagedNodeTypeApiVersion); _nodeTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedNodeTypeResource.ResourceType.Namespace, Diagnostics); - _nodeTypesRestClient = new NodeTypes(_nodeTypesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedNodeTypeApiVersion ?? "2025-10-01-preview"); + _nodeTypesRestClient = new NodeTypes(_nodeTypesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedNodeTypeApiVersion ?? "2026-02-01"); _nodeTypeSkusClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedNodeTypeResource.ResourceType.Namespace, Diagnostics); - _nodeTypeSkusRestClient = new NodeTypeSkus(_nodeTypeSkusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedNodeTypeApiVersion ?? "2025-10-01-preview"); + _nodeTypeSkusRestClient = new NodeTypeSkus(_nodeTypeSkusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedNodeTypeApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -71,7 +71,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -129,7 +129,7 @@ public virtual async Task> Cr /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -187,7 +187,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -236,7 +236,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -285,7 +285,7 @@ public virtual Response Get(string nodeTyp /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -313,7 +313,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -341,7 +341,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -398,7 +398,7 @@ public virtual async Task> ExistsAsync(string nodeTypeName, Cance /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -455,7 +455,7 @@ public virtual Response Exists(string nodeTypeName, CancellationToken canc /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -516,7 +516,7 @@ public virtual async Task /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeData.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeData.cs index 41ca94aed848..2bdc44f131df 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeData.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeData.cs @@ -796,5 +796,22 @@ public bool? IsOutboundOnly Properties.IsOutboundOnly = value.Value; } } + + /// Specifies whether the node type should use a resilient ephemeral OS disk when using a supported SKU size. A resilient ephemeral OS disk provides improved reliability for ephemeral OS disks by enabling full caching. + public bool? EnableResilientEphemeralOsDisk + { + get + { + return Properties is null ? default : Properties.EnableResilientEphemeralOsDisk; + } + set + { + if (Properties is null) + { + Properties = new ServiceFabricManagedNodeTypeProperties(); + } + Properties.EnableResilientEphemeralOsDisk = value.Value; + } + } } } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeResource.cs index 7b8ab85b3f9a..cdd60f2dae56 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedNodeTypeResource.cs @@ -55,9 +55,9 @@ internal ServiceFabricManagedNodeTypeResource(ArmClient client, ResourceIdentifi { TryGetApiVersion(ResourceType, out string serviceFabricManagedNodeTypeApiVersion); _nodeTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _nodeTypesRestClient = new NodeTypes(_nodeTypesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedNodeTypeApiVersion ?? "2025-10-01-preview"); + _nodeTypesRestClient = new NodeTypes(_nodeTypesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedNodeTypeApiVersion ?? "2026-02-01"); _nodeTypeSkusClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _nodeTypeSkusRestClient = new NodeTypeSkus(_nodeTypeSkusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedNodeTypeApiVersion ?? "2025-10-01-preview"); + _nodeTypeSkusRestClient = new NodeTypeSkus(_nodeTypeSkusClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedNodeTypeApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -111,7 +111,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -159,7 +159,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -207,7 +207,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -266,7 +266,7 @@ public virtual async Task> Up /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -325,7 +325,7 @@ public virtual ArmOperation Update(WaitUnt /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -374,7 +374,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -423,7 +423,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -476,7 +476,7 @@ public virtual async Task DeallocateAsync(WaitUntil waitUntil, Nod /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -529,7 +529,7 @@ public virtual ArmOperation Deallocate(WaitUntil waitUntil, NodeTypeActionConten /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -582,7 +582,7 @@ public virtual async Task DeleteNodeAsync(WaitUntil waitUntil, Nod /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -622,186 +622,6 @@ public virtual ArmOperation DeleteNode(WaitUntil waitUntil, NodeTypeActionConten } } - /// - /// Gets a fault simulation by the simulationId. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/getFaultSimulation. - /// - /// - /// Operation Id. - /// NodeTypes_GetFaultSimulation. - /// - /// - /// Default Api Version. - /// 2025-10-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// parameter with fault simulation id. - /// The cancellation token to use. - /// is null. - public virtual async Task> GetFaultSimulationAsync(FaultSimulationIdContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _nodeTypesClientDiagnostics.CreateScope("ServiceFabricManagedNodeTypeResource.GetFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _nodeTypesRestClient.CreateGetFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, FaultSimulationIdContent.ToRequestContent(content), context); - Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - Response response = Response.FromValue(FaultSimulation.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets a fault simulation by the simulationId. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/getFaultSimulation. - /// - /// - /// Operation Id. - /// NodeTypes_GetFaultSimulation. - /// - /// - /// Default Api Version. - /// 2025-10-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// parameter with fault simulation id. - /// The cancellation token to use. - /// is null. - public virtual Response GetFaultSimulation(FaultSimulationIdContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _nodeTypesClientDiagnostics.CreateScope("ServiceFabricManagedNodeTypeResource.GetFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _nodeTypesRestClient.CreateGetFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, FaultSimulationIdContent.ToRequestContent(content), context); - Response result = Pipeline.ProcessMessage(message, context); - Response response = Response.FromValue(FaultSimulation.FromResponse(result), result); - if (response.Value == null) - { - throw new RequestFailedException(response.GetRawResponse()); - } - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the list of recent fault simulations for the node type. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/listFaultSimulation. - /// - /// - /// Operation Id. - /// NodeTypes_ListFaultSimulation. - /// - /// - /// Default Api Version. - /// 2025-10-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetFaultSimulationAsync(CancellationToken cancellationToken = default) - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new NodeTypesGetFaultSimulationAsyncCollectionResultOfT( - _nodeTypesRestClient, - Id.SubscriptionId, - Id.ResourceGroupName, - Id.Parent.Name, - Id.Name, - context); - } - - /// - /// Gets the list of recent fault simulations for the node type. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/listFaultSimulation. - /// - /// - /// Operation Id. - /// NodeTypes_ListFaultSimulation. - /// - /// - /// Default Api Version. - /// 2025-10-01-preview. - /// - /// - /// Resource. - /// . - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetFaultSimulation(CancellationToken cancellationToken = default) - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new NodeTypesGetFaultSimulationCollectionResultOfT( - _nodeTypesRestClient, - Id.SubscriptionId, - Id.ResourceGroupName, - Id.Parent.Name, - Id.Name, - context); - } - /// /// Redeploys one or more nodes on the node type. It will disable the fabric nodes, trigger a shut down on the VMs, move them to a new node, and power them back on. /// @@ -815,7 +635,7 @@ public virtual Pageable GetFaultSimulation(CancellationToken ca /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -868,7 +688,7 @@ public virtual async Task RedeployAsync(WaitUntil waitUntil, NodeT /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -921,7 +741,7 @@ public virtual ArmOperation Redeploy(WaitUntil waitUntil, NodeTypeActionContent /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -974,7 +794,7 @@ public virtual async Task ReimageAsync(WaitUntil waitUntil, NodeTy /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -1027,7 +847,7 @@ public virtual ArmOperation Reimage(WaitUntil waitUntil, NodeTypeActionContent c /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -1080,7 +900,7 @@ public virtual async Task RestartAsync(WaitUntil waitUntil, NodeTy /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -1133,7 +953,7 @@ public virtual ArmOperation Restart(WaitUntil waitUntil, NodeTypeActionContent c /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -1186,7 +1006,7 @@ public virtual async Task StartAsync(WaitUntil waitUntil, NodeType /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -1226,242 +1046,6 @@ public virtual ArmOperation Start(WaitUntil waitUntil, NodeTypeActionContent con } } - /// - /// Starts a fault simulation on the node type. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/startFaultSimulation. - /// - /// - /// Operation Id. - /// NodeTypes_StartFaultSimulation. - /// - /// - /// 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. - /// parameters describing the fault simulation. - /// The cancellation token to use. - /// is null. - public virtual async Task> StartFaultSimulationAsync(WaitUntil waitUntil, FaultSimulationContentWrapper faultSimulationContentWrapper, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(faultSimulationContentWrapper, nameof(faultSimulationContentWrapper)); - - using DiagnosticScope scope = _nodeTypesClientDiagnostics.CreateScope("ServiceFabricManagedNodeTypeResource.StartFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _nodeTypesRestClient.CreateStartFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, FaultSimulationContentWrapper.ToRequestContent(faultSimulationContentWrapper), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - ServiceFabricManagedClustersArmOperation operation = new ServiceFabricManagedClustersArmOperation( - new FaultSimulationOperationSource(), - _nodeTypesClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Starts a fault simulation on the node type. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/startFaultSimulation. - /// - /// - /// Operation Id. - /// NodeTypes_StartFaultSimulation. - /// - /// - /// 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. - /// parameters describing the fault simulation. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation StartFaultSimulation(WaitUntil waitUntil, FaultSimulationContentWrapper faultSimulationContentWrapper, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(faultSimulationContentWrapper, nameof(faultSimulationContentWrapper)); - - using DiagnosticScope scope = _nodeTypesClientDiagnostics.CreateScope("ServiceFabricManagedNodeTypeResource.StartFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _nodeTypesRestClient.CreateStartFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, FaultSimulationContentWrapper.ToRequestContent(faultSimulationContentWrapper), context); - Response response = Pipeline.ProcessMessage(message, context); - ServiceFabricManagedClustersArmOperation operation = new ServiceFabricManagedClustersArmOperation( - new FaultSimulationOperationSource(), - _nodeTypesClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletion(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Stops a fault simulation on the node type. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/stopFaultSimulation. - /// - /// - /// Operation Id. - /// NodeTypes_StopFaultSimulation. - /// - /// - /// 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. - /// parameter with fault simulation id. - /// The cancellation token to use. - /// is null. - public virtual async Task> StopFaultSimulationAsync(WaitUntil waitUntil, FaultSimulationIdContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _nodeTypesClientDiagnostics.CreateScope("ServiceFabricManagedNodeTypeResource.StopFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _nodeTypesRestClient.CreateStopFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, FaultSimulationIdContent.ToRequestContent(content), context); - Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); - ServiceFabricManagedClustersArmOperation operation = new ServiceFabricManagedClustersArmOperation( - new FaultSimulationOperationSource(), - _nodeTypesClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Stops a fault simulation on the node type. - /// - /// - /// Request Path. - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/stopFaultSimulation. - /// - /// - /// Operation Id. - /// NodeTypes_StopFaultSimulation. - /// - /// - /// 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. - /// parameter with fault simulation id. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation StopFaultSimulation(WaitUntil waitUntil, FaultSimulationIdContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using DiagnosticScope scope = _nodeTypesClientDiagnostics.CreateScope("ServiceFabricManagedNodeTypeResource.StopFaultSimulation"); - scope.Start(); - try - { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - HttpMessage message = _nodeTypesRestClient.CreateStopFaultSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, FaultSimulationIdContent.ToRequestContent(content), context); - Response response = Pipeline.ProcessMessage(message, context); - ServiceFabricManagedClustersArmOperation operation = new ServiceFabricManagedClustersArmOperation( - new FaultSimulationOperationSource(), - _nodeTypesClientDiagnostics, - Pipeline, - message.Request, - response, - OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - { - operation.WaitForCompletion(cancellationToken); - } - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Get a Service Fabric node type supported SKUs. /// @@ -1475,7 +1059,7 @@ public virtual ArmOperation StopFaultSimulation(WaitUntil waitU /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -1513,7 +1097,7 @@ public virtual AsyncPageable GetAvailableSkusAsync(Cancell /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceCollection.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceCollection.cs index 4a307922fd0c..6c0b3717d4dc 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceCollection.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceCollection.cs @@ -40,7 +40,7 @@ internal ServiceFabricManagedServiceCollection(ArmClient client, ResourceIdentif { TryGetApiVersion(ServiceFabricManagedServiceResource.ResourceType, out string serviceFabricManagedServiceApiVersion); _servicesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ServiceFabricManagedServiceResource.ResourceType.Namespace, Diagnostics); - _servicesRestClient = new Services(_servicesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedServiceApiVersion ?? "2025-10-01-preview"); + _servicesRestClient = new Services(_servicesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedServiceApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -67,7 +67,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -125,7 +125,7 @@ public virtual async Task> Cre /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -183,7 +183,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -232,7 +232,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -281,7 +281,7 @@ public virtual Response Get(string serviceN /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -315,7 +315,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -349,7 +349,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -406,7 +406,7 @@ public virtual async Task> ExistsAsync(string serviceName, Cancel /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -463,7 +463,7 @@ public virtual Response Exists(string serviceName, CancellationToken cance /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// @@ -524,7 +524,7 @@ public virtual async Task> /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceResource.cs index cf41d1f31c1c..10d42fbb2354 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Generated/ServiceFabricManagedServiceResource.cs @@ -53,7 +53,7 @@ internal ServiceFabricManagedServiceResource(ArmClient client, ResourceIdentifie { TryGetApiVersion(ResourceType, out string serviceFabricManagedServiceApiVersion); _servicesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ServiceFabricManagedClusters", ResourceType.Namespace, Diagnostics); - _servicesRestClient = new Services(_servicesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedServiceApiVersion ?? "2025-10-01-preview"); + _servicesRestClient = new Services(_servicesClientDiagnostics, Pipeline, Endpoint, serviceFabricManagedServiceApiVersion ?? "2026-02-01"); ValidateResourceId(id); } @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -156,7 +156,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -204,7 +204,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -256,7 +256,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -308,7 +308,7 @@ public virtual Response Update(ServiceFabri /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -357,7 +357,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -406,7 +406,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. @@ -459,7 +459,7 @@ public virtual async Task RestartReplicaAsync(WaitUntil waitUntil, /// /// /// Default Api Version. - /// 2025-10-01-preview. + /// 2026-02-01. /// /// /// Resource. diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tsp-location.yaml b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tsp-location.yaml index 1d4fa5ae0032..86a635a3a5ad 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tsp-location.yaml +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tsp-location.yaml @@ -1,4 +1,6 @@ directory: specification/servicefabricmanagedclusters/resource-manager/Microsoft.ServiceFabric/ServiceFabricManagedClusters -commit: b287d44e9793aa5facd4a4352587f975d387b745 +commit: 57a2504930224552a409d9435d523e631a6c93e2 repo: Azure/azure-rest-api-specs -emitterPackageJsonPath: eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json +additionalDirectories: + +emitterPackageJsonPath: eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json \ No newline at end of file From 703573517c834f850b339da37d4a2933d71745a9 Mon Sep 17 00:00:00 2001 From: Ivy Liu Date: Mon, 2 Mar 2026 18:10:26 -0800 Subject: [PATCH 2/6] remove preview content, edit changelog, refresh api docs --- .../CHANGELOG.md | 10 +- ...er.ServiceFabricManagedClusters.net10.0.cs | 179 +----------------- ...ger.ServiceFabricManagedClusters.net8.0.cs | 179 +----------------- ...iceFabricManagedClusters.netstandard2.0.cs | 179 +----------------- .../Models/FaultSimulationContent.cs | 16 -- .../Models/FaultSimulationDetails.cs | 16 -- 6 files changed, 17 insertions(+), 562 deletions(-) delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/Models/FaultSimulationContent.cs delete mode 100644 sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/Models/FaultSimulationDetails.cs diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md index 101eede9111e..ab948d886b5f 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md @@ -1,14 +1,14 @@ # Release History -## 1.3.0-beta.6 (Unreleased) +## 1.3.0 (Unreleased) ### Features Added +- Upgraded to API version 2026-02-01 (stable). +- Added `SkipManagedNsgAssignment` property to `ServiceFabricManagedClusterData`. +- Added `EnableResilientEphemeralOsDisk` property to `ServiceFabricManagedNodeTypeData` ### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Removed preview-only fault simulation types (`NodeTypeFaultSimulation`, `FaultSimulationStatus`, `SfmcOperationStatus`). ## 1.3.0-beta.5 (2025-11-19) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.net10.0.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.net10.0.cs index ab42a02267bf..267f0b1811f0 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.net10.0.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/api/Azure.ResourceManager.ServiceFabricManagedClusters.net10.0.cs @@ -260,6 +260,7 @@ public ServiceFabricManagedClusterData(Azure.Core.AzureLocation location, Azure. public Azure.Core.ResourceIdentifier PublicIPPrefixId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier PublicIPv6PrefixId { get { throw null; } set { } } public System.Collections.Generic.IList ServiceEndpoints { get { throw null; } } + public bool? SkipManagedNsgAssignment { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? SkuName { get { throw null; } set { } } public string SubnetId { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy UpgradeDescription { get { throw null; } set { } } @@ -289,10 +290,6 @@ protected ServiceFabricManagedClusterResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFaultSimulation(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetFaultSimulation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFaultSimulationAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFaultSimulationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetManagedAzResiliencyStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetManagedAzResiliencyStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetManagedMaintenanceWindowStatu(System.Threading.CancellationToken cancellationToken) { throw null; } @@ -314,10 +311,6 @@ protected ServiceFabricManagedClusterResource() { } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, 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; } - public virtual Azure.ResourceManager.ArmOperation StartFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StartFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StopFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StopFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData 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.ServiceFabricManagedClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -383,6 +376,7 @@ public ServiceFabricManagedNodeTypeData() { } public int? DataDiskSizeInGB { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? DataDiskType { get { throw null; } set { } } public Azure.Core.ResourceIdentifier DscpConfigurationId { get { throw null; } set { } } + public bool? EnableResilientEphemeralOsDisk { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription EphemeralPorts { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? EvictionPolicy { get { throw null; } set { } } public System.Collections.Generic.IList FrontendConfigurations { get { throw null; } } @@ -458,10 +452,6 @@ protected ServiceFabricManagedNodeTypeResource() { } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAvailableSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAvailableSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFaultSimulation(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetFaultSimulation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFaultSimulationAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFaultSimulationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Redeploy(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RedeployAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Reimage(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -474,10 +464,6 @@ protected ServiceFabricManagedNodeTypeResource() { } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StartFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StartFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StopFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StopFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData 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.ServiceFabricManagedNodeTypeData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -700,10 +686,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.AdditionalNetworkInterfaceConfiguration AdditionalNetworkInterfaceConfiguration(string name = null, bool? enableAcceleratedNetworking = default(bool?), Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable ipConfigurations = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationHealthPolicy ApplicationHealthPolicy(bool considerWarningAsError = false, int maxPercentUnhealthyDeployedApplications = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceTypeHealthPolicy defaultServiceTypeHealthPolicy = null, System.Collections.Generic.IDictionary serviceTypeHealthPolicyMap = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ClusterFabricSettingsSection ClusterFabricSettingsSection(string name = null, System.Collections.Generic.IEnumerable parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation FaultSimulation(string simulationId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? status = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails details = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper FaultSimulationContentWrapper(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails FaultSimulationDetails(string clusterId = null, string operationId = null, System.Collections.Generic.IEnumerable nodeTypeFaultSimulation = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent FaultSimulationIdContent(string simulationId = null) { throw null; } 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.ManagedClusterServiceEndpoint ManagedClusterServiceEndpoint(string service = null, System.Collections.Generic.IEnumerable locations = null, Azure.Core.ResourceIdentifier networkIdentifier = null) { 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; } @@ -713,7 +695,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NamedPartitionScheme NamedPartitionScheme(System.Collections.Generic.IEnumerable names = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent NodeTypeActionContent(System.Collections.Generic.IEnumerable nodes = null, bool? isForced = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterUpdateType? updateType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterUpdateType?)) { 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.NodeTypeVaultSecretGroup NodeTypeVaultSecretGroup(Azure.ResourceManager.Resources.Models.WritableSubResource sourceVault = null, System.Collections.Generic.IEnumerable vaultCertificates = null) { throw null; } @@ -732,14 +713,14 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedApplicationTypeVersionData ServiceFabricManagedApplicationTypeVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string provisioningState = null, System.Uri appPackageUri = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationTypeVersionPatch ServiceFabricManagedApplicationTypeVersionPatch(System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName, string dnsName, string fqdn, System.Net.IPAddress ipv4Address, System.Guid? clusterId, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState, System.Collections.Generic.IEnumerable clusterCertificateThumbprints, int? clientConnectionPort, int? httpGatewayConnectionPort, string adminUserName, string adminPassword, System.Collections.Generic.IEnumerable loadBalancingRules, bool? isRdpAccessAllowed, System.Collections.Generic.IEnumerable networkSecurityRules, System.Collections.Generic.IEnumerable clients, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory, System.Collections.Generic.IEnumerable fabricSettings, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState, string clusterCodeVersion, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence, System.Collections.Generic.IEnumerable addOnFeatures, bool? isAutoOSUpgradeEnabled, bool? hasZoneResiliency, int? maxUnusedVersionsToKeep, bool? isIPv6Enabled, string subnetId, System.Collections.Generic.IEnumerable ipTags, System.Net.IPAddress ipv6Address, bool? isServicePublicIPEnabled, System.Collections.Generic.IEnumerable auxiliarySubnets, System.Collections.Generic.IEnumerable serviceEndpoints, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode, bool? useCustomVnet, Azure.Core.ResourceIdentifier publicIPPrefixId, Azure.Core.ResourceIdentifier publicIPv6PrefixId, Azure.Core.ResourceIdentifier ddosProtectionPlanId, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription, int? httpGatewayTokenAuthConnectionPort, bool? isHttpGatewayExclusiveAuthModeEnabled, Azure.ETag? etag) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string dnsName = null, string fqdn = null, System.Net.IPAddress iPv4Address = null, System.Guid? clusterId = default(System.Guid?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState?), System.Collections.Generic.IEnumerable clusterCertificateThumbprints = null, int? clientConnectionPort = default(int?), int? httpGatewayConnectionPort = default(int?), string adminUserName = null, string adminPassword = null, System.Collections.Generic.IEnumerable loadBalancingRules = null, bool? isRdpAccessAllowed = default(bool?), System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable clients = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory = null, System.Collections.Generic.IEnumerable fabricSettings = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), string clusterCodeVersion = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence?), System.Collections.Generic.IEnumerable addOnFeatures = null, bool? isAutoOSUpgradeEnabled = default(bool?), bool? hasZoneResiliency = default(bool?), bool? isIPv6Enabled = default(bool?), string subnetId = null, System.Collections.Generic.IEnumerable ipTags = null, System.Net.IPAddress iPv6Address = null, bool? isServicePublicIPEnabled = default(bool?), System.Collections.Generic.IEnumerable auxiliarySubnets = null, System.Collections.Generic.IEnumerable serviceEndpoints = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode?), bool? useCustomVnet = default(bool?), Azure.Core.ResourceIdentifier publicIPPrefixId = null, Azure.Core.ResourceIdentifier publicIPv6PrefixId = null, Azure.Core.ResourceIdentifier ddosProtectionPlanId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription = null, int? httpGatewayTokenAuthConnectionPort = default(int?), bool? isHttpGatewayExclusiveAuthModeEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope?), int? allocatedOutboundPorts = default(int?), string vmImage = null, bool? enableOutboundOnlyNodeTypes = default(bool?), int? maxUnusedVersionsToKeep = default(int?), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName?)) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string dnsName = null, string fqdn = null, System.Net.IPAddress iPv4Address = null, System.Guid? clusterId = default(System.Guid?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState?), System.Collections.Generic.IEnumerable clusterCertificateThumbprints = null, int? clientConnectionPort = default(int?), int? httpGatewayConnectionPort = default(int?), string adminUserName = null, string adminPassword = null, System.Collections.Generic.IEnumerable loadBalancingRules = null, bool? isRdpAccessAllowed = default(bool?), System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable clients = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory = null, System.Collections.Generic.IEnumerable fabricSettings = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), string clusterCodeVersion = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence?), System.Collections.Generic.IEnumerable addOnFeatures = null, bool? isAutoOSUpgradeEnabled = default(bool?), bool? hasZoneResiliency = default(bool?), bool? isIPv6Enabled = default(bool?), string subnetId = null, System.Collections.Generic.IEnumerable ipTags = null, System.Net.IPAddress iPv6Address = null, bool? isServicePublicIPEnabled = default(bool?), System.Collections.Generic.IEnumerable auxiliarySubnets = null, System.Collections.Generic.IEnumerable serviceEndpoints = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode?), bool? useCustomVnet = default(bool?), Azure.Core.ResourceIdentifier publicIPPrefixId = null, Azure.Core.ResourceIdentifier publicIPv6PrefixId = null, Azure.Core.ResourceIdentifier ddosProtectionPlanId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription = null, int? httpGatewayTokenAuthConnectionPort = default(int?), bool? isHttpGatewayExclusiveAuthModeEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope?), int? allocatedOutboundPorts = default(int?), string vmImage = null, bool? enableOutboundOnlyNodeTypes = default(bool?), bool? skipManagedNsgAssignment = default(bool?), int? maxUnusedVersionsToKeep = default(int?), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterIPConfiguration ServiceFabricManagedClusterIPConfiguration(string name = null, System.Collections.Generic.IEnumerable applicationGatewayBackendAddressPools = null, System.Collections.Generic.IEnumerable loadBalancerBackendAddressPools = null, System.Collections.Generic.IEnumerable loadBalancerInboundNatPools = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPrivateIPAddressVersion? privateIPAddressVersion = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPrivateIPAddressVersion?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressConfiguration publicIPAddressConfiguration = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch ServiceFabricManagedClusterPatch(System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressConfiguration ServiceFabricManagedClusterPublicIPAddressConfiguration(string name = null, System.Collections.Generic.IEnumerable ipTags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressVersion? publicIPAddressVersion = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressVersion?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterVersion ServiceFabricManagedClusterVersion(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string clusterCodeVersion = null, System.DateTimeOffset? versionSupportExpireOn = default(System.DateTimeOffset?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterOSType? osType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterOSType?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule ServiceFabricManagedNetworkSecurityRule(string name = null, string description = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol protocol = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol), System.Collections.Generic.IEnumerable sourceAddressPrefixes = null, System.Collections.Generic.IEnumerable destinationAddressPrefixes = null, System.Collections.Generic.IEnumerable sourcePortRanges = null, System.Collections.Generic.IEnumerable destinationPortRanges = null, string sourceAddressPrefix = null, string destinationAddressPrefix = null, string sourcePortRange = null, string destinationPortRange = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess access = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess), int priority = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection direction = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku, bool? isPrimary, int? vmInstanceCount, int? dataDiskSizeInGB, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType, string dataDiskLetter, System.Collections.Generic.IDictionary placementProperties, System.Collections.Generic.IDictionary capacities, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts, string vmSize, string vmImagePublisher, string vmImageOffer, string vmImageSku, string vmImageVersion, System.Collections.Generic.IEnumerable vmSecrets, System.Collections.Generic.IEnumerable vmExtensions, System.Collections.Generic.IEnumerable userAssignedIdentities, bool? isStateless, bool? hasMultiplePlacementGroups, System.Collections.Generic.IEnumerable frontendConfigurations, System.Collections.Generic.IEnumerable networkSecurityRules, System.Collections.Generic.IEnumerable additionalDataDisks, bool? isEncryptionAtHostEnabled, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState, bool? isAcceleratedNetworkingEnabled, bool? useDefaultPublicLoadBalancer, bool? useTempDataDisk, bool? isOverProvisioningEnabled, System.Collections.Generic.IEnumerable zones, bool? isSpotVm, string hostGroupId, bool? useEphemeralOSDisk, string spotRestoreTimeout, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy, Azure.Core.ResourceIdentifier vmImageResourceId, Azure.Core.ResourceIdentifier subnetId, System.Collections.Generic.IEnumerable vmSetupActions, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType, bool? isSecureBootEnabled, bool? isNodePublicIPEnabled, bool? isNodePublicIPv6Enabled, Azure.Core.ResourceIdentifier vmSharedGalleryImageId, Azure.Core.ResourceIdentifier natGatewayId, System.Collections.Generic.IEnumerable natConfigurations, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan, Azure.Core.ResourceIdentifier serviceArtifactReferenceId, Azure.Core.ResourceIdentifier dscpConfigurationId, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations, string computerNamePrefix, System.Collections.Generic.IDictionary tags) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isPrimary = default(bool?), int? vmInstanceCount = default(int?), int? dataDiskSizeInGB = default(int?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType?), string dataDiskLetter = null, System.Collections.Generic.IDictionary placementProperties = null, System.Collections.Generic.IDictionary capacities = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts = null, string vmSize = null, string vmImagePublisher = null, string vmImageOffer = null, string vmImageSku = null, string vmImageVersion = null, System.Collections.Generic.IEnumerable vmSecrets = null, System.Collections.Generic.IEnumerable vmExtensions = null, bool? isStateless = default(bool?), bool? hasMultiplePlacementGroups = default(bool?), System.Collections.Generic.IEnumerable frontendConfigurations = null, System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable additionalDataDisks = null, bool? isEncryptionAtHostEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), bool? isAcceleratedNetworkingEnabled = default(bool?), bool? useDefaultPublicLoadBalancer = default(bool?), bool? useTempDataDisk = default(bool?), bool? isOverProvisioningEnabled = default(bool?), System.Collections.Generic.IEnumerable zones = null, bool? isSpotVm = default(bool?), string hostGroupId = null, bool? useEphemeralOSDisk = default(bool?), string spotRestoreTimeout = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType?), Azure.Core.ResourceIdentifier vmImageResourceId = null, Azure.Core.ResourceIdentifier subnetId = null, System.Collections.Generic.IEnumerable vmSetupActions = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType? securityEncryptionType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType?), bool? isSecureBootEnabled = default(bool?), bool? isNodePublicIPEnabled = default(bool?), bool? isNodePublicIPv6Enabled = default(bool?), Azure.Core.ResourceIdentifier vmSharedGalleryImageId = null, Azure.Core.ResourceIdentifier natGatewayId = null, System.Collections.Generic.IEnumerable natConfigurations = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan = null, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = null, Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations = null, string computerNamePrefix = null, System.Collections.Generic.IEnumerable vmApplications = null, bool? isZoneBalanceEnabled = default(bool?), bool? isOutboundOnly = default(bool?), System.Collections.Generic.IEnumerable vmManagedIdentityUserAssignedIdentities = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isPrimary = default(bool?), int? vmInstanceCount = default(int?), int? dataDiskSizeInGB = default(int?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType?), string dataDiskLetter = null, System.Collections.Generic.IDictionary placementProperties = null, System.Collections.Generic.IDictionary capacities = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts = null, string vmSize = null, string vmImagePublisher = null, string vmImageOffer = null, string vmImageSku = null, string vmImageVersion = null, System.Collections.Generic.IEnumerable vmSecrets = null, System.Collections.Generic.IEnumerable vmExtensions = null, bool? isStateless = default(bool?), bool? hasMultiplePlacementGroups = default(bool?), System.Collections.Generic.IEnumerable frontendConfigurations = null, System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable additionalDataDisks = null, bool? isEncryptionAtHostEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), bool? isAcceleratedNetworkingEnabled = default(bool?), bool? useDefaultPublicLoadBalancer = default(bool?), bool? useTempDataDisk = default(bool?), bool? isOverProvisioningEnabled = default(bool?), System.Collections.Generic.IEnumerable zones = null, bool? isSpotVm = default(bool?), string hostGroupId = null, bool? useEphemeralOSDisk = default(bool?), string spotRestoreTimeout = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType?), Azure.Core.ResourceIdentifier vmImageResourceId = null, Azure.Core.ResourceIdentifier subnetId = null, System.Collections.Generic.IEnumerable vmSetupActions = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType? securityEncryptionType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType?), bool? isSecureBootEnabled = default(bool?), bool? isNodePublicIPEnabled = default(bool?), bool? isNodePublicIPv6Enabled = default(bool?), Azure.Core.ResourceIdentifier vmSharedGalleryImageId = null, Azure.Core.ResourceIdentifier natGatewayId = null, System.Collections.Generic.IEnumerable natConfigurations = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan = null, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = null, Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations = null, string computerNamePrefix = null, System.Collections.Generic.IEnumerable vmApplications = null, bool? isZoneBalanceEnabled = default(bool?), bool? isOutboundOnly = default(bool?), bool? enableResilientEphemeralOsDisk = default(bool?), System.Collections.Generic.IEnumerable vmManagedIdentityUserAssignedIdentities = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNodeTypePatch ServiceFabricManagedNodeTypePatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceData ServiceFabricManagedServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceProperties properties = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServicePatch ServiceFabricManagedServicePatch(System.Collections.Generic.IDictionary tags = null) { throw null; } @@ -747,7 +728,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedUnsupportedVmSize ServiceFabricManagedUnsupportedVmSize(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string vmSize) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatefulServiceProperties StatefulServiceProperties(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 serviceTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode?), string serviceDnsName = null, bool? hasPersistedState = default(bool?), int? targetReplicaSetSize = default(int?), int? minReplicaSetSize = default(int?), System.TimeSpan? replicaRestartWaitDuration = default(System.TimeSpan?), System.TimeSpan? quorumLossWaitDuration = default(System.TimeSpan?), System.TimeSpan? standByReplicaKeepDuration = default(System.TimeSpan?), System.TimeSpan? servicePlacementTimeLimit = default(System.TimeSpan?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatelessServiceProperties StatelessServiceProperties(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 serviceTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode?), string serviceDnsName = null, int instanceCount = 0, int? minInstanceCount = default(int?), int? minInstancePercentage = default(int?)) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZoneFaultSimulationContent ZoneFaultSimulationContent(bool? isForced = default(bool?), System.DateTimeOffset? constraintsExpireOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable zones = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AutoGeneratedDomainNameLabelScope : System.IEquatable @@ -848,105 +828,6 @@ 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 FaultSimulation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal FaultSimulation() { } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails Details { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public string SimulationId { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? Status { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation 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.FaultSimulation 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 FaultSimulationContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected FaultSimulationContent() { } - public System.DateTimeOffset? ConstraintsExpireOn { get { throw null; } set { } } - public bool? IsForced { get { throw null; } set { } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent 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.FaultSimulationContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationContentWrapper : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public FaultSimulationContentWrapper(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters) { } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper 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.FaultSimulationContentWrapper System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal FaultSimulationDetails() { } - public string ClusterId { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NodeTypeFaultSimulation { get { throw null; } } - public string OperationId { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails 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.FaultSimulationDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationIdContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public FaultSimulationIdContent(string simulationId) { } - public string SimulationId { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent 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.FaultSimulationIdContent 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 FaultSimulationStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public FaultSimulationStatus(string value) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Active { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Done { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus StartFailed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Starting { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus StopFailed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Stopping { get { throw null; } } - public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus other) { throw null; } - public override bool Equals(object obj) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus right) { throw null; } - public override string ToString() { throw null; } - } public partial class ManagedAzResiliencyStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal ManagedAzResiliencyStatus() { } @@ -1578,23 +1459,6 @@ 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 NodeTypeFaultSimulation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NodeTypeFaultSimulation() { } - public string NodeTypeName { get { throw null; } } - public string OperationId { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus? OperationStatus { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? Status { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation 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.NodeTypeFaultSimulation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class NodeTypeFrontendConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NodeTypeFrontendConfiguration() { } @@ -2601,27 +2465,6 @@ 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; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SfmcOperationStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SfmcOperationStatus(string value) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Aborted { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Canceled { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Created { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Failed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Started { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus other) { throw null; } - public override bool Equals(object obj) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus right) { throw null; } - public override string ToString() { throw null; } - } public partial class SingletonPartitionScheme : Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SingletonPartitionScheme() { } @@ -2771,18 +2614,4 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode right) { throw null; } public override string ToString() { throw null; } } - public partial class ZoneFaultSimulationContent : Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ZoneFaultSimulationContent() { } - public System.Collections.Generic.IList Zones { get { throw null; } } - protected override Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected override Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZoneFaultSimulationContent 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.ZoneFaultSimulationContent 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; } - } } 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 ab42a02267bf..267f0b1811f0 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 @@ -260,6 +260,7 @@ public ServiceFabricManagedClusterData(Azure.Core.AzureLocation location, Azure. public Azure.Core.ResourceIdentifier PublicIPPrefixId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier PublicIPv6PrefixId { get { throw null; } set { } } public System.Collections.Generic.IList ServiceEndpoints { get { throw null; } } + public bool? SkipManagedNsgAssignment { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? SkuName { get { throw null; } set { } } public string SubnetId { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy UpgradeDescription { get { throw null; } set { } } @@ -289,10 +290,6 @@ protected ServiceFabricManagedClusterResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFaultSimulation(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetFaultSimulation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFaultSimulationAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFaultSimulationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetManagedAzResiliencyStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetManagedAzResiliencyStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetManagedMaintenanceWindowStatu(System.Threading.CancellationToken cancellationToken) { throw null; } @@ -314,10 +311,6 @@ protected ServiceFabricManagedClusterResource() { } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, 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; } - public virtual Azure.ResourceManager.ArmOperation StartFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StartFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StopFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StopFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData 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.ServiceFabricManagedClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -383,6 +376,7 @@ public ServiceFabricManagedNodeTypeData() { } public int? DataDiskSizeInGB { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? DataDiskType { get { throw null; } set { } } public Azure.Core.ResourceIdentifier DscpConfigurationId { get { throw null; } set { } } + public bool? EnableResilientEphemeralOsDisk { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription EphemeralPorts { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? EvictionPolicy { get { throw null; } set { } } public System.Collections.Generic.IList FrontendConfigurations { get { throw null; } } @@ -458,10 +452,6 @@ protected ServiceFabricManagedNodeTypeResource() { } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAvailableSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAvailableSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFaultSimulation(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetFaultSimulation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFaultSimulationAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFaultSimulationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Redeploy(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RedeployAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Reimage(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -474,10 +464,6 @@ protected ServiceFabricManagedNodeTypeResource() { } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StartFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StartFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StopFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StopFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData 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.ServiceFabricManagedNodeTypeData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -700,10 +686,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.AdditionalNetworkInterfaceConfiguration AdditionalNetworkInterfaceConfiguration(string name = null, bool? enableAcceleratedNetworking = default(bool?), Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable ipConfigurations = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationHealthPolicy ApplicationHealthPolicy(bool considerWarningAsError = false, int maxPercentUnhealthyDeployedApplications = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceTypeHealthPolicy defaultServiceTypeHealthPolicy = null, System.Collections.Generic.IDictionary serviceTypeHealthPolicyMap = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ClusterFabricSettingsSection ClusterFabricSettingsSection(string name = null, System.Collections.Generic.IEnumerable parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation FaultSimulation(string simulationId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? status = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails details = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper FaultSimulationContentWrapper(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails FaultSimulationDetails(string clusterId = null, string operationId = null, System.Collections.Generic.IEnumerable nodeTypeFaultSimulation = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent FaultSimulationIdContent(string simulationId = null) { throw null; } 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.ManagedClusterServiceEndpoint ManagedClusterServiceEndpoint(string service = null, System.Collections.Generic.IEnumerable locations = null, Azure.Core.ResourceIdentifier networkIdentifier = null) { 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; } @@ -713,7 +695,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NamedPartitionScheme NamedPartitionScheme(System.Collections.Generic.IEnumerable names = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent NodeTypeActionContent(System.Collections.Generic.IEnumerable nodes = null, bool? isForced = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterUpdateType? updateType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterUpdateType?)) { 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.NodeTypeVaultSecretGroup NodeTypeVaultSecretGroup(Azure.ResourceManager.Resources.Models.WritableSubResource sourceVault = null, System.Collections.Generic.IEnumerable vaultCertificates = null) { throw null; } @@ -732,14 +713,14 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedApplicationTypeVersionData ServiceFabricManagedApplicationTypeVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string provisioningState = null, System.Uri appPackageUri = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationTypeVersionPatch ServiceFabricManagedApplicationTypeVersionPatch(System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName, string dnsName, string fqdn, System.Net.IPAddress ipv4Address, System.Guid? clusterId, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState, System.Collections.Generic.IEnumerable clusterCertificateThumbprints, int? clientConnectionPort, int? httpGatewayConnectionPort, string adminUserName, string adminPassword, System.Collections.Generic.IEnumerable loadBalancingRules, bool? isRdpAccessAllowed, System.Collections.Generic.IEnumerable networkSecurityRules, System.Collections.Generic.IEnumerable clients, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory, System.Collections.Generic.IEnumerable fabricSettings, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState, string clusterCodeVersion, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence, System.Collections.Generic.IEnumerable addOnFeatures, bool? isAutoOSUpgradeEnabled, bool? hasZoneResiliency, int? maxUnusedVersionsToKeep, bool? isIPv6Enabled, string subnetId, System.Collections.Generic.IEnumerable ipTags, System.Net.IPAddress ipv6Address, bool? isServicePublicIPEnabled, System.Collections.Generic.IEnumerable auxiliarySubnets, System.Collections.Generic.IEnumerable serviceEndpoints, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode, bool? useCustomVnet, Azure.Core.ResourceIdentifier publicIPPrefixId, Azure.Core.ResourceIdentifier publicIPv6PrefixId, Azure.Core.ResourceIdentifier ddosProtectionPlanId, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription, int? httpGatewayTokenAuthConnectionPort, bool? isHttpGatewayExclusiveAuthModeEnabled, Azure.ETag? etag) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string dnsName = null, string fqdn = null, System.Net.IPAddress iPv4Address = null, System.Guid? clusterId = default(System.Guid?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState?), System.Collections.Generic.IEnumerable clusterCertificateThumbprints = null, int? clientConnectionPort = default(int?), int? httpGatewayConnectionPort = default(int?), string adminUserName = null, string adminPassword = null, System.Collections.Generic.IEnumerable loadBalancingRules = null, bool? isRdpAccessAllowed = default(bool?), System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable clients = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory = null, System.Collections.Generic.IEnumerable fabricSettings = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), string clusterCodeVersion = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence?), System.Collections.Generic.IEnumerable addOnFeatures = null, bool? isAutoOSUpgradeEnabled = default(bool?), bool? hasZoneResiliency = default(bool?), bool? isIPv6Enabled = default(bool?), string subnetId = null, System.Collections.Generic.IEnumerable ipTags = null, System.Net.IPAddress iPv6Address = null, bool? isServicePublicIPEnabled = default(bool?), System.Collections.Generic.IEnumerable auxiliarySubnets = null, System.Collections.Generic.IEnumerable serviceEndpoints = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode?), bool? useCustomVnet = default(bool?), Azure.Core.ResourceIdentifier publicIPPrefixId = null, Azure.Core.ResourceIdentifier publicIPv6PrefixId = null, Azure.Core.ResourceIdentifier ddosProtectionPlanId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription = null, int? httpGatewayTokenAuthConnectionPort = default(int?), bool? isHttpGatewayExclusiveAuthModeEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope?), int? allocatedOutboundPorts = default(int?), string vmImage = null, bool? enableOutboundOnlyNodeTypes = default(bool?), int? maxUnusedVersionsToKeep = default(int?), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName?)) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string dnsName = null, string fqdn = null, System.Net.IPAddress iPv4Address = null, System.Guid? clusterId = default(System.Guid?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState?), System.Collections.Generic.IEnumerable clusterCertificateThumbprints = null, int? clientConnectionPort = default(int?), int? httpGatewayConnectionPort = default(int?), string adminUserName = null, string adminPassword = null, System.Collections.Generic.IEnumerable loadBalancingRules = null, bool? isRdpAccessAllowed = default(bool?), System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable clients = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory = null, System.Collections.Generic.IEnumerable fabricSettings = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), string clusterCodeVersion = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence?), System.Collections.Generic.IEnumerable addOnFeatures = null, bool? isAutoOSUpgradeEnabled = default(bool?), bool? hasZoneResiliency = default(bool?), bool? isIPv6Enabled = default(bool?), string subnetId = null, System.Collections.Generic.IEnumerable ipTags = null, System.Net.IPAddress iPv6Address = null, bool? isServicePublicIPEnabled = default(bool?), System.Collections.Generic.IEnumerable auxiliarySubnets = null, System.Collections.Generic.IEnumerable serviceEndpoints = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode?), bool? useCustomVnet = default(bool?), Azure.Core.ResourceIdentifier publicIPPrefixId = null, Azure.Core.ResourceIdentifier publicIPv6PrefixId = null, Azure.Core.ResourceIdentifier ddosProtectionPlanId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription = null, int? httpGatewayTokenAuthConnectionPort = default(int?), bool? isHttpGatewayExclusiveAuthModeEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope?), int? allocatedOutboundPorts = default(int?), string vmImage = null, bool? enableOutboundOnlyNodeTypes = default(bool?), bool? skipManagedNsgAssignment = default(bool?), int? maxUnusedVersionsToKeep = default(int?), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterIPConfiguration ServiceFabricManagedClusterIPConfiguration(string name = null, System.Collections.Generic.IEnumerable applicationGatewayBackendAddressPools = null, System.Collections.Generic.IEnumerable loadBalancerBackendAddressPools = null, System.Collections.Generic.IEnumerable loadBalancerInboundNatPools = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPrivateIPAddressVersion? privateIPAddressVersion = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPrivateIPAddressVersion?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressConfiguration publicIPAddressConfiguration = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch ServiceFabricManagedClusterPatch(System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressConfiguration ServiceFabricManagedClusterPublicIPAddressConfiguration(string name = null, System.Collections.Generic.IEnumerable ipTags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressVersion? publicIPAddressVersion = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressVersion?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterVersion ServiceFabricManagedClusterVersion(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string clusterCodeVersion = null, System.DateTimeOffset? versionSupportExpireOn = default(System.DateTimeOffset?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterOSType? osType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterOSType?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule ServiceFabricManagedNetworkSecurityRule(string name = null, string description = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol protocol = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol), System.Collections.Generic.IEnumerable sourceAddressPrefixes = null, System.Collections.Generic.IEnumerable destinationAddressPrefixes = null, System.Collections.Generic.IEnumerable sourcePortRanges = null, System.Collections.Generic.IEnumerable destinationPortRanges = null, string sourceAddressPrefix = null, string destinationAddressPrefix = null, string sourcePortRange = null, string destinationPortRange = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess access = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess), int priority = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection direction = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku, bool? isPrimary, int? vmInstanceCount, int? dataDiskSizeInGB, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType, string dataDiskLetter, System.Collections.Generic.IDictionary placementProperties, System.Collections.Generic.IDictionary capacities, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts, string vmSize, string vmImagePublisher, string vmImageOffer, string vmImageSku, string vmImageVersion, System.Collections.Generic.IEnumerable vmSecrets, System.Collections.Generic.IEnumerable vmExtensions, System.Collections.Generic.IEnumerable userAssignedIdentities, bool? isStateless, bool? hasMultiplePlacementGroups, System.Collections.Generic.IEnumerable frontendConfigurations, System.Collections.Generic.IEnumerable networkSecurityRules, System.Collections.Generic.IEnumerable additionalDataDisks, bool? isEncryptionAtHostEnabled, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState, bool? isAcceleratedNetworkingEnabled, bool? useDefaultPublicLoadBalancer, bool? useTempDataDisk, bool? isOverProvisioningEnabled, System.Collections.Generic.IEnumerable zones, bool? isSpotVm, string hostGroupId, bool? useEphemeralOSDisk, string spotRestoreTimeout, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy, Azure.Core.ResourceIdentifier vmImageResourceId, Azure.Core.ResourceIdentifier subnetId, System.Collections.Generic.IEnumerable vmSetupActions, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType, bool? isSecureBootEnabled, bool? isNodePublicIPEnabled, bool? isNodePublicIPv6Enabled, Azure.Core.ResourceIdentifier vmSharedGalleryImageId, Azure.Core.ResourceIdentifier natGatewayId, System.Collections.Generic.IEnumerable natConfigurations, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan, Azure.Core.ResourceIdentifier serviceArtifactReferenceId, Azure.Core.ResourceIdentifier dscpConfigurationId, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations, string computerNamePrefix, System.Collections.Generic.IDictionary tags) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isPrimary = default(bool?), int? vmInstanceCount = default(int?), int? dataDiskSizeInGB = default(int?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType?), string dataDiskLetter = null, System.Collections.Generic.IDictionary placementProperties = null, System.Collections.Generic.IDictionary capacities = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts = null, string vmSize = null, string vmImagePublisher = null, string vmImageOffer = null, string vmImageSku = null, string vmImageVersion = null, System.Collections.Generic.IEnumerable vmSecrets = null, System.Collections.Generic.IEnumerable vmExtensions = null, bool? isStateless = default(bool?), bool? hasMultiplePlacementGroups = default(bool?), System.Collections.Generic.IEnumerable frontendConfigurations = null, System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable additionalDataDisks = null, bool? isEncryptionAtHostEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), bool? isAcceleratedNetworkingEnabled = default(bool?), bool? useDefaultPublicLoadBalancer = default(bool?), bool? useTempDataDisk = default(bool?), bool? isOverProvisioningEnabled = default(bool?), System.Collections.Generic.IEnumerable zones = null, bool? isSpotVm = default(bool?), string hostGroupId = null, bool? useEphemeralOSDisk = default(bool?), string spotRestoreTimeout = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType?), Azure.Core.ResourceIdentifier vmImageResourceId = null, Azure.Core.ResourceIdentifier subnetId = null, System.Collections.Generic.IEnumerable vmSetupActions = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType? securityEncryptionType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType?), bool? isSecureBootEnabled = default(bool?), bool? isNodePublicIPEnabled = default(bool?), bool? isNodePublicIPv6Enabled = default(bool?), Azure.Core.ResourceIdentifier vmSharedGalleryImageId = null, Azure.Core.ResourceIdentifier natGatewayId = null, System.Collections.Generic.IEnumerable natConfigurations = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan = null, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = null, Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations = null, string computerNamePrefix = null, System.Collections.Generic.IEnumerable vmApplications = null, bool? isZoneBalanceEnabled = default(bool?), bool? isOutboundOnly = default(bool?), System.Collections.Generic.IEnumerable vmManagedIdentityUserAssignedIdentities = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isPrimary = default(bool?), int? vmInstanceCount = default(int?), int? dataDiskSizeInGB = default(int?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType?), string dataDiskLetter = null, System.Collections.Generic.IDictionary placementProperties = null, System.Collections.Generic.IDictionary capacities = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts = null, string vmSize = null, string vmImagePublisher = null, string vmImageOffer = null, string vmImageSku = null, string vmImageVersion = null, System.Collections.Generic.IEnumerable vmSecrets = null, System.Collections.Generic.IEnumerable vmExtensions = null, bool? isStateless = default(bool?), bool? hasMultiplePlacementGroups = default(bool?), System.Collections.Generic.IEnumerable frontendConfigurations = null, System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable additionalDataDisks = null, bool? isEncryptionAtHostEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), bool? isAcceleratedNetworkingEnabled = default(bool?), bool? useDefaultPublicLoadBalancer = default(bool?), bool? useTempDataDisk = default(bool?), bool? isOverProvisioningEnabled = default(bool?), System.Collections.Generic.IEnumerable zones = null, bool? isSpotVm = default(bool?), string hostGroupId = null, bool? useEphemeralOSDisk = default(bool?), string spotRestoreTimeout = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType?), Azure.Core.ResourceIdentifier vmImageResourceId = null, Azure.Core.ResourceIdentifier subnetId = null, System.Collections.Generic.IEnumerable vmSetupActions = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType? securityEncryptionType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType?), bool? isSecureBootEnabled = default(bool?), bool? isNodePublicIPEnabled = default(bool?), bool? isNodePublicIPv6Enabled = default(bool?), Azure.Core.ResourceIdentifier vmSharedGalleryImageId = null, Azure.Core.ResourceIdentifier natGatewayId = null, System.Collections.Generic.IEnumerable natConfigurations = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan = null, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = null, Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations = null, string computerNamePrefix = null, System.Collections.Generic.IEnumerable vmApplications = null, bool? isZoneBalanceEnabled = default(bool?), bool? isOutboundOnly = default(bool?), bool? enableResilientEphemeralOsDisk = default(bool?), System.Collections.Generic.IEnumerable vmManagedIdentityUserAssignedIdentities = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNodeTypePatch ServiceFabricManagedNodeTypePatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceData ServiceFabricManagedServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceProperties properties = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServicePatch ServiceFabricManagedServicePatch(System.Collections.Generic.IDictionary tags = null) { throw null; } @@ -747,7 +728,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedUnsupportedVmSize ServiceFabricManagedUnsupportedVmSize(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string vmSize) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatefulServiceProperties StatefulServiceProperties(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 serviceTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode?), string serviceDnsName = null, bool? hasPersistedState = default(bool?), int? targetReplicaSetSize = default(int?), int? minReplicaSetSize = default(int?), System.TimeSpan? replicaRestartWaitDuration = default(System.TimeSpan?), System.TimeSpan? quorumLossWaitDuration = default(System.TimeSpan?), System.TimeSpan? standByReplicaKeepDuration = default(System.TimeSpan?), System.TimeSpan? servicePlacementTimeLimit = default(System.TimeSpan?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatelessServiceProperties StatelessServiceProperties(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 serviceTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode?), string serviceDnsName = null, int instanceCount = 0, int? minInstanceCount = default(int?), int? minInstancePercentage = default(int?)) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZoneFaultSimulationContent ZoneFaultSimulationContent(bool? isForced = default(bool?), System.DateTimeOffset? constraintsExpireOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable zones = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AutoGeneratedDomainNameLabelScope : System.IEquatable @@ -848,105 +828,6 @@ 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 FaultSimulation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal FaultSimulation() { } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails Details { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public string SimulationId { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? Status { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation 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.FaultSimulation 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 FaultSimulationContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected FaultSimulationContent() { } - public System.DateTimeOffset? ConstraintsExpireOn { get { throw null; } set { } } - public bool? IsForced { get { throw null; } set { } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent 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.FaultSimulationContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationContentWrapper : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public FaultSimulationContentWrapper(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters) { } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper 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.FaultSimulationContentWrapper System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal FaultSimulationDetails() { } - public string ClusterId { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NodeTypeFaultSimulation { get { throw null; } } - public string OperationId { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails 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.FaultSimulationDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationIdContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public FaultSimulationIdContent(string simulationId) { } - public string SimulationId { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent 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.FaultSimulationIdContent 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 FaultSimulationStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public FaultSimulationStatus(string value) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Active { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Done { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus StartFailed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Starting { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus StopFailed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Stopping { get { throw null; } } - public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus other) { throw null; } - public override bool Equals(object obj) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus right) { throw null; } - public override string ToString() { throw null; } - } public partial class ManagedAzResiliencyStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal ManagedAzResiliencyStatus() { } @@ -1578,23 +1459,6 @@ 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 NodeTypeFaultSimulation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NodeTypeFaultSimulation() { } - public string NodeTypeName { get { throw null; } } - public string OperationId { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus? OperationStatus { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? Status { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation 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.NodeTypeFaultSimulation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class NodeTypeFrontendConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NodeTypeFrontendConfiguration() { } @@ -2601,27 +2465,6 @@ 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; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SfmcOperationStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SfmcOperationStatus(string value) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Aborted { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Canceled { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Created { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Failed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Started { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus other) { throw null; } - public override bool Equals(object obj) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus right) { throw null; } - public override string ToString() { throw null; } - } public partial class SingletonPartitionScheme : Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SingletonPartitionScheme() { } @@ -2771,18 +2614,4 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode right) { throw null; } public override string ToString() { throw null; } } - public partial class ZoneFaultSimulationContent : Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ZoneFaultSimulationContent() { } - public System.Collections.Generic.IList Zones { get { throw null; } } - protected override Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected override Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZoneFaultSimulationContent 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.ZoneFaultSimulationContent 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; } - } } 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 ab42a02267bf..267f0b1811f0 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 @@ -260,6 +260,7 @@ public ServiceFabricManagedClusterData(Azure.Core.AzureLocation location, Azure. public Azure.Core.ResourceIdentifier PublicIPPrefixId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier PublicIPv6PrefixId { get { throw null; } set { } } public System.Collections.Generic.IList ServiceEndpoints { get { throw null; } } + public bool? SkipManagedNsgAssignment { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? SkuName { get { throw null; } set { } } public string SubnetId { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy UpgradeDescription { get { throw null; } set { } } @@ -289,10 +290,6 @@ protected ServiceFabricManagedClusterResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFaultSimulation(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetFaultSimulation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFaultSimulationAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFaultSimulationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetManagedAzResiliencyStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetManagedAzResiliencyStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetManagedMaintenanceWindowStatu(System.Threading.CancellationToken cancellationToken) { throw null; } @@ -314,10 +311,6 @@ protected ServiceFabricManagedClusterResource() { } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, 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; } - public virtual Azure.ResourceManager.ArmOperation StartFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StartFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StopFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StopFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData 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.ServiceFabricManagedClusterData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -383,6 +376,7 @@ public ServiceFabricManagedNodeTypeData() { } public int? DataDiskSizeInGB { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? DataDiskType { get { throw null; } set { } } public Azure.Core.ResourceIdentifier DscpConfigurationId { get { throw null; } set { } } + public bool? EnableResilientEphemeralOsDisk { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription EphemeralPorts { get { throw null; } set { } } public Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? EvictionPolicy { get { throw null; } set { } } public System.Collections.Generic.IList FrontendConfigurations { get { throw null; } } @@ -458,10 +452,6 @@ protected ServiceFabricManagedNodeTypeResource() { } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAvailableSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAvailableSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetFaultSimulation(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetFaultSimulation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetFaultSimulationAsync(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFaultSimulationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Redeploy(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RedeployAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Reimage(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -474,10 +464,6 @@ protected ServiceFabricManagedNodeTypeResource() { } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StartFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StartFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper faultSimulationContentWrapper, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StopFaultSimulation(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StopFaultSimulationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData 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.ServiceFabricManagedNodeTypeData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -700,10 +686,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.AdditionalNetworkInterfaceConfiguration AdditionalNetworkInterfaceConfiguration(string name = null, bool? enableAcceleratedNetworking = default(bool?), Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable ipConfigurations = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ApplicationHealthPolicy ApplicationHealthPolicy(bool considerWarningAsError = false, int maxPercentUnhealthyDeployedApplications = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceTypeHealthPolicy defaultServiceTypeHealthPolicy = null, System.Collections.Generic.IDictionary serviceTypeHealthPolicyMap = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ClusterFabricSettingsSection ClusterFabricSettingsSection(string name = null, System.Collections.Generic.IEnumerable parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation FaultSimulation(string simulationId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? status = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails details = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper FaultSimulationContentWrapper(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails FaultSimulationDetails(string clusterId = null, string operationId = null, System.Collections.Generic.IEnumerable nodeTypeFaultSimulation = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters = null) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent FaultSimulationIdContent(string simulationId = null) { throw null; } 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.ManagedClusterServiceEndpoint ManagedClusterServiceEndpoint(string service = null, System.Collections.Generic.IEnumerable locations = null, Azure.Core.ResourceIdentifier networkIdentifier = null) { 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; } @@ -713,7 +695,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NamedPartitionScheme NamedPartitionScheme(System.Collections.Generic.IEnumerable names = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeActionContent NodeTypeActionContent(System.Collections.Generic.IEnumerable nodes = null, bool? isForced = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterUpdateType? updateType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterUpdateType?)) { 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.NodeTypeVaultSecretGroup NodeTypeVaultSecretGroup(Azure.ResourceManager.Resources.Models.WritableSubResource sourceVault = null, System.Collections.Generic.IEnumerable vaultCertificates = null) { throw null; } @@ -732,14 +713,14 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedApplicationTypeVersionData ServiceFabricManagedApplicationTypeVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string provisioningState = null, System.Uri appPackageUri = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedApplicationTypeVersionPatch ServiceFabricManagedApplicationTypeVersionPatch(System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName, string dnsName, string fqdn, System.Net.IPAddress ipv4Address, System.Guid? clusterId, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState, System.Collections.Generic.IEnumerable clusterCertificateThumbprints, int? clientConnectionPort, int? httpGatewayConnectionPort, string adminUserName, string adminPassword, System.Collections.Generic.IEnumerable loadBalancingRules, bool? isRdpAccessAllowed, System.Collections.Generic.IEnumerable networkSecurityRules, System.Collections.Generic.IEnumerable clients, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory, System.Collections.Generic.IEnumerable fabricSettings, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState, string clusterCodeVersion, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence, System.Collections.Generic.IEnumerable addOnFeatures, bool? isAutoOSUpgradeEnabled, bool? hasZoneResiliency, int? maxUnusedVersionsToKeep, bool? isIPv6Enabled, string subnetId, System.Collections.Generic.IEnumerable ipTags, System.Net.IPAddress ipv6Address, bool? isServicePublicIPEnabled, System.Collections.Generic.IEnumerable auxiliarySubnets, System.Collections.Generic.IEnumerable serviceEndpoints, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode, bool? useCustomVnet, Azure.Core.ResourceIdentifier publicIPPrefixId, Azure.Core.ResourceIdentifier publicIPv6PrefixId, Azure.Core.ResourceIdentifier ddosProtectionPlanId, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription, int? httpGatewayTokenAuthConnectionPort, bool? isHttpGatewayExclusiveAuthModeEnabled, Azure.ETag? etag) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string dnsName = null, string fqdn = null, System.Net.IPAddress iPv4Address = null, System.Guid? clusterId = default(System.Guid?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState?), System.Collections.Generic.IEnumerable clusterCertificateThumbprints = null, int? clientConnectionPort = default(int?), int? httpGatewayConnectionPort = default(int?), string adminUserName = null, string adminPassword = null, System.Collections.Generic.IEnumerable loadBalancingRules = null, bool? isRdpAccessAllowed = default(bool?), System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable clients = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory = null, System.Collections.Generic.IEnumerable fabricSettings = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), string clusterCodeVersion = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence?), System.Collections.Generic.IEnumerable addOnFeatures = null, bool? isAutoOSUpgradeEnabled = default(bool?), bool? hasZoneResiliency = default(bool?), bool? isIPv6Enabled = default(bool?), string subnetId = null, System.Collections.Generic.IEnumerable ipTags = null, System.Net.IPAddress iPv6Address = null, bool? isServicePublicIPEnabled = default(bool?), System.Collections.Generic.IEnumerable auxiliarySubnets = null, System.Collections.Generic.IEnumerable serviceEndpoints = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode?), bool? useCustomVnet = default(bool?), Azure.Core.ResourceIdentifier publicIPPrefixId = null, Azure.Core.ResourceIdentifier publicIPv6PrefixId = null, Azure.Core.ResourceIdentifier ddosProtectionPlanId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription = null, int? httpGatewayTokenAuthConnectionPort = default(int?), bool? isHttpGatewayExclusiveAuthModeEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope?), int? allocatedOutboundPorts = default(int?), string vmImage = null, bool? enableOutboundOnlyNodeTypes = default(bool?), int? maxUnusedVersionsToKeep = default(int?), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName?)) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedClusterData ServiceFabricManagedClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string dnsName = null, string fqdn = null, System.Net.IPAddress iPv4Address = null, System.Guid? clusterId = default(System.Guid?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState? clusterState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterState?), System.Collections.Generic.IEnumerable clusterCertificateThumbprints = null, int? clientConnectionPort = default(int?), int? httpGatewayConnectionPort = default(int?), string adminUserName = null, string adminPassword = null, System.Collections.Generic.IEnumerable loadBalancingRules = null, bool? isRdpAccessAllowed = default(bool?), System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable clients = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterAzureActiveDirectory azureActiveDirectory = null, System.Collections.Generic.IEnumerable fabricSettings = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), string clusterCodeVersion = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode? clusterUpgradeMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeMode?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence? clusterUpgradeCadence = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradeCadence?), System.Collections.Generic.IEnumerable addOnFeatures = null, bool? isAutoOSUpgradeEnabled = default(bool?), bool? hasZoneResiliency = default(bool?), bool? isIPv6Enabled = default(bool?), string subnetId = null, System.Collections.Generic.IEnumerable ipTags = null, System.Net.IPAddress iPv6Address = null, bool? isServicePublicIPEnabled = default(bool?), System.Collections.Generic.IEnumerable auxiliarySubnets = null, System.Collections.Generic.IEnumerable serviceEndpoints = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode? zonalUpdateMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode?), bool? useCustomVnet = default(bool?), Azure.Core.ResourceIdentifier publicIPPrefixId = null, Azure.Core.ResourceIdentifier publicIPv6PrefixId = null, Azure.Core.ResourceIdentifier ddosProtectionPlanId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedClusterUpgradePolicy upgradeDescription = null, int? httpGatewayTokenAuthConnectionPort = default(int?), bool? isHttpGatewayExclusiveAuthModeEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.AutoGeneratedDomainNameLabelScope?), int? allocatedOutboundPorts = default(int?), string vmImage = null, bool? enableOutboundOnlyNodeTypes = default(bool?), bool? skipManagedNsgAssignment = default(bool?), int? maxUnusedVersionsToKeep = default(int?), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName? skuName = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClustersSkuName?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterIPConfiguration ServiceFabricManagedClusterIPConfiguration(string name = null, System.Collections.Generic.IEnumerable applicationGatewayBackendAddressPools = null, System.Collections.Generic.IEnumerable loadBalancerBackendAddressPools = null, System.Collections.Generic.IEnumerable loadBalancerInboundNatPools = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPrivateIPAddressVersion? privateIPAddressVersion = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPrivateIPAddressVersion?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressConfiguration publicIPAddressConfiguration = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPatch ServiceFabricManagedClusterPatch(System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressConfiguration ServiceFabricManagedClusterPublicIPAddressConfiguration(string name = null, System.Collections.Generic.IEnumerable ipTags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressVersion? publicIPAddressVersion = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterPublicIPAddressVersion?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterVersion ServiceFabricManagedClusterVersion(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string clusterCodeVersion = null, System.DateTimeOffset? versionSupportExpireOn = default(System.DateTimeOffset?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterOSType? osType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterOSType?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule ServiceFabricManagedNetworkSecurityRule(string name = null, string description = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol protocol = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNsgProtocol), System.Collections.Generic.IEnumerable sourceAddressPrefixes = null, System.Collections.Generic.IEnumerable destinationAddressPrefixes = null, System.Collections.Generic.IEnumerable sourcePortRanges = null, System.Collections.Generic.IEnumerable destinationPortRanges = null, string sourceAddressPrefix = null, string destinationAddressPrefix = null, string sourcePortRange = null, string destinationPortRange = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess access = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkTrafficAccess), int priority = 0, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection direction = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRuleDirection)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku, bool? isPrimary, int? vmInstanceCount, int? dataDiskSizeInGB, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType, string dataDiskLetter, System.Collections.Generic.IDictionary placementProperties, System.Collections.Generic.IDictionary capacities, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts, string vmSize, string vmImagePublisher, string vmImageOffer, string vmImageSku, string vmImageVersion, System.Collections.Generic.IEnumerable vmSecrets, System.Collections.Generic.IEnumerable vmExtensions, System.Collections.Generic.IEnumerable userAssignedIdentities, bool? isStateless, bool? hasMultiplePlacementGroups, System.Collections.Generic.IEnumerable frontendConfigurations, System.Collections.Generic.IEnumerable networkSecurityRules, System.Collections.Generic.IEnumerable additionalDataDisks, bool? isEncryptionAtHostEnabled, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState, bool? isAcceleratedNetworkingEnabled, bool? useDefaultPublicLoadBalancer, bool? useTempDataDisk, bool? isOverProvisioningEnabled, System.Collections.Generic.IEnumerable zones, bool? isSpotVm, string hostGroupId, bool? useEphemeralOSDisk, string spotRestoreTimeout, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy, Azure.Core.ResourceIdentifier vmImageResourceId, Azure.Core.ResourceIdentifier subnetId, System.Collections.Generic.IEnumerable vmSetupActions, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType, bool? isSecureBootEnabled, bool? isNodePublicIPEnabled, bool? isNodePublicIPv6Enabled, Azure.Core.ResourceIdentifier vmSharedGalleryImageId, Azure.Core.ResourceIdentifier natGatewayId, System.Collections.Generic.IEnumerable natConfigurations, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan, Azure.Core.ResourceIdentifier serviceArtifactReferenceId, Azure.Core.ResourceIdentifier dscpConfigurationId, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations, string computerNamePrefix, System.Collections.Generic.IDictionary tags) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isPrimary = default(bool?), int? vmInstanceCount = default(int?), int? dataDiskSizeInGB = default(int?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType?), string dataDiskLetter = null, System.Collections.Generic.IDictionary placementProperties = null, System.Collections.Generic.IDictionary capacities = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts = null, string vmSize = null, string vmImagePublisher = null, string vmImageOffer = null, string vmImageSku = null, string vmImageVersion = null, System.Collections.Generic.IEnumerable vmSecrets = null, System.Collections.Generic.IEnumerable vmExtensions = null, bool? isStateless = default(bool?), bool? hasMultiplePlacementGroups = default(bool?), System.Collections.Generic.IEnumerable frontendConfigurations = null, System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable additionalDataDisks = null, bool? isEncryptionAtHostEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), bool? isAcceleratedNetworkingEnabled = default(bool?), bool? useDefaultPublicLoadBalancer = default(bool?), bool? useTempDataDisk = default(bool?), bool? isOverProvisioningEnabled = default(bool?), System.Collections.Generic.IEnumerable zones = null, bool? isSpotVm = default(bool?), string hostGroupId = null, bool? useEphemeralOSDisk = default(bool?), string spotRestoreTimeout = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType?), Azure.Core.ResourceIdentifier vmImageResourceId = null, Azure.Core.ResourceIdentifier subnetId = null, System.Collections.Generic.IEnumerable vmSetupActions = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType? securityEncryptionType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType?), bool? isSecureBootEnabled = default(bool?), bool? isNodePublicIPEnabled = default(bool?), bool? isNodePublicIPv6Enabled = default(bool?), Azure.Core.ResourceIdentifier vmSharedGalleryImageId = null, Azure.Core.ResourceIdentifier natGatewayId = null, System.Collections.Generic.IEnumerable natConfigurations = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan = null, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = null, Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations = null, string computerNamePrefix = null, System.Collections.Generic.IEnumerable vmApplications = null, bool? isZoneBalanceEnabled = default(bool?), bool? isOutboundOnly = default(bool?), System.Collections.Generic.IEnumerable vmManagedIdentityUserAssignedIdentities = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } + public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedNodeTypeData ServiceFabricManagedNodeTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isPrimary = default(bool?), int? vmInstanceCount = default(int?), int? dataDiskSizeInGB = default(int?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType? dataDiskType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedDataDiskType?), string dataDiskLetter = null, System.Collections.Generic.IDictionary placementProperties = null, System.Collections.Generic.IDictionary capacities = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription applicationPorts = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.EndpointRangeDescription ephemeralPorts = null, string vmSize = null, string vmImagePublisher = null, string vmImageOffer = null, string vmImageSku = null, string vmImageVersion = null, System.Collections.Generic.IEnumerable vmSecrets = null, System.Collections.Generic.IEnumerable vmExtensions = null, bool? isStateless = default(bool?), bool? hasMultiplePlacementGroups = default(bool?), System.Collections.Generic.IEnumerable frontendConfigurations = null, System.Collections.Generic.IEnumerable networkSecurityRules = null, System.Collections.Generic.IEnumerable additionalDataDisks = null, bool? isEncryptionAtHostEnabled = default(bool?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState? provisioningState = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedResourceProvisioningState?), bool? isAcceleratedNetworkingEnabled = default(bool?), bool? useDefaultPublicLoadBalancer = default(bool?), bool? useTempDataDisk = default(bool?), bool? isOverProvisioningEnabled = default(bool?), System.Collections.Generic.IEnumerable zones = null, bool? isSpotVm = default(bool?), string hostGroupId = null, bool? useEphemeralOSDisk = default(bool?), string spotRestoreTimeout = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType? evictionPolicy = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SpotNodeVmEvictionPolicyType?), Azure.Core.ResourceIdentifier vmImageResourceId = null, Azure.Core.ResourceIdentifier subnetId = null, System.Collections.Generic.IEnumerable vmSetupActions = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType? securityType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedClusterSecurityType?), Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType? securityEncryptionType = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSecurityEncryptionType?), bool? isSecureBootEnabled = default(bool?), bool? isNodePublicIPEnabled = default(bool?), bool? isNodePublicIPv6Enabled = default(bool?), Azure.Core.ResourceIdentifier vmSharedGalleryImageId = null, Azure.Core.ResourceIdentifier natGatewayId = null, System.Collections.Generic.IEnumerable natConfigurations = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.VmImagePlan vmImagePlan = null, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = null, Azure.Core.ResourceIdentifier dscpConfigurationId = null, System.Collections.Generic.IEnumerable additionalNetworkInterfaceConfigurations = null, string computerNamePrefix = null, System.Collections.Generic.IEnumerable vmApplications = null, bool? isZoneBalanceEnabled = default(bool?), bool? isOutboundOnly = default(bool?), bool? enableResilientEphemeralOsDisk = default(bool?), System.Collections.Generic.IEnumerable vmManagedIdentityUserAssignedIdentities = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNodeTypePatch ServiceFabricManagedNodeTypePatch(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeSku sku = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceData ServiceFabricManagedServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceProperties properties = null) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServicePatch ServiceFabricManagedServicePatch(System.Collections.Generic.IDictionary tags = null) { throw null; } @@ -747,7 +728,6 @@ public static partial class ArmServiceFabricManagedClustersModelFactory public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedUnsupportedVmSize ServiceFabricManagedUnsupportedVmSize(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string vmSize) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatefulServiceProperties StatefulServiceProperties(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 serviceTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode?), string serviceDnsName = null, bool? hasPersistedState = default(bool?), int? targetReplicaSetSize = default(int?), int? minReplicaSetSize = default(int?), System.TimeSpan? replicaRestartWaitDuration = default(System.TimeSpan?), System.TimeSpan? quorumLossWaitDuration = default(System.TimeSpan?), System.TimeSpan? standByReplicaKeepDuration = default(System.TimeSpan?), System.TimeSpan? servicePlacementTimeLimit = default(System.TimeSpan?)) { throw null; } public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatelessServiceProperties StatelessServiceProperties(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 serviceTypeName = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = null, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode?), string serviceDnsName = null, int instanceCount = 0, int? minInstanceCount = default(int?), int? minInstancePercentage = default(int?)) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZoneFaultSimulationContent ZoneFaultSimulationContent(bool? isForced = default(bool?), System.DateTimeOffset? constraintsExpireOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable zones = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AutoGeneratedDomainNameLabelScope : System.IEquatable @@ -848,105 +828,6 @@ 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 FaultSimulation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal FaultSimulation() { } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails Details { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public string SimulationId { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? Status { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulation 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.FaultSimulation 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 FaultSimulationContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected FaultSimulationContent() { } - public System.DateTimeOffset? ConstraintsExpireOn { get { throw null; } set { } } - public bool? IsForced { get { throw null; } set { } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent 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.FaultSimulationContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationContentWrapper : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public FaultSimulationContentWrapper(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent parameters) { } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContentWrapper 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.FaultSimulationContentWrapper System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal FaultSimulationDetails() { } - public string ClusterId { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NodeTypeFaultSimulation { get { throw null; } } - public string OperationId { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent Parameters { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationDetails 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.FaultSimulationDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class FaultSimulationIdContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public FaultSimulationIdContent(string simulationId) { } - public string SimulationId { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationIdContent 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.FaultSimulationIdContent 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 FaultSimulationStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public FaultSimulationStatus(string value) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Active { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Done { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus StartFailed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Starting { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus StopFailed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus Stopping { get { throw null; } } - public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus other) { throw null; } - public override bool Equals(object obj) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus right) { throw null; } - public override string ToString() { throw null; } - } public partial class ManagedAzResiliencyStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal ManagedAzResiliencyStatus() { } @@ -1578,23 +1459,6 @@ 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 NodeTypeFaultSimulation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NodeTypeFaultSimulation() { } - public string NodeTypeName { get { throw null; } } - public string OperationId { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus? OperationStatus { get { throw null; } } - public Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationStatus? Status { get { throw null; } } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.NodeTypeFaultSimulation 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.NodeTypeFaultSimulation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class NodeTypeFrontendConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NodeTypeFrontendConfiguration() { } @@ -2601,27 +2465,6 @@ 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; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SfmcOperationStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SfmcOperationStatus(string value) { throw null; } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Aborted { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Canceled { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Created { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Failed { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Started { get { throw null; } } - public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus other) { throw null; } - public override bool Equals(object obj) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus (string value) { throw null; } - public static implicit operator Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.SfmcOperationStatus right) { throw null; } - public override string ToString() { throw null; } - } public partial class SingletonPartitionScheme : Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SingletonPartitionScheme() { } @@ -2771,18 +2614,4 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode left, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZonalUpdateMode right) { throw null; } public override string ToString() { throw null; } } - public partial class ZoneFaultSimulationContent : Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ZoneFaultSimulationContent() { } - public System.Collections.Generic.IList Zones { get { throw null; } } - protected override Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected override Azure.ResourceManager.ServiceFabricManagedClusters.Models.FaultSimulationContent PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.ServiceFabricManagedClusters.Models.ZoneFaultSimulationContent 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.ZoneFaultSimulationContent 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; } - } } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/Models/FaultSimulationContent.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/Models/FaultSimulationContent.cs deleted file mode 100644 index 7ccb3154ae01..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/Models/FaultSimulationContent.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable disable - -// NOTE: The following customization is intentionally retained for backward compatibility. -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - public abstract partial class FaultSimulationContent - { - /// Initializes a new instance of for deserialization. - protected FaultSimulationContent() - { - } - } -} diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/Models/FaultSimulationDetails.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/Models/FaultSimulationDetails.cs deleted file mode 100644 index 656c5b75695a..000000000000 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/src/Customization/Models/FaultSimulationDetails.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable disable - -using System.Collections.Generic; - -// NOTE: The following customization is intentionally retained for backward compatibility. -namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models -{ - public partial class FaultSimulationDetails - { - /// List of node type simulations associated with the cluster fault simulation. - public IReadOnlyList NodeTypeFaultSimulation { get; } - } -} From c7c806e7c2af26302eee617be4db93304f6c8b59 Mon Sep 17 00:00:00 2001 From: Ivy Liu Date: Mon, 2 Mar 2026 18:45:23 -0800 Subject: [PATCH 3/6] comment out test and samples, sdk generation didn't overwrite samples? --- ...ple_ServiceFabricManagedClusterResource.cs | 305 +++++++++--------- .../tests/Scenario/ManagedClusterTests.cs | 125 +++---- .../ServiceFabricManagedNodeTypeTests.cs | 187 +++++------ 3 files changed, 310 insertions(+), 307 deletions(-) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Samples/Sample_ServiceFabricManagedClusterResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Samples/Sample_ServiceFabricManagedClusterResource.cs index e8e2918ac838..65eabdf2fb26 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Samples/Sample_ServiceFabricManagedClusterResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Samples/Sample_ServiceFabricManagedClusterResource.cs @@ -70,158 +70,159 @@ public async Task Delete_DeleteACluster() Console.WriteLine("Succeeded"); } - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Update_PatchAManagedCluster() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedClusterResource created on azure - // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); - - // invoke the operation - ServiceFabricManagedClusterPatch patch = new ServiceFabricManagedClusterPatch - { - Tags = -{ -["a"] = "b" -}, - }; - 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 - ServiceFabricManagedClusterData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetFaultSimulation_GetManagedClusterFaultSimulation() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedClusterResource created on azure - // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); - - // invoke the operation - FaultSimulationIdContent content = new FaultSimulationIdContent("aec13cc2-1d39-4ba6-a1a8-2fc35b00643c"); - FaultSimulation result = await serviceFabricManagedCluster.GetFaultSimulationAsync(content); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetFaultSimulation_ListManagedClusterFaultSimulation() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedClusterResource created on azure - // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); - - // invoke the operation and iterate over the result - await foreach (FaultSimulation item in serviceFabricManagedCluster.GetFaultSimulationAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task StartFaultSimulation_StartManagedClusterFaultSimulation() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedClusterResource created on azure - // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); - - // invoke the operation - FaultSimulationContentWrapper faultSimulationContentWrapper = new FaultSimulationContentWrapper(new ZoneFaultSimulationContent - { - Zones = { "2" }, - }); - ArmOperation lro = await serviceFabricManagedCluster.StartFaultSimulationAsync(WaitUntil.Completed, faultSimulationContentWrapper); - FaultSimulation result = lro.Value; - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task StopFaultSimulation_StopManagedClusterFaultSimulation() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedClusterResource created on azure - // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); - ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); - - // invoke the operation - FaultSimulationIdContent content = new FaultSimulationIdContent("1bb61ba9-8a41-4d73-b5f0-7fc93b1edfe3"); - ArmOperation lro = await serviceFabricManagedCluster.StopFaultSimulationAsync(WaitUntil.Completed, content); - FaultSimulation result = lro.Value; - - Console.WriteLine($"Succeeded: {result}"); - } +// Preview only +// [Test] +// [Ignore("Only validating compilation of examples")] +// public async Task Update_PatchAManagedCluster() +// { +// // 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 +// TokenCredential cred = new DefaultAzureCredential(); +// // authenticate your client +// ArmClient client = new ArmClient(cred); + +// // this example assumes you already have this ServiceFabricManagedClusterResource created on azure +// // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource +// string subscriptionId = "00000000-0000-0000-0000-000000000000"; +// string resourceGroupName = "resRg"; +// string clusterName = "myCluster"; +// ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); +// ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); + +// // invoke the operation +// ServiceFabricManagedClusterPatch patch = new ServiceFabricManagedClusterPatch +// { +// Tags = +// { +// ["a"] = "b" +// }, +// }; +// 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 +// ServiceFabricManagedClusterData resourceData = result.Data; +// // for demo we just print out the id +// Console.WriteLine($"Succeeded on id: {resourceData.Id}"); +// } + +// [Test] +// [Ignore("Only validating compilation of examples")] +// public async Task GetFaultSimulation_GetManagedClusterFaultSimulation() +// { +// // 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 +// TokenCredential cred = new DefaultAzureCredential(); +// // authenticate your client +// ArmClient client = new ArmClient(cred); + +// // this example assumes you already have this ServiceFabricManagedClusterResource created on azure +// // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource +// string subscriptionId = "00000000-0000-0000-0000-000000000000"; +// string resourceGroupName = "resRg"; +// string clusterName = "myCluster"; +// ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); +// ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); + +// // invoke the operation +// FaultSimulationIdContent content = new FaultSimulationIdContent("aec13cc2-1d39-4ba6-a1a8-2fc35b00643c"); +// FaultSimulation result = await serviceFabricManagedCluster.GetFaultSimulationAsync(content); + +// Console.WriteLine($"Succeeded: {result}"); +// } + +// [Test] +// [Ignore("Only validating compilation of examples")] +// public async Task GetFaultSimulation_ListManagedClusterFaultSimulation() +// { +// // 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 +// TokenCredential cred = new DefaultAzureCredential(); +// // authenticate your client +// ArmClient client = new ArmClient(cred); + +// // this example assumes you already have this ServiceFabricManagedClusterResource created on azure +// // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource +// string subscriptionId = "00000000-0000-0000-0000-000000000000"; +// string resourceGroupName = "resRg"; +// string clusterName = "myCluster"; +// ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); +// ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); + +// // invoke the operation and iterate over the result +// await foreach (FaultSimulation item in serviceFabricManagedCluster.GetFaultSimulationAsync()) +// { +// Console.WriteLine($"Succeeded: {item}"); +// } + +// Console.WriteLine("Succeeded"); +// } + +// [Test] +// [Ignore("Only validating compilation of examples")] +// public async Task StartFaultSimulation_StartManagedClusterFaultSimulation() +// { +// // 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 +// TokenCredential cred = new DefaultAzureCredential(); +// // authenticate your client +// ArmClient client = new ArmClient(cred); + +// // this example assumes you already have this ServiceFabricManagedClusterResource created on azure +// // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource +// string subscriptionId = "00000000-0000-0000-0000-000000000000"; +// string resourceGroupName = "resRg"; +// string clusterName = "myCluster"; +// ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); +// ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); + +// // invoke the operation +// FaultSimulationContentWrapper faultSimulationContentWrapper = new FaultSimulationContentWrapper(new ZoneFaultSimulationContent +// { +// Zones = { "2" }, +// }); +// ArmOperation lro = await serviceFabricManagedCluster.StartFaultSimulationAsync(WaitUntil.Completed, faultSimulationContentWrapper); +// FaultSimulation result = lro.Value; + +// Console.WriteLine($"Succeeded: {result}"); +// } + +// [Test] +// [Ignore("Only validating compilation of examples")] +// public async Task StopFaultSimulation_StopManagedClusterFaultSimulation() +// { +// // 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 +// TokenCredential cred = new DefaultAzureCredential(); +// // authenticate your client +// ArmClient client = new ArmClient(cred); + +// // this example assumes you already have this ServiceFabricManagedClusterResource created on azure +// // for more information of creating ServiceFabricManagedClusterResource, please refer to the document of ServiceFabricManagedClusterResource +// string subscriptionId = "00000000-0000-0000-0000-000000000000"; +// string resourceGroupName = "resRg"; +// string clusterName = "myCluster"; +// ResourceIdentifier serviceFabricManagedClusterResourceId = ServiceFabricManagedClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); +// ServiceFabricManagedClusterResource serviceFabricManagedCluster = client.GetServiceFabricManagedClusterResource(serviceFabricManagedClusterResourceId); + +// // invoke the operation +// FaultSimulationIdContent content = new FaultSimulationIdContent("1bb61ba9-8a41-4d73-b5f0-7fc93b1edfe3"); +// ArmOperation lro = await serviceFabricManagedCluster.StopFaultSimulationAsync(WaitUntil.Completed, content); +// FaultSimulation result = lro.Value; + +// Console.WriteLine($"Succeeded: {result}"); +// } [Test] [Ignore("Only validating compilation of examples")] diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Scenario/ManagedClusterTests.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Scenario/ManagedClusterTests.cs index 8c9cc765a261..26f0c987efb4 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Scenario/ManagedClusterTests.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Scenario/ManagedClusterTests.cs @@ -84,67 +84,68 @@ public async Task ListClusterTestAsync() Assert.AreEqual(clusterCount, 1); } - [Test] - [RecordedTest] - public async Task ClusterFaultSimulation() - { - // CreateOrUpdate - resourceGroupResource = await CreateResourceGroupWithTag(); - - serviceFabricManagedCluster = await CreateServiceFabricManagedClusterZoneResilient(resourceGroupResource, Recording.GenerateAssetName("sfmctest")); - - string primaryNodeTypeName = Recording.GenerateAssetName("node"); - var primaryNodeType = await CreateServiceFabricManagedNodeType(serviceFabricManagedCluster, primaryNodeTypeName, true); - - // Start Fault Simulation - FaultSimulationContent content = new ZoneFaultSimulationContent - { - Zones = { "2" }, - FaultKind = "Zone", - }; - - FaultSimulationContentWrapper faultSimulationContentWrapper = new FaultSimulationContentWrapper(content); - - try - { - var startFaultSimulationResult = (await serviceFabricManagedCluster.StartFaultSimulationAsync(WaitUntil.Completed, faultSimulationContentWrapper)).Value; - - Assert.AreEqual(startFaultSimulationResult.Status, FaultSimulationStatus.Active); - - // List Fault Simulation - var faultSimulationCount = 0; - var mostRecentSimulationId = ""; - - var listFaultSimulationResult = serviceFabricManagedCluster.GetFaultSimulationAsync(); - await foreach (FaultSimulation simulation in listFaultSimulationResult) - { - faultSimulationCount++; - mostRecentSimulationId = simulation.SimulationId; - } - - Assert.AreEqual(faultSimulationCount, 1); - Assert.AreEqual(startFaultSimulationResult.SimulationId, mostRecentSimulationId); - - // Get Fault Simulation - FaultSimulationIdContent faultSimulationIdContent = new FaultSimulationIdContent(startFaultSimulationResult.SimulationId); - var getFaultSimulationResult = (await serviceFabricManagedCluster.GetFaultSimulationAsync(faultSimulationIdContent)).Value; - - Assert.AreEqual(startFaultSimulationResult.SimulationId, getFaultSimulationResult.SimulationId); - Assert.AreEqual(startFaultSimulationResult.Details.ClusterId, getFaultSimulationResult.Details.ClusterId); - Assert.AreEqual(startFaultSimulationResult.StartOn, getFaultSimulationResult.StartOn); - Assert.AreEqual(startFaultSimulationResult.EndOn, getFaultSimulationResult.EndOn); - - // Stop Fault Simulation - var stopFaultSimulationResult = (await serviceFabricManagedCluster.StopFaultSimulationAsync(WaitUntil.Completed, faultSimulationIdContent)).Value; - - Assert.AreEqual(startFaultSimulationResult.SimulationId, stopFaultSimulationResult.SimulationId); - Assert.AreEqual(stopFaultSimulationResult.Status, FaultSimulationStatus.Done); - } - catch (Exception ex) - { - Console.WriteLine(content); - Console.WriteLine(ex); - } - } + // Preview only + // [Test] + // [RecordedTest] + // public async Task ClusterFaultSimulation() + // { + // // CreateOrUpdate + // resourceGroupResource = await CreateResourceGroupWithTag(); + + // serviceFabricManagedCluster = await CreateServiceFabricManagedClusterZoneResilient(resourceGroupResource, Recording.GenerateAssetName("sfmctest")); + + // string primaryNodeTypeName = Recording.GenerateAssetName("node"); + // var primaryNodeType = await CreateServiceFabricManagedNodeType(serviceFabricManagedCluster, primaryNodeTypeName, true); + + // // Start Fault Simulation + // FaultSimulationContent content = new ZoneFaultSimulationContent + // { + // Zones = { "2" }, + // FaultKind = "Zone", + // }; + + // FaultSimulationContentWrapper faultSimulationContentWrapper = new FaultSimulationContentWrapper(content); + + // try + // { + // var startFaultSimulationResult = (await serviceFabricManagedCluster.StartFaultSimulationAsync(WaitUntil.Completed, faultSimulationContentWrapper)).Value; + + // Assert.AreEqual(startFaultSimulationResult.Status, FaultSimulationStatus.Active); + + // // List Fault Simulation + // var faultSimulationCount = 0; + // var mostRecentSimulationId = ""; + + // var listFaultSimulationResult = serviceFabricManagedCluster.GetFaultSimulationAsync(); + // await foreach (FaultSimulation simulation in listFaultSimulationResult) + // { + // faultSimulationCount++; + // mostRecentSimulationId = simulation.SimulationId; + // } + + // Assert.AreEqual(faultSimulationCount, 1); + // Assert.AreEqual(startFaultSimulationResult.SimulationId, mostRecentSimulationId); + + // // Get Fault Simulation + // FaultSimulationIdContent faultSimulationIdContent = new FaultSimulationIdContent(startFaultSimulationResult.SimulationId); + // var getFaultSimulationResult = (await serviceFabricManagedCluster.GetFaultSimulationAsync(faultSimulationIdContent)).Value; + + // Assert.AreEqual(startFaultSimulationResult.SimulationId, getFaultSimulationResult.SimulationId); + // Assert.AreEqual(startFaultSimulationResult.Details.ClusterId, getFaultSimulationResult.Details.ClusterId); + // Assert.AreEqual(startFaultSimulationResult.StartOn, getFaultSimulationResult.StartOn); + // Assert.AreEqual(startFaultSimulationResult.EndOn, getFaultSimulationResult.EndOn); + + // // Stop Fault Simulation + // var stopFaultSimulationResult = (await serviceFabricManagedCluster.StopFaultSimulationAsync(WaitUntil.Completed, faultSimulationIdContent)).Value; + + // Assert.AreEqual(startFaultSimulationResult.SimulationId, stopFaultSimulationResult.SimulationId); + // Assert.AreEqual(stopFaultSimulationResult.Status, FaultSimulationStatus.Done); + // } + // catch (Exception ex) + // { + // Console.WriteLine(content); + // Console.WriteLine(ex); + // } + // } } } diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Scenario/ServiceFabricManagedNodeTypeTests.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Scenario/ServiceFabricManagedNodeTypeTests.cs index 7953395223c6..2dff9d096b39 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Scenario/ServiceFabricManagedNodeTypeTests.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Scenario/ServiceFabricManagedNodeTypeTests.cs @@ -71,99 +71,100 @@ public async Task ExistGetGetAll() ValidatePurviewAccount(list.FirstOrDefault().Data, nodeTypeName); } - [RecordedTest] - public async Task NodeTypesActions() - { - // CreateOrUpdate - _cluster = await CreateServiceFabricManagedCluster(_resourceGroup, Recording.GenerateAssetName("sfmctest")); - - string primaryNodeTypeName = Recording.GenerateAssetName("node"); - string secondaryNodeTypeName = Recording.GenerateAssetName("node"); - var primaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, primaryNodeTypeName, true); - var secondaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, secondaryNodeTypeName, false); - ValidatePurviewAccount(primaryNodeType.Data, primaryNodeTypeName); - ValidatePurviewAccount(secondaryNodeType.Data, secondaryNodeTypeName); - - // Actions - NodeTypeActionContent content = new NodeTypeActionContent - { - Nodes = { String.Format("{0}_1", secondaryNodeTypeName), String.Format("{0}_3", secondaryNodeTypeName) }, - }; - - // Deallocate - await secondaryNodeType.DeallocateAsync(WaitUntil.Completed, content); - - // Start/Allocate - await secondaryNodeType.StartAsync(WaitUntil.Completed, content); - - content.UpdateType = ServiceFabricManagedClusterUpdateType.ByUpgradeDomain; - // Redeploy - await secondaryNodeType.RedeployAsync(WaitUntil.Completed, content); - } - - [RecordedTest] - public async Task NodeTypeFaultSimulationTest() - { - // CreateOrUpdate - _cluster = await CreateServiceFabricManagedClusterZoneResilient(_resourceGroup, Recording.GenerateAssetName("sfmctest")); - - string primaryNodeTypeName = Recording.GenerateAssetName("node"); - string secondaryNodeTypeName = Recording.GenerateAssetName("node"); - var primaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, primaryNodeTypeName, true); - var secondaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, secondaryNodeTypeName, false); - ValidatePurviewAccount(primaryNodeType.Data, primaryNodeTypeName); - ValidatePurviewAccount(secondaryNodeType.Data, secondaryNodeTypeName); - - // Start Fault Simulation - FaultSimulationContent content = new ZoneFaultSimulationContent - { - Zones = { "2" }, - FaultKind = "Zone", - }; - - FaultSimulationContentWrapper faultSimulationContentWrapper = new FaultSimulationContentWrapper(content); - - try - { - var startFaultSimulationResult = (await secondaryNodeType.StartFaultSimulationAsync(WaitUntil.Completed, faultSimulationContentWrapper)).Value; - - Assert.AreEqual(startFaultSimulationResult.Status, FaultSimulationStatus.Active); - - // List Fault Simulation - var faultSimulationCount = 0; - var mostRecentSimulationId = ""; - - var listFaultSimulationResult = secondaryNodeType.GetFaultSimulationAsync(); - await foreach (FaultSimulation simulation in listFaultSimulationResult) - { - faultSimulationCount++; - mostRecentSimulationId = simulation.SimulationId; - } - - Assert.AreEqual(faultSimulationCount, 1); - Assert.AreEqual(startFaultSimulationResult.SimulationId, mostRecentSimulationId); - - // Get Fault Simulation - FaultSimulationIdContent faultSimulationIdContent = new FaultSimulationIdContent(startFaultSimulationResult.SimulationId); - var getFaultSimulationResult = (await secondaryNodeType.GetFaultSimulationAsync(faultSimulationIdContent)).Value; - - Assert.AreEqual(startFaultSimulationResult.SimulationId, getFaultSimulationResult.SimulationId); - Assert.AreEqual(startFaultSimulationResult.Details.ClusterId, getFaultSimulationResult.Details.ClusterId); - Assert.AreEqual(startFaultSimulationResult.StartOn, getFaultSimulationResult.StartOn); - Assert.AreEqual(startFaultSimulationResult.EndOn, getFaultSimulationResult.EndOn); - - // Stop Fault Simulation - var stopFaultSimulationResult = (await secondaryNodeType.StopFaultSimulationAsync(WaitUntil.Completed, faultSimulationIdContent)).Value; - - Assert.AreEqual(startFaultSimulationResult.SimulationId, stopFaultSimulationResult.SimulationId); - Assert.AreEqual(stopFaultSimulationResult.Status, FaultSimulationStatus.Done); - } - catch (Exception ex) - { - Console.WriteLine(content); - Console.WriteLine(ex); - } - } + // Preview only + // [RecordedTest] + // public async Task NodeTypesActions() + // { + // // CreateOrUpdate + // _cluster = await CreateServiceFabricManagedCluster(_resourceGroup, Recording.GenerateAssetName("sfmctest")); + + // string primaryNodeTypeName = Recording.GenerateAssetName("node"); + // string secondaryNodeTypeName = Recording.GenerateAssetName("node"); + // var primaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, primaryNodeTypeName, true); + // var secondaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, secondaryNodeTypeName, false); + // ValidatePurviewAccount(primaryNodeType.Data, primaryNodeTypeName); + // ValidatePurviewAccount(secondaryNodeType.Data, secondaryNodeTypeName); + + // // Actions + // NodeTypeActionContent content = new NodeTypeActionContent + // { + // Nodes = { String.Format("{0}_1", secondaryNodeTypeName), String.Format("{0}_3", secondaryNodeTypeName) }, + // }; + + // // Deallocate + // await secondaryNodeType.DeallocateAsync(WaitUntil.Completed, content); + + // // Start/Allocate + // await secondaryNodeType.StartAsync(WaitUntil.Completed, content); + + // content.UpdateType = ServiceFabricManagedClusterUpdateType.ByUpgradeDomain; + // // Redeploy + // await secondaryNodeType.RedeployAsync(WaitUntil.Completed, content); + // } + + // [RecordedTest] + // public async Task NodeTypeFaultSimulationTest() + // { + // // CreateOrUpdate + // _cluster = await CreateServiceFabricManagedClusterZoneResilient(_resourceGroup, Recording.GenerateAssetName("sfmctest")); + + // string primaryNodeTypeName = Recording.GenerateAssetName("node"); + // string secondaryNodeTypeName = Recording.GenerateAssetName("node"); + // var primaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, primaryNodeTypeName, true); + // var secondaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, secondaryNodeTypeName, false); + // ValidatePurviewAccount(primaryNodeType.Data, primaryNodeTypeName); + // ValidatePurviewAccount(secondaryNodeType.Data, secondaryNodeTypeName); + + // // Start Fault Simulation + // FaultSimulationContent content = new ZoneFaultSimulationContent + // { + // Zones = { "2" }, + // FaultKind = "Zone", + // }; + + // FaultSimulationContentWrapper faultSimulationContentWrapper = new FaultSimulationContentWrapper(content); + + // try + // { + // var startFaultSimulationResult = (await secondaryNodeType.StartFaultSimulationAsync(WaitUntil.Completed, faultSimulationContentWrapper)).Value; + + // Assert.AreEqual(startFaultSimulationResult.Status, FaultSimulationStatus.Active); + + // // List Fault Simulation + // var faultSimulationCount = 0; + // var mostRecentSimulationId = ""; + + // var listFaultSimulationResult = secondaryNodeType.GetFaultSimulationAsync(); + // await foreach (FaultSimulation simulation in listFaultSimulationResult) + // { + // faultSimulationCount++; + // mostRecentSimulationId = simulation.SimulationId; + // } + + // Assert.AreEqual(faultSimulationCount, 1); + // Assert.AreEqual(startFaultSimulationResult.SimulationId, mostRecentSimulationId); + + // // Get Fault Simulation + // FaultSimulationIdContent faultSimulationIdContent = new FaultSimulationIdContent(startFaultSimulationResult.SimulationId); + // var getFaultSimulationResult = (await secondaryNodeType.GetFaultSimulationAsync(faultSimulationIdContent)).Value; + + // Assert.AreEqual(startFaultSimulationResult.SimulationId, getFaultSimulationResult.SimulationId); + // Assert.AreEqual(startFaultSimulationResult.Details.ClusterId, getFaultSimulationResult.Details.ClusterId); + // Assert.AreEqual(startFaultSimulationResult.StartOn, getFaultSimulationResult.StartOn); + // Assert.AreEqual(startFaultSimulationResult.EndOn, getFaultSimulationResult.EndOn); + + // // Stop Fault Simulation + // var stopFaultSimulationResult = (await secondaryNodeType.StopFaultSimulationAsync(WaitUntil.Completed, faultSimulationIdContent)).Value; + + // Assert.AreEqual(startFaultSimulationResult.SimulationId, stopFaultSimulationResult.SimulationId); + // Assert.AreEqual(stopFaultSimulationResult.Status, FaultSimulationStatus.Done); + // } + // catch (Exception ex) + // { + // Console.WriteLine(content); + // Console.WriteLine(ex); + // } + // } private void ValidatePurviewAccount(ServiceFabricManagedNodeTypeData nodeType, string nodeTypeName) { From d0b08d4b7c82ec5bf82ffed2903cb6eab48e921a Mon Sep 17 00:00:00 2001 From: Ivy Liu Date: Mon, 2 Mar 2026 19:38:52 -0800 Subject: [PATCH 4/6] comment another sample --- ...le_ServiceFabricManagedNodeTypeResource.cs | 237 +++++++++--------- 1 file changed, 119 insertions(+), 118 deletions(-) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Samples/Sample_ServiceFabricManagedNodeTypeResource.cs b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Samples/Sample_ServiceFabricManagedNodeTypeResource.cs index 965b0c2b3f1e..0c8078c8add8 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Samples/Sample_ServiceFabricManagedNodeTypeResource.cs +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/tests/Samples/Sample_ServiceFabricManagedNodeTypeResource.cs @@ -403,124 +403,125 @@ public async Task Start_StartNodes() Console.WriteLine("Succeeded"); } - [Test] - [Ignore("Only validating compilation of examples")] - public async Task StartFaultSimulation_StartNodeTypeFaultSimulation() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedNodeTypeResource created on azure - // for more information of creating ServiceFabricManagedNodeTypeResource, please refer to the document of ServiceFabricManagedNodeTypeResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - string nodeTypeName = "BE"; - ResourceIdentifier serviceFabricManagedNodeTypeResourceId = ServiceFabricManagedNodeTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, nodeTypeName); - ServiceFabricManagedNodeTypeResource serviceFabricManagedNodeType = client.GetServiceFabricManagedNodeTypeResource(serviceFabricManagedNodeTypeResourceId); - - // invoke the operation - FaultSimulationContentWrapper faultSimulationContentWrapper = new FaultSimulationContentWrapper(new ZoneFaultSimulationContent - { - Zones = { "2" }, - }); - ArmOperation lro = await serviceFabricManagedNodeType.StartFaultSimulationAsync(WaitUntil.Completed, faultSimulationContentWrapper); - FaultSimulation result = lro.Value; - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task StopFaultSimulation_StopNodeTypeFaultSimulation() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedNodeTypeResource created on azure - // for more information of creating ServiceFabricManagedNodeTypeResource, please refer to the document of ServiceFabricManagedNodeTypeResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - string nodeTypeName = "BE"; - ResourceIdentifier serviceFabricManagedNodeTypeResourceId = ServiceFabricManagedNodeTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, nodeTypeName); - ServiceFabricManagedNodeTypeResource serviceFabricManagedNodeType = client.GetServiceFabricManagedNodeTypeResource(serviceFabricManagedNodeTypeResourceId); - - // invoke the operation - FaultSimulationIdContent content = new FaultSimulationIdContent("1bb61ba9-8a41-4d73-b5f0-7fc93b1edfe3"); - ArmOperation lro = await serviceFabricManagedNodeType.StopFaultSimulationAsync(WaitUntil.Completed, content); - FaultSimulation result = lro.Value; - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetFaultSimulation_GetNodeTypeFaultSimulation() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedNodeTypeResource created on azure - // for more information of creating ServiceFabricManagedNodeTypeResource, please refer to the document of ServiceFabricManagedNodeTypeResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - string nodeTypeName = "BE"; - ResourceIdentifier serviceFabricManagedNodeTypeResourceId = ServiceFabricManagedNodeTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, nodeTypeName); - ServiceFabricManagedNodeTypeResource serviceFabricManagedNodeType = client.GetServiceFabricManagedNodeTypeResource(serviceFabricManagedNodeTypeResourceId); - - // invoke the operation - FaultSimulationIdContent content = new FaultSimulationIdContent("aec13cc2-1d39-4ba6-a1a8-2fc35b00643c"); - FaultSimulation result = await serviceFabricManagedNodeType.GetFaultSimulationAsync(content); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetFaultSimulation_ListNodeTypeFaultSimulation() - { - // 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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ServiceFabricManagedNodeTypeResource created on azure - // for more information of creating ServiceFabricManagedNodeTypeResource, please refer to the document of ServiceFabricManagedNodeTypeResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "resRg"; - string clusterName = "myCluster"; - string nodeTypeName = "BE"; - ResourceIdentifier serviceFabricManagedNodeTypeResourceId = ServiceFabricManagedNodeTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, nodeTypeName); - ServiceFabricManagedNodeTypeResource serviceFabricManagedNodeType = client.GetServiceFabricManagedNodeTypeResource(serviceFabricManagedNodeTypeResourceId); - - // invoke the operation and iterate over the result - await foreach (FaultSimulation item in serviceFabricManagedNodeType.GetFaultSimulationAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } +// Preview only + // [Test] + // [Ignore("Only validating compilation of examples")] + // public async Task StartFaultSimulation_StartNodeTypeFaultSimulation() + // { + // // 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 + // TokenCredential cred = new DefaultAzureCredential(); + // // authenticate your client + // ArmClient client = new ArmClient(cred); + + // // this example assumes you already have this ServiceFabricManagedNodeTypeResource created on azure + // // for more information of creating ServiceFabricManagedNodeTypeResource, please refer to the document of ServiceFabricManagedNodeTypeResource + // string subscriptionId = "00000000-0000-0000-0000-000000000000"; + // string resourceGroupName = "resRg"; + // string clusterName = "myCluster"; + // string nodeTypeName = "BE"; + // ResourceIdentifier serviceFabricManagedNodeTypeResourceId = ServiceFabricManagedNodeTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, nodeTypeName); + // ServiceFabricManagedNodeTypeResource serviceFabricManagedNodeType = client.GetServiceFabricManagedNodeTypeResource(serviceFabricManagedNodeTypeResourceId); + + // // invoke the operation + // FaultSimulationContentWrapper faultSimulationContentWrapper = new FaultSimulationContentWrapper(new ZoneFaultSimulationContent + // { + // Zones = { "2" }, + // }); + // ArmOperation lro = await serviceFabricManagedNodeType.StartFaultSimulationAsync(WaitUntil.Completed, faultSimulationContentWrapper); + // FaultSimulation result = lro.Value; + + // Console.WriteLine($"Succeeded: {result}"); + // } + + // [Test] + // [Ignore("Only validating compilation of examples")] + // public async Task StopFaultSimulation_StopNodeTypeFaultSimulation() + // { + // // 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 + // TokenCredential cred = new DefaultAzureCredential(); + // // authenticate your client + // ArmClient client = new ArmClient(cred); + + // // this example assumes you already have this ServiceFabricManagedNodeTypeResource created on azure + // // for more information of creating ServiceFabricManagedNodeTypeResource, please refer to the document of ServiceFabricManagedNodeTypeResource + // string subscriptionId = "00000000-0000-0000-0000-000000000000"; + // string resourceGroupName = "resRg"; + // string clusterName = "myCluster"; + // string nodeTypeName = "BE"; + // ResourceIdentifier serviceFabricManagedNodeTypeResourceId = ServiceFabricManagedNodeTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, nodeTypeName); + // ServiceFabricManagedNodeTypeResource serviceFabricManagedNodeType = client.GetServiceFabricManagedNodeTypeResource(serviceFabricManagedNodeTypeResourceId); + + // // invoke the operation + // FaultSimulationIdContent content = new FaultSimulationIdContent("1bb61ba9-8a41-4d73-b5f0-7fc93b1edfe3"); + // ArmOperation lro = await serviceFabricManagedNodeType.StopFaultSimulationAsync(WaitUntil.Completed, content); + // FaultSimulation result = lro.Value; + + // Console.WriteLine($"Succeeded: {result}"); + // } + + // [Test] + // [Ignore("Only validating compilation of examples")] + // public async Task GetFaultSimulation_GetNodeTypeFaultSimulation() + // { + // // 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 + // TokenCredential cred = new DefaultAzureCredential(); + // // authenticate your client + // ArmClient client = new ArmClient(cred); + + // // this example assumes you already have this ServiceFabricManagedNodeTypeResource created on azure + // // for more information of creating ServiceFabricManagedNodeTypeResource, please refer to the document of ServiceFabricManagedNodeTypeResource + // string subscriptionId = "00000000-0000-0000-0000-000000000000"; + // string resourceGroupName = "resRg"; + // string clusterName = "myCluster"; + // string nodeTypeName = "BE"; + // ResourceIdentifier serviceFabricManagedNodeTypeResourceId = ServiceFabricManagedNodeTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, nodeTypeName); + // ServiceFabricManagedNodeTypeResource serviceFabricManagedNodeType = client.GetServiceFabricManagedNodeTypeResource(serviceFabricManagedNodeTypeResourceId); + + // // invoke the operation + // FaultSimulationIdContent content = new FaultSimulationIdContent("aec13cc2-1d39-4ba6-a1a8-2fc35b00643c"); + // FaultSimulation result = await serviceFabricManagedNodeType.GetFaultSimulationAsync(content); + + // Console.WriteLine($"Succeeded: {result}"); + // } + + // [Test] + // [Ignore("Only validating compilation of examples")] + // public async Task GetFaultSimulation_ListNodeTypeFaultSimulation() + // { + // // 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 + // TokenCredential cred = new DefaultAzureCredential(); + // // authenticate your client + // ArmClient client = new ArmClient(cred); + + // // this example assumes you already have this ServiceFabricManagedNodeTypeResource created on azure + // // for more information of creating ServiceFabricManagedNodeTypeResource, please refer to the document of ServiceFabricManagedNodeTypeResource + // string subscriptionId = "00000000-0000-0000-0000-000000000000"; + // string resourceGroupName = "resRg"; + // string clusterName = "myCluster"; + // string nodeTypeName = "BE"; + // ResourceIdentifier serviceFabricManagedNodeTypeResourceId = ServiceFabricManagedNodeTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, nodeTypeName); + // ServiceFabricManagedNodeTypeResource serviceFabricManagedNodeType = client.GetServiceFabricManagedNodeTypeResource(serviceFabricManagedNodeTypeResourceId); + + // // invoke the operation and iterate over the result + // await foreach (FaultSimulation item in serviceFabricManagedNodeType.GetFaultSimulationAsync()) + // { + // Console.WriteLine($"Succeeded: {item}"); + // } + + // Console.WriteLine("Succeeded"); + // } [Test] [Ignore("Only validating compilation of examples")] From 0c7875daaa644f60b54e02c777b6ee03735c2de2 Mon Sep 17 00:00:00 2001 From: Ivy Liu Date: Mon, 9 Mar 2026 11:30:20 -0700 Subject: [PATCH 5/6] metadata regen --- .../metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/metadata.json b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/metadata.json index b53b5cef432b..a861545c15d4 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/metadata.json +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/metadata.json @@ -2,4 +2,4 @@ "apiVersions": { "Microsoft.ServiceFabric": "2026-02-01" } -} +} \ No newline at end of file From 4418c3e863e02a4362aa736acab379a33a29edbc Mon Sep 17 00:00:00 2001 From: Ivy Liu Date: Wed, 11 Mar 2026 17:56:23 -0700 Subject: [PATCH 6/6] update release date --- .../CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md index ab948d886b5f..92767c448091 100644 --- a/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md +++ b/sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.3.0 (Unreleased) +## 1.3.0 (2026-03-13) ### Features Added - Upgraded to API version 2026-02-01 (stable).