forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2970 from Azure/autogenerate-batch
Update Generated Schemas
- Loading branch information
Showing
9 changed files
with
17,838 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,326 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2023-01-01/Microsoft.StorageActions.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.StorageActions", | ||
"description": "Microsoft StorageActions Resource Types", | ||
"resourceDefinitions": { | ||
"storageTasks": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2023-01-01" | ||
] | ||
}, | ||
"identity": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ManagedServiceIdentity" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Managed service identity (system assigned and/or user assigned identities)" | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "The geo-location where the resource lives" | ||
}, | ||
"name": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"pattern": "^[a-z0-9]{3,18}$", | ||
"minLength": 3, | ||
"maxLength": 18 | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/StorageTaskProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Properties of the storage task." | ||
}, | ||
"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.StorageActions/storageTasks" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"location", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.StorageActions/storageTasks" | ||
} | ||
}, | ||
"definitions": { | ||
"ElseCondition": { | ||
"type": "object", | ||
"properties": { | ||
"operations": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/StorageTaskOperation" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "List of operations to execute in the else block" | ||
} | ||
}, | ||
"required": [ | ||
"operations" | ||
], | ||
"description": "The else block of storage task operation" | ||
}, | ||
"IfCondition": { | ||
"type": "object", | ||
"properties": { | ||
"condition": { | ||
"type": "string", | ||
"description": "The condition predicate which is composed of object properties, eg: blob and container properties." | ||
}, | ||
"operations": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/StorageTaskOperation" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "List of operations to execute when the condition predicate satisfies." | ||
} | ||
}, | ||
"required": [ | ||
"condition", | ||
"operations" | ||
], | ||
"description": "The if block of storage task operation" | ||
}, | ||
"ManagedServiceIdentity": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"None", | ||
"SystemAssigned", | ||
"UserAssigned", | ||
"SystemAssigned,UserAssigned" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"userAssignedIdentities": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/UserAssignedIdentity" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests." | ||
} | ||
}, | ||
"required": [ | ||
"type" | ||
], | ||
"description": "Managed service identity (system assigned and/or user assigned identities)" | ||
}, | ||
"StorageTaskAction": { | ||
"type": "object", | ||
"properties": { | ||
"else": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ElseCondition" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The else block of storage task operation" | ||
}, | ||
"if": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/IfCondition" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The if block of storage task operation" | ||
} | ||
}, | ||
"required": [ | ||
"if" | ||
], | ||
"description": "The storage task action represents conditional statements and operations to be performed on target objects." | ||
}, | ||
"StorageTaskOperation": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"SetBlobTier", | ||
"SetBlobTags", | ||
"SetBlobImmutabilityPolicy", | ||
"SetBlobLegalHold", | ||
"SetBlobExpiry", | ||
"DeleteBlob", | ||
"UndeleteBlob" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The operation to be performed on the object." | ||
}, | ||
"onFailure": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"break" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Action to be taken when the operation fails for a object." | ||
}, | ||
"onSuccess": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"continue" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Action to be taken when the operation is successful for a object." | ||
}, | ||
"parameters": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Key-value parameters for the operation." | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
], | ||
"description": "Represents an operation to be performed on the object" | ||
}, | ||
"StorageTaskProperties": { | ||
"type": "object", | ||
"properties": { | ||
"action": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/StorageTaskAction" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The storage task action represents conditional statements and operations to be performed on target objects." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "Text that describes the purpose of the storage task" | ||
}, | ||
"enabled": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Storage Task is enabled when set to true and disabled when set to false" | ||
} | ||
}, | ||
"required": [ | ||
"action", | ||
"description", | ||
"enabled" | ||
], | ||
"description": "Properties of the storage task." | ||
}, | ||
"UserAssignedIdentity": { | ||
"type": "object", | ||
"properties": {}, | ||
"description": "User assigned identity properties" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.