Add ServiceFabric SDK#2903
Conversation
|
Can one of the admins verify this patch? |
|
@chingchenmsft, |
|
@azuresdkci add to whitelist |
|
Swagger spec: Azure/azure-rest-api-specs#984 |
|
@chingchenmsft Hey Ching, could you please fill out the checklist provided at the top of the pull request before we continue with the review? |
|
done the checklist. |
cormacpayne
left a comment
There was a problem hiding this comment.
@chingchenmsft a few initial comments at first glance of the pull request
| while (string.Compare(cluster.ClusterState, "ready",true) != 0) | ||
| { | ||
| cluster = serviceFabricClient.Clusters.Get(rg.Name, res.Name); | ||
| System.Threading.Thread.Sleep(TimeSpan.FromMinutes(1)); |
There was a problem hiding this comment.
@chingchenmsft please use TestUtilitiues.Wait() instead of Thread.Sleep() in your tests
| @@ -0,0 +1,61 @@ | |||
| { | |||
| "version": "1.0.0", | |||
| @echo off | ||
| set autoRestVersion=1.0.0-Nightly20170202 | ||
| if "%1" == "" ( | ||
| set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-servicefabric/2016-09-01/swagger/servicefabric.json" |
There was a problem hiding this comment.
@chingchenmsft please change the URL to point at the commit you used, rather than the branch. I believe you would end up using this URL.
There was a problem hiding this comment.
There is another PR is pending for review for the Swagger file, but the review should be a quick review mainly forces on description part., i will point it to the latest commit after it is done.
| // by using the '*' as shown below: | ||
| // [assembly: AssemblyVersion("1.0.*")] | ||
| [assembly: AssemblyVersion("0.1.0.0")] | ||
| [assembly: AssemblyFileVersion("0.1.0.0")] |
There was a problem hiding this comment.
@chingchenmsft both AssemblyVersion and AssemblyFileVersion should be 1.0.0.0
AssemblyFileVersion will always match the version found in project.json, and AssemblyVersion will never be updated, unless you bump the major version of the package, in which case the AssemblyVersion should also have its major version bumped
There was a problem hiding this comment.
In the project.json, i am going to change it to "1.0.0-preview", so AssemblyFileVersion should be "1.0.0-preview" too ?
There was a problem hiding this comment.
@chingchenmsft No, AssemblyFileVersion and AssemblyVersion do not use the -preview suffix, so both of them will be 1.0.0.0
There was a problem hiding this comment.
okay, changed, thanks
|
@chingchenmsft Hey Ching, can you push the fixes for the changes requested to your fork so the review is up to date? |
|
sorry for keeping you waiting, i just waited for the latest Swagger checked in then pushed. |
|
@chingchenmsft, |
* Support for version 2017-03-01 of Azure Traffic Manager REST API. Geographic profiles * Update test recordings for version 2017-03-01 * Update generated.cmd * Update generate.cmd with the exact commit in the spec repository for Traffic Manager 2017-03-01 * Virtual Network Gateway Connection tests for Ipsec Policy Added virtual network gateway connection tests for ipsec policies Added VirtualNetworkGatewayConnection Ipsec Policies Test record Test Cases updated to use field names Connection Ipsec Policies Test session data Ipsec policies Test added for virtual network gateway connections * Generated code for network new 2017-03-01 api-version (only Ipsec Policies added compared to previous swagger) * package version incremented * Adding E2E test for VM Put bug for protected members * [ACR] Update to 2017-03-01 version 1. Update getCredentials to listCredentials to support multiple login credentials. 2. Refine regenerateCredential to support regenerate the specified login credential. 3. Add Sku to registry properties as a required property. 4. Rename GetProperties to Get. 5. Change CreateOrUpdate to Create, add registry create parameters. * Addressing PR feedback, re-recording test after addressing feedback * Update swagger link * Capabilities and security policy features. Also renamed several types and operations for improved clarify and consistency. Additions: - BlobAuditingPolicy APIs (e.g. Databases.CreateOrUpdateBlobAuditingPolicy) - ThreatDetectionPolicy APIs (e.g. Databases.CreateOrUpdateThreatDetectionPolicy) - Databases.ListByServer now supports $expand parameter - Capabilities APIs (e.g. Capabilities.ListByLocation) Types renamed: - ServerFirewallRule -> FirewallRule - DatabaseEditions -> DatabaseEdition - ElasticPoolEditions -> ElasticPoolEdition - ImportRequestParameters -> ImportRequest - ExportRequestParameters -> ExportRequest - ImportExportOperationResponse -> ImportExportResponse - OperationMode -> ImportOperationMode - TransparentDataEncryptionStates -> TransparentDataEncryptionStatus Types removed: - Unused types: UpgradeHint, Schema, Table, Column Operations renamed: - Servers.GetByResourceGroup -> Servers.Get - Servers.CreateOrUpdateFirewallRule -> FirewallRule.CreateOrUpdate, and similar for Get, List, and Delete - Databases.Import -> Databases.CreateImportOperation - Servers.Import -> Databases.Import - Databases.PauseDataWarehouse -> Databases.Pause - Databases.ResumeDataWarehouse -> Databases.Resume Operations removed: - Removed ImportExport operation results APIs since these are handled automatically by Azure async pattern. * Add preview label * #WAF added autogenerated files * #WAF changed version in rest API calls of Network/SessionRecords. * #WAF changed version in rest API calls of Compute/SessionRecords. * #WAF set x-ms-flatten to true for ApplicationGatewayFirewallRuleSet. * Revert AssemblyVersion to 2.1.0 because there are no breaking changes in this version * Revert AssemblyVersion to 2.0.0 because there are no breaking changes in this version * Added license header * Removed UpgradeLog.htm * Restore copyright header to generated files * Using proper rest api spec for 2017-03-01 generation * #WAF Added web application firewall related tests and rerecorded agw tests. * #WAF removed unneccessary file ending changes created by the PS script for updating the api version number in SessionRecords. * #WAF updated comment for ApplicationGatewayFirewallDisabledRuleGroup.rules. * #WAF incremented assembly version. * Update Network test versions to 2017-03-01 * Update releasenotes to clarify breaking changes * corrected Assembly version for 2017-03-01 * #WAF removed redundancy in description of enums. * Fix Batch management plane releasenotes reference * #WAF updated required fields for getBackendHealth Api result. * #INIT updated the api-version to 2016-03-01 in the Network *Operation.cs files. * #INIT Updated Version number to 10.0.0 (next major version) since there will be breaking changes for application gateway. * #INIT Changed version number to 2017-03-01 in Network/SessionRecordings. * #INIT Changed version number to 2017-03-01 in Compute/SessionRecordings. * #INIT Removed unneccessary changes where only end of file chagned. * AssemblyInfo revert AssemblyVersion to original as requested * #WAF Renamed GetAvailableWafRuleSets to ListAvailableWafRuleSets. * removed EOF-only changes * Reverted global.json changes * #12345: Updating generated files after fixing virtualNetworkGateway resource swagger to remove unnecessary required params. * #WAF improved tests. * Updated RepoTask module with new supported KeyValue pairs (#2919) * Updated RepoTask module with new supported KeyVaule pairs * Updating properties of the manifest file * Generate XML documentation for all libraries. (#2959) * Turn XML generation on for all projects. * Exclude Batch due to lack of proper XML comments. * #WAF Recorded new ApplicationGateway tests. * Swagger and test update for ADL (#2995) * Swagger and test update for ADL This also uses the latest nightly AutoRest generator, which results in a touch of every file. * missed recording one test. * Update version of the ADL packages before PR merge * Update changelog for the current version. * Relay SDK Draft (#2998) * Adding Relay SDK Draft * Swagger Updates. * Method name corrected * Add ServiceFabric SDK (#2903) * Add ServiceFabric SDK * update with latest swagger file * update sdk with latest Swagger * update test case * update with latest swagger file * fix build warning * fix swagger file path * Search SDK: Bug fixes and JSON blob parsing support (#3012) * Search SDK: Fix bug that prevented infinite double values from deserializing Also added a bunch of test coverage around boundary values. * Search SDK: Adding convenience method for enabling JSON blob indexers * Search SDK: Bumping version to 3.0.3 and changing release notes * Updating Analyze API tests to include MS language tokenizers * Forgot about one case * Search SDK: Adding missing descriptions The Name properties of Tokenizer, TokenFilter, and CharFilter didn't have descriptions in the Swagger spec. Now that we've added them, the corresponding generated C# properties now have comments. * Key Vault soft-delete preview (#3021) * KeyVault: Add soft delete capability to C# SDK. - Includes session recording changes. * KeyVault: Add restore, backup, recover, purge perm. * KeyVault: Increase management SDK version. - 2.0.2 for official release of management SDK. * KeyVault: Add optin soft delete flag to key vaults. * Vault-level soft-delete support. * key vault package upgrade * adding purge disabled property for key and vault purge * Regenerate the SDK based on version 1.0.0 * Azure Machine Learning WebServicesRP new API version (#3036) * Initial change for a new version * Update the POST operation id * POST method update * Make the POST call long running operation and handle the request id. * Update existing test cases to work with new API version. * Add new test case for POST * Add test case for large payload scenario. * Description update according to swagger update * Update generate.cmd to point to new swagger spec * Suppress CredScan message for certificate thumbprint, which is for encryption, not auth. * Replace real thumbprints with dummy strings * More thumbprints replaced with dummy strings * Replace hardcoded web service keys with dummy strings * Replace keys and thumbprints with dummy strings * Remove all encrypted content which were treated as credentials by CredScan in the lab build. * Update .net SDK with the latest swagger. * exporting secret backup/restore in KV .net SDK (#3035) * exposing additional signing and encryption algorithms in the KeyVault .net SDK (#3040) * exporting secret backup/restore in KV .net SDK * Azure Machine Learning WebServicesRP new API version (#3036) * Initial change for a new version * Update the POST operation id * POST method update * Make the POST call long running operation and handle the request id. * Update existing test cases to work with new API version. * Add new test case for POST * Add test case for large payload scenario. * Description update according to swagger update * Update generate.cmd to point to new swagger spec * Suppress CredScan message for certificate thumbprint, which is for encryption, not auth. * Replace real thumbprints with dummy strings * More thumbprints replaced with dummy strings * Replace hardcoded web service keys with dummy strings * Replace keys and thumbprints with dummy strings * Remove all encrypted content which were treated as credentials by CredScan in the lab build. * Update .net SDK with the latest swagger. * exposing additional signing and encryption algorithms in the KeyVault .Net SDK
* Support for version 2017-03-01 of Azure Traffic Manager REST API. Geographic profiles * Update test recordings for version 2017-03-01 * Update generated.cmd * Update generate.cmd with the exact commit in the spec repository for Traffic Manager 2017-03-01 * Virtual Network Gateway Connection tests for Ipsec Policy Added virtual network gateway connection tests for ipsec policies Added VirtualNetworkGatewayConnection Ipsec Policies Test record Test Cases updated to use field names Connection Ipsec Policies Test session data Ipsec policies Test added for virtual network gateway connections * Generated code for network new 2017-03-01 api-version (only Ipsec Policies added compared to previous swagger) * package version incremented * Adding E2E test for VM Put bug for protected members * [ACR] Update to 2017-03-01 version 1. Update getCredentials to listCredentials to support multiple login credentials. 2. Refine regenerateCredential to support regenerate the specified login credential. 3. Add Sku to registry properties as a required property. 4. Rename GetProperties to Get. 5. Change CreateOrUpdate to Create, add registry create parameters. * Addressing PR feedback, re-recording test after addressing feedback * Update swagger link * Capabilities and security policy features. Also renamed several types and operations for improved clarify and consistency. Additions: - BlobAuditingPolicy APIs (e.g. Databases.CreateOrUpdateBlobAuditingPolicy) - ThreatDetectionPolicy APIs (e.g. Databases.CreateOrUpdateThreatDetectionPolicy) - Databases.ListByServer now supports $expand parameter - Capabilities APIs (e.g. Capabilities.ListByLocation) Types renamed: - ServerFirewallRule -> FirewallRule - DatabaseEditions -> DatabaseEdition - ElasticPoolEditions -> ElasticPoolEdition - ImportRequestParameters -> ImportRequest - ExportRequestParameters -> ExportRequest - ImportExportOperationResponse -> ImportExportResponse - OperationMode -> ImportOperationMode - TransparentDataEncryptionStates -> TransparentDataEncryptionStatus Types removed: - Unused types: UpgradeHint, Schema, Table, Column Operations renamed: - Servers.GetByResourceGroup -> Servers.Get - Servers.CreateOrUpdateFirewallRule -> FirewallRule.CreateOrUpdate, and similar for Get, List, and Delete - Databases.Import -> Databases.CreateImportOperation - Servers.Import -> Databases.Import - Databases.PauseDataWarehouse -> Databases.Pause - Databases.ResumeDataWarehouse -> Databases.Resume Operations removed: - Removed ImportExport operation results APIs since these are handled automatically by Azure async pattern. * Add preview label * #WAF added autogenerated files * #WAF changed version in rest API calls of Network/SessionRecords. * #WAF changed version in rest API calls of Compute/SessionRecords. * #WAF set x-ms-flatten to true for ApplicationGatewayFirewallRuleSet. * Revert AssemblyVersion to 2.1.0 because there are no breaking changes in this version * Revert AssemblyVersion to 2.0.0 because there are no breaking changes in this version * Added license header * Removed UpgradeLog.htm * Restore copyright header to generated files * Using proper rest api spec for 2017-03-01 generation * #WAF Added web application firewall related tests and rerecorded agw tests. * #WAF removed unneccessary file ending changes created by the PS script for updating the api version number in SessionRecords. * #WAF updated comment for ApplicationGatewayFirewallDisabledRuleGroup.rules. * #WAF incremented assembly version. * Update Network test versions to 2017-03-01 * Update releasenotes to clarify breaking changes * corrected Assembly version for 2017-03-01 * #WAF removed redundancy in description of enums. * Fix Batch management plane releasenotes reference * #WAF updated required fields for getBackendHealth Api result. * #INIT updated the api-version to 2016-03-01 in the Network *Operation.cs files. * #INIT Updated Version number to 10.0.0 (next major version) since there will be breaking changes for application gateway. * #INIT Changed version number to 2017-03-01 in Network/SessionRecordings. * #INIT Changed version number to 2017-03-01 in Compute/SessionRecordings. * #INIT Removed unneccessary changes where only end of file chagned. * AssemblyInfo revert AssemblyVersion to original as requested * #WAF Renamed GetAvailableWafRuleSets to ListAvailableWafRuleSets. * removed EOF-only changes * Reverted global.json changes * #12345: Updating generated files after fixing virtualNetworkGateway resource swagger to remove unnecessary required params. * #WAF improved tests. * Updated RepoTask module with new supported KeyValue pairs (#2919) * Updated RepoTask module with new supported KeyVaule pairs * Updating properties of the manifest file * Generate XML documentation for all libraries. (#2959) * Turn XML generation on for all projects. * Exclude Batch due to lack of proper XML comments. * #WAF Recorded new ApplicationGateway tests. * Swagger and test update for ADL (#2995) * Swagger and test update for ADL This also uses the latest nightly AutoRest generator, which results in a touch of every file. * missed recording one test. * Update version of the ADL packages before PR merge * Update changelog for the current version. * Relay SDK Draft (#2998) * Adding Relay SDK Draft * Swagger Updates. * Method name corrected * Add ServiceFabric SDK (#2903) * Add ServiceFabric SDK * update with latest swagger file * update sdk with latest Swagger * update test case * update with latest swagger file * fix build warning * fix swagger file path * Search SDK: Bug fixes and JSON blob parsing support (#3012) * Search SDK: Fix bug that prevented infinite double values from deserializing Also added a bunch of test coverage around boundary values. * Search SDK: Adding convenience method for enabling JSON blob indexers * Search SDK: Bumping version to 3.0.3 and changing release notes * Updating Analyze API tests to include MS language tokenizers * Forgot about one case * Search SDK: Adding missing descriptions The Name properties of Tokenizer, TokenFilter, and CharFilter didn't have descriptions in the Swagger spec. Now that we've added them, the corresponding generated C# properties now have comments. * Key Vault soft-delete preview (#3021) * KeyVault: Add soft delete capability to C# SDK. - Includes session recording changes. * KeyVault: Add restore, backup, recover, purge perm. * KeyVault: Increase management SDK version. - 2.0.2 for official release of management SDK. * KeyVault: Add optin soft delete flag to key vaults. * Vault-level soft-delete support. * key vault package upgrade * adding purge disabled property for key and vault purge * Regenerate the SDK based on version 1.0.0 * Azure Machine Learning WebServicesRP new API version (#3036) * Initial change for a new version * Update the POST operation id * POST method update * Make the POST call long running operation and handle the request id. * Update existing test cases to work with new API version. * Add new test case for POST * Add test case for large payload scenario. * Description update according to swagger update * Update generate.cmd to point to new swagger spec * Suppress CredScan message for certificate thumbprint, which is for encryption, not auth. * Replace real thumbprints with dummy strings * More thumbprints replaced with dummy strings * Replace hardcoded web service keys with dummy strings * Replace keys and thumbprints with dummy strings * Remove all encrypted content which were treated as credentials by CredScan in the lab build. * Update .net SDK with the latest swagger. * exporting secret backup/restore in KV .net SDK (#3035) * exposing additional signing and encryption algorithms in the KeyVault .net SDK (#3040) * exporting secret backup/restore in KV .net SDK * Azure Machine Learning WebServicesRP new API version (#3036) * Initial change for a new version * Update the POST operation id * POST method update * Make the POST call long running operation and handle the request id. * Update existing test cases to work with new API version. * Add new test case for POST * Add test case for large payload scenario. * Description update according to swagger update * Update generate.cmd to point to new swagger spec * Suppress CredScan message for certificate thumbprint, which is for encryption, not auth. * Replace real thumbprints with dummy strings * More thumbprints replaced with dummy strings * Replace hardcoded web service keys with dummy strings * Replace keys and thumbprints with dummy strings * Remove all encrypted content which were treated as credentials by CredScan in the lab build. * Update .net SDK with the latest swagger. * exposing additional signing and encryption algorithms in the KeyVault .Net SDK * RecoveryServicess on latest Swagger (#3028) * RecoveryServicess on latest Swagger * Updated generate cmd and project json with links * Added AssemblyInfo.cs file * Added license header and additional constructor for passing http client Using the ctor without root client handler
Description
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.