Skip to content

Commit b40c1b9

Browse files
[Hub Generated] Review request for Microsoft.Chaos to add version preview/2023-04-15-preview (#23744)
* chore: update capability type and fix reference * chore: update to fix lint issues
1 parent a39da5e commit b40c1b9

File tree

4 files changed

+34
-88
lines changed

4 files changed

+34
-88
lines changed

specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-04-01-preview/types/capabilityTypes.json

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -71,28 +71,21 @@
7171
"description": "String of the kind of this Capability Type.",
7272
"readOnly": true
7373
},
74-
"permissionsNecessary": {
75-
"type": "object",
76-
"description": "Array of control and data plane actions necessary to execute capability type.",
77-
"properties": {
78-
"actions": {
79-
"type": "array",
80-
"description": "Control plane actions necessary to execute capability type.",
81-
"items": {
82-
"type": "string",
83-
"description": "Control plane action necessary to execute capability type."
84-
}
85-
},
86-
"dataActions": {
87-
"type": "array",
88-
"description": "Control plane actions necessary to execute capability type.",
89-
"items": {
90-
"type": "string",
91-
"description": "Data plane action necessary to execute capability type."
92-
}
93-
}
94-
},
95-
"readOnly": true
74+
"azureRBACActions": {
75+
"type": "array",
76+
"description": "Control plane actions necessary to execute capability type.",
77+
"items": {
78+
"type": "string",
79+
"description": "Control plane action necessary to execute capability type."
80+
}
81+
},
82+
"azureRBACDataActions": {
83+
"type": "array",
84+
"description": "Data plane actions necessary to execute capability type.",
85+
"items": {
86+
"type": "string",
87+
"description": "Data plane action necessary to execute capability type."
88+
}
9689
},
9790
"runtimeProperties": {
9891
"type": "object",

specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-04-01-preview/types/common.json

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
}
2525
},
2626
"userAssignedIdentities": {
27-
"$ref": "#/definitions/userAssignedIdentities",
28-
"description": "The list of user identities associated with the experiment. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
27+
"$ref": "../../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/UserAssignedIdentities",
28+
"description": "The list of user identities associated with the Experiment. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
2929
},
3030
"principalId": {
3131
"type": "string",
@@ -45,26 +45,6 @@
4545
],
4646
"additionalProperties": false
4747
},
48-
"userAssignedIdentities": {
49-
"type": "object",
50-
"description": "The list of user identities associated with the experiment.",
51-
"additionalProperties": {
52-
"type": "object",
53-
"description": "The list of user identities associated with the experiment.",
54-
"properties": {
55-
"principalId": {
56-
"readOnly": true,
57-
"type": "string",
58-
"description": "The principal id of user assigned identity."
59-
},
60-
"clientId": {
61-
"readOnly": true,
62-
"type": "string",
63-
"description": "The client id of user assigned identity."
64-
}
65-
}
66-
}
67-
},
6848
"url": {
6949
"type": "string",
7050
"description": "String that represents a URL.",

specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-04-15-preview/types/capabilityTypes.json

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -71,28 +71,21 @@
7171
"description": "String of the kind of this Capability Type.",
7272
"readOnly": true
7373
},
74-
"permissionsNecessary": {
75-
"type": "object",
76-
"description": "Array of control and data plane actions necessary to execute capability type.",
77-
"properties": {
78-
"actions": {
79-
"type": "array",
80-
"description": "Control plane actions necessary to execute capability type.",
81-
"items": {
82-
"type": "string",
83-
"description": "Control plane action necessary to execute capability type."
84-
}
85-
},
86-
"dataActions": {
87-
"type": "array",
88-
"description": "Control plane actions necessary to execute capability type.",
89-
"items": {
90-
"type": "string",
91-
"description": "Data plane action necessary to execute capability type."
92-
}
93-
}
94-
},
95-
"readOnly": true
74+
"azureRBACActions": {
75+
"type": "array",
76+
"description": "Control plane actions necessary to execute capability type.",
77+
"items": {
78+
"type": "string",
79+
"description": "Control plane action necessary to execute capability type."
80+
}
81+
},
82+
"azureRBACDataActions": {
83+
"type": "array",
84+
"description": "Data plane actions necessary to execute capability type.",
85+
"items": {
86+
"type": "string",
87+
"description": "Data plane action necessary to execute capability type."
88+
}
9689
},
9790
"runtimeProperties": {
9891
"type": "object",

specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-04-15-preview/types/common.json

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
}
2525
},
2626
"userAssignedIdentities": {
27-
"$ref": "#/definitions/userAssignedIdentities",
28-
"description": "The list of user identities associated with the experiment. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
27+
"$ref": "../../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/UserAssignedIdentities",
28+
"description": "The list of user identities associated with the Experiment. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
2929
},
3030
"principalId": {
3131
"type": "string",
@@ -45,26 +45,6 @@
4545
],
4646
"additionalProperties": false
4747
},
48-
"userAssignedIdentities": {
49-
"type": "object",
50-
"description": "The list of user identities associated with the experiment.",
51-
"additionalProperties": {
52-
"type": "object",
53-
"description": "The list of user identities associated with the experiment.",
54-
"properties": {
55-
"principalId": {
56-
"readOnly": true,
57-
"type": "string",
58-
"description": "The principal id of user assigned identity."
59-
},
60-
"clientId": {
61-
"readOnly": true,
62-
"type": "string",
63-
"description": "The client id of user assigned identity."
64-
}
65-
}
66-
}
67-
},
6848
"url": {
6949
"type": "string",
7050
"description": "String that represents a URL.",

0 commit comments

Comments
 (0)