Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Release of Automation SDK #4521

Closed
wants to merge 1 commit into from
Closed

New Release of Automation SDK #4521

wants to merge 1 commit into from

Conversation

vrdmr
Copy link
Member

@vrdmr vrdmr commented Jul 2, 2018

Description

Contains minor bigfixes and new resource - DscNodeCounts

Rest specs links:
Azure/azure-rest-api-specs#3190
Azure/azure-rest-api-specs#3304
Azure/azure-rest-api-specs#3327


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

SDK Generation Guidelines

  • If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
  • The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
  • The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

@dsgouda
Copy link
Contributor

dsgouda commented Jul 2, 2018

@vrdmr please link the related REST spec

@vrdmr
Copy link
Member Author

vrdmr commented Jul 2, 2018

@dsgouda - Added links to the Spec changes.

Copy link
Contributor

@dsgouda dsgouda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run msbuild build.proj /t:build /p:Scope=SDKs\Automation
and commit changes to the .props file

@@ -220,7 +220,7 @@ internal ScheduleOperations(AutomationClient client)
System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 409)
if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 409)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vrdmr Just to make sure, you are treating a 409 as a successful return code here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh. Good catch. Fixing this in the spec.

/// </summary>
IWatcherOperations Watcher { get; }
INodeCountInformationOperations NodeCountInformation { get; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change. This will need a minor version bump in the csproj (3.2.0-preview)

@dsgouda
Copy link
Contributor

dsgouda commented Jul 9, 2018

@vrdmr Please open a new PR once you fix the REST spec and regenerate the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants