forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 12681 in Azure/azure-rest-api-specs
Merge 4193a02e80fe21ddd519947bc16785389ed7504c into 3c55dd70b35c4f0f68b51ed9df35063ba793bff3
- Loading branch information
SDKAuto
committed
Feb 4, 2021
1 parent
017eca6
commit 3c65de0
Showing
8 changed files
with
17,904 additions
and
2,886 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 |
---|---|---|
@@ -1,99 +1,123 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2015-10-01/Microsoft.Media.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Media", | ||
"description": "Microsoft Media Service Resource Type", | ||
"resourceDefinitions": { | ||
"mediaServices": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"enum": [ | ||
"Microsoft.Media/mediaServices" | ||
] | ||
}, | ||
"apiVersion": { | ||
"enum": [ | ||
"2015-10-01" | ||
] | ||
}, | ||
"name": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"pattern": "^[a-z0-9]{3,26}$" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/storageAccounts" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"apiVersion", | ||
"location" | ||
], | ||
"description": "Microsoft.Media/mediaServices" | ||
} | ||
}, | ||
"definitions" : { | ||
"storageAccounts": { | ||
"properties": { | ||
"storageAccounts": { | ||
"oneOf" : [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/storageAccount" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"storageAccount": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"isPrimary": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"isPrimary" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2015-10-01/Microsoft.Media.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Media", | ||
"description": "Microsoft Media Resource Types", | ||
"resourceDefinitions": { | ||
"mediaservices": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2015-10-01" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth)." | ||
}, | ||
"name": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"pattern": "^[a-z0-9]{3,24}$", | ||
"minLength": 3, | ||
"maxLength": 24 | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Name of the Media Service." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/MediaServiceProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The additional properties of a Media Service resource." | ||
}, | ||
"tags": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Tags to help categorize the resource in the Azure portal." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Microsoft.Media/mediaservices" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Media/mediaservices" | ||
} | ||
}, | ||
"definitions": { | ||
"MediaServiceProperties": { | ||
"type": "object", | ||
"properties": { | ||
"storageAccounts": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/StorageAccount" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The storage accounts for this resource." | ||
} | ||
}, | ||
"description": "The additional properties of a Media Service resource." | ||
}, | ||
"StorageAccount": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "The id of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts (isPrimary false)." | ||
}, | ||
"isPrimary": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Is this storage account resource the primary storage account for the Media Service resource. Blob only storage must set this to false." | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"isPrimary" | ||
], | ||
"description": "The properties of a storage account associated with this resource." | ||
} | ||
} | ||
} |
Oops, something went wrong.