From c21884113f0dbe9ecac5f884ea5034294d258617 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 27 Apr 2023 05:40:22 +0000 Subject: [PATCH] CodeGen from PR 23744 in Azure/azure-rest-api-specs Merge 70cd81406586e78aedd21ab988328cc882f2d4ce into 2e2f8781fac5b72af86895d2e97ee0b1fab02048 --- .../2021-09-15-preview/Microsoft.Chaos.json | 599 --------------- .../2022-07-01-preview/Microsoft.Chaos.json | 599 --------------- .../2022-10-01-preview/Microsoft.Chaos.json | 666 ----------------- .../2023-04-01-preview/Microsoft.Chaos.json | 687 ------------------ schemas/common/autogeneratedResources.json | 12 - 5 files changed, 2563 deletions(-) delete mode 100644 schemas/2021-09-15-preview/Microsoft.Chaos.json delete mode 100644 schemas/2022-07-01-preview/Microsoft.Chaos.json delete mode 100644 schemas/2022-10-01-preview/Microsoft.Chaos.json delete mode 100644 schemas/2023-04-01-preview/Microsoft.Chaos.json diff --git a/schemas/2021-09-15-preview/Microsoft.Chaos.json b/schemas/2021-09-15-preview/Microsoft.Chaos.json deleted file mode 100644 index 98e0bf1de9..0000000000 --- a/schemas/2021-09-15-preview/Microsoft.Chaos.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-09-15-preview/Microsoft.Chaos.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Chaos", - "description": "Microsoft Chaos Resource Types", - "resourceDefinitions": { - "experiments": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-09-15-preview" - ] - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/ResourceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The managed identity of a resource." - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[^<>%&:?#/\\\\]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Experiment resource name." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ExperimentProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the Experiment properties model." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/experiments" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.Chaos/experiments" - } - }, - "extension_resourceDefinitions": { - "targets": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-09-15-preview" - ] - }, - "location": { - "type": "string", - "description": "Location of the target resource." - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9_\\-\\.]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Target resource name." - }, - "properties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": {} - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the base Target properties model." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/targets_capabilities_childResource" - } - ] - } - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/targets" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Chaos/targets" - }, - "targets_capabilities": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-09-15-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Capability resource name." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/targets/capabilities" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Chaos/targets/capabilities" - } - }, - "definitions": { - "Action": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/DelayAction" - }, - { - "$ref": "#/definitions/DiscreteAction" - }, - { - "$ref": "#/definitions/ContinuousAction" - } - ], - "properties": { - "name": { - "type": "string", - "maxLength": 2048, - "description": "String that represents a URN." - } - }, - "required": [ - "name" - ], - "description": "Model that represents the base action model." - }, - "Branch": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Action" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of actions." - }, - "name": { - "type": "string", - "minLength": 1, - "description": "String of the branch name." - } - }, - "required": [ - "actions", - "name" - ], - "description": "Model that represents a branch in the step." - }, - "ContinuousAction": { - "type": "object", - "properties": { - "duration": { - "oneOf": [ - { - "type": "string", - "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "ISO8601 formatted string that represents a duration." - }, - "parameters": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyValuePair" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of key value pairs." - }, - "selectorId": { - "type": "string", - "minLength": 1, - "description": "String that represents a selector." - }, - "type": { - "type": "string", - "enum": [ - "continuous" - ] - } - }, - "required": [ - "duration", - "parameters", - "selectorId", - "type" - ], - "description": "Model that represents a continuous action." - }, - "DelayAction": { - "type": "object", - "properties": { - "duration": { - "oneOf": [ - { - "type": "string", - "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "ISO8601 formatted string that represents a duration." - }, - "type": { - "type": "string", - "enum": [ - "delay" - ] - } - }, - "required": [ - "duration", - "type" - ], - "description": "Model that represents a delay action." - }, - "DiscreteAction": { - "type": "object", - "properties": { - "parameters": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyValuePair" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of key value pairs." - }, - "selectorId": { - "type": "string", - "minLength": 1, - "description": "String that represents a selector." - }, - "type": { - "type": "string", - "enum": [ - "discrete" - ] - } - }, - "required": [ - "parameters", - "selectorId", - "type" - ], - "description": "Model that represents a discrete action." - }, - "ExperimentProperties": { - "type": "object", - "properties": { - "selectors": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Selector" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of selectors." - }, - "startOnCreation": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A boolean value that indicates if experiment should be started on creation or not." - }, - "steps": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Step" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of steps." - } - }, - "required": [ - "selectors", - "steps" - ], - "description": "Model that represents the Experiment properties model." - }, - "KeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "minLength": 1, - "description": "The name of the setting for the action." - }, - "value": { - "type": "string", - "minLength": 1, - "description": "The value of the setting for the action." - } - }, - "required": [ - "key", - "value" - ], - "description": "A map to describe the settings of an action." - }, - "ResourceIdentity": { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "None", - "SystemAssigned" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String of the resource identity type." - } - }, - "required": [ - "type" - ], - "description": "The managed identity of a resource." - }, - "Selector": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "String of the selector ID." - }, - "targets": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/TargetReference" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of Target references." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Percent", - "Random", - "Tag", - "List" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enum of the selector type." - } - }, - "required": [ - "id", - "targets", - "type" - ], - "description": "Model that represents a selector in the Experiment resource." - }, - "Step": { - "type": "object", - "properties": { - "branches": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Branch" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of branches." - }, - "name": { - "type": "string", - "minLength": 1, - "description": "String of the step name." - } - }, - "required": [ - "branches", - "name" - ], - "description": "Model that represents a step in the Experiment resource." - }, - "TargetReference": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "string", - "pattern": "^\\/[Ss][Uu][Bb][Ss][Cc][Rr][Ii][Pp][Tt][Ii][Oo][Nn][Ss]\\/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\\/[Rr][Ee][Ss][Oo][Uu][Rr][Cc][Ee][Gg][Rr][Oo][Uu][Pp][Ss]\\/[a-zA-Z0-9_\\-\\.\\(\\)]*[a-zA-Z0-9_\\-\\(\\)]\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[a-zA-Z0-9]+\\.[a-zA-Z0-9]+\\/[a-zA-Z0-9_\\-\\.]+\\/[a-zA-Z0-9_\\-\\.]+\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[Mm][Ii][Cc][Rr][Oo][Ss][Oo][Ff][Tt]\\.[Cc][Hh][Aa][Oo][Ss]\\/[Tt][Aa][Rr][Gg][Ee][Tt][Ss]\\/[a-zA-Z0-9_\\-\\.]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String of the resource ID of a Target resource." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ChaosTarget" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enum of the Target reference type." - } - }, - "required": [ - "id", - "type" - ], - "description": "Model that represents a reference to a Target in the selector." - }, - "targets_capabilities_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-09-15-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Capability resource name." - }, - "type": { - "type": "string", - "enum": [ - "capabilities" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Chaos/targets/capabilities" - } - } -} \ No newline at end of file diff --git a/schemas/2022-07-01-preview/Microsoft.Chaos.json b/schemas/2022-07-01-preview/Microsoft.Chaos.json deleted file mode 100644 index 2323348c5c..0000000000 --- a/schemas/2022-07-01-preview/Microsoft.Chaos.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2022-07-01-preview/Microsoft.Chaos.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Chaos", - "description": "Microsoft Chaos Resource Types", - "resourceDefinitions": { - "experiments": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-07-01-preview" - ] - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/ResourceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The managed identity of a resource." - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[^<>%&:?#/\\\\]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Experiment resource name." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ExperimentProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the Experiment properties model." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/experiments" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.Chaos/experiments" - } - }, - "extension_resourceDefinitions": { - "targets": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-07-01-preview" - ] - }, - "location": { - "type": "string", - "description": "Location of the target resource." - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9_\\-\\.]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Target resource name." - }, - "properties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": {} - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the base Target properties model." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/targets_capabilities_childResource" - } - ] - } - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/targets" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Chaos/targets" - }, - "targets_capabilities": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-07-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Capability resource name." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/targets/capabilities" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Chaos/targets/capabilities" - } - }, - "definitions": { - "Action": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/DelayAction" - }, - { - "$ref": "#/definitions/DiscreteAction" - }, - { - "$ref": "#/definitions/ContinuousAction" - } - ], - "properties": { - "name": { - "type": "string", - "maxLength": 2048, - "description": "String that represents a URN." - } - }, - "required": [ - "name" - ], - "description": "Model that represents the base action model." - }, - "Branch": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Action" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of actions." - }, - "name": { - "type": "string", - "minLength": 1, - "description": "String of the branch name." - } - }, - "required": [ - "actions", - "name" - ], - "description": "Model that represents a branch in the step." - }, - "ContinuousAction": { - "type": "object", - "properties": { - "duration": { - "oneOf": [ - { - "type": "string", - "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "ISO8601 formatted string that represents a duration." - }, - "parameters": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyValuePair" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of key value pairs." - }, - "selectorId": { - "type": "string", - "minLength": 1, - "description": "String that represents a selector." - }, - "type": { - "type": "string", - "enum": [ - "continuous" - ] - } - }, - "required": [ - "duration", - "parameters", - "selectorId", - "type" - ], - "description": "Model that represents a continuous action." - }, - "DelayAction": { - "type": "object", - "properties": { - "duration": { - "oneOf": [ - { - "type": "string", - "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "ISO8601 formatted string that represents a duration." - }, - "type": { - "type": "string", - "enum": [ - "delay" - ] - } - }, - "required": [ - "duration", - "type" - ], - "description": "Model that represents a delay action." - }, - "DiscreteAction": { - "type": "object", - "properties": { - "parameters": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyValuePair" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of key value pairs." - }, - "selectorId": { - "type": "string", - "minLength": 1, - "description": "String that represents a selector." - }, - "type": { - "type": "string", - "enum": [ - "discrete" - ] - } - }, - "required": [ - "parameters", - "selectorId", - "type" - ], - "description": "Model that represents a discrete action." - }, - "ExperimentProperties": { - "type": "object", - "properties": { - "selectors": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Selector" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of selectors." - }, - "startOnCreation": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A boolean value that indicates if experiment should be started on creation or not." - }, - "steps": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Step" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of steps." - } - }, - "required": [ - "selectors", - "steps" - ], - "description": "Model that represents the Experiment properties model." - }, - "KeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "minLength": 1, - "description": "The name of the setting for the action." - }, - "value": { - "type": "string", - "minLength": 1, - "description": "The value of the setting for the action." - } - }, - "required": [ - "key", - "value" - ], - "description": "A map to describe the settings of an action." - }, - "ResourceIdentity": { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "None", - "SystemAssigned" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String of the resource identity type." - } - }, - "required": [ - "type" - ], - "description": "The managed identity of a resource." - }, - "Selector": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "String of the selector ID." - }, - "targets": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/TargetReference" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of Target references." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Percent", - "Random", - "Tag", - "List" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enum of the selector type." - } - }, - "required": [ - "id", - "targets", - "type" - ], - "description": "Model that represents a selector in the Experiment resource." - }, - "Step": { - "type": "object", - "properties": { - "branches": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Branch" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of branches." - }, - "name": { - "type": "string", - "minLength": 1, - "description": "String of the step name." - } - }, - "required": [ - "branches", - "name" - ], - "description": "Model that represents a step in the Experiment resource." - }, - "TargetReference": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "string", - "pattern": "^\\/[Ss][Uu][Bb][Ss][Cc][Rr][Ii][Pp][Tt][Ii][Oo][Nn][Ss]\\/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\\/[Rr][Ee][Ss][Oo][Uu][Rr][Cc][Ee][Gg][Rr][Oo][Uu][Pp][Ss]\\/[a-zA-Z0-9_\\-\\.\\(\\)]*[a-zA-Z0-9_\\-\\(\\)]\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[a-zA-Z0-9]+\\.[a-zA-Z0-9]+\\/[a-zA-Z0-9_\\-\\.]+\\/[a-zA-Z0-9_\\-\\.]+\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[Mm][Ii][Cc][Rr][Oo][Ss][Oo][Ff][Tt]\\.[Cc][Hh][Aa][Oo][Ss]\\/[Tt][Aa][Rr][Gg][Ee][Tt][Ss]\\/[a-zA-Z0-9_\\-\\.]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String of the resource ID of a Target resource." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ChaosTarget" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enum of the Target reference type." - } - }, - "required": [ - "id", - "type" - ], - "description": "Model that represents a reference to a Target in the selector." - }, - "targets_capabilities_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-07-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Capability resource name." - }, - "type": { - "type": "string", - "enum": [ - "capabilities" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Chaos/targets/capabilities" - } - } -} \ No newline at end of file diff --git a/schemas/2022-10-01-preview/Microsoft.Chaos.json b/schemas/2022-10-01-preview/Microsoft.Chaos.json deleted file mode 100644 index 54ecd8d556..0000000000 --- a/schemas/2022-10-01-preview/Microsoft.Chaos.json +++ /dev/null @@ -1,666 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.Chaos.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Chaos", - "description": "Microsoft Chaos Resource Types", - "resourceDefinitions": { - "experiments": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-10-01-preview" - ] - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/ResourceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The managed identity of a resource." - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[^<>%&:?#/\\\\]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Experiment resource name." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ExperimentProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the Experiment properties model." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/experiments" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.Chaos/experiments" - } - }, - "extension_resourceDefinitions": { - "targets": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-10-01-preview" - ] - }, - "location": { - "type": "string", - "description": "Location of the target resource." - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9_\\-\\.]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Target resource name." - }, - "properties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": {} - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the base Target properties model." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/targets_capabilities_childResource" - } - ] - } - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/targets" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Chaos/targets" - }, - "targets_capabilities": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-10-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Capability resource name." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/targets/capabilities" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Chaos/targets/capabilities" - } - }, - "definitions": { - "Action": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/DelayAction" - }, - { - "$ref": "#/definitions/DiscreteAction" - }, - { - "$ref": "#/definitions/ContinuousAction" - } - ], - "properties": { - "name": { - "type": "string", - "maxLength": 2048, - "description": "String that represents a URN." - } - }, - "required": [ - "name" - ], - "description": "Model that represents the base action model." - }, - "Branch": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Action" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of actions." - }, - "name": { - "type": "string", - "minLength": 1, - "description": "String of the branch name." - } - }, - "required": [ - "actions", - "name" - ], - "description": "Model that represents a branch in the step." - }, - "ContinuousAction": { - "type": "object", - "properties": { - "duration": { - "oneOf": [ - { - "type": "string", - "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "ISO8601 formatted string that represents a duration." - }, - "parameters": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyValuePair" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of key value pairs." - }, - "selectorId": { - "type": "string", - "minLength": 1, - "description": "String that represents a selector." - }, - "type": { - "type": "string", - "enum": [ - "continuous" - ] - } - }, - "required": [ - "duration", - "parameters", - "selectorId", - "type" - ], - "description": "Model that represents a continuous action." - }, - "DelayAction": { - "type": "object", - "properties": { - "duration": { - "oneOf": [ - { - "type": "string", - "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "ISO8601 formatted string that represents a duration." - }, - "type": { - "type": "string", - "enum": [ - "delay" - ] - } - }, - "required": [ - "duration", - "type" - ], - "description": "Model that represents a delay action." - }, - "DiscreteAction": { - "type": "object", - "properties": { - "parameters": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyValuePair" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of key value pairs." - }, - "selectorId": { - "type": "string", - "minLength": 1, - "description": "String that represents a selector." - }, - "type": { - "type": "string", - "enum": [ - "discrete" - ] - } - }, - "required": [ - "parameters", - "selectorId", - "type" - ], - "description": "Model that represents a discrete action." - }, - "ExperimentProperties": { - "type": "object", - "properties": { - "selectors": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Selector" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of selectors." - }, - "startOnCreation": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A boolean value that indicates if experiment should be started on creation or not." - }, - "steps": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Step" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of steps." - } - }, - "required": [ - "selectors", - "steps" - ], - "description": "Model that represents the Experiment properties model." - }, - "Filter": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/SimpleFilter" - } - ], - "properties": {}, - "description": "Model that represents available filter types that can be applied to a targets list." - }, - "KeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "minLength": 1, - "description": "The name of the setting for the action." - }, - "value": { - "type": "string", - "minLength": 1, - "description": "The value of the setting for the action." - } - }, - "required": [ - "key", - "value" - ], - "description": "A map to describe the settings of an action." - }, - "ResourceIdentity": { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "None", - "SystemAssigned" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String of the resource identity type." - } - }, - "required": [ - "type" - ], - "description": "The managed identity of a resource." - }, - "Selector": { - "type": "object", - "properties": { - "filter": { - "oneOf": [ - { - "$ref": "#/definitions/Filter" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents available filter types that can be applied to a targets list." - }, - "id": { - "type": "string", - "minLength": 1, - "description": "String of the selector ID." - }, - "targets": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/TargetReference" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of Target references." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Percent", - "Random", - "Tag", - "List" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enum of the selector type." - } - }, - "required": [ - "id", - "targets", - "type" - ], - "description": "Model that represents a selector in the Experiment resource." - }, - "SimpleFilter": { - "type": "object", - "properties": { - "parameters": { - "oneOf": [ - { - "$ref": "#/definitions/SimpleFilterParameters" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the Simple filter parameters." - }, - "type": { - "type": "string", - "enum": [ - "Simple" - ] - } - }, - "required": [ - "type" - ], - "description": "Model that represents a simple target filter." - }, - "SimpleFilterParameters": { - "type": "object", - "properties": { - "zones": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of Azure availability zones to filter targets by." - } - }, - "description": "Model that represents the Simple filter parameters." - }, - "Step": { - "type": "object", - "properties": { - "branches": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Branch" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of branches." - }, - "name": { - "type": "string", - "minLength": 1, - "description": "String of the step name." - } - }, - "required": [ - "branches", - "name" - ], - "description": "Model that represents a step in the Experiment resource." - }, - "TargetReference": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "string", - "pattern": "^\\/[Ss][Uu][Bb][Ss][Cc][Rr][Ii][Pp][Tt][Ii][Oo][Nn][Ss]\\/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\\/[Rr][Ee][Ss][Oo][Uu][Rr][Cc][Ee][Gg][Rr][Oo][Uu][Pp][Ss]\\/[a-zA-Z0-9_\\-\\.\\(\\)]*[a-zA-Z0-9_\\-\\(\\)]\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[a-zA-Z0-9]+\\.[a-zA-Z0-9]+\\/[a-zA-Z0-9_\\-\\.]+\\/[a-zA-Z0-9_\\-\\.]+\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[Mm][Ii][Cc][Rr][Oo][Ss][Oo][Ff][Tt]\\.[Cc][Hh][Aa][Oo][Ss]\\/[Tt][Aa][Rr][Gg][Ee][Tt][Ss]\\/[a-zA-Z0-9_\\-\\.]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String of the resource ID of a Target resource." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ChaosTarget" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enum of the Target reference type." - } - }, - "required": [ - "id", - "type" - ], - "description": "Model that represents a reference to a Target in the selector." - }, - "targets_capabilities_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-10-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Capability resource name." - }, - "type": { - "type": "string", - "enum": [ - "capabilities" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Chaos/targets/capabilities" - } - } -} \ No newline at end of file diff --git a/schemas/2023-04-01-preview/Microsoft.Chaos.json b/schemas/2023-04-01-preview/Microsoft.Chaos.json deleted file mode 100644 index 7bfecab867..0000000000 --- a/schemas/2023-04-01-preview/Microsoft.Chaos.json +++ /dev/null @@ -1,687 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.Chaos.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Chaos", - "description": "Microsoft Chaos Resource Types", - "resourceDefinitions": { - "experiments": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2023-04-01-preview" - ] - }, - "identity": { - "oneOf": [ - { - "$ref": "#/definitions/ResourceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The identity of a resource." - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[^<>%&:?#/\\\\]+$", - "minLength": 1 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Experiment resource name." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ExperimentProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the Experiment properties model." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/experiments" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.Chaos/experiments" - } - }, - "extension_resourceDefinitions": { - "targets": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2023-04-01-preview" - ] - }, - "location": { - "type": "string", - "description": "Location of the target resource." - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9_\\-\\.]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Target resource name." - }, - "properties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": {} - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the base Target properties model." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/targets_capabilities_childResource" - } - ] - } - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/targets" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Chaos/targets" - }, - "targets_capabilities": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2023-04-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Capability resource name." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Chaos/targets/capabilities" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Chaos/targets/capabilities" - } - }, - "definitions": { - "Action": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/DelayAction" - }, - { - "$ref": "#/definitions/DiscreteAction" - }, - { - "$ref": "#/definitions/ContinuousAction" - } - ], - "properties": { - "name": { - "type": "string", - "maxLength": 2048, - "description": "String that represents a URN." - } - }, - "required": [ - "name" - ], - "description": "Model that represents the base action model." - }, - "Branch": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Action" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of actions." - }, - "name": { - "type": "string", - "minLength": 1, - "description": "String of the branch name." - } - }, - "required": [ - "actions", - "name" - ], - "description": "Model that represents a branch in the step." - }, - "Componentsewb5tmschemasuserassignedidentitiesadditionalproperties": { - "type": "object", - "properties": {}, - "description": "The list of user identities associated with the experiment." - }, - "ContinuousAction": { - "type": "object", - "properties": { - "duration": { - "oneOf": [ - { - "type": "string", - "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "ISO8601 formatted string that represents a duration." - }, - "parameters": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyValuePair" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of key value pairs." - }, - "selectorId": { - "type": "string", - "minLength": 1, - "description": "String that represents a selector." - }, - "type": { - "type": "string", - "enum": [ - "continuous" - ] - } - }, - "required": [ - "duration", - "parameters", - "selectorId", - "type" - ], - "description": "Model that represents a continuous action." - }, - "DelayAction": { - "type": "object", - "properties": { - "duration": { - "oneOf": [ - { - "type": "string", - "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "ISO8601 formatted string that represents a duration." - }, - "type": { - "type": "string", - "enum": [ - "delay" - ] - } - }, - "required": [ - "duration", - "type" - ], - "description": "Model that represents a delay action." - }, - "DiscreteAction": { - "type": "object", - "properties": { - "parameters": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/KeyValuePair" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of key value pairs." - }, - "selectorId": { - "type": "string", - "minLength": 1, - "description": "String that represents a selector." - }, - "type": { - "type": "string", - "enum": [ - "discrete" - ] - } - }, - "required": [ - "parameters", - "selectorId", - "type" - ], - "description": "Model that represents a discrete action." - }, - "ExperimentProperties": { - "type": "object", - "properties": { - "selectors": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Selector" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of selectors." - }, - "startOnCreation": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A boolean value that indicates if experiment should be started on creation or not." - }, - "steps": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Step" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of steps." - } - }, - "required": [ - "selectors", - "steps" - ], - "description": "Model that represents the Experiment properties model." - }, - "Filter": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/SimpleFilter" - } - ], - "properties": {}, - "description": "Model that represents available filter types that can be applied to a targets list." - }, - "KeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "minLength": 1, - "description": "The name of the setting for the action." - }, - "value": { - "type": "string", - "minLength": 1, - "description": "The value of the setting for the action." - } - }, - "required": [ - "key", - "value" - ], - "description": "A map to describe the settings of an action." - }, - "ResourceIdentity": { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "None", - "SystemAssigned", - "UserAssigned" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String of the resource identity type." - }, - "userAssignedIdentities": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Componentsewb5tmschemasuserassignedidentitiesadditionalproperties" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The list of user identities associated with the experiment." - } - }, - "required": [ - "type" - ], - "description": "The identity of a resource." - }, - "Selector": { - "type": "object", - "properties": { - "filter": { - "oneOf": [ - { - "$ref": "#/definitions/Filter" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents available filter types that can be applied to a targets list." - }, - "id": { - "type": "string", - "minLength": 1, - "description": "String of the selector ID." - }, - "targets": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/TargetReference" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of Target references." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Percent", - "Random", - "Tag", - "List" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enum of the selector type." - } - }, - "required": [ - "id", - "targets", - "type" - ], - "description": "Model that represents a selector in the Experiment resource." - }, - "SimpleFilter": { - "type": "object", - "properties": { - "parameters": { - "oneOf": [ - { - "$ref": "#/definitions/SimpleFilterParameters" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Model that represents the Simple filter parameters." - }, - "type": { - "type": "string", - "enum": [ - "Simple" - ] - } - }, - "required": [ - "type" - ], - "description": "Model that represents a simple target filter." - }, - "SimpleFilterParameters": { - "type": "object", - "properties": { - "zones": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of Azure availability zones to filter targets by." - } - }, - "description": "Model that represents the Simple filter parameters." - }, - "Step": { - "type": "object", - "properties": { - "branches": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Branch" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of branches." - }, - "name": { - "type": "string", - "minLength": 1, - "description": "String of the step name." - } - }, - "required": [ - "branches", - "name" - ], - "description": "Model that represents a step in the Experiment resource." - }, - "TargetReference": { - "type": "object", - "properties": { - "id": { - "oneOf": [ - { - "type": "string", - "pattern": "^\\/[Ss][Uu][Bb][Ss][Cc][Rr][Ii][Pp][Tt][Ii][Oo][Nn][Ss]\\/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\\/[Rr][Ee][Ss][Oo][Uu][Rr][Cc][Ee][Gg][Rr][Oo][Uu][Pp][Ss]\\/[a-zA-Z0-9_\\-\\.\\(\\)]*[a-zA-Z0-9_\\-\\(\\)]\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[a-zA-Z0-9]+\\.[a-zA-Z0-9]+\\/[a-zA-Z0-9_\\-\\.]+\\/[a-zA-Z0-9_\\-\\.]+\\/[Pp][Rr][Oo][Vv][Ii][Dd][Ee][Rr][Ss]\\/[Mm][Ii][Cc][Rr][Oo][Ss][Oo][Ff][Tt]\\.[Cc][Hh][Aa][Oo][Ss]\\/[Tt][Aa][Rr][Gg][Ee][Tt][Ss]\\/[a-zA-Z0-9_\\-\\.]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String of the resource ID of a Target resource." - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ChaosTarget" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enum of the Target reference type." - } - }, - "required": [ - "id", - "type" - ], - "description": "Model that represents a reference to a Target in the selector." - }, - "targets_capabilities_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2023-04-01-preview" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\-\\.]+-\\d\\.\\d$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "String that represents a Capability resource name." - }, - "type": { - "type": "string", - "enum": [ - "capabilities" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Chaos/targets/capabilities" - } - } -} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 640ebad7f8..f09f604629 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -5059,18 +5059,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.CertificateRegistration.json#/resourceDefinitions/certificateOrders_certificates" }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-09-15-preview/Microsoft.Chaos.json#/resourceDefinitions/experiments" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-07-01-preview/Microsoft.Chaos.json#/resourceDefinitions/experiments" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.Chaos.json#/resourceDefinitions/experiments" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.Chaos.json#/resourceDefinitions/experiments" - }, { "$ref": "https://schema.management.azure.com/schemas/2016-02-01-preview/Microsoft.CognitiveServices.json#/resourceDefinitions/accounts" },