Skip to content

Commit 27aeb8b

Browse files
author
Brian Blum
committed
Fix responses and examples and remove internal class definition
1 parent 4d7242f commit 27aeb8b

File tree

1 file changed

+29
-58
lines changed

1 file changed

+29
-58
lines changed

arm-mediaservices/2015-10-01/swagger/media.json

Lines changed: 29 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
"application/json": {
6969
"value": [
7070
{
71-
"NameAvailable": false,
72-
"Reason": "AlreadyExists",
73-
"Message": "Already in use by another Media Service instance. Please try again with a name that is not likely to be in use."
71+
"nameAvailable": false,
72+
"reason": "AlreadyExists",
73+
"message": "Already in use by another Media Service instance. Please try again with a name that is not likely to be in use."
7474
}
7575
]
7676
}
@@ -117,7 +117,6 @@
117117
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-media/providers/Microsoft.Media/mediaservices/contosomedia",
118118
"type": "Microsoft.Media/mediaservices",
119119
"location": "West US",
120-
"tags":null,
121120
"properties":{
122121
"apiEndpoints":[
123122
{
@@ -182,7 +181,6 @@
182181
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-media/providers/Microsoft.Media/mediaservices/contosomedia",
183182
"type": "Microsoft.Media/mediaservices",
184183
"location": "West US",
185-
"tags":null,
186184
"properties":{
187185
"apiEndpoints":[
188186
{
@@ -249,7 +247,6 @@
249247
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-media/providers/Microsoft.Media/mediaservices/contosomedia",
250248
"type": "Microsoft.Media/mediaservices",
251249
"location": "West US",
252-
"tags":null,
253250
"properties":{
254251
"apiEndpoints":[
255252
{
@@ -351,7 +348,6 @@
351348
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-media/providers/Microsoft.Media/mediaservices/contosomedia",
352349
"type": "Microsoft.Media/mediaservices",
353350
"location": "West US",
354-
"tags":null,
355351
"properties":{
356352
"apiEndpoints":[
357353
{
@@ -582,7 +578,6 @@
582578
},
583579
"ResourceType": {
584580
"description": "Type of MediaService resource.",
585-
"readOnly": true,
586581
"enum": [
587582
"mediaservices"
588583
],
@@ -597,28 +592,26 @@
597592
"example": {
598593
"value": [
599594
{
600-
"NameAvailable": true,
601-
"Reason": null,
602-
"Message": null
595+
"nameAvailable": true
603596
},
604597
{
605-
"NameAvailable": false,
606-
"Reason": "AlreadyExists",
607-
"Message": "Already in use by another Media Service instance. Please try again with a name that is not likely to be in use."
598+
"nameAvailable": false,
599+
"reason": "AlreadyExists",
600+
"message": "Already in use by another Media Service instance. Please try again with a name that is not likely to be in use."
608601
},
609602
{
610-
"NameAvailable": false,
611-
"Reason": "Invalid",
612-
"Message": "The media service name should be between 3 and 24 characters and may contain only lowercase letters and numbers."
603+
"nameAvailable": false,
604+
"reason": "Invalid",
605+
"message": "The media service name should be between 3 and 24 characters and may contain only lowercase letters and numbers."
613606
}
614607
]
615608
},
616609
"properties": {
617-
"NameAvailable": {
610+
"nameAvailable": {
618611
"description": "Specifies if the name is available.",
619612
"type": "boolean"
620613
},
621-
"Reason": {
614+
"reason": {
622615
"description": "Specifies the reason if the name is not available.",
623616
"type": "string",
624617
"enum": [
@@ -631,7 +624,7 @@
631624
"modelAsString": false
632625
}
633626
},
634-
"Message": {
627+
"message": {
635628
"description": "Specifies the detailed reason if the name is not available.",
636629
"type": "string"
637630
}
@@ -651,26 +644,14 @@
651644
}
652645
},
653646
"properties": {
654-
"name": {
655-
"description": "Then name of the Media Service resource.",
656-
"type": "string"
657-
},
658-
"id": {
659-
"description": "The Azure Resource Manager identifier.",
660-
"type": "string"
661-
},
662-
"type": {
663-
"description": "The type of the Media Service resource.",
664-
"type": "string"
665-
},
666647
"properties": {
667648
"x-ms-client-flatten": true,
668649
"$ref": "#/definitions/MediaServiceProperties"
669650
}
670651
},
671652
"allOf": [
672653
{
673-
"$ref": "#/definitions/TrackedResource"
654+
"$ref": "#/definitions/Resource"
674655
}
675656
]
676657
},
@@ -757,6 +738,17 @@
757738
"description": "The type of the resource",
758739
"readOnly": true,
759740
"type": "string"
741+
},
742+
"location": {
743+
"type": "string",
744+
"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)."
745+
},
746+
"tags": {
747+
"type": "object",
748+
"additionalProperties": {
749+
"type": "string"
750+
},
751+
"description": "Tags to help categorize the resource in the Azure portal."
760752
}
761753
},
762754
"x-ms-azure-resource": true
@@ -799,6 +791,10 @@
799791
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-media/providers/Microsoft.Storage/storageAccounts/contosomedia",
800792
"isPrimary": true
801793
},
794+
"required": [
795+
"id",
796+
"isPrimary"
797+
],
802798
"properties": {
803799
"id": {
804800
"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).",
@@ -824,31 +820,6 @@
824820
"type": "string"
825821
}
826822
}
827-
},
828-
"TrackedResource": {
829-
"description": "ARM tracked resource",
830-
"type": "object",
831-
"allOf": [
832-
{
833-
"$ref": "#/definitions/Resource"
834-
}
835-
],
836-
"required": [
837-
"location"
838-
],
839-
"properties": {
840-
"location": {
841-
"description": "The location of the resource.",
842-
"type": "string"
843-
},
844-
"tags": {
845-
"description": "The tags of the resource.",
846-
"type": "object",
847-
"additionalProperties": {
848-
"type": "string"
849-
}
850-
}
851-
}
852823
}
853824
},
854825
"parameters": {

0 commit comments

Comments
 (0)