Skip to content

Commit

Permalink
Release app microsoft.app 2023 08 01 preview (#26352)
Browse files Browse the repository at this point in the history
* Adds base for updating Microsoft.App from version preview/2023-05-02-preview to version 2023-08-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add type to Certificate (#25380)

* Add type to Certificate

* lint

* Add gpus property to AvailableWorkloadProfiles. (#25328)

* Add gpus property to AvailableWorkloadProfiles.

* Fix.

* Pauld/re add build and builder (#25442)

* cherry picked the build and builder updates

* some more cleanup

* added arm id format, removed extra properties, and named the resource provisioning states

* Add OT and AI config (#25350)

* Add OT and AI config

* resolve comments

* Add service bind properties to dapr component (#25781)

* dapr component sb-bind definition add

* fix

* ran npx prettier

* npx prettier

---------

Co-authored-by: [email protected] <[email protected]>

* Adding patching scenario ARM API (#25446)

* cherry picked the build and builder updates

* some more cleanup

* Adding patching scenario and samples

* Added to readme

* Lint fix

* Linting

* Linting error fix

* Addressed comments and added extra properties

* Linting

* Fixing patch skip post action

* Linting

* Addressing comments

* Reverting patchDetails changes

* Fixing pipeline error

* Linting

* Removed invalid required tag

* Fixed examples

* Addressed comments

---------

Co-authored-by: Paul Dorsch <[email protected]>
Co-authored-by: Paul Dorsch <[email protected]>

* Update microsoft.app 2023-08-01-preview for new DaprSubscription API feature (#25631)

* ACA Dapr Subscription: WIP

Signed-off-by: Bernd Verst <[email protected]>

* Add Dapr Subscription examples

Signed-off-by: Bernd Verst <[email protected]>

* complete examples

Signed-off-by: Bernd Verst <[email protected]>

* Add DaprSubscription descriptions

Signed-off-by: Bernd Verst <[email protected]>

* include updated readme

Signed-off-by: Bernd Verst <[email protected]>

* fix casing

Signed-off-by: Bernd Verst <[email protected]>

* formatting

Signed-off-by: Bernd Verst <[email protected]>

* Use Types v5

Signed-off-by: Bernd Verst <[email protected]>

* Revert "Use Types v5"

v5 causes several mysterious SDK build errors in this branch on this PR. To avoid this error we will stick to v3 for now. We will upgrade to v5 in a future net new branch.

This reverts commit 6a43aac.

---------

Signed-off-by: Bernd Verst <[email protected]>

* Support log streaming on build resource (#25902)

* updated the build resource to support build upload and log streaming, with a token to be passed in via header

* add x-ms-secret and update buildendpoint -> endpoint

* retrieve log stream and upload endpoint tokens through post requests, as they are secrets

* remove secret flag from tokenendpoint property, as we expect users to retrieve it

* rename file

* updated format of how build object returns auth token

* fix example

* added expiration date to token response

* fix auth token to also include build resource information

* renamed getAuthToken -> listAuthToken and removed resource information from token response

* fix examples

* updated samples to be more accurate

* Update serviceBinds with clientType and customizedKeys (#26111)

* Update serviceBinds with clientType and customizedKeys

* force ci

* fix missing }

---------

Co-authored-by: Ahmed ElSayed <[email protected]>

* Adds new Dapr Component Resiliency Feature to existing version `Release app microsoft.app 2023 08 01 preview` (#26107)

* Add Dapr Component Resiliency Policies APIs to ContainerApps 2023-08-01-preview

Signed-off-by: Bernd Verst <[email protected]>

* Update deletion return code

* Fix variable name

* Remove invalid status code from example

* prettify

* Register new resource in readme

* Remove existing import cycle

* Use integers not integer strings

* Fix delete status codes

* More changes

* Update examples

* Revert "Remove existing import cycle" which causes unrelated failures

This reverts commit 8ce1a74.

---------

Signed-off-by: Bernd Verst <[email protected]>

* Add API spec for ContainerApp Resiliency (#25732)

Signed-off-by: Hal Spang <[email protected]>

* Add extendedlocation for job (#26196)

* Add extendedlocation for job

* Add sample for container apps on connectedEnvironment

* Fixes for examples

* Fix connected environment example

* Update old examples

* removing SourceToCloud patching from 08-01-preview (#26245)

* Add diagnostic routes to Container App Jobs (#26227)

* Add diagnostic routes to Container App Jobs

* Update

* Update

* Update

* Update

* Update

* Update

* Update operationIds

---------

Co-authored-by: Michimune Kohno <[email protected]>

* Update app resiliency rest api spec (#26357)

Signed-off-by: Yash Nisar <[email protected]>

* Fix ACA component resiliency examples (#26441)

* Fix arm review comments for container app (#26455)

* update

* update

* update

* Fix SDK build error for Microsoft.App (#26416)

* Fix SDK build error for Microsoft.App

* Update

* update

* update

* update

---------

Co-authored-by: Michimune Kohno <[email protected]>

* Fix arm review comments for container app (#26479)

* fix

* update

* update

* Fix detectorProperties request path (#26431)

* fix list exception

* change param to enum

* fix lint error

* revert not working changes

* fix enum

* rearrange

---------

Co-authored-by: Chenghui Yu <[email protected]>

* Enable dynamicJsonColumns for log analytics configuration (#26432)

* Enable dynamicJsonColumn for log analysis configuration

* Add missed s

* Fix code style

* Update container app usages value to float (#26448)

* update

* update

* update

* Fix App Resiliency retry example (#26560)

Signed-off-by: Yash Nisar <[email protected]>

* Fix lint warning for container app (#26523)

* fix warning

* fix warning

* upate

---------

Signed-off-by: Bernd Verst <[email protected]>
Signed-off-by: Hal Spang <[email protected]>
Signed-off-by: Yash Nisar <[email protected]>
Co-authored-by: zhenqxuMSFT <[email protected]>
Co-authored-by: yalixiang <[email protected]>
Co-authored-by: Paul Dorsch <[email protected]>
Co-authored-by: Michael Dai <[email protected]>
Co-authored-by: bgashirabake <[email protected]>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Harry Li <[email protected]>
Co-authored-by: Paul Dorsch <[email protected]>
Co-authored-by: Bernd Verst <[email protected]>
Co-authored-by: Ahmed ElSayed <[email protected]>
Co-authored-by: Ahmed ElSayed <[email protected]>
Co-authored-by: halspang <[email protected]>
Co-authored-by: LaylaLiu-gmail <[email protected]>
Co-authored-by: michimune <[email protected]>
Co-authored-by: Michimune Kohno <[email protected]>
Co-authored-by: Yash Nisar <[email protected]>
Co-authored-by: Seris370 <[email protected]>
Co-authored-by: Chenghui Yu <[email protected]>
  • Loading branch information
19 people authored Nov 9, 2023
1 parent fa7d797 commit 0235efb
Show file tree
Hide file tree
Showing 173 changed files with 23,178 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/",
"customDomainConfiguration": {
"dnsSuffix": "www.my-name.com",
"certificateValue": "PFX-or-PEM-blob",
"certificateValue": "Y2VydA==",
"certificatePassword": "private key password"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
},
"responses": {
"200": {},
"202": {},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/localtions/eastus/operationResults/00000"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/kubeEnvironments/examplekenv",
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/examplekenv",
"name": "examplekenv",
"type": "Microsoft.App/kubeEnvironments",
"type": "Microsoft.App/connectedEnvironments",
"location": "North Central US",
"extendedLocation": {
"name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/kubeEnvironments/examplekenv",
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/examplekenv",
"name": "examplekenv",
"type": "Microsoft.App/kubeEnvironments",
"type": "Microsoft.App/connectedEnvironments",
"location": "North Central US",
"extendedLocation": {
"name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/kubeEnvironments/examplekenv",
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/examplekenv",
"name": "examplekenv",
"type": "Microsoft.App/kubeEnvironments",
"type": "Microsoft.App/connectedEnvironments",
"location": "North Central US",
"extendedLocation": {
"name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/kubeEnvironments/examplekenv",
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/connectedEnvironments/examplekenv",
"name": "examplekenv",
"type": "Microsoft.App/kubeEnvironments",
"type": "Microsoft.App/connectedEnvironments",
"location": "North Central US",
"extendedLocation": {
"name": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,312 @@
{
"swagger": "2.0",
"info": {
"title": "ContainerApps API Client",
"version": "2023-08-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}": {
"put": {
"tags": [
"AppResiliency"
],
"summary": "Create or update an application's resiliency policy.",
"description": "Create or update container app resiliency policy.",
"operationId": "AppResiliency_CreateOrUpdate",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "appName",
"description": "Name of the Container App.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "name",
"description": "Name of the resiliency policy.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "resiliencyEnvelope",
"in": "body",
"description": "The resiliency policy to create or update.",
"required": true,
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/AppResiliency"
}
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/AppResiliency"
}
},
"201": {
"description": "App Resiliency create or update has been started.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/AppResiliency"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Create or Update App Resiliency": {
"$ref": "./examples/AppResiliency_CreateOrUpdate.json"
}
}
},
"patch": {
"tags": [
"AppResiliency"
],
"summary": "Update an application's resiliency policy.",
"description": "Update container app resiliency policy.",
"operationId": "AppResiliency_Update",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "appName",
"description": "Name of the Container App.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "name",
"description": "Name of the resiliency policy.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "resiliencyEnvelope",
"in": "body",
"description": "The resiliency policy to update.",
"required": true,
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/AppResiliency"
}
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/AppResiliency"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Update App Resiliency": {
"$ref": "./examples/AppResiliency_Patch.json"
}
}
},
"delete": {
"tags": [
"AppResiliency"
],
"summary": "Delete an application's resiliency policy.",
"description": "Delete container app resiliency policy.",
"operationId": "AppResiliency_Delete",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "appName",
"description": "Name of the Container App.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "name",
"description": "Name of the resiliency policy.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Resiliency policy deleted successfully."
},
"204": {
"description": "Resiliency policy does not exist."
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Delete App Resiliency": {
"$ref": "./examples/AppResiliency_Delete.json"
}
}
},
"get": {
"tags": [
"AppResiliency"
],
"summary": "Get an application's resiliency policy.",
"description": "Get container app resiliency policy.",
"operationId": "AppResiliency_Get",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "appName",
"description": "Name of the Container App.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "name",
"description": "Name of the resiliency policy.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/AppResiliency"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Get App Resiliency": {
"$ref": "./examples/AppResiliency_Get.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies": {
"get": {
"tags": [
"AppResiliency"
],
"summary": "List an application's resiliency policies.",
"description": "List container app resiliency policies.",
"operationId": "AppResiliency_List",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "appName",
"description": "Name of the Container App.",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/AppResiliencyCollection"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"List App Resiliency": {
"$ref": "./examples/AppResiliency_List.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
}
}
Loading

0 comments on commit 0235efb

Please sign in to comment.