Skip to content

Commit

Permalink
Adding Microsoft.App stable version 2022-03-01 (#18356)
Browse files Browse the repository at this point in the history
* Adds base for updating Microsoft.App from version preview/2022-01-01-preview to version 2022-03-01

* Updates readme

* Updates API version in new specs and examples

* refactore properties (#18137)

* [Non Break Change]Update to use easy auth v2 same as Web App (#18143) (#18217)

* Update auth config to use the same auth config in App Service

* Update for spell check

* Remove TokenStore/ConfigFilePath as not supported for ContainerApp

* Copy AuthConfig from previous version (#18221)

* Copy updated AuthConfig from previous version

* Add suppression

* Add API for checkNameAvailability in 2022-03-01 (#18204)

* add API

* update

* fix

* update

* update

* Add label property (#18280)

* Add label property

* fix prettier

Co-authored-by: Juliehzl <zuh@microsoft.com>

* refactor sc properties in 03-01 (#18343)

* refactor sc properties in 03-01

* Revert "refactore properties (#18137)"

This reverts commit 4fe86bc.

* add odata query (#18364)

* Updating patch spec. (#18354)

* Updating patch spec.

* Fix linter

* prettier fix

* Adding x-ms-long-running-operation

Co-authored-by: Ruslan Yakushev 🚴 <1664475+ruslany@users.noreply.github.com>

Co-authored-by: Xingjian Wang <79332479+xwang971@users.noreply.github.com>
Co-authored-by: erich-wang <eriwan@microsoft.com>
Co-authored-by: Zunli Hu <zuh@microsoft.com>
Co-authored-by: Michael Dai <michaelkira@live.cn>
Co-authored-by: Vaclav Turecek <vturecek@microsoft.com>
  • Loading branch information
6 people authored and visingl committed Mar 30, 2022
1 parent 8473b88 commit 3b8a613
Show file tree
Hide file tree
Showing 55 changed files with 7,170 additions and 4 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,356 @@
{
"swagger": "2.0",
"info": {
"version": "2022-03-01",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents": {
"get": {
"tags": [
"DaprComponents"
],
"summary": "Get the Dapr Components for a managed environment.",
"operationId": "DaprComponents_List",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "environmentName",
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/DaprComponentsCollection"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"List Dapr Components": {
"$ref": "./examples/DaprComponents_List.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}": {
"get": {
"tags": [
"DaprComponents"
],
"summary": "Get a dapr component.",
"operationId": "DaprComponents_Get",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "environmentName",
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
},
{
"name": "name",
"in": "path",
"description": "Name of the Dapr Component.",
"required": true,
"type": "string"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/DaprComponent"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Get Dapr Component": {
"$ref": "./examples/DaprComponents_Get.json"
}
}
},
"put": {
"tags": [
"DaprComponents"
],
"summary": "Creates or updates a Dapr Component.",
"description": "Creates or updates a Dapr Component in a Managed Environment.",
"operationId": "DaprComponents_CreateOrUpdate",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "environmentName",
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
},
{
"name": "name",
"in": "path",
"description": "Name of the Dapr Component.",
"required": true,
"type": "string"
},
{
"name": "daprComponentEnvelope",
"in": "body",
"description": "Configuration details of the Dapr Component.",
"required": true,
"schema": {
"$ref": "#/definitions/DaprComponent"
}
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/DaprComponent"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-long-running-operation": false,
"x-ms-examples": {
"Create or update dapr component": {
"$ref": "./examples/DaprComponents_CreateOrUpdate.json"
}
}
},
"delete": {
"tags": [
"DaprComponents"
],
"summary": "Delete a Dapr Component.",
"description": "Delete a Dapr Component from a Managed Environment.",
"operationId": "DaprComponents_Delete",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "environmentName",
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
},
{
"name": "name",
"in": "path",
"description": "Name of the Dapr Component.",
"required": true,
"type": "string"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Delete operation completed"
},
"204": {
"description": "Environment does not exist"
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Delete dapr component": {
"$ref": "./examples/DaprComponents_Delete.json"
}
},
"x-ms-long-running-operation": false
}
}
},
"definitions": {
"DaprComponentsCollection": {
"description": "Dapr Components ARM resource.",
"required": [
"value"
],
"type": "object",
"properties": {
"value": {
"description": "Collection of resources.",
"type": "array",
"items": {
"$ref": "#/definitions/DaprComponent"
}
},
"nextLink": {
"description": "Link to next page of resources.",
"type": "string",
"readOnly": true
}
}
},
"DaprComponent": {
"description": "Dapr Component.",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
}
],
"properties": {
"properties": {
"description": "Dapr Component resource specific properties",
"type": "object",
"properties": {
"componentType": {
"description": "Component type",
"type": "string"
},
"version": {
"description": "Component version",
"type": "string"
},
"ignoreErrors": {
"description": "Boolean describing if the component errors are ignores",
"type": "boolean"
},
"initTimeout": {
"description": "Initialization timeout",
"type": "string"
},
"secrets": {
"description": "Collection of secrets used by a Dapr component",
"type": "array",
"items": {
"$ref": "./CommonDefinitions.json#/definitions/Secret"
},
"x-ms-identifiers": [
"name"
]
},
"metadata": {
"description": "Component metadata",
"type": "array",
"items": {
"$ref": "#/definitions/DaprMetadata"
},
"x-ms-identifiers": [
"name"
]
},
"scopes": {
"description": "Names of container apps that can use this Dapr component",
"type": "array",
"items": {
"type": "string"
}
}
},
"x-ms-client-flatten": true
}
}
},
"DaprMetadata": {
"description": "Dapr component metadata.",
"type": "object",
"properties": {
"name": {
"description": "Metadata property name.",
"type": "string"
},
"value": {
"description": "Metadata property value.",
"type": "string"
},
"secretRef": {
"description": "Name of the Dapr Component secret from which to pull the metadata property value.",
"type": "string"
}
}
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
]
}
Loading

0 comments on commit 3b8a613

Please sign in to comment.