-
Notifications
You must be signed in to change notification settings - Fork 5.6k
AzAutomation Swagger for job & runbook #2466
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
Conversation
softwareUpdateConfigurationCollectionItemProperties
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-goEncountered a Subprocess error: (azure-sdk-for-go)
Command: profileBuilder -s list -l ./profiles/2017-03-09/defintion.txt -name 2017-03-09 Error: unknown command "2017-03-09" for "profileBuilder"
Run 'profileBuilder --help' for usage.
unknown command "2017-03-09" for "profileBuilder" |
|
@najams - Could you please take a look at the error that the Python build faced - #2466 (comment) |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
|
Hi @ravbhatnagar, @sergey-shandar - Could you please take a look at this PR. Thanks. |
| "format": "date-time", | ||
| "description": "The end time of the job." | ||
| }, | ||
| "lastModifiedTime": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read only
| "format": "date-time", | ||
| "description": "The start time of the job." | ||
| }, | ||
| "endTime": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read only
| "format": "date-time", | ||
| "description": "The last modified time of the job." | ||
| }, | ||
| "provisioningState": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read only
| "$ref": "./definitions.json#/parameters/clientRequestId" | ||
| } | ||
| ], | ||
| "responses": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this return? does it not have a defined schema.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It returns the output from the script as generated by Powershell. For example, a script with only statement as { get-date } will generate the following output: Saturday, February 17, 2018 10:09:38 PM
whereas, the script like { "hello"; get-date; "bye"; } will generate the output:
hello
Saturday, February 17, 2018 10:11:15 PM
bye
| "$ref": "./definitions.json#/parameters/clientRequestId" | ||
| } | ||
| ], | ||
| "responses": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
schema?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a string which represents the script used to run the job. As above, there is no schema as it is a script.
| "produces": [ | ||
| "application/json" | ||
| "application/json", | ||
| "text/plain", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you really returning these content types from the ARM control plane? text/plain and text/powershell. Please note that only json is supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, these are for the scripts and output as commented above. These are for read-only properties. These APIs are part of ARM since day 1 and signed off by ARM team like Charles, Anders, etc. I only fixed the swagger. Also, these are not used in ARM templates.
| "description": "The Resource definition.", | ||
| "x-ms-azure-resource": true | ||
| }, | ||
| "ProvisioningStateProperty": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum.
| } | ||
| }, | ||
| "produces": [ | ||
| "text/powershell" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
content type is an issue
|
Hi @ravbhatnagar, I have addressed your feedback. Please review and let me know if you have more questions. Overall, these are existing GA APIs out for several years. Thanks. |
|
Signing off since these are existing APIs. ARM content type validation needs to be enabled going forward to disallow such behavior. |
Uh oh!
There was an error while loading. Please reload this page.