-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Azure stack deployment resource provider admin open api specification #7561
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
204 changes: 204 additions & 0 deletions
204
...resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ActionPlan.json
This file contains 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,204 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2019-01-01", | ||
"title": "DeploymentAdminClient", | ||
"description": "Deployment Admin Client." | ||
}, | ||
"host": "adminmanagement.local.azurestack.external", | ||
"schemes": [ | ||
"https" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/actionPlans": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Gets the list of action plans": { | ||
"$ref": "./examples/ActionPlan/List.json" | ||
} | ||
}, | ||
"description": "Gets the list of action plans", | ||
"tags": [ | ||
"ActionPlans" | ||
], | ||
"operationId": "ActionPlans_List", | ||
"parameters": [ | ||
{ | ||
"$ref": "Deployment.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "Deployment.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/ActionPlanList" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/actionPlans/{planId}": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Gets the specified action plan": { | ||
"$ref": "./examples/ActionPlan/Get.json" | ||
} | ||
}, | ||
"description": "Gets the specified action plan", | ||
"tags": [ | ||
"ActionPlans" | ||
], | ||
"operationId": "ActionPlans_Get", | ||
"parameters": [ | ||
{ | ||
"$ref": "Deployment.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/PlanIdParameter" | ||
}, | ||
{ | ||
"$ref": "Deployment.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/ActionPlanResourceEntity" | ||
} | ||
}, | ||
"404": { | ||
"description": "NOT FOUND" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"ActionPlanList": { | ||
"description": "List of action plans", | ||
"properties": { | ||
"value": { | ||
"description": "Array of action plans.", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ActionPlanResourceEntity" | ||
} | ||
}, | ||
"nextLink": { | ||
"type": "string", | ||
"description": "Continuation token" | ||
} | ||
} | ||
}, | ||
"ActionPlanResourceEntity": { | ||
"type": "object", | ||
"description": "Action Plan Resource Entity", | ||
"properties": { | ||
"properties": { | ||
"description": "Action Plan Properties", | ||
"$ref": "#/definitions/ActionPlanAdminProperties", | ||
"x-ms-client-flatten": true | ||
}, | ||
"eTag": { | ||
"description": "Entity tag of the resource", | ||
"type": "string" | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "Deployment.json#/definitions/Resource" | ||
} | ||
] | ||
}, | ||
"ActionPlanAdminProperties": { | ||
"type": "object", | ||
"description": "Action Plan Properties", | ||
"properties": { | ||
"actionPlanUri": { | ||
"description": "Action plan uri", | ||
"type": "string" | ||
}, | ||
"resourceGroupName": { | ||
"description": "The target resource group name", | ||
"type": "string" | ||
}, | ||
"subscriptionId": { | ||
"description": "The target subscription identifier", | ||
"type": "string" | ||
}, | ||
"parameters": { | ||
"description": "The deployment parameters in JToken format", | ||
"type": "object", | ||
"$ref": "Deployment.json#/definitions/JTokenString" | ||
}, | ||
"startTime": { | ||
"description": "The deployment start time", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"endTime": { | ||
"description": "The deployment end time", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"error": { | ||
"description": "Error Information", | ||
"$ref": "Deployment.json#/definitions/ExtendedErrorInfo" | ||
}, | ||
"provisioningState": { | ||
"description": "The provisioning state", | ||
"type": "string" | ||
}, | ||
"actionPlanInstanceId": { | ||
"description": "Action plan instance identifier", | ||
"type": "string" | ||
}, | ||
"blobContainerName": { | ||
"description": "Blob container name storing the deployment data", | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"PlanIdParameter": { | ||
"description": "Identifier of the action plan.", | ||
"name": "planId", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"x-ms-parameter-location": "method" | ||
} | ||
}, | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Authorization uses an Azure Active Directory OAuth2 flow.", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.
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.
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.
I think you need to add 'default' in each response, you could refer this as an example: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/DatabaseSchema.json
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.
Prettier Check passed now. It was failing because I had to rebase from master.
@lirenhe Everything looks good now except the known avocado issue. We don't need the "default" value for each response. Could you please merge if it looks good otherwise? Thanks!