-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename OSCP application flow (#4606)
* added new version 2021-08-23-preview/ * rename app reg to app * rename app reg to app * rename applicationWorkspace to applicationOffer * rename applicationRegistrationInivte -> applicationRegistration * fix missed renaming * fix bug * remove tenant-level get appRegInivte * fix bug * add evengridfilter for app offer * remove redudant workspace name para * add applicationManifestId to appOffer db entity * finalized renames: appworkspace -> apManager; appReg -> app; appRegInivte -> appReg; appManifest -> appDefinition * fix bug * fix bug * fix bug * fix bug * fix bug * Share state added to all share objects (#4906) * Share state added to all share objects * indentation fix * indentation fix * path fix * path fix * path fix * path fix * path fix Co-authored-by: Gayatri Bisht <gabisht@microsoft.com> Co-authored-by: Jeremiah Guo <hanguo@microsoft.com> Co-authored-by: Gayatri-Bisht <81310181+Gayatri-Bisht@users.noreply.github.com> Co-authored-by: Gayatri Bisht <gabisht@microsoft.com>
- Loading branch information
1 parent
45b1faa
commit 3a792b8
Showing
48 changed files
with
6,766 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
390 changes: 390 additions & 0 deletions
390
...nager/Microsoft.OpenLogisticsPlatform/preview/2021-08-23-preview/applicationManagers.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,390 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "OSCPControlPlaneServiceAPI", | ||
"description": "REST APIs for Azure Open Supply Chain Platform's Control Plane Service", | ||
"version": "2021-08-23-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": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenLogisticsPlatform/applicationManagers/{applicationManagerName}": { | ||
"get": { | ||
"tags": [ | ||
"applicationManager" | ||
], | ||
"description": "Gets an applicationManager.", | ||
"operationId": "applicationManager_Get", | ||
"x-ms-examples": { | ||
"applicationManager Get": { | ||
"$ref": "./examples/ApplicationManager_Get.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/ApplicationManagerNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Success", | ||
"schema": { | ||
"$ref": "#/definitions/applicationManager" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"put": { | ||
"tags": [ | ||
"applicationManager" | ||
], | ||
"description": "Creates or updates a applicationManager", | ||
"operationId": "applicationManager_Put", | ||
"x-ms-examples": { | ||
"applicationManager Put": { | ||
"$ref": "./examples/ApplicationManager_Put.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/ApplicationManagerNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"name": "applicationManager", | ||
"in": "body", | ||
"description": "The applicationManager's content to apply.", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/applicationManager" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"x-nullable": false, | ||
"description": "Returned when the operation is successful.", | ||
"schema": { | ||
"$ref": "#/definitions/applicationManager" | ||
} | ||
}, | ||
"default": { | ||
"x-nullable": false, | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"delete": { | ||
"tags": [ | ||
"applicationManager" | ||
], | ||
"operationId": "applicationManager_Delete", | ||
"x-ms-examples": { | ||
"applicationManager Delete": { | ||
"$ref": "./examples/ApplicationManager_Delete.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/ApplicationManagerNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Returned when the operation is successful." | ||
}, | ||
"202": { | ||
"description": "Returned when the operation is accepted." | ||
}, | ||
"204": { | ||
"description": "Returned when the operation returns no content." | ||
}, | ||
"default": { | ||
"x-nullable": false, | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-long-running-operation": true, | ||
"x-ms-long-running-operation-options": { | ||
"final-state-via": "azure-async-operation" | ||
} | ||
}, | ||
"patch": { | ||
"tags": [ | ||
"applicationManager" | ||
], | ||
"description": "Patches applicationManager properties.", | ||
"operationId": "applicationManager_Update", | ||
"x-ms-examples": { | ||
"applicationManager Update": { | ||
"$ref": "./examples/ApplicationManager_Update.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/ApplicationManagerNameParameter" | ||
}, | ||
{ | ||
"name": "applicationManagerPatchResource", | ||
"description": "applicationManager patch properties.", | ||
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/applicationManagerPatchResource" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Returned when the operation is successful.", | ||
"schema": { | ||
"$ref": "#/definitions/applicationManager" | ||
} | ||
}, | ||
"default": { | ||
"x-nullable": false, | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenLogisticsPlatform/applicationManagers": { | ||
"get": { | ||
"tags": [ | ||
"applicationManager" | ||
], | ||
"description": "Lists a collection of applicationManagers under the given resource group.", | ||
"operationId": "applicationManager_List", | ||
"x-ms-examples": { | ||
"applicationManager List": { | ||
"$ref": "./examples/ApplicationManager_List.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"x-nullable": false, | ||
"description": "Returned when the operation is successful.", | ||
"schema": { | ||
"$ref": "#/definitions/applicationManagerList" | ||
} | ||
}, | ||
"default": { | ||
"x-nullable": false, | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.OpenLogisticsPlatform/applicationManagers": { | ||
"get": { | ||
"tags": [ | ||
"applicationManager" | ||
], | ||
"description": "Lists a collection of applicationManagers under the given Azure Subscription ID.", | ||
"operationId": "applicationManager_ListAll", | ||
"x-ms-examples": { | ||
"applicationManager ListAll": { | ||
"$ref": "./examples/ApplicationManager_ListAll.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"x-nullable": false, | ||
"description": "Returned when the operation is successful.", | ||
"schema": { | ||
"$ref": "#/definitions/applicationManagerList" | ||
} | ||
}, | ||
"default": { | ||
"x-nullable": false, | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"applicationManagerProvisioningState": { | ||
"type": "string", | ||
"readOnly": true, | ||
"description": "The current provisioning state.", | ||
"enum": [ | ||
"Accepted", | ||
"Succeeded", | ||
"Creating", | ||
"Deleting", | ||
"Failed" | ||
] | ||
}, | ||
"applicationManager": { | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" | ||
} | ||
], | ||
"properties": { | ||
"etag": { | ||
"type": "string", | ||
"readOnly": true, | ||
"description": "Resource Etag." | ||
}, | ||
"systemData": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" | ||
}, | ||
"properties": { | ||
"type": "object", | ||
"properties": { | ||
"applicationManagerId": { | ||
"type": "string", | ||
"description": "applicationManager identifier.", | ||
"readOnly": true | ||
}, | ||
"provisioningState": { | ||
"description": "Provisioning state of the applicationManager.", | ||
"readOnly": true, | ||
"$ref": "#/definitions/applicationManagerProvisioningState" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"applicationManagerPatchResource": { | ||
"type": "object", | ||
"description": "applicationManager patch properties", | ||
"allOf": [ | ||
{ | ||
"$ref": "workspaces.json#/definitions/TrackedResourceUpdate" | ||
} | ||
] | ||
}, | ||
"applicationManagerList": { | ||
"description": "The list of applicationManager resources.", | ||
"type": "object", | ||
"properties": { | ||
"nextLink": { | ||
"description": "The link used to get the next page of applicationManager resources list.", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"description": "The list of applicationManagers.", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/applicationManager" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"ApplicationManagerNameParameter": { | ||
"type": "string", | ||
"name": "applicationManagerName", | ||
"description": "The name of resource. This is the name of your Azure Supply Chain Service's applicationManager.", | ||
"in": "path", | ||
"required": true, | ||
"x-ms-parameter-location": "method" | ||
} | ||
} | ||
} |
Oops, something went wrong.