From 5aefecbe32408d68e731023417158b347cc0c1f2 Mon Sep 17 00:00:00 2001 From: Jun Sun <33297523+JunSun17@users.noreply.github.com> Date: Thu, 18 Jan 2024 20:36:14 -0800 Subject: [PATCH] Add scheduled events data object. (#26774) --- .../2023-11-02-preview/scheduledEvents.json | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2023-11-02-preview/scheduledEvents.json diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2023-11-02-preview/scheduledEvents.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2023-11-02-preview/scheduledEvents.json new file mode 100644 index 000000000000..b5a5df407658 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2023-11-02-preview/scheduledEvents.json @@ -0,0 +1,132 @@ +{ + "swagger": "2.0", + "info": { + "title": "ContainerServiceClient", + "description": "The Container Service Client.", + "version": "2023-11-02-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "ScheduledEvent": { + "type": "object", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "description": "Properties for the event.", + "$ref": "#/definitions/ScheduledEventProperties" + } + }, + "description": "Scheduled event." + }, + "ScheduledEventProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "The description of the event." + }, + "eventId": { + "type": "string", + "description": "The event id of the event." + }, + "eventSource": { + "type": "string", + "description": "The source of the event." + }, + "eventStatus": { + "type": "string", + "enum": [ + "Scheduled", + "Started", + "Completed", + "Cancelled", + "Failed" + ], + "x-ms-enum": { + "name": "eventStatus", + "modelAsString": true + }, + "description": "The status of the event." + }, + "scheduledTime": { + "type": "string", + "format": "date-time", + "description": "The time of the event is scheduled to start." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The time the event actually started." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The last time the state of the event was updated." + }, + "resources": { + "type": "array", + "items": { + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ContainerService/managedClusters" + }, + { + "type": "Microsoft.ContainerService/managedClusters/agentPools" + } + ] + } + }, + "description": "The list of resources impacted by the event." + }, + "resourceType": { + "type": "string", + "enum": [ + "ManagedCluster", + "AgentPool" + ], + "x-ms-enum": { + "name": "ResourceType", + "modelAsString": true + }, + "description": "The resource type of the event." + } + }, + "description": "Properties for a scheduled event." + } + } +}