-
Notifications
You must be signed in to change notification settings - Fork 5.6k
modeling assignmentOperations with api-version 2018-11-01 #4590
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
32 commits
Select commit
Hold shift + click to select a range
130a232
move blueprint from private repo to public
be1f530
address comment
0c6f5de
fat finger
1b4768e
add description in ResourceProviderOperation
f4e3619
camelCase for resourceType
f533119
strongType ParameterValueCollection
700aad8
remove the hacky workaround for extension resource path
3aeb98f
init apiVersion=Nov2018
4a22467
api definition
09b7920
progress
4b7152e
merge from latest
59f4dfb
split assignment and blueprint definition
7dba31f
assignmentOperation api
6dfd0ad
split swagger to multiple area for easy upgrade
53e50eb
Merge branch 'master' into haitch/assignmentOperation
949a139
update suppression due to file split
fb0effc
Merge branch 'master' into haitch/assignmentOperation
b7134a7
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
4235f4e
Merge branch 'master' into haitch/assignmentOperation
5065fec
modeling assignmentOperations
565047c
suppress warnings on new file
b0a026b
fix assignmentOperation list
973b046
typo
4c4c444
add python repo
b4efdc8
add title and description, fix old apiversion in examples
5086de1
update assignmentOperation use scope for more flexbility
7511caa
Merge branch 'master' of github.com:Azure/azure-rest-api-specs
1208b90
rename blueprintAssignments/operations to blueprintAssignments/assign…
9611a31
fix double forward slashes
aeef56b
description update
cd4252d
more capital letters
f109377
werid casing error
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
322 changes: 322 additions & 0 deletions
322
.../resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/assignmentOperation.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,322 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "BlueprintClient", | ||
| "description": "Azure Blueprint Client.", | ||
| "version": "2018-11-01-preview" | ||
| }, | ||
| "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": { | ||
| "/{scope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}/assignmentOperations": { | ||
| "get": { | ||
| "tags": [ | ||
| "AssignmentOperations" | ||
| ], | ||
| "operationId": "AssignmentOperations_List", | ||
| "description": "List Operations for given blueprint assignment within a subscription.", | ||
| "x-ms-examples": { | ||
| "Assignment": { | ||
| "$ref": "./examples/BlueprintAssignmentOperation_List.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ScopeParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/AssignmentNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK - all Blueprint assignment Operation retrieved.", | ||
| "schema": { | ||
| "$ref": "#/definitions/AssignmentOperationList" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/{scope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}/assignmentOperations/{assignmentOperationName}": { | ||
| "get": { | ||
| "tags": [ | ||
| "AssignmentOperations" | ||
| ], | ||
| "operationId": "AssignmentOperations_Get", | ||
| "description": "Get a Blueprint assignment operation.", | ||
| "x-ms-examples": { | ||
| "Assignment": { | ||
| "$ref": "./examples/BlueprintAssignmentOperation_Get.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ScopeParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/AssignmentNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/AssignmentOperationNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK - Blueprint assignment retrieved.", | ||
| "schema": { | ||
| "$ref": "#/definitions/AssignmentOperation" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "AssignmentOperation": { | ||
| "type": "object", | ||
| "description": "Represents underlying deployment detail for each update to the assignment.", | ||
| "allOf": [ | ||
| { "$ref": "#/definitions/AzureResourceBase" } | ||
| ], | ||
| "properties": { | ||
| "properties": { | ||
| "description": "Properties for AssignmentOperation", | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/AssignmentOperationProperties" | ||
| } | ||
| } | ||
| }, | ||
| "AssignmentOperationList":{ | ||
| "type": "object", | ||
| "description": "List of AssignmentOperation.", | ||
| "properties": { | ||
| "value": { | ||
| "type": "array", | ||
| "description": "List of AssignmentOperation.", | ||
| "items": { | ||
| "$ref": "#/definitions/AssignmentOperation" | ||
| } | ||
| }, | ||
| "nextLink": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "Link to the next page of results." | ||
| } | ||
| } | ||
|
|
||
| }, | ||
| "AssignmentOperationProperties": { | ||
| "type": "object", | ||
| "description": "Properties of AssignmentOperation.", | ||
| "properties": { | ||
| "blueprintVersion": { | ||
| "type": "string", | ||
| "description": "The blueprint version used for the assignment operation." | ||
| }, | ||
| "assignmentState": { | ||
| "type": "string", | ||
| "description": "State of this assignment operation." | ||
| }, | ||
| "timeCreated": { | ||
| "type": "string", | ||
| "description": "Create time of this Assignment Operation." | ||
| }, | ||
| "timeStarted": { | ||
| "type": "string", | ||
| "description": "Start time of the underlying deployment." | ||
| }, | ||
| "timeFinished": { | ||
| "type": "string", | ||
| "description": "Finish time of the overall underlying deployments." | ||
| }, | ||
| "deployments": { | ||
haitch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "array", | ||
| "description": "List of jobs in this assignment operation.", | ||
| "items": { | ||
| "$ref": "#/definitions/AssignmentDeploymentJob" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "AssignmentDeploymentJob": { | ||
| "type": "object", | ||
| "description": "Represents individual job in given assignment operation.", | ||
| "properties": { | ||
| "kind": { | ||
haitch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "string", | ||
| "description": "Kind of the job." | ||
| }, | ||
| "action": { | ||
| "type": "string", | ||
| "description": "Name of the action performed in this job." | ||
| }, | ||
| "jobId": { | ||
| "type": "string", | ||
| "description": "Id of this job." | ||
| }, | ||
| "jobState": { | ||
| "type": "string", | ||
| "description": "State of this job." | ||
| }, | ||
| "result": { | ||
| "description": "Deployment job result.", | ||
| "$ref": "#/definitions/AssignmentDeploymentJobResult" | ||
| }, | ||
| "history": { | ||
haitch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "array", | ||
| "description": "Result of this deployment job for each retry.", | ||
| "items": { | ||
| "$ref": "#/definitions/AssignmentDeploymentJobResult" | ||
| } | ||
| }, | ||
| "requestUri": { | ||
| "type": "string", | ||
| "description": "Reference to deployment job resource id." | ||
| } | ||
| } | ||
| }, | ||
| "AssignmentDeploymentJobResult": { | ||
| "type": "object", | ||
| "description": "Result of each individual deployment in a blueprint assignment.", | ||
| "properties": { | ||
| "error": { | ||
| "description": "Contains error details if deployment job failed.", | ||
| "$ref": "#/definitions/AzureResourceManagerError" | ||
| }, | ||
| "resources": { | ||
| "type": "array", | ||
| "description": "Resources created as result of the deployment job.", | ||
| "items": { | ||
| "$ref": "#/definitions/AssignmentJobCreatedResource" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "AssignmentJobCreatedResource": { | ||
| "type": "object", | ||
| "description": "Azure resource created from deployment job.", | ||
| "properties": { | ||
| "properties": { | ||
| "type": "object", | ||
| "description": "Additional properties in a dictionary.", | ||
| "additionalProperties": { | ||
| "type": "string", | ||
| "description": "property value" | ||
| } | ||
| } | ||
| }, | ||
| "allOf": [ | ||
| { "$ref": "#/definitions/AzureResourceBase" } | ||
| ] | ||
| }, | ||
|
|
||
| "AzureResourceBase": { | ||
| "description": "Common properties for all Azure resources.", | ||
| "type": "object", | ||
| "x-ms-azure-resource": true, | ||
| "properties": { | ||
| "id": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "String Id used to locate any resource on Azure." | ||
| }, | ||
| "type": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "Type of this resource." | ||
| }, | ||
| "name": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "Name of this resource." | ||
| } | ||
| } | ||
| }, | ||
| "AzureResourceManagerError": { | ||
| "type": "object", | ||
| "description": "Error code and message", | ||
| "properties": { | ||
| "code": { | ||
| "type": "string", | ||
| "description": "Error code." | ||
| }, | ||
| "message": { | ||
| "type": "string", | ||
| "description": "Error message." | ||
| } | ||
|
|
||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "ScopeParameter": { | ||
| "name": "scope", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').", | ||
| "x-ms-parameter-location": "method", | ||
| "x-ms-skip-url-encoding": true | ||
| }, | ||
| "AssignmentNameParameter": { | ||
| "name": "assignmentName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method", | ||
| "description": "name of the assignment." | ||
annatisch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| "AssignmentOperationNameParameter": { | ||
| "name": "assignmentOperationName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method", | ||
| "description": "Name of the assignment operation." | ||
| }, | ||
| "ApiVersionParameter": { | ||
| "name": "api-version", | ||
| "in": "query", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "client", | ||
| "description": "Client Api Version." | ||
| } | ||
| } | ||
| } | ||
49 changes: 49 additions & 0 deletions
49
...osoft.Blueprint/preview/2018-11-01-preview/examples/BlueprintAssignmentOperation_Get.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,49 @@ | ||
| { | ||
| "parameters":{ | ||
| "api-version":"2018-11-01-preview", | ||
| "scope":"subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b", | ||
| "assignmentName":"assignSimpleBlueprint", | ||
| "assignmentOperationName":"fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f" | ||
| }, | ||
| "responses":{ | ||
| "200":{ | ||
| "body":{ | ||
| "id":"/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.blueprint/blueprintAssignments/assignSimpleBlueprint/assignmentOperations/fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", | ||
| "type": "microsoft.blueprint/blueprintAssignments/operations", | ||
| "name": "fb5d4dcb-7ce2-4087-ba7a-459aa74e5e0f", | ||
| "properties": { | ||
| "blueprintVersion": "v20181101", | ||
| "assignmentState": "succeed", | ||
| "timeCreated": "2018-11-13T15:19:45-08:00", | ||
| "timeStarted": "2018-11-13T15:21:49-08:00", | ||
| "timeFinished": "2018-11-13T15:26:02-08:00", | ||
| "deployments":[ | ||
| { | ||
| "kind": "azureResource", | ||
| "action": "put", | ||
| "jobState": "succeeded", | ||
| "requestUri": "/subscriptions/f8df94f2-2f5a-4f4a-bcaf-1bb992fb564b/providers/microsoft.deployments/deployments/48432786-2f1b-4925-8032-a5d57bcb5b6e", | ||
| "result": { | ||
| "resources": [ | ||
| { | ||
| "id": "blabla", | ||
| "name":"foobar", | ||
| "type":"foo/bar" | ||
| } | ||
| ] | ||
| }, | ||
| "history":[ | ||
| { | ||
| "error":{ | ||
| "code": "dummy", | ||
| "message":"dummy" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.