Skip to content

Commit abbefbb

Browse files
committed
Add scheduled events data object.
1 parent 7970856 commit abbefbb

File tree

1 file changed

+132
-0
lines changed
  • specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2023-11-02-preview

1 file changed

+132
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "ContainerServiceClient",
5+
"description": "The Container Service Client.",
6+
"version": "2023-11-02-preview"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {},
37+
"definitions": {
38+
"ScheduledEvent": {
39+
"type": "object",
40+
"allOf": [
41+
{
42+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
43+
}
44+
],
45+
"properties": {
46+
"properties": {
47+
"description": "Properties for the event.",
48+
"$ref": "#/definitions/ScheduledEventProperties"
49+
}
50+
},
51+
"description": "Scheduled event."
52+
},
53+
"ScheduledEventProperties": {
54+
"type": "object",
55+
"properties": {
56+
"description": {
57+
"type": "string",
58+
"description": "The description of the event."
59+
},
60+
"eventId": {
61+
"type": "string",
62+
"description": "The event id of the event."
63+
},
64+
"eventSource": {
65+
"type": "string",
66+
"description": "The source of the event."
67+
},
68+
"eventStatus": {
69+
"type": "string",
70+
"enum": [
71+
"Scheduled",
72+
"Started",
73+
"Completed",
74+
"Cancelled",
75+
"Failed"
76+
],
77+
"x-ms-enum": {
78+
"name": "eventStatus",
79+
"modelAsString": true
80+
},
81+
"description": "The status of the event."
82+
},
83+
"scheduledTime": {
84+
"type": "string",
85+
"format": "date-time",
86+
"description": "The time of the event is scheduled to start."
87+
},
88+
"startTime": {
89+
"type": "string",
90+
"format": "date-time",
91+
"description": "The time the event actually started."
92+
},
93+
"lastUpdateTime": {
94+
"type": "string",
95+
"format": "date-time",
96+
"description": "The last time the state of the event was updated."
97+
},
98+
"resources": {
99+
"type": "array",
100+
"items": {
101+
"type": "string",
102+
"format": "arm-id",
103+
"x-ms-arm-id-details": {
104+
"allowedResources": [
105+
{
106+
"type": "Microsoft.ContainerService/managedClusters"
107+
},
108+
{
109+
"type": "Microsoft.ContainerService/managedClusters/agentPools"
110+
}
111+
]
112+
}
113+
},
114+
"description": "The list of resources impacted by the event."
115+
},
116+
"resourceType": {
117+
"type": "string",
118+
"enum": [
119+
"ManagedCluster",
120+
"AgentPool"
121+
],
122+
"x-ms-enum": {
123+
"name": "ResourceType",
124+
"modelAsString": true
125+
},
126+
"description": "The resource type of the event."
127+
}
128+
},
129+
"description": "Properties for a scheduled event."
130+
}
131+
}
132+
}

0 commit comments

Comments
 (0)