Regenerated WebSites SDK for January 2017 release#2763
Regenerated WebSites SDK for January 2017 release#2763cormacpayne merged 2 commits intoAzure:AutoRestfrom
Conversation
|
Hi @Nking92, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
TTYL, AZPRBOT; |
cormacpayne
left a comment
There was a problem hiding this comment.
@Nking92 Hey Nick, I left a dozen or so comments.
-
The comments about "removal of default parameters" or "ordering has changed for parameters in the constructor" applies to a lot of the model classes, so I stopped leaving the comment after the first few files so it didn't litter the review.
-
Since the Websites SDK is still in preview, these breaking changes should be fine to accept, but you will need to mitigate these changes if you do decide to make any changes in PowerShell
| /// <param name="postalCode">Postal code.</param> | ||
| /// <param name="state">State.</param> | ||
| /// <param name="address2">Address 2.</param> | ||
| public Address(string address1, string city, string country, string postalCode, string state, string address2 = default(string)) |
There was a problem hiding this comment.
@Nking92 breaking change - some default values were removed, and the ordering of the parameters have changed
There was a problem hiding this comment.
We changed some of these parameters to be required since our REST API actually rejects null values here
| /// 'AzureServiceUnauthorizedToAccessKeyVault', 'KeyVaultDoesNotExist', | ||
| /// 'KeyVaultSecretDoesNotExist', 'UnknownError', 'ExternalPrivateKey', | ||
| /// 'Unknown'</param> | ||
| public AppServiceCertificate(string location, string id = default(string), string name = default(string), string kind = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string keyVaultId = default(string), string keyVaultSecretName = default(string), KeyVaultSecretStatus? provisioningState = default(KeyVaultSecretStatus?)) |
There was a problem hiding this comment.
@Nking92 breaking change - the ordering of the parameters has changed
| /// <param name="isPrivateKeyExternal"><code>true</code> if | ||
| /// private key is external; otherwise, | ||
| /// <code>false</code>.</param> | ||
| public AppServiceCertificateOrder(string location, string id = default(string), string name = default(string), string kind = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), IDictionary<string, AppServiceCertificate> certificates = default(IDictionary<string, AppServiceCertificate>), string distinguishedName = default(string), string domainVerificationToken = default(string), int? validityInYears = default(int?), int? keySize = default(int?), CertificateProductType? productType = default(CertificateProductType?), bool? autoRenew = default(bool?), ProvisioningState? provisioningState = default(ProvisioningState?), CertificateOrderStatus? status = default(CertificateOrderStatus?), CertificateDetails signedCertificate = default(CertificateDetails), string csr = default(string), CertificateDetails intermediate = default(CertificateDetails), CertificateDetails root = default(CertificateDetails), string serialNumber = default(string), System.DateTime? lastCertificateIssuanceTime = default(System.DateTime?), System.DateTime? expirationTime = default(System.DateTime?), bool? isPrivateKeyExternal = default(bool?)) |
There was a problem hiding this comment.
@Nking92 breaking change - ordering of parameters has changed
| @@ -1,72 +0,0 @@ | |||
| // Copyright (c) Microsoft Corporation. All rights reserved. | |||
There was a problem hiding this comment.
@Nking92 breaking change - removal of the entire file
| /// </summary> | ||
| [JsonProperty(PropertyName = "frequencyInterval")] | ||
| public int? FrequencyInterval { get; set; } | ||
| public int FrequencyInterval { get; set; } |
There was a problem hiding this comment.
@Nking92 breaking change - null is no longer an accepted value for this property
There was a problem hiding this comment.
This is a required property, so we'll add a default non-null value here
| /// On/off flag indicating the rule is currently enabled or disabled. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "enabled")] | ||
| public int? Enabled { get; set; } |
There was a problem hiding this comment.
@Nking92 breaking change - removal of property
| /// </summary> | ||
| [JsonProperty(PropertyName = "httpApiPrefixPath")] | ||
| public string HttpApiPrefixPath { get; set; } |
There was a problem hiding this comment.
@Nking92 breaking change - removal of property
| /// <summary> | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "openIdIssuer")] | ||
| public string OpenIdIssuer { get; set; } |
There was a problem hiding this comment.
@Nking92 same comment for AadClientId and OpenIdIssuer
| @@ -1,66 +0,0 @@ | |||
| // Copyright (c) Microsoft Corporation. All rights reserved. | |||
There was a problem hiding this comment.
@Nking92 breaking change - removal of file
| /// </summary> | ||
| [JsonProperty(PropertyName = "properties")] | ||
| public ValidateProperties Properties { get; set; } |
There was a problem hiding this comment.
@Nking92 breaking change - removal of property
|
After discussing the review comments with @naveedaz we've decided to keep the breaking changes. The BackupSchedule properties that were previously nullable will have default values added soon. I've filed an issue for it. We'd like to not block this SDK update on fixing that small bug, and instead fix it in a smaller PR. |
|
LGTM |
Description
Regenerated the WebSites SDK from Swagger spec. Link to Swagger PR:
Azure/azure-rest-api-specs#878
Azure/azure-rest-api-specs#881
The SDK version has been bumped because of potential breaking changes.
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
project.jsonandAssemblyInfo.csfiles have been updated with the new version of the SDK.