Skip to content
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

Release app microsoft.app 2023 04 01 preview #24103

Merged
merged 16 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,8 @@ MSLISTSTATUS
MSMCAZR
msrp
MSTI
Mtls
mtls
mucho
multiapi
Multiclass
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down Expand Up @@ -530,11 +530,11 @@
}
},
"ScaleRuleAuth": {
"description": "Auth Secrets for Container App Scale Rule",
"description": "Auth Secrets for Scale Rule",
"type": "object",
"properties": {
"secretRef": {
"description": "Name of the Container App secret from which to pull the auth params.",
"description": "Name of the secret from which to pull the auth params.",
"type": "string"
},
"triggerParameter": {
Expand Down Expand Up @@ -578,6 +578,11 @@
"description": "User friendly suffix that is appended to the revision name",
"type": "string"
},
"terminationGracePeriodSeconds": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

terminationGracePeriodSeconds

Minor: terminationGracePeriodInSeconds (notice the word "In").

"description": "Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
"format": "int64",
"type": "integer"
},
"initContainers": {
"description": "List of specialized containers that run before app containers.",
"type": "array",
Expand Down Expand Up @@ -611,6 +616,16 @@
"x-ms-identifiers": [
"name"
]
},
"serviceBinds": {
"description": "List of container app services bound to the app",
"type": "array",
"items": {
"$ref": "#/definitions/ServiceBind"
},
"x-ms-identifier": [
"name"
]
}
}
},
Expand Down Expand Up @@ -648,6 +663,10 @@
"x-ms-identifiers": [
"secretRef"
]
},
"mountOptions": {
"description": "Mount options used while mounting the AzureFile. Must be a comma-separated string.",
"type": "string"
}
}
},
Expand Down Expand Up @@ -676,6 +695,10 @@
"mountPath": {
"description": "Path within the container at which the volume should be mounted.Must not contain ':'.",
"type": "string"
},
"subPath": {
"description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
"type": "string"
}
}
},
Expand Down Expand Up @@ -1136,6 +1159,20 @@
]
}
}
},
"ServiceBind": {
"description": "Configuration to bind a ContainerApp to a dev ContainerApp Service",
"type": "object",
"properties": {
"serviceId": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it will always be an Azure Resource Id, consider using https://github.com/Azure/autorest/blob/main/docs/extensions/readme.md#x-ms-arm-id-details.

"description": "Resource id of the target service",
"type": "string"
},
"name": {
"description": "Name of the service bind",
"type": "string"
}
}
}
},
"securityDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"version": "2022-11-01-preview",
"version": "2023-04-01-preview",
"title": "ContainerApps API Client"
},
"host": "management.azure.com",
Expand Down Expand Up @@ -483,6 +483,124 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/start": {
"post": {
"tags": [
"ContainerApps"
],
"summary": "Start a container app",
"operationId": "ContainerApps_Start",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "containerAppName",
"in": "path",
"description": "Name of the Container App.",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
}
],
"responses": {
"200": {
"description": "Container App started successfully.",
"schema": {
"$ref": "#/definitions/ContainerApp"
}
},
"202": {
"description": "Start operation is in progress.",
"headers": {
"Location": {
"type": "string"
}
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Start Container App": {
"$ref": "./examples/ContainerApps_Start.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/stop": {
"post": {
"tags": [
"ContainerApps"
],
"summary": "Stop a container app",
"operationId": "ContainerApps_Stop",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "containerAppName",
"in": "path",
"description": "Name of the Container App.",
"required": true,
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
}
],
"responses": {
"200": {
"description": "Container App stopped successfully.",
"schema": {
"$ref": "#/definitions/ContainerApp"
}
},
"202": {
"description": "Stop operation is in progress.",
"headers": {
"Location": {
"type": "string"
}
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Stop Container App": {
"$ref": "./examples/ContainerApps_Stop.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -535,6 +653,10 @@
"format": "int32",
"description": "Optional. Max inactive revisions a Container App can have.",
"type": "integer"
},
"service": {
"$ref": "#/definitions/Service",
"description": "Container App to be a dev Container App Service"
}
}
},
Expand Down Expand Up @@ -1205,6 +1327,19 @@
"x-ms-client-flatten": true
}
}
},
"Service": {
"description": "Container App to be a dev service",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"description": "Dev ContainerApp service type",
"type": "string"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string

Should this be enum here?

}
}
}
},
"securityDefinitions": {
Expand Down
Loading