-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add swagger definitions for deletedAutomationAccounts resource type #17169
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ac4360a
add swagger definitions for deletedAutomationAccounts resource type
fd4b9b6
fix semantic and model validation error
f6c894b
fix model validation error
3ca97c3
fix date format and schema type
364f754
fix lint diff error
01f894f
fix paths
250289c
fix lint diff
1b2a5de
remove errorresponse schema
29506e7
add errorresponse schema
643df92
add reference in readme
99df3a1
supress error schema
ace929c
fix URI path to return list of deleted accounts
ec4d588
remove automation account name parameter
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
144 changes: 144 additions & 0 deletions
144
...ion/resource-manager/Microsoft.Automation/stable/2022-01-31/deletedAutomationAccount.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "AutomationManagement", | ||
"version": "2022-01-31", | ||
"x-ms-code-generation-settings": { | ||
"useDateTimeOffset": true | ||
} | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts": { | ||
"get": { | ||
"tags": [ | ||
"DeletedAutomationAccounts" | ||
], | ||
"operationId": "deletedAutomationAccounts_ListBySubscription", | ||
pilor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"description": "Retrieve deleted automation account.", | ||
"x-ms-examples": { | ||
"Get deleted automation account": { | ||
"$ref": "./examples/getDeletedAutomationAccount.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/DeletedAutomationAccountListResult" | ||
pilor marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
}, | ||
"default": { | ||
"description": "Automation error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"DeletedAutomationAccountListResult": { | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/DeletedAutomationAccount" | ||
}, | ||
"description": "Gets or sets the list of deleted automation accounts." | ||
} | ||
}, | ||
"description": "The response model for the list deleted automation account." | ||
}, | ||
"DeletedAutomationAccount": { | ||
"type": "object", | ||
"properties": { | ||
"properties": { | ||
"$ref": "#/definitions/DeletedAutomationAccountProperties", | ||
"x-ms-client-flatten": true, | ||
"description": "Gets or sets the automation account properties." | ||
}, | ||
"id": { | ||
"description": "The resource id.", | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Gets or sets name of the resource." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "The resource type." | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "Gets or sets the location of the resource." | ||
} | ||
}, | ||
"description": "Definition of the deleted automation account type." | ||
}, | ||
"DeletedAutomationAccountProperties": { | ||
"type": "object", | ||
"properties": { | ||
"automationAccountResourceId": { | ||
"type": "string", | ||
"description": "Gets or sets the Automation Account Resource Id." | ||
}, | ||
"automationAccountId": { | ||
"type": "string", | ||
"description": "Gets or sets the Automation Account Id." | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "Gets or sets the location of the resource." | ||
}, | ||
"deletedTime": { | ||
"type": "string", | ||
"format": "date-time", | ||
"readOnly": true, | ||
"description": "Gets the creation time.", | ||
"x-nullable": false | ||
} | ||
}, | ||
"description": "Definition of the deleted automation account properties." | ||
} | ||
}, | ||
"parameters": {} | ||
} |
27 changes: 27 additions & 0 deletions
27
...-manager/Microsoft.Automation/stable/2022-01-31/examples/getDeletedAutomationAccount.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"api-version": "2022-01-31" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/msitest/providers/Microsoft.Automation/deletedAutomationAccounts/myAutomationAccount", | ||
"name": "myAutomationAccount", | ||
"type": "Microsoft.Automation/deletedAutomationAccounts", | ||
"location": "westus", | ||
"properties": { | ||
"automationAccountResourceId": "/subscriptions/subid/resourceGroups/msitest/providers/Microsoft.Automation/automationAccounts/myAutomationAccount", | ||
"automationAccountId": "cb855f13-0223-4fe4-8260-9e6583dfef24", | ||
"location": "westus", | ||
"deletedTime": "2018-04-24T16:30:55+00:00" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.