Skip to content

Commit

Permalink
Merge pull request #2970 from Azure/autogenerate-batch
Browse files Browse the repository at this point in the history
Update Generated Schemas
  • Loading branch information
Xynoclafe authored Sep 21, 2023
2 parents a435a5a + 50099b7 commit 4d8b88f
Show file tree
Hide file tree
Showing 9 changed files with 17,838 additions and 117 deletions.
326 changes: 326 additions & 0 deletions schemas/2023-01-01/Microsoft.StorageActions.json
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"
}
}
}
10 changes: 7 additions & 3 deletions schemas/2023-05-01/Microsoft.Batch.json
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,7 @@
},
"resizeTimeout": {
"type": "string",
"default": "PT15M",
"format": "duration",
"description": "The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request)."
},
Expand Down Expand Up @@ -1415,6 +1416,7 @@
},
"version": {
"type": "string",
"default": "latest",
"description": "A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'."
}
}
Expand Down Expand Up @@ -2024,7 +2026,8 @@
"taskSlotsPerNode": {
"oneOf": [
{
"type": "integer"
"type": "integer",
"default": "1"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
Expand Down Expand Up @@ -2187,13 +2190,14 @@
"maxTaskRetryCount": {
"oneOf": [
{
"type": "integer"
"type": "integer",
"default": "0"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The Batch service retries a task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the task. If the maximum retry count is -1, the Batch service retries the task without limit."
"description": "The Batch service retries a task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the task. If the maximum retry count is -1, the Batch service retries the task without limit. Default is 0."
},
"resourceFiles": {
"oneOf": [
Expand Down
Loading

0 comments on commit 4d8b88f

Please sign in to comment.