Skip to content

Commit

Permalink
Fix arm review comments for container app (#26455)
Browse files Browse the repository at this point in the history
* update

* update

* update
  • Loading branch information
Juliehzl authored Oct 31, 2023
1 parent 5574619 commit 0f27d3a
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@
}
],
"responses": {
"200": {
"description": "Resource deleted successfully."
},
"202": {
"description": "Resource deletion accepted.",
"headers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,6 @@
}
],
"responses": {
"200": {
"description": "Resource deleted successfully."
},
"202": {
"description": "Resource deletion accepted.",
"headers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@
"items": {
"$ref": "#/definitions/DaprComponentServiceBinding"
},
"x-ms-identifier": [
"x-ms-identifiers": [
"name"
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -83,7 +84,8 @@
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "name",
Expand Down Expand Up @@ -141,7 +143,8 @@
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "name",
Expand Down Expand Up @@ -170,6 +173,12 @@
"$ref": "./CommonDefinitions.json#/definitions/DaprSubscription"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DaprSubscription"
}
},
"default": {
"description": "Common error response.",
"schema": {
Expand Down Expand Up @@ -209,7 +218,8 @@
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
"type": "string",
"pattern": "^[-\\w\\._\\(\\)]+$"
},
{
"name": "name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"builderName": "testBuilder"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"buildName": "testBuild"
},
"responses": {
"200": {},
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,30 @@
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprSubscriptions/mysubscription",
"name": "mysubscription",
"type": "Microsoft.App/managedEnvironments/daprSubscriptions",
"properties": {
"pubsubName": "mypubsubcomponent",
"topic": "inventory",
"routes": {
"rules": [],
"default": "/products"
},
"scopes": [
"warehouseapp",
"customersupportapp"
],
"bulkSubscribe": {
"enabled": true,
"maxMessagesCount": 123,
"maxAwaitDurationMs": 500
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprSubscriptions/mysubscription",
"name": "mysubscription",
"type": "Microsoft.App/managedEnvironments/daprSubscriptions",
"properties": {
"pubsubName": "mypubsubcomponent",
"topic": "inventory",
"routes": {
"rules": [],
"default": "/products"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,34 @@
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprSubscriptions/mysubscription",
"name": "mysubscription",
"type": "Microsoft.App/managedEnvironments/daprSubscriptions",
"properties": {
"pubsubName": "mypubsubcomponent",
"topic": "inventory",
"routes": {
"rules": [
{
"match": "event.type == 'widget'",
"path": "/widgets"
},
{
"match": "event.type == 'gadget'",
"path": "/gadgets"
}
],
"default": "/products"
},
"metadata": {
"foo": "bar",
"hello": "world"
}
}
}
}
}
}

0 comments on commit 0f27d3a

Please sign in to comment.