Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR mediaservices] update name for Java SDK #1979

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
222 changes: 123 additions & 99 deletions schemas/2015-10-01/Microsoft.Media.json
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."
}
}
}
Loading