File tree Expand file tree Collapse file tree 5 files changed +119
-1
lines changed
specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview Expand file tree Collapse file tree 5 files changed +119
-1
lines changed Original file line number Diff line number Diff line change 230230 }
231231 },
232232 "x-ms-long-running-operation" : false
233+ },
234+ "patch" : {
235+ "tags" : [
236+ " DaprComponents"
237+ ],
238+ "summary" : " Update Dapr Component's properties." ,
239+ "description" : " Patches a Dapr Component. Only patching of tags is supported currently" ,
240+ "operationId" : " DaprComponents_Update" ,
241+ "parameters" : [
242+ {
243+ "$ref" : " ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
244+ },
245+ {
246+ "$ref" : " ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
247+ },
248+ {
249+ "name" : " environmentName" ,
250+ "in" : " path" ,
251+ "description" : " Name of the Managed Environment." ,
252+ "required" : true ,
253+ "type" : " string"
254+ },
255+ {
256+ "name" : " name" ,
257+ "in" : " path" ,
258+ "description" : " Name of the Dapr Component." ,
259+ "required" : true ,
260+ "type" : " string"
261+ },
262+ {
263+ "$ref" : " ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
264+ }
265+ ],
266+ "responses" : {
267+ "200" : {
268+ "description" : " OK" ,
269+ "schema" : {
270+ "$ref" : " #/definitions/DaprComponent"
271+ }
272+ },
273+ "default" : {
274+ "description" : " Common error response." ,
275+ "schema" : {
276+ "$ref" : " ./CommonDefinitions.json#/definitions/DefaultErrorResponse"
277+ }
278+ }
279+ },
280+ "x-ms-examples" : {
281+ "Patch Dapr Component" : {
282+ "$ref" : " ./examples/DaprComponents_Patch.json"
283+ }
284+ }
233285 }
234286 }
235287 },
260312 "type" : " object" ,
261313 "allOf" : [
262314 {
263- "$ref" : " ../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource "
315+ "$ref" : " ../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource "
264316 }
265317 ],
266318 "properties" : {
Original file line number Diff line number Diff line change 66 "name" : " reddog" ,
77 "api-version" : " 2022-01-01-preview" ,
88 "daprComponentEnvelope" : {
9+ "location" : " East US" ,
910 "properties" : {
1011 "componentType" : " state.azure.cosmosdb" ,
1112 "version" : " v1" ,
4748 "body" : {
4849 "id" : " /subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog" ,
4950 "name" : " reddog" ,
51+ "location" : " East US" ,
5052 "type" : " Microsoft.App/managedEnvironments/daprcomponents" ,
5153 "properties" : {
5254 "componentType" : " state.azure.cosmosdb" ,
Original file line number Diff line number Diff line change 1212 "id" : " /subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog" ,
1313 "name" : " reddog" ,
1414 "type" : " Microsoft.App/managedEnvironments/daprcomponents" ,
15+ "location" : " East US" ,
1516 "properties" : {
1617 "componentType" : " state.azure.cosmosdb" ,
1718 "version" : " v1" ,
Original file line number Diff line number Diff line change 1313 "id" : " /subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/daprcomponents/reddog" ,
1414 "name" : " reddog" ,
1515 "type" : " Microsoft.App/managedEnvironments/daprcomponents" ,
16+ "location" : " East US" ,
1617 "properties" : {
1718 "componentType" : " state.azure.cosmosdb" ,
1819 "version" : " v1" ,
Original file line number Diff line number Diff line change 1+ {
2+ "parameters" : {
3+ "subscriptionId" : " 8efdecc5-919e-44eb-b179-915dca89ebf9" ,
4+ "resourceGroupName" : " examplerg" ,
5+ "environmentName" : " myenvironment" ,
6+ "name" : " reddog" ,
7+ "api-version" : " 2022-01-01-preview" ,
8+ "daprComponentEnvelope" : {
9+ "tags" : {
10+ "tag1" : " value1" ,
11+ "tag2" : " value2"
12+ }
13+ }
14+ },
15+ "responses" : {
16+ "200" : {
17+ "body" : {
18+ "id" : " /subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/daprcomponents/reddog" ,
19+ "name" : " reddog" ,
20+ "location" : " East US" ,
21+ "type" : " Microsoft.App/managedEnvironments/daprcomponents" ,
22+ "tags" : {
23+ "tag1" : " value1" ,
24+ "tag2" : " value2"
25+ },
26+ "properties" : {
27+ "componentType" : " state.azure.cosmosdb" ,
28+ "version" : " v1" ,
29+ "ignoreErrors" : false ,
30+ "initTimeout" : " 50s" ,
31+ "secrets" : [
32+ {
33+ "name" : " masterkey"
34+ }
35+ ],
36+ "metadata" : [
37+ {
38+ "name" : " url" ,
39+ "value" : " <COSMOS-URL>"
40+ },
41+ {
42+ "name" : " database" ,
43+ "value" : " itemsDB"
44+ },
45+ {
46+ "name" : " collection" ,
47+ "value" : " items"
48+ },
49+ {
50+ "name" : " masterkey" ,
51+ "secretRef" : " masterkey"
52+ }
53+ ],
54+ "scopes" : [
55+ " container-app-1" ,
56+ " container-app-2"
57+ ]
58+ }
59+ }
60+ }
61+ }
62+ }
You can’t perform that action at this time.
0 commit comments