Skip to content

Commit 3330493

Browse files
mwesigwagumaNoriZC
andauthored
Updating sfmc to latest api preview version (2023-11-01-preview) (#23510)
* updating sfmc to latest api preview version * Adding breaking change csv file * Update ChangeLog.md --------- Co-authored-by: NoriZC <[email protected]>
1 parent f355fb1 commit 3330493

File tree

10 files changed

+64
-23
lines changed

10 files changed

+64
-23
lines changed

src/ServiceFabric/ServiceFabric/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020
## Upcoming Release
2121
* Fixed a bug that Get commands do not return all resources.
22+
* Updated sfmc to latest api preview version `2023-11-01-preview`.
2223

2324
## Version 3.3.0
2425
* Fixed minor issues

src/ServiceFabric/ServiceFabricManagedClusters.Management.Sdk/Generated/ApplicationTypesOperations.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,11 @@ internal ApplicationTypesOperations (ServiceFabricManagementClient client)
268268
/// <param name='applicationTypeName'>
269269
/// The name of the application type name resource.
270270
/// </param>
271-
/// /// <param name='parameters'>
272-
/// The application type name resource.
271+
/// <param name='location'>
272+
/// Resource location depends on the parent resource.
273+
/// </param>
274+
/// <param name='tags'>
275+
/// Azure resource tags.
273276
/// </param>
274277
/// <param name='customHeaders'>
275278
/// Headers that will be added to request.

src/ServiceFabric/ServiceFabricManagedClusters.Management.Sdk/Generated/ApplicationTypesOperationsExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static ApplicationTypeResource Get(this IApplicationTypesOperations opera
7676
/// </param>
7777
public static ApplicationTypeResource CreateOrUpdate(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), SystemData systemData = default(SystemData), string provisioningState = default(string))
7878
{
79-
return ((IApplicationTypesOperations)operations).CreateOrUpdateAsync(resourceGroupName, clusterName, applicationTypeName, id, name, type, location, tags, systemData, provisioningState).GetAwaiter().GetResult();
79+
return ((IApplicationTypesOperations)operations).CreateOrUpdateAsync(resourceGroupName, clusterName, applicationTypeName, id, name, type, location, tags, systemData, provisioningState).GetAwaiter().GetResult();
8080
}
8181

8282
/// <summary>

src/ServiceFabric/ServiceFabricManagedClusters.Management.Sdk/Generated/IApplicationTypesOperations.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ public partial interface IApplicationTypesOperations
5757
/// <param name='applicationTypeName'>
5858
/// The name of the application type name resource.
5959
/// </param>
60-
/// /// /// <param name='parameters'>
61-
/// The application type name resource.
60+
/// <param name='location'>
61+
/// Resource location depends on the parent resource.
62+
/// </param>
63+
/// <param name='tags'>
64+
/// Azure resource tags.
6265
/// </param>
6366
/// <param name='customHeaders'>
6467
/// The headers that will be added to request.

src/ServiceFabric/ServiceFabricManagedClusters.Management.Sdk/Generated/Models/ApplicationTypeVersionResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public ApplicationTypeVersionResource()
5050

5151
/// <param name="appPackageUrl">The URL to the application package
5252
/// </param>
53-
public ApplicationTypeVersionResource(string appPackageUrl, string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), SystemData systemData = default(SystemData), string provisioningState = default(string))
53+
public ApplicationTypeVersionResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), SystemData systemData = default(SystemData), string provisioningState = default(string), string appPackageUrl = default(string))
5454

5555
: base(id, name, type, location, tags, systemData)
5656
{

src/ServiceFabric/ServiceFabricManagedClusters.Management.Sdk/Generated/Models/ManagedCluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public ManagedCluster()
177177
/// <param name="publicIPPrefixId">Specify the resource id of a public IP prefix that the load balancer will
178178
/// allocate a public IP address from. Only supports IPv4.
179179
/// </param>
180-
public ManagedCluster(string location, string dnsName, string adminUserName, Sku sku, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string etag = default(string), SystemData systemData = default(SystemData), string fqdn = default(string), string ipv4Address = default(string), string clusterId = default(string), string clusterState = default(string), System.Collections.Generic.IList<string> clusterCertificateThumbprints = default(System.Collections.Generic.IList<string>), int? clientConnectionPort = default(int?), int? httpGatewayConnectionPort = default(int?), string adminPassword = default(string), System.Collections.Generic.IList<LoadBalancingRule> loadBalancingRules = default(System.Collections.Generic.IList<LoadBalancingRule>), bool? allowRdpAccess = default(bool?), System.Collections.Generic.IList<NetworkSecurityRule> networkSecurityRules = default(System.Collections.Generic.IList<NetworkSecurityRule>), System.Collections.Generic.IList<ClientCertificate> clients = default(System.Collections.Generic.IList<ClientCertificate>), AzureActiveDirectory azureActiveDirectory = default(AzureActiveDirectory), System.Collections.Generic.IList<SettingsSectionDescription> fabricSettings = default(System.Collections.Generic.IList<SettingsSectionDescription>), string provisioningState = default(string), string clusterCodeVersion = default(string), string clusterUpgradeMode = default(string), string clusterUpgradeCadence = default(string), System.Collections.Generic.IList<string> addonFeatures = default(System.Collections.Generic.IList<string>), bool? enableAutoOSUpgrade = default(bool?), bool? zonalResiliency = default(bool?), ApplicationTypeVersionsCleanupPolicy applicationTypeVersionsCleanupPolicy = default(ApplicationTypeVersionsCleanupPolicy), bool? enableIpv6 = default(bool?), string subnetId = default(string), System.Collections.Generic.IList<IPTag> ipTags = default(System.Collections.Generic.IList<IPTag>), string ipv6Address = default(string), bool? enableServicePublicIP = default(bool?), System.Collections.Generic.IList<Subnet> auxiliarySubnets = default(System.Collections.Generic.IList<Subnet>), System.Collections.Generic.IList<ServiceEndpoint> serviceEndpoints = default(System.Collections.Generic.IList<ServiceEndpoint>), string zonalUpdateMode = default(string), bool? useCustomVnet = default(bool?), string publicIPPrefixId = default(string))
180+
public ManagedCluster(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string etag = default(string), SystemData systemData = default(SystemData), string clusterState = default(string), string dnsName = default(string), string fqdn = default(string), string ipv4Address = default(string), string clusterId = default(string), System.Collections.Generic.IList<string> clusterCertificateThumbprints = default(System.Collections.Generic.IList<string>), int? clientConnectionPort = default(int?), int? httpGatewayConnectionPort = default(int?), string adminUserName = default(string), string adminPassword = default(string), System.Collections.Generic.IList<LoadBalancingRule> loadBalancingRules = default(System.Collections.Generic.IList<LoadBalancingRule>), bool? allowRdpAccess = default(bool?), System.Collections.Generic.IList<NetworkSecurityRule> networkSecurityRules = default(System.Collections.Generic.IList<NetworkSecurityRule>), System.Collections.Generic.IList<ClientCertificate> clients = default(System.Collections.Generic.IList<ClientCertificate>), AzureActiveDirectory azureActiveDirectory = default(AzureActiveDirectory), System.Collections.Generic.IList<SettingsSectionDescription> fabricSettings = default(System.Collections.Generic.IList<SettingsSectionDescription>), string provisioningState = default(string), string clusterCodeVersion = default(string), string clusterUpgradeMode = default(string), string clusterUpgradeCadence = default(string), System.Collections.Generic.IList<string> addonFeatures = default(System.Collections.Generic.IList<string>), bool? enableAutoOSUpgrade = default(bool?), bool? zonalResiliency = default(bool?), ApplicationTypeVersionsCleanupPolicy applicationTypeVersionsCleanupPolicy = default(ApplicationTypeVersionsCleanupPolicy), bool? enableIpv6 = default(bool?), string subnetId = default(string), System.Collections.Generic.IList<IPTag> ipTags = default(System.Collections.Generic.IList<IPTag>), string ipv6Address = default(string), bool? enableServicePublicIP = default(bool?), System.Collections.Generic.IList<Subnet> auxiliarySubnets = default(System.Collections.Generic.IList<Subnet>), System.Collections.Generic.IList<ServiceEndpoint> serviceEndpoints = default(System.Collections.Generic.IList<ServiceEndpoint>), string zonalUpdateMode = default(string), bool? useCustomVnet = default(bool?), string publicIPPrefixId = default(string))
181181

182182
: base(location, id, name, type, tags, etag, systemData)
183183
{

src/ServiceFabric/ServiceFabricManagedClusters.Management.Sdk/Generated/Models/ManagedClusterCodeVersionResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public ManagedClusterCodeVersionResult()
4242

4343
/// <param name="supportExpiryUtc">The date of expiry of support of the version.
4444
/// </param>
45-
public ManagedClusterCodeVersionResult(string id = default(string), string name = default(string), string type = default(string), string clusterCodeVersion = default(string), string supportExpiryUtc = default(string), string osType = default(string))
45+
public ManagedClusterCodeVersionResult(string id = default(string), string name = default(string), string type = default(string), string osType = default(string), string clusterCodeVersion = default(string), string supportExpiryUtc = default(string))
4646

4747
{
4848
this.Id = id;

src/ServiceFabric/ServiceFabricManagedClusters.Management.Sdk/Generated/Models/NodeType.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
namespace Microsoft.Azure.Management.ServiceFabricManagedClusters.Models
77
{
8-
using System.Linq;
9-
108
/// <summary>
119
/// Describes a node type in the cluster, each node type represents sub set of
1210
/// nodes in the cluster.
@@ -228,7 +226,7 @@ public NodeType()
228226
/// want to use and then click Want to deploy programmatically, Get Started -&gt;.
229227
/// Enter any required information and then click Save.
230228
/// </param>
231-
public NodeType(bool isPrimary, int vmInstanceCount, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), SystemData systemData = default(SystemData), int dataDiskSizeGB = default(int), string dataDiskType = default(string), string dataDiskLetter = default(string), System.Collections.Generic.IDictionary<string, string> placementProperties = default(System.Collections.Generic.IDictionary<string, string>), System.Collections.Generic.IDictionary<string, string> capacities = default(System.Collections.Generic.IDictionary<string, string>), EndpointRangeDescription applicationPorts = default(EndpointRangeDescription), EndpointRangeDescription ephemeralPorts = default(EndpointRangeDescription), string vmSize = default(string), string vmImagePublisher = default(string), string vmImageOffer = default(string), string vmImageSku = default(string), string vmImageVersion = default(string), System.Collections.Generic.IList<VaultSecretGroup> vmSecrets = default(System.Collections.Generic.IList<VaultSecretGroup>), System.Collections.Generic.IList<VmssExtension> vmExtensions = default(System.Collections.Generic.IList<VmssExtension>), VmManagedIdentity vmManagedIdentity = default(VmManagedIdentity), bool? isStateless = default(bool?), bool? multiplePlacementGroups = default(bool?), System.Collections.Generic.IList<FrontendConfiguration> frontendConfigurations = default(System.Collections.Generic.IList<FrontendConfiguration>), System.Collections.Generic.IList<NetworkSecurityRule> networkSecurityRules = default(System.Collections.Generic.IList<NetworkSecurityRule>), System.Collections.Generic.IList<VmssDataDisk> additionalDataDisks = default(System.Collections.Generic.IList<VmssDataDisk>), bool? enableEncryptionAtHost = default(bool?), string provisioningState = default(string), bool? enableAcceleratedNetworking = default(bool?), bool? useDefaultPublicLoadBalancer = default(bool?), bool? useTempDataDisk = default(bool?), bool? enableOverProvisioning = default(bool?), System.Collections.Generic.IList<string> zones = default(System.Collections.Generic.IList<string>), bool? isSpotVM = default(bool?), string hostGroupId = default(string), bool? useEphemeralOSDisk = default(bool?), string spotRestoreTimeout = default(string), string evictionPolicy = default(string), string vmImageResourceId = default(string), string subnetId = default(string), System.Collections.Generic.IList<string> vmSetupActions = default(System.Collections.Generic.IList<string>), string securityType = default(string), bool? secureBootEnabled = default(bool?), bool? enableNodePublicIP = default(bool?), string vmSharedGalleryImageId = default(string), string natGatewayId = default(string), VmImagePlan vmImagePlan = default(VmImagePlan), NodeTypeSku sku = default(NodeTypeSku))
229+
public NodeType(string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), SystemData systemData = default(SystemData), NodeTypeSku sku = default(NodeTypeSku), string securityType = default(string), bool? isPrimary = default(bool?), int? vmInstanceCount = default(int?), int? dataDiskSizeGB = default(int?), string dataDiskType = default(string), string dataDiskLetter = default(string), System.Collections.Generic.IDictionary<string, string> placementProperties = default(System.Collections.Generic.IDictionary<string, string>), System.Collections.Generic.IDictionary<string, string> capacities = default(System.Collections.Generic.IDictionary<string, string>), EndpointRangeDescription applicationPorts = default(EndpointRangeDescription), EndpointRangeDescription ephemeralPorts = default(EndpointRangeDescription), string vmSize = default(string), string vmImagePublisher = default(string), string vmImageOffer = default(string), string vmImageSku = default(string), string vmImageVersion = default(string), System.Collections.Generic.IList<VaultSecretGroup> vmSecrets = default(System.Collections.Generic.IList<VaultSecretGroup>), System.Collections.Generic.IList<VmssExtension> vmExtensions = default(System.Collections.Generic.IList<VmssExtension>), VmManagedIdentity vmManagedIdentity = default(VmManagedIdentity), bool? isStateless = default(bool?), bool? multiplePlacementGroups = default(bool?), System.Collections.Generic.IList<FrontendConfiguration> frontendConfigurations = default(System.Collections.Generic.IList<FrontendConfiguration>), System.Collections.Generic.IList<NetworkSecurityRule> networkSecurityRules = default(System.Collections.Generic.IList<NetworkSecurityRule>), System.Collections.Generic.IList<VmssDataDisk> additionalDataDisks = default(System.Collections.Generic.IList<VmssDataDisk>), bool? enableEncryptionAtHost = default(bool?), string provisioningState = default(string), bool? enableAcceleratedNetworking = default(bool?), bool? useDefaultPublicLoadBalancer = default(bool?), bool? useTempDataDisk = default(bool?), bool? enableOverProvisioning = default(bool?), System.Collections.Generic.IList<string> zones = default(System.Collections.Generic.IList<string>), bool? isSpotVM = default(bool?), string hostGroupId = default(string), bool? useEphemeralOSDisk = default(bool?), string spotRestoreTimeout = default(string), string evictionPolicy = default(string), string vmImageResourceId = default(string), string subnetId = default(string), System.Collections.Generic.IList<string> vmSetupActions = default(System.Collections.Generic.IList<string>), bool? secureBootEnabled = default(bool?), bool? enableNodePublicIP = default(bool?), string vmSharedGalleryImageId = default(string), string natGatewayId = default(string), VmImagePlan vmImagePlan = default(VmImagePlan))
232230

233231
: base(id, name, type, tags, systemData)
234232
{
@@ -304,22 +302,22 @@ public NodeType()
304302
/// type is created.
305303
/// </summary>
306304
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.isPrimary")]
307-
public bool IsPrimary {get; set; }
305+
public bool? IsPrimary {get; set; }
308306

309307
/// <summary>
310308
/// Gets or sets the number of nodes in the node type. &lt;br /&gt;&lt;br /&gt;**Values:**
311309
/// &lt;br /&gt;-1 - Use when auto scale rules are configured or sku.capacity is
312310
/// defined &lt;br /&gt; 0 - Not supported &lt;br /&gt; &gt;0 - Use for manual scale.
313311
/// </summary>
314312
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.vmInstanceCount")]
315-
public int VmInstanceCount {get; set; }
313+
public int? VmInstanceCount {get; set; }
316314

317315
/// <summary>
318316
/// Gets or sets disk size for the managed disk attached to the vms on the node
319317
/// type in GBs.
320318
/// </summary>
321319
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.dataDiskSizeGB")]
322-
public int DataDiskSizeGB {get; set; }
320+
public int? DataDiskSizeGB {get; set; }
323321

324322
/// <summary>
325323
/// Gets or sets managed data disk type. Specifies the storage account type for
@@ -411,7 +409,7 @@ public NodeType()
411409
/// machines.
412410
/// </summary>
413411
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.vmExtensions")]
414-
public System.Collections.Generic.IList<VmssExtension> VmExtensions { get; set; }
412+
public System.Collections.Generic.IList<VmssExtension> VmExtensions {get; set; }
415413

416414
/// <summary>
417415
/// Gets or sets identities to assign to the virtual machine scale set under
@@ -623,16 +621,18 @@ public virtual void Validate()
623621
this.Sku.Validate();
624622
}
625623

626-
if (this.VmInstanceCount > 2147483647)
627-
{
628-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "VMInstanceCount", 2147483647);
629-
}
630-
if (this.VmInstanceCount < -1)
624+
if (this.VmInstanceCount != null)
631625
{
632-
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "VMInstanceCount", -1);
626+
if (this.VmInstanceCount > 2147483647)
627+
{
628+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMaximum, "VMInstanceCount", 2147483647);
629+
}
630+
if (this.VmInstanceCount < -1)
631+
{
632+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "VMInstanceCount", -1);
633+
}
633634
}
634635

635-
636636
if (this.DataDiskLetter != null)
637637
{
638638
if (!System.Text.RegularExpressions.Regex.IsMatch(this.DataDiskLetter, "^[a-zA-Z]{1}$"))

src/ServiceFabric/ServiceFabricManagedClusters.Management.Sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ payload-flattening-threshold: 2
2121
use-extension:
2222
"@autorest/powershell": "4.x"
2323

24-
commit: da459cd725e11aa72e7fbc3b65d523b6e2b6453b
24+
commit: ce96a721d6bffa72dada8a998dee55f4c32ad0ef
2525
input-file:
2626
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/servicefabricmanagedclusters/resource-manager/Microsoft.ServiceFabric/preview/2023-03-01-preview/managedcluster.json
2727
- https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/servicefabricmanagedclusters/resource-manager/Microsoft.ServiceFabric/preview/2023-03-01-preview/nodetype.json

0 commit comments

Comments
 (0)