From 0600c51b69ad16525843dd679766748299c99b7e Mon Sep 17 00:00:00 2001 From: giakas Date: Wed, 24 Mar 2021 22:04:23 -0700 Subject: [PATCH 01/10] Adds base for updating Microsoft.Media from version stable/2020-05-01 to version 2021-05-01 --- .../stable/2021-05-01/AccountFilters.json | 519 +++ .../stable/2021-05-01/Accounts.json | 1444 ++++++++ .../2021-05-01/AssetsAndAssetFilters.json | 1248 +++++++ .../stable/2021-05-01/Common.json | 56 + .../stable/2021-05-01/ContentKeyPolicies.json | 1174 +++++++ .../stable/2021-05-01/Encoding.json | 3099 +++++++++++++++++ ...StreamingPoliciesAndStreamingLocators.json | 1264 +++++++ .../examples/accountFilters-create.json | 171 + .../examples/accountFilters-delete.json | 13 + .../examples/accountFilters-get-by-name.json | 56 + .../examples/accountFilters-list-all.json | 111 + .../examples/accountFilters-update.json | 81 + .../accounts-check-name-availability.json | 20 + .../2021-05-01/examples/accounts-create.json | 67 + .../2021-05-01/examples/accounts-delete.json | 12 + .../examples/accounts-get-by-name.json | 31 + .../examples/accounts-list-all-accounts.json | 53 + .../accounts-list-media-edge-policies.json | 27 + .../accounts-subscription-get-by-name.json | 31 + ...counts-subscription-list-all-accounts.json | 72 + .../examples/accounts-sync-storage-keys.json | 14 + .../2021-05-01/examples/accounts-update.json | 36 + .../examples/assetFilters-create.json | 172 + .../examples/assetFilters-delete.json | 14 + .../examples/assetFilters-get-by-name.json | 68 + .../examples/assetFilters-list-all.json | 131 + .../examples/assetFilters-update.json | 82 + .../2021-05-01/examples/assets-create.json | 49 + .../2021-05-01/examples/assets-delete.json | 13 + .../examples/assets-get-by-name.json | 28 + .../examples/assets-get-encryption-keys.json | 33 + .../2021-05-01/examples/assets-list-all.json | 101 + .../examples/assets-list-by-date.json | 102 + .../examples/assets-list-in-date-range.json | 60 + .../examples/assets-list-sas-urls.json | 23 + .../assets-list-streaming-locators.json | 33 + .../2021-05-01/examples/assets-update.json | 32 + ...-key-policies-create-multiple-options.json | 134 + ...ntent-key-policies-create-nodrm-token.json | 102 + ...nt-key-policies-create-playready-open.json | 131 + ...nt-key-policies-create-widevine-token.json | 124 + .../examples/content-key-policies-delete.json | 13 + .../content-key-policies-get-by-name.json | 63 + ...content-key-policies-get-with-secrets.json | 58 + .../content-key-policies-list-all.json | 165 + ...ent-key-policies-list-by-lastModified.json | 144 + ...ntent-key-policies-list-in-date-range.json | 16 + .../examples/content-key-policies-update.json | 52 + .../2021-05-01/examples/jobs-cancel.json | 13 + .../2021-05-01/examples/jobs-create.json | 70 + .../2021-05-01/examples/jobs-delete.json | 14 + .../2021-05-01/examples/jobs-get-by-name.json | 55 + .../jobs-list-all-filter-by-created.json | 105 + .../jobs-list-all-filter-by-lastmodified.json | 105 + ...obs-list-all-filter-by-name-and-state.json | 62 + .../jobs-list-all-filter-by-name.json | 101 + .../jobs-list-all-filter-by-state-eq.json | 102 + .../jobs-list-all-filter-by-state-ne.json | 102 + .../2021-05-01/examples/jobs-list-all.json | 143 + .../2021-05-01/examples/jobs-update.json | 71 + .../examples/liveevent-allocate.json | 13 + .../2021-05-01/examples/liveevent-create.json | 173 + .../2021-05-01/examples/liveevent-delete.json | 62 + .../examples/liveevent-list-all.json | 75 + .../examples/liveevent-list-by-name.json | 72 + .../2021-05-01/examples/liveevent-reset.json | 13 + .../2021-05-01/examples/liveevent-start.json | 13 + .../2021-05-01/examples/liveevent-stop.json | 16 + .../2021-05-01/examples/liveevent-update.json | 166 + .../examples/liveoutput-create.json | 65 + .../examples/liveoutput-delete.json | 15 + .../examples/liveoutput-list-all.json | 36 + .../examples/liveoutput-list-by-name.json | 34 + .../examples/operations-list-all.json | 589 ++++ .../private-endpoint-connection-delete.json | 12 + ...ivate-endpoint-connection-get-by-name.json | 28 + .../private-endpoint-connection-list.json | 46 + .../private-endpoint-connection-put.json | 36 + .../private-link-resources-get-by-name.json | 24 + .../examples/private-link-resources-list.json | 27 + .../streaming-locators-create-clear.json | 32 + ...-create-secure-userDefinedContentKeys.json | 69 + .../streaming-locators-create-secure.json | 54 + .../examples/streaming-locators-delete.json | 13 + .../streaming-locators-get-by-name.json | 27 + .../streaming-locators-list-content-keys.json | 41 + ...ors-list-paths-streaming-and-download.json | 50 + ...ng-locators-list-paths-streaming-only.json | 72 + .../examples/streaming-locators-list.json | 42 + .../streaming-policies-create-clear.json | 41 + ...cies-create-commonEncryptionCbcs-only.json | 67 + ...cies-create-commonEncryptionCenc-only.json | 94 + ...licies-create-envelopeEncryption-only.json | 57 + ...ming-policies-create-secure-streaming.json | 164 + .../examples/streaming-policies-delete.json | 13 + .../examples/streaming-policies-list.json | 211 ++ .../streaming-policy-get-by-name.json | 30 + .../examples/streamingendpoint-create.json | 154 + .../examples/streamingendpoint-delete.json | 44 + .../examples/streamingendpoint-list-all.json | 65 + .../streamingendpoint-list-by-name.json | 40 + .../examples/streamingendpoint-scale.json | 16 + .../examples/streamingendpoint-start.json | 13 + .../examples/streamingendpoint-stop.json | 13 + .../examples/streamingendpoint-update.json | 79 + .../examples/transforms-create.json | 84 + .../examples/transforms-delete.json | 13 + .../examples/transforms-get-by-name.json | 42 + ...transforms-list-all-filter-by-created.json | 47 + ...forms-list-all-filter-by-lastmodified.json | 47 + .../transforms-list-all-filter-by-name.json | 83 + .../examples/transforms-list-all.json | 81 + .../examples/transforms-update.json | 55 + .../stable/2021-05-01/streamingservice.json | 2012 +++++++++++ 114 files changed, 17965 insertions(+) create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-check-name-availability.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-all-accounts.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-media-edge-policies.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-sync-storage-keys.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json new file mode 100644 index 000000000000..ce4e09d0bf2e --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json @@ -0,0 +1,519 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2020-05-01" + }, + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "definitions": { + "PresentationTimeRange": { + "properties": { + "startTimestamp": { + "type": "integer", + "format": "int64", + "description": "The absolute start time boundary." + }, + "endTimestamp": { + "type": "integer", + "format": "int64", + "description": "The absolute end time boundary." + }, + "presentationWindowDuration": { + "type": "integer", + "format": "int64", + "description": "The relative to end sliding window." + }, + "liveBackoffDuration": { + "type": "integer", + "format": "int64", + "description": "The relative to end right edge." + }, + "timescale": { + "type": "integer", + "format": "int64", + "description": "The time scale of time stamps." + }, + "forceEndTimestamp": { + "type": "boolean", + "description": "The indicator of forcing existing of end time stamp." + } + }, + "type": "object", + "description": "The presentation time range, this is asset related and not recommended for Account Filter." + }, + "FilterTrackPropertyCondition": { + "properties": { + "property": { + "type": "string", + "enum": [ + "Unknown", + "Type", + "Name", + "Language", + "FourCC", + "Bitrate" + ], + "x-ms-enum": { + "name": "FilterTrackPropertyType", + "values": [ + { + "value": "Unknown", + "description": "The unknown track property type." + }, + { + "value": "Type", + "description": "The type." + }, + { + "value": "Name", + "description": "The name." + }, + { + "value": "Language", + "description": "The language." + }, + { + "value": "FourCC", + "description": "The fourCC." + }, + { + "value": "Bitrate", + "description": "The bitrate." + } + ], + "modelAsString": true + }, + "description": "The track property type." + }, + "value": { + "type": "string", + "description": "The track property value." + }, + "operation": { + "type": "string", + "enum": [ + "Equal", + "NotEqual" + ], + "x-ms-enum": { + "name": "FilterTrackPropertyCompareOperation", + "values": [ + { + "value": "Equal", + "description": "The equal operation." + }, + { + "value": "NotEqual", + "description": "The not equal operation." + } + ], + "modelAsString": true + }, + "description": "The track property condition operation." + } + }, + "type": "object", + "required": [ + "property", + "value", + "operation" + ], + "description": "The class to specify one track property condition." + }, + "FirstQuality": { + "properties": { + "bitrate": { + "type": "integer", + "format": "int32", + "description": "The first quality bitrate." + } + }, + "type": "object", + "required": [ + "bitrate" + ], + "description": "Filter First Quality" + }, + "FilterTrackSelection": { + "properties": { + "trackSelections": { + "type": "array", + "items": { + "$ref": "#/definitions/FilterTrackPropertyCondition" + }, + "description": "The track selections." + } + }, + "type": "object", + "required": [ + "trackSelections" + ], + "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." + }, + "MediaFilterProperties": { + "properties": { + "presentationTimeRange": { + "$ref": "#/definitions/PresentationTimeRange", + "description": "The presentation time range." + }, + "firstQuality": { + "$ref": "#/definitions/FirstQuality", + "description": "The first quality." + }, + "tracks": { + "type": "array", + "items": { + "$ref": "#/definitions/FilterTrackSelection" + }, + "description": "The tracks selection conditions." + } + }, + "type": "object", + "description": "The Media Filter properties." + }, + "AccountFilter": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/MediaFilterProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "An Account Filter." + }, + "AccountFilterCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AccountFilter" + }, + "description": "A collection of AccountFilter items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of AccountFilter items." + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { + "get": { + "summary": "List Account Filters", + "description": "List Account Filters in the Media Services account.", + "operationId": "AccountFilters_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AccountFilterCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List all Account Filters": { + "$ref": "examples/accountFilters-list-all.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { + "get": { + "summary": "Get an Account Filter.", + "description": "Get the details of an Account Filter in the Media Services account.", + "operationId": "AccountFilters_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AccountFilter" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "filterName", + "in": "path", + "required": true, + "type": "string", + "description": "The Account Filter name" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get an Account Filter by name": { + "$ref": "examples/accountFilters-get-by-name.json" + } + } + }, + "put": { + "summary": "Create or update an Account Filter", + "description": "Creates or updates an Account Filter in the Media Services account.", + "operationId": "AccountFilters_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AccountFilter" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AccountFilter" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "filterName", + "in": "path", + "required": true, + "type": "string", + "description": "The Account Filter name" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccountFilter" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Create an Account Filter": { + "$ref": "examples/accountFilters-create.json" + } + } + }, + "delete": { + "summary": "Delete an Account Filter.", + "description": "Deletes an Account Filter in the Media Services account.", + "operationId": "AccountFilters_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "filterName", + "in": "path", + "required": true, + "type": "string", + "description": "The Account Filter name" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete an Account Filter": { + "$ref": "examples/accountFilters-delete.json" + } + } + }, + "patch": { + "summary": "Update an Account Filter", + "description": "Updates an existing Account Filter in the Media Services account.", + "operationId": "AccountFilters_Update", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AccountFilter" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "filterName", + "in": "path", + "required": true, + "type": "string", + "description": "The Account Filter name" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccountFilter" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Update an Account Filter": { + "$ref": "examples/accountFilters-update.json" + } + } + } + } + }, + "parameters": { + "SubscriptionId": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The unique identifier for a Microsoft Azure subscription." + }, + "ResourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the Azure subscription.", + "x-ms-parameter-location": "method" + }, + "MediaServicesAccountName": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name.", + "x-ms-parameter-location": "method" + }, + "ApiVersion": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The version of the API to be used with the client request." + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json new file mode 100644 index 000000000000..29e79eb18e30 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json @@ -0,0 +1,1444 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2020-05-01" + }, + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "definitions": { + "Provider": { + "description": "A resource provider.", + "properties": { + "providerName": { + "description": "The provider name.", + "type": "string" + } + }, + "type": "object", + "required": [ + "providerName" + ] + }, + "OperationDisplay": { + "properties": { + "provider": { + "type": "string", + "description": "The service provider." + }, + "resource": { + "type": "string", + "description": "Resource on which the operation is performed." + }, + "operation": { + "type": "string", + "description": "The operation type." + }, + "description": { + "type": "string", + "description": "The operation description." + } + }, + "type": "object", + "description": "Operation details." + }, + "MetricDimension": { + "properties": { + "name": { + "type": "string", + "description": "The metric dimension name.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the dimension.", + "readOnly": true + }, + "toBeExportedForShoebox": { + "type": "boolean", + "description": "Whether to export metric to shoebox.", + "readOnly": true, + "x-nullable": false + } + }, + "type": "object", + "description": "A metric dimension." + }, + "MetricSpecification": { + "properties": { + "name": { + "type": "string", + "description": "The metric name.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The metric display name.", + "readOnly": true + }, + "displayDescription": { + "type": "string", + "description": "The metric display description.", + "readOnly": true + }, + "unit": { + "type": "string", + "enum": [ + "Bytes", + "Count", + "Milliseconds" + ], + "x-ms-enum": { + "name": "MetricUnit", + "values": [ + { + "value": "Bytes", + "description": "The number of bytes." + }, + { + "value": "Count", + "description": "The count." + }, + { + "value": "Milliseconds", + "description": "The number of milliseconds." + } + ], + "modelAsString": true + }, + "description": "The metric unit", + "readOnly": true, + "x-nullable": false + }, + "aggregationType": { + "type": "string", + "enum": [ + "Average", + "Count", + "Total" + ], + "x-ms-enum": { + "name": "MetricAggregationType", + "values": [ + { + "value": "Average", + "description": "The average." + }, + { + "value": "Count", + "description": "The count of a number of items, usually requests." + }, + { + "value": "Total", + "description": "The sum." + } + ], + "modelAsString": true + }, + "description": "The metric aggregation type", + "readOnly": true, + "x-nullable": false + }, + "lockAggregationType": { + "type": "string", + "enum": [ + "Average", + "Count", + "Total" + ], + "x-ms-enum": { + "name": "MetricAggregationType", + "values": [ + { + "value": "Average", + "description": "The average." + }, + { + "value": "Count", + "description": "The count of a number of items, usually requests." + }, + { + "value": "Total", + "description": "The sum." + } + ], + "modelAsString": true + }, + "description": "The metric lock aggregation type", + "readOnly": true, + "x-nullable": true + }, + "supportedAggregationTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Supported aggregation types." + }, + "dimensions": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricDimension" + }, + "description": "The metric dimensions.", + "readOnly": true + } + }, + "type": "object", + "description": "A metric emitted by service." + }, + "Properties": { + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification", + "description": "The service specifications.", + "readOnly": true + } + }, + "type": "object", + "description": "The service specification property." + }, + "ServiceSpecification": { + "properties": { + "logSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/LogSpecification" + }, + "description": "List of log specifications.", + "readOnly": true + }, + "metricSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "description": "List of metric specifications.", + "readOnly": true + } + }, + "type": "object", + "description": "The service metric specifications." + }, + "LogSpecification": { + "properties": { + "name": { + "type": "string", + "description": "The diagnostic log category name.", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The diagnostic log category display name.", + "readOnly": true + }, + "blobDuration": { + "type": "string", + "description": "The time range for requests in each blob.", + "readOnly": true + } + }, + "type": "object", + "description": "A diagnostic log emitted by service." + }, + "Operation": { + "description": "An operation.", + "properties": { + "name": { + "type": "string", + "description": "The operation name." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "The operation display name." + }, + "origin": { + "type": "string", + "description": "Origin of the operation." + }, + "properties": { + "$ref": "#/definitions/Properties", + "description": "Operation properties format." + } + }, + "type": "object", + "required": [ + "name" + ] + }, + "Location": { + "properties": { + "name": { + "type": "string" + } + }, + "type": "object", + "required": [ + "name" + ] + }, + "EntityNameAvailabilityCheckOutput": { + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Specifies if the name is available." + }, + "reason": { + "type": "string", + "description": "Specifies the reason if the name is not available." + }, + "message": { + "type": "string", + "description": "Specifies the detailed reason if the name is not available." + } + }, + "type": "object", + "required": [ + "nameAvailable" + ], + "description": "The response from the check name availability request." + }, + "StorageAccount": { + "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." + }, + "type": { + "type": "string", + "enum": [ + "Primary", + "Secondary" + ], + "x-ms-enum": { + "name": "StorageAccountType", + "values": [ + { + "value": "Primary", + "description": "The primary storage account for the Media Services account." + }, + { + "value": "Secondary", + "description": "A secondary storage account for the Media Services account." + } + ], + "modelAsString": true + }, + "description": "The type of the storage account." + } + }, + "type": "object", + "required": [ + "type" + ], + "description": "The storage account details." + }, + "SyncStorageKeysInput": { + "properties": { + "id": { + "type": "string", + "description": "The ID of the storage account resource." + } + }, + "type": "object", + "description": "The input to the sync storage keys request." + }, + "MediaServiceProperties": { + "properties": { + "mediaServiceId": { + "type": "string", + "format": "uuid", + "description": "The Media Services account ID.", + "readOnly": true, + "x-nullable": false + }, + "storageAccounts": { + "type": "array", + "items": { + "$ref": "#/definitions/StorageAccount" + }, + "description": "The storage accounts for this resource." + }, + "storageAuthentication": { + "type": "string", + "enum": [ + "System", + "ManagedIdentity" + ], + "x-ms-enum": { + "name": "StorageAuthentication", + "values": [ + { + "value": "System", + "description": "System authentication." + }, + { + "value": "ManagedIdentity", + "description": "Managed Identity authentication." + } + ], + "modelAsString": true + }, + "x-nullable": true + }, + "encryption": { + "$ref": "#/definitions/AccountEncryption", + "description": "The account encryption properties." + } + }, + "type": "object", + "description": "Properties of the Media Services account." + }, + "MediaService": { + "description": "A Media Services account.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/MediaServiceProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "#/definitions/MediaServiceIdentity", + "description": "The Managed Identity for the Media Services account." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object" + }, + "ListEdgePoliciesInput": { + "properties": { + "deviceId": { + "type": "string", + "description": "Unique identifier of the edge device." + } + }, + "type": "object" + }, + "EdgeUsageDataEventHub": { + "properties": { + "name": { + "type": "string", + "description": "Name of the Event Hub where usage will be reported." + }, + "namespace": { + "type": "string", + "description": "Namespace of the Event Hub where usage will be reported." + }, + "token": { + "type": "string", + "description": "SAS token needed to interact with Event Hub." + } + }, + "type": "object" + }, + "EdgeUsageDataCollectionPolicy": { + "properties": { + "dataCollectionFrequency": { + "type": "string", + "description": "Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H." + }, + "dataReportingFrequency": { + "type": "string", + "description": "Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H." + }, + "maxAllowedUnreportedUsageDuration": { + "type": "string", + "description": "Maximum time for which the functionality of the device will not be hampered for not reporting the usage data." + }, + "eventHubDetails": { + "$ref": "#/definitions/EdgeUsageDataEventHub", + "description": "Details of Event Hub where the usage will be reported." + } + }, + "type": "object" + }, + "EdgePolicies": { + "properties": { + "usageDataCollectionPolicy": { + "$ref": "#/definitions/EdgeUsageDataCollectionPolicy" + } + }, + "type": "object" + }, + "MediaServiceIdentity": { + "properties": { + "type": { + "type": "string", + "enum": [ + "SystemAssigned", + "None" + ], + "x-ms-enum": { + "name": "ManagedIdentityType", + "values": [ + { + "value": "SystemAssigned", + "description": "A system-assigned managed identity." + }, + { + "value": "None", + "description": "No managed identity." + } + ], + "modelAsString": true + }, + "description": "The identity type." + }, + "principalId": { + "type": "string", + "description": "The Principal ID of the identity.", + "readOnly": true + }, + "tenantId": { + "type": "string", + "description": "The Tenant ID of the identity.", + "readOnly": true + } + }, + "type": "object", + "required": [ + "type" + ] + }, + "KeyVaultProperties": { + "properties": { + "keyIdentifier": { + "type": "string", + "description": "The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey)." + }, + "currentKeyIdentifier": { + "type": "string", + "description": "The current key used to encrypt the Media Services account, including the key version.", + "readOnly": true + } + }, + "type": "object" + }, + "AccountEncryption": { + "properties": { + "type": { + "type": "string", + "enum": [ + "SystemKey", + "CustomerKey" + ], + "x-ms-enum": { + "name": "AccountEncryptionKeyType", + "values": [ + { + "value": "SystemKey", + "description": "The Account Key is encrypted with a System Key." + }, + { + "value": "CustomerKey", + "description": "The Account Key is encrypted with a Customer Key." + } + ], + "modelAsString": true + }, + "description": "The type of key used to encrypt the Account Key." + }, + "keyVaultProperties": { + "$ref": "#/definitions/KeyVaultProperties", + "description": "The properties of the key used to encrypt the account." + } + }, + "type": "object", + "required": [ + "type" + ] + }, + "OperationCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "A collection of Operation items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of Operation items." + }, + "MediaServiceCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MediaService" + }, + "description": "A collection of MediaService items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of MediaService items." + }, + "CheckNameAvailabilityInput": { + "description": "The input to the check name availability request.", + "properties": { + "name": { + "description": "The account name.", + "type": "string" + }, + "type": { + "description": "The account type. For a Media Services account, this should be 'MediaServices'.", + "type": "string" + } + }, + "type": "object" + } + }, + "paths": { + "/providers/Microsoft.Media/operations": { + "get": { + "summary": "List Operations", + "description": "Lists all the Media Services operations.", + "operationId": "Operations_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List Operations": { + "$ref": "examples/operations-list-all.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { + "get": { + "summary": "List Media Services accounts", + "description": "List Media Services accounts in the resource group", + "operationId": "Mediaservices_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaServiceCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List all Media Services accounts": { + "$ref": "examples/accounts-list-all-accounts.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { + "get": { + "summary": "Get a Media Services account", + "description": "Get the details of a Media Services account", + "operationId": "Mediaservices_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaService" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Media Services account by name": { + "$ref": "examples/accounts-get-by-name.json" + } + } + }, + "put": { + "summary": "Create or update a Media Services account", + "description": "Creates or updates a Media Services account", + "operationId": "Mediaservices_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/MediaService" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MediaService" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Create a Media Services account": { + "$ref": "examples/accounts-create.json" + } + } + }, + "delete": { + "summary": "Delete a Media Services account.", + "description": "Deletes a Media Services account", + "operationId": "Mediaservices_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete a Media Services account": { + "$ref": "examples/accounts-delete.json" + } + } + }, + "patch": { + "summary": "Update a Media Services account", + "description": "Updates an existing Media Services account", + "operationId": "Mediaservices_Update", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaService" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MediaService" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Update a Media Services accounts": { + "$ref": "examples/accounts-update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { + "post": { + "summary": "Synchronizes Storage Account Keys", + "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", + "operationId": "Mediaservices_SyncStorageKeys", + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SyncStorageKeysInput" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Synchronizes Storage Account Keys": { + "$ref": "examples/accounts-sync-storage-keys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/listEdgePolicies": { + "post": { + "summary": "List the media edge policies associated with the Media Services account.", + "description": "List the media edge policies associated with the Media Services account.", + "operationId": "Mediaservices_ListEdgePolicies", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EdgePolicies" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListEdgePoliciesInput" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "List the media edge policies.": { + "$ref": "examples/accounts-list-media-edge-policies.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources": { + "get": { + "summary": "Get list of group IDs.", + "description": "Get list of group IDs.", + "operationId": "PrivateLinkResources_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get list of all group IDs.": { + "$ref": "examples/private-link-resources-list.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}": { + "get": { + "summary": "Get group ID.", + "description": "Get group ID.", + "operationId": "PrivateLinkResources_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get details of a group ID.": { + "$ref": "examples/private-link-resources-get-by-name.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections": { + "get": { + "summary": "Get all private endpoint connections.", + "description": "Get all private endpoint connections.", + "operationId": "PrivateEndpointConnections_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get all private endpoint connections.": { + "$ref": "examples/private-endpoint-connection-list.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}": { + "get": { + "summary": "Get private endpoint connection.", + "description": "Get private endpoint connection.", + "operationId": "PrivateEndpointConnections_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get private endpoint connection.": { + "$ref": "examples/private-endpoint-connection-get-by-name.json" + } + } + }, + "put": { + "summary": "Update private endpoint connection.", + "description": "Update private endpoint connection.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Update private endpoint connection.": { + "$ref": "examples/private-endpoint-connection-put.json" + } + } + }, + "delete": { + "summary": "Delete private endpoint connection.", + "description": "Delete private endpoint connection.", + "operationId": "PrivateEndpointConnections_Delete", + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete private endpoint connection.": { + "$ref": "examples/private-endpoint-connection-delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { + "post": { + "summary": "Check Name Availability", + "description": "Checks whether the Media Service resource name is available.", + "operationId": "Locations_CheckNameAvailability", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityInput" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Check Name Availability": { + "$ref": "examples/accounts-check-name-availability.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { + "get": { + "summary": "List Media Services accounts", + "description": "List Media Services accounts in the subscription.", + "operationId": "Mediaservices_ListBySubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaServiceCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List all Media Services accounts": { + "$ref": "examples/accounts-subscription-list-all-accounts.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}": { + "get": { + "summary": "Get a Media Services account", + "description": "Get the details of a Media Services account", + "operationId": "Mediaservices_GetBySubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaService" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "description": "The Media Services account name.", + "name": "accountName", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Media Services account by name": { + "$ref": "examples/accounts-subscription-get-by-name.json" + } + } + } + } + }, + "parameters": { + "SubscriptionId": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The unique identifier for a Microsoft Azure subscription." + }, + "ResourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the Azure subscription.", + "x-ms-parameter-location": "method" + }, + "ApiVersion": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The version of the API to be used with the client request." + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json new file mode 100644 index 000000000000..9badab194841 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json @@ -0,0 +1,1248 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2020-05-01" + }, + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "definitions": { + "AssetProperties": { + "properties": { + "assetId": { + "type": "string", + "format": "uuid", + "description": "The Asset ID.", + "readOnly": true, + "x-nullable": false + }, + "created": { + "type": "string", + "format": "date-time", + "description": "The creation date of the Asset.", + "readOnly": true, + "x-nullable": false + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The last modified date of the Asset.", + "readOnly": true, + "x-nullable": false + }, + "alternateId": { + "type": "string", + "description": "The alternate ID of the Asset." + }, + "description": { + "type": "string", + "description": "The Asset description." + }, + "container": { + "type": "string", + "description": "The name of the asset blob container." + }, + "storageAccountName": { + "type": "string", + "description": "The name of the storage account." + }, + "storageEncryptionFormat": { + "type": "string", + "enum": [ + "None", + "MediaStorageClientEncryption" + ], + "x-ms-enum": { + "name": "AssetStorageEncryptionFormat", + "values": [ + { + "value": "None", + "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." + }, + { + "value": "MediaStorageClientEncryption", + "description": "The Asset is encrypted with Media Services client-side encryption." + } + ], + "modelAsString": true + }, + "description": "The Asset encryption format. One of None or MediaStorageEncryption.", + "readOnly": true, + "x-nullable": false + } + }, + "type": "object", + "description": "The Asset properties." + }, + "AssetContainerSas": { + "properties": { + "assetContainerSasUrls": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of Asset container SAS URLs." + } + }, + "type": "object", + "description": "The Asset Storage container SAS URLs." + }, + "AssetFileEncryptionMetadata": { + "properties": { + "initializationVector": { + "type": "string", + "description": "The Asset File initialization vector." + }, + "assetFileName": { + "type": "string", + "description": "The Asset File name." + }, + "assetFileId": { + "type": "string", + "format": "uuid", + "description": "The Asset File Id." + } + }, + "type": "object", + "required": [ + "assetFileId" + ], + "description": "The Asset File Storage encryption metadata." + }, + "StorageEncryptedAssetDecryptionData": { + "properties": { + "key": { + "type": "string", + "format": "byte", + "description": "The Asset File storage encryption key." + }, + "assetFileEncryptionMetadata": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetFileEncryptionMetadata" + }, + "description": "Asset File encryption metadata." + } + }, + "type": "object", + "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." + }, + "ListStreamingLocatorsResponse": { + "properties": { + "streamingLocators": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetStreamingLocator" + }, + "description": "The list of Streaming Locators.", + "readOnly": true + } + }, + "type": "object", + "description": "The Streaming Locators associated with this Asset." + }, + "AssetStreamingLocator": { + "properties": { + "name": { + "type": "string", + "description": "Streaming Locator name.", + "readOnly": true + }, + "assetName": { + "type": "string", + "description": "Asset Name.", + "readOnly": true + }, + "created": { + "type": "string", + "format": "date-time", + "description": "The creation time of the Streaming Locator.", + "readOnly": true, + "x-nullable": false + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the Streaming Locator.", + "readOnly": true, + "x-nullable": false + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the Streaming Locator.", + "readOnly": true, + "x-nullable": false + }, + "streamingLocatorId": { + "type": "string", + "format": "uuid", + "description": "StreamingLocatorId of the Streaming Locator.", + "readOnly": true, + "x-nullable": false + }, + "streamingPolicyName": { + "type": "string", + "description": "Name of the Streaming Policy used by this Streaming Locator.", + "readOnly": true + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", + "readOnly": true + } + }, + "type": "object", + "description": "Properties of the Streaming Locator." + }, + "Asset": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AssetProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "An Asset." + }, + "PresentationTimeRange": { + "properties": { + "startTimestamp": { + "type": "integer", + "format": "int64", + "description": "The absolute start time boundary." + }, + "endTimestamp": { + "type": "integer", + "format": "int64", + "description": "The absolute end time boundary." + }, + "presentationWindowDuration": { + "type": "integer", + "format": "int64", + "description": "The relative to end sliding window." + }, + "liveBackoffDuration": { + "type": "integer", + "format": "int64", + "description": "The relative to end right edge." + }, + "timescale": { + "type": "integer", + "format": "int64", + "description": "The time scale of time stamps." + }, + "forceEndTimestamp": { + "type": "boolean", + "description": "The indicator of forcing existing of end time stamp." + } + }, + "type": "object", + "description": "The presentation time range, this is asset related and not recommended for Account Filter." + }, + "FilterTrackPropertyCondition": { + "properties": { + "property": { + "type": "string", + "enum": [ + "Unknown", + "Type", + "Name", + "Language", + "FourCC", + "Bitrate" + ], + "x-ms-enum": { + "name": "FilterTrackPropertyType", + "values": [ + { + "value": "Unknown", + "description": "The unknown track property type." + }, + { + "value": "Type", + "description": "The type." + }, + { + "value": "Name", + "description": "The name." + }, + { + "value": "Language", + "description": "The language." + }, + { + "value": "FourCC", + "description": "The fourCC." + }, + { + "value": "Bitrate", + "description": "The bitrate." + } + ], + "modelAsString": true + }, + "description": "The track property type." + }, + "value": { + "type": "string", + "description": "The track property value." + }, + "operation": { + "type": "string", + "enum": [ + "Equal", + "NotEqual" + ], + "x-ms-enum": { + "name": "FilterTrackPropertyCompareOperation", + "values": [ + { + "value": "Equal", + "description": "The equal operation." + }, + { + "value": "NotEqual", + "description": "The not equal operation." + } + ], + "modelAsString": true + }, + "description": "The track property condition operation." + } + }, + "type": "object", + "required": [ + "property", + "value", + "operation" + ], + "description": "The class to specify one track property condition." + }, + "FirstQuality": { + "properties": { + "bitrate": { + "type": "integer", + "format": "int32", + "description": "The first quality bitrate." + } + }, + "type": "object", + "required": [ + "bitrate" + ], + "description": "Filter First Quality" + }, + "FilterTrackSelection": { + "properties": { + "trackSelections": { + "type": "array", + "items": { + "$ref": "#/definitions/FilterTrackPropertyCondition" + }, + "description": "The track selections." + } + }, + "type": "object", + "required": [ + "trackSelections" + ], + "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." + }, + "MediaFilterProperties": { + "properties": { + "presentationTimeRange": { + "$ref": "#/definitions/PresentationTimeRange", + "description": "The presentation time range." + }, + "firstQuality": { + "$ref": "#/definitions/FirstQuality", + "description": "The first quality." + }, + "tracks": { + "type": "array", + "items": { + "$ref": "#/definitions/FilterTrackSelection" + }, + "description": "The tracks selection conditions." + } + }, + "type": "object", + "description": "The Media Filter properties." + }, + "AssetFilter": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/MediaFilterProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "An Asset Filter." + }, + "AssetCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Asset" + }, + "description": "A collection of Asset items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of Asset items." + }, + "ListContainerSasInput": { + "description": "The parameters to the list SAS request.", + "properties": { + "permissions": { + "description": "The permissions to set on the SAS URL.", + "type": "string", + "enum": [ + "Read", + "ReadWrite", + "ReadWriteDelete" + ], + "x-ms-enum": { + "name": "AssetContainerPermission", + "values": [ + { + "value": "Read", + "description": "The SAS URL will allow read access to the container." + }, + { + "value": "ReadWrite", + "description": "The SAS URL will allow read and write access to the container." + }, + { + "value": "ReadWriteDelete", + "description": "The SAS URL will allow read, write and delete access to the container." + } + ], + "modelAsString": true + } + }, + "expiryTime": { + "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", + "type": "string", + "format": "date-time" + } + }, + "type": "object" + }, + "AssetFilterCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetFilter" + }, + "description": "A collection of AssetFilter items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of AssetFilter items." + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { + "get": { + "summary": "List Assets", + "description": "List Assets in the Media Services account with optional filtering and ordering", + "operationId": "Assets_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "Restricts the set of items returned." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string", + "description": "Specifies the key by which the result collection should be ordered." + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-odata": "#/definitions/Asset", + "x-ms-examples": { + "List all Assets": { + "$ref": "examples/assets-list-all.json" + }, + "List Asset ordered by date": { + "$ref": "examples/assets-list-by-date.json" + }, + "List Asset created in a date range": { + "$ref": "examples/assets-list-in-date-range.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { + "get": { + "summary": "Get an Asset", + "description": "Get the details of an Asset in the Media Services account", + "operationId": "Assets_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get an Asset by name": { + "$ref": "examples/assets-get-by-name.json" + } + } + }, + "put": { + "summary": "Create or update an Asset", + "description": "Creates or updates an Asset in the Media Services account", + "operationId": "Assets_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Asset" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Create an Asset": { + "$ref": "examples/assets-create.json" + } + } + }, + "delete": { + "summary": "Delete an Asset.", + "description": "Deletes an Asset in the Media Services account", + "operationId": "Assets_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete an Asset": { + "$ref": "examples/assets-delete.json" + } + } + }, + "patch": { + "summary": "Update an Asset", + "description": "Updates an existing Asset in the Media Services account", + "operationId": "Assets_Update", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Asset" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Asset" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Update an Asset": { + "$ref": "examples/assets-update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { + "post": { + "summary": "List the Asset URLs", + "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", + "operationId": "Assets_ListContainerSas", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetContainerSas" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ListContainerSasInput" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "List Asset SAS URLs": { + "$ref": "examples/assets-list-sas-urls.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { + "post": { + "summary": "Gets the Asset storage key", + "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", + "operationId": "Assets_GetEncryptionKey", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get Asset Storage Encryption Keys": { + "$ref": "examples/assets-get-encryption-keys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { + "post": { + "summary": "List Streaming Locators", + "description": "Lists Streaming Locators which are associated with this asset.", + "operationId": "Assets_ListStreamingLocators", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListStreamingLocatorsResponse" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "List Asset SAS URLs": { + "$ref": "examples/assets-list-streaming-locators.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { + "get": { + "summary": "List Asset Filters", + "description": "List Asset Filters associated with the specified Asset.", + "operationId": "AssetFilters_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetFilterCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List all Asset Filters": { + "$ref": "examples/assetFilters-list-all.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { + "get": { + "summary": "Get an Asset Filter.", + "description": "Get the details of an Asset Filter associated with the specified Asset.", + "operationId": "AssetFilters_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetFilter" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "filterName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Filter name" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get an Asset Filter by name": { + "$ref": "examples/assetFilters-get-by-name.json" + } + } + }, + "put": { + "summary": "Create or update an Asset Filter", + "description": "Creates or updates an Asset Filter associated with the specified Asset.", + "operationId": "AssetFilters_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetFilter" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AssetFilter" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "filterName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Filter name" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AssetFilter" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Create an Asset Filter": { + "$ref": "examples/assetFilters-create.json" + } + } + }, + "delete": { + "summary": "Delete an Asset Filter.", + "description": "Deletes an Asset Filter associated with the specified Asset.", + "operationId": "AssetFilters_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "filterName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Filter name" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete an Asset Filter": { + "$ref": "examples/assetFilters-delete.json" + } + } + }, + "patch": { + "summary": "Update an Asset Filter", + "description": "Updates an existing Asset Filter associated with the specified Asset.", + "operationId": "AssetFilters_Update", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetFilter" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "filterName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Filter name" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AssetFilter" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Update an Asset Filter": { + "$ref": "examples/assetFilters-update.json" + } + } + } + } + }, + "parameters": { + "SubscriptionId": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The unique identifier for a Microsoft Azure subscription." + }, + "ResourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the Azure subscription.", + "x-ms-parameter-location": "method" + }, + "MediaServicesAccountName": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name.", + "x-ms-parameter-location": "method" + }, + "ApiVersion": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The version of the API to be used with the client request." + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json new file mode 100644 index 000000000000..47062ce01dfd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json @@ -0,0 +1,56 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "version": "2020-05-01" + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "ODataError": { + "properties": { + "code": { + "type": "string", + "description": "A language-independent error name." + }, + "message": { + "type": "string", + "description": "The error message." + }, + "target": { + "type": "string", + "description": "The target of the error (for example, the name of the property in error)." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ODataError" + }, + "description": "The error details." + } + }, + "type": "object", + "description": "Information about an error." + }, + "ApiError": { + "properties": { + "error": { + "$ref": "#/definitions/ODataError", + "description": "The error properties." + } + }, + "type": "object", + "description": "The API error." + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json new file mode 100644 index 000000000000..6bd4a9314c64 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json @@ -0,0 +1,1174 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2020-05-01" + }, + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "definitions": { + "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { + "properties": { + "bestEffort": { + "type": "boolean", + "description": "Indicates whether this restriction is enforced on a Best Effort basis." + }, + "configurationData": { + "type": "integer", + "format": "int32", + "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." + } + }, + "type": "object", + "required": [ + "bestEffort", + "configurationData" + ], + "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." + }, + "ContentKeyPolicyPlayReadyContentKeyLocation": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base class for content key ID location. A derived class must be used to represent the location." + }, + "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" + } + ], + "properties": {}, + "type": "object", + "description": "Specifies that the content key ID is in the PlayReady header." + }, + "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" + } + ], + "properties": { + "keyId": { + "type": "string", + "format": "uuid", + "description": "The content key ID.", + "x-nullable": true + } + }, + "type": "object", + "required": [ + "keyId" + ], + "description": "Specifies that the content key ID is specified in the PlayReady configuration." + }, + "ContentKeyPolicyPlayReadyPlayRight": { + "properties": { + "firstPlayExpiration": { + "type": "string", + "format": "duration", + "description": "The amount of time that the license is valid after the license is first used to play content." + }, + "scmsRestriction": { + "type": "integer", + "format": "int32", + "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." + }, + "agcAndColorStripeRestriction": { + "type": "integer", + "format": "int32", + "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." + }, + "explicitAnalogTelevisionOutputRestriction": { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", + "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." + }, + "digitalVideoOnlyContentRestriction": { + "type": "boolean", + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "imageConstraintForAnalogComponentVideoRestriction": { + "type": "boolean", + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "imageConstraintForAnalogComputerMonitorRestriction": { + "type": "boolean", + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "allowPassingVideoContentToUnknownOutput": { + "type": "string", + "enum": [ + "Unknown", + "NotAllowed", + "Allowed", + "AllowedWithVideoConstriction" + ], + "x-ms-enum": { + "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", + "values": [ + { + "value": "Unknown", + "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." + }, + { + "value": "NotAllowed", + "description": "Passing the video portion of protected content to an Unknown Output is not allowed." + }, + { + "value": "Allowed", + "description": "Passing the video portion of protected content to an Unknown Output is allowed." + }, + { + "value": "AllowedWithVideoConstriction", + "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." + } + ], + "modelAsString": true + }, + "description": "Configures Unknown output handling settings of the license." + }, + "uncompressedDigitalVideoOpl": { + "type": "integer", + "format": "int32", + "description": "Specifies the output protection level for uncompressed digital video." + }, + "compressedDigitalVideoOpl": { + "type": "integer", + "format": "int32", + "description": "Specifies the output protection level for compressed digital video." + }, + "analogVideoOpl": { + "type": "integer", + "format": "int32", + "description": "Specifies the output protection level for compressed digital audio." + }, + "compressedDigitalAudioOpl": { + "type": "integer", + "format": "int32", + "description": "Specifies the output protection level for compressed digital audio." + }, + "uncompressedDigitalAudioOpl": { + "type": "integer", + "format": "int32", + "description": "Specifies the output protection level for uncompressed digital audio." + } + }, + "type": "object", + "required": [ + "digitalVideoOnlyContentRestriction", + "imageConstraintForAnalogComponentVideoRestriction", + "imageConstraintForAnalogComputerMonitorRestriction", + "allowPassingVideoContentToUnknownOutput" + ], + "description": "Configures the Play Right in the PlayReady license." + }, + "ContentKeyPolicyTokenClaim": { + "properties": { + "claimType": { + "type": "string", + "description": "Token claim type." + }, + "claimValue": { + "type": "string", + "description": "Token claim value." + } + }, + "type": "object", + "description": "Represents a token claim." + }, + "ContentKeyPolicyPlayReadyLicense": { + "properties": { + "allowTestDevices": { + "type": "boolean", + "description": "A flag indicating whether test devices can use the license." + }, + "beginDate": { + "type": "string", + "format": "date-time", + "description": "The begin date of license" + }, + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "The expiration date of license." + }, + "relativeBeginDate": { + "type": "string", + "format": "duration", + "description": "The relative begin date of license." + }, + "relativeExpirationDate": { + "type": "string", + "format": "duration", + "description": "The relative expiration date of license." + }, + "gracePeriod": { + "type": "string", + "format": "duration", + "description": "The grace period of license." + }, + "playRight": { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", + "description": "The license PlayRight" + }, + "licenseType": { + "type": "string", + "enum": [ + "Unknown", + "NonPersistent", + "Persistent" + ], + "x-ms-enum": { + "name": "ContentKeyPolicyPlayReadyLicenseType", + "values": [ + { + "value": "Unknown", + "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." + }, + { + "value": "NonPersistent", + "description": "Non persistent license." + }, + { + "value": "Persistent", + "description": "Persistent license. Allows offline playback." + } + ], + "modelAsString": true + }, + "description": "The license type." + }, + "contentKeyLocation": { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", + "description": "The content key location." + }, + "contentType": { + "type": "string", + "enum": [ + "Unknown", + "Unspecified", + "UltraVioletDownload", + "UltraVioletStreaming" + ], + "x-ms-enum": { + "name": "ContentKeyPolicyPlayReadyContentType", + "values": [ + { + "value": "Unknown", + "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." + }, + { + "value": "Unspecified", + "description": "Unspecified content type." + }, + { + "value": "UltraVioletDownload", + "description": "Ultraviolet download content type." + }, + { + "value": "UltraVioletStreaming", + "description": "Ultraviolet streaming content type." + } + ], + "modelAsString": true + }, + "description": "The PlayReady content type." + } + }, + "type": "object", + "required": [ + "allowTestDevices", + "licenseType", + "contentKeyLocation", + "contentType" + ], + "description": "The PlayReady license" + }, + "ContentKeyPolicyRestriction": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." + }, + "ContentKeyPolicyOpenRestriction": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestriction" + } + ], + "properties": {}, + "type": "object", + "description": "Represents an open restriction. License or key will be delivered on every request." + }, + "ContentKeyPolicyUnknownRestriction": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestriction" + } + ], + "properties": {}, + "type": "object", + "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." + }, + "ContentKeyPolicyConfiguration": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." + }, + "ContentKeyPolicyRestrictionTokenKey": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." + }, + "ContentKeyPolicySymmetricTokenKey": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + } + ], + "properties": { + "keyValue": { + "type": "string", + "format": "byte", + "description": "The key value of the key", + "x-nullable": true + } + }, + "type": "object", + "required": [ + "keyValue" + ], + "description": "Specifies a symmetric key for token validation." + }, + "ContentKeyPolicyRsaTokenKey": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + } + ], + "properties": { + "exponent": { + "type": "string", + "format": "byte", + "description": "The RSA Parameter exponent", + "x-nullable": true + }, + "modulus": { + "type": "string", + "format": "byte", + "description": "The RSA Parameter modulus", + "x-nullable": true + } + }, + "type": "object", + "required": [ + "exponent", + "modulus" + ], + "description": "Specifies a RSA key for token validation" + }, + "ContentKeyPolicyX509CertificateTokenKey": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + } + ], + "properties": { + "rawBody": { + "type": "string", + "format": "byte", + "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)", + "x-nullable": true + } + }, + "type": "object", + "required": [ + "rawBody" + ], + "description": "Specifies a certificate for token validation." + }, + "ContentKeyPolicyTokenRestriction": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestriction" + } + ], + "properties": { + "issuer": { + "type": "string", + "description": "The token issuer." + }, + "audience": { + "type": "string", + "description": "The audience for the token." + }, + "primaryVerificationKey": { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", + "description": "The primary verification key." + }, + "alternateVerificationKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + }, + "description": "A list of alternative verification keys." + }, + "requiredClaims": { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyTokenClaim" + }, + "description": "A list of required token claims." + }, + "restrictionTokenType": { + "type": "string", + "enum": [ + "Unknown", + "Swt", + "Jwt" + ], + "x-ms-enum": { + "name": "ContentKeyPolicyRestrictionTokenType", + "values": [ + { + "value": "Unknown", + "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." + }, + { + "value": "Swt", + "description": "Simple Web Token." + }, + { + "value": "Jwt", + "description": "JSON Web Token." + } + ], + "modelAsString": true + }, + "description": "The type of token." + }, + "openIdConnectDiscoveryDocument": { + "type": "string", + "description": "The OpenID connect discovery document." + } + }, + "type": "object", + "required": [ + "issuer", + "audience", + "primaryVerificationKey", + "restrictionTokenType" + ], + "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." + }, + "ContentKeyPolicyClearKeyConfiguration": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyConfiguration" + } + ], + "properties": {}, + "type": "object", + "description": "Represents a configuration for non-DRM keys." + }, + "ContentKeyPolicyUnknownConfiguration": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyConfiguration" + } + ], + "properties": {}, + "type": "object", + "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." + }, + "ContentKeyPolicyWidevineConfiguration": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyConfiguration" + } + ], + "properties": { + "widevineTemplate": { + "type": "string", + "description": "The Widevine template." + } + }, + "type": "object", + "required": [ + "widevineTemplate" + ], + "description": "Specifies a configuration for Widevine licenses." + }, + "ContentKeyPolicyPlayReadyConfiguration": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyConfiguration" + } + ], + "properties": { + "licenses": { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" + }, + "description": "The PlayReady licenses." + }, + "responseCustomData": { + "type": "string", + "description": "The custom response data." + } + }, + "type": "object", + "required": [ + "licenses" + ], + "description": "Specifies a configuration for PlayReady licenses." + }, + "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { + "properties": { + "playbackDurationSeconds": { + "type": "integer", + "format": "int64", + "description": "Playback duration" + }, + "storageDurationSeconds": { + "type": "integer", + "format": "int64", + "description": "Storage duration" + } + }, + "type": "object", + "required": [ + "playbackDurationSeconds", + "storageDurationSeconds" + ] + }, + "ContentKeyPolicyFairPlayConfiguration": { + "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", + "allOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyConfiguration" + } + ], + "properties": { + "ask": { + "type": "string", + "format": "byte", + "description": "The key that must be used as FairPlay Application Secret key.", + "x-nullable": true + }, + "fairPlayPfxPassword": { + "type": "string", + "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format.", + "x-nullable": true + }, + "fairPlayPfx": { + "type": "string", + "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).", + "x-nullable": true + }, + "rentalAndLeaseKeyType": { + "type": "string", + "enum": [ + "Unknown", + "Undefined", + "DualExpiry", + "PersistentUnlimited", + "PersistentLimited" + ], + "x-ms-enum": { + "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", + "values": [ + { + "value": "Unknown", + "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." + }, + { + "value": "Undefined", + "description": "Key duration is not specified." + }, + { + "value": "DualExpiry", + "description": "Dual expiry for offline rental." + }, + { + "value": "PersistentUnlimited", + "description": "Content key can be persisted with an unlimited duration" + }, + { + "value": "PersistentLimited", + "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" + } + ], + "modelAsString": true + }, + "description": "The rental and lease key type." + }, + "rentalDuration": { + "type": "integer", + "format": "int64", + "description": "The rental duration. Must be greater than or equal to 0." + }, + "offlineRentalConfiguration": { + "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration", + "description": "Offline rental policy" + } + }, + "type": "object", + "required": [ + "ask", + "fairPlayPfxPassword", + "fairPlayPfx", + "rentalAndLeaseKeyType", + "rentalDuration" + ], + "description": "Specifies a configuration for FairPlay licenses." + }, + "ContentKeyPolicyOption": { + "properties": { + "policyOptionId": { + "type": "string", + "format": "uuid", + "description": "The legacy Policy Option ID.", + "readOnly": true, + "x-nullable": false + }, + "name": { + "type": "string", + "description": "The Policy Option description." + }, + "configuration": { + "$ref": "#/definitions/ContentKeyPolicyConfiguration", + "description": "The key delivery configuration." + }, + "restriction": { + "$ref": "#/definitions/ContentKeyPolicyRestriction", + "description": "The requirements that must be met to deliver keys with this configuration" + } + }, + "type": "object", + "required": [ + "configuration", + "restriction" + ], + "description": "Represents a policy option." + }, + "ContentKeyPolicyProperties": { + "properties": { + "policyId": { + "type": "string", + "format": "uuid", + "description": "The legacy Policy ID.", + "readOnly": true, + "x-nullable": false + }, + "created": { + "type": "string", + "format": "date-time", + "description": "The creation date of the Policy", + "readOnly": true, + "x-nullable": false + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The last modified date of the Policy", + "readOnly": true, + "x-nullable": false + }, + "description": { + "type": "string", + "description": "A description for the Policy." + }, + "options": { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyOption" + }, + "description": "The Key Policy options." + } + }, + "type": "object", + "required": [ + "options" + ], + "description": "The properties of the Content Key Policy." + }, + "ContentKeyPolicy": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ContentKeyPolicyProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "A Content Key Policy resource." + }, + "ContentKeyPolicyCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicy" + }, + "description": "A collection of ContentKeyPolicy items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of ContentKeyPolicy items." + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { + "get": { + "summary": "List Content Key Policies", + "description": "Lists the Content Key Policies in the account", + "operationId": "ContentKeyPolicies_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContentKeyPolicyCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "Restricts the set of items returned." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string", + "description": "Specifies the key by which the result collection should be ordered." + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-odata": "#/definitions/ContentKeyPolicy", + "x-ms-examples": { + "Lists all Content Key Policies": { + "$ref": "examples/content-key-policies-list-all.json" + }, + "Lists Content Key Policies ordered by last modified.": { + "$ref": "examples/content-key-policies-list-by-lastModified.json" + }, + "Lists Content Key Policies with created and last modified filters.": { + "$ref": "examples/content-key-policies-list-in-date-range.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { + "get": { + "summary": "Get a Content Key Policy", + "description": "Get the details of a Content Key Policy in the Media Services account", + "operationId": "ContentKeyPolicies_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContentKeyPolicy" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "contentKeyPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The Content Key Policy name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Content Key Policy by name": { + "$ref": "examples/content-key-policies-get-by-name.json" + } + } + }, + "put": { + "summary": "Create or update an Content Key Policy", + "description": "Create or update a Content Key Policy in the Media Services account", + "operationId": "ContentKeyPolicies_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContentKeyPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ContentKeyPolicy" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "contentKeyPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The Content Key Policy name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ContentKeyPolicy" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Creates a Content Key Policy with PlayReady option and Open Restriction": { + "$ref": "examples/content-key-policies-create-playready-open.json" + }, + "Creates a Content Key Policy with Widevine option and Token Restriction": { + "$ref": "examples/content-key-policies-create-widevine-token.json" + }, + "Creates a Content Key Policy with ClearKey option and Token Restriction": { + "$ref": "examples/content-key-policies-create-nodrm-token.json" + }, + "Creates a Content Key Policy with multiple options": { + "$ref": "examples/content-key-policies-create-multiple-options.json" + } + } + }, + "delete": { + "summary": "Delete a Content Key Policy", + "description": "Deletes a Content Key Policy in the Media Services account", + "operationId": "ContentKeyPolicies_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "contentKeyPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The Content Key Policy name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete a Key Policy": { + "$ref": "examples/content-key-policies-delete.json" + } + } + }, + "patch": { + "summary": "Update a Content Key Policy", + "description": "Updates an existing Content Key Policy in the Media Services account", + "operationId": "ContentKeyPolicies_Update", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContentKeyPolicy" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "contentKeyPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The Content Key Policy name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ContentKeyPolicy" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Update a Content Key Policy": { + "$ref": "examples/content-key-policies-update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { + "post": { + "summary": "Get a Content Key Policy with secrets", + "description": "Get a Content Key Policy including secret values", + "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ContentKeyPolicyProperties" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "contentKeyPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The Content Key Policy name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get an Content Key Policy with secrets": { + "$ref": "examples/content-key-policies-get-with-secrets.json" + } + } + } + } + }, + "parameters": { + "SubscriptionId": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The unique identifier for a Microsoft Azure subscription." + }, + "ResourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the Azure subscription.", + "x-ms-parameter-location": "method" + }, + "MediaServicesAccountName": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name.", + "x-ms-parameter-location": "method" + }, + "ApiVersion": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The version of the API to be used with the client request." + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json new file mode 100644 index 000000000000..4953392abbb8 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json @@ -0,0 +1,3099 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2020-05-01" + }, + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "definitions": { + "Preset": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." + }, + "Codec": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + }, + "label": { + "type": "string", + "description": "An optional label for the codec. The label can be used to control muxing behavior." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Describes the basic properties of all codecs." + }, + "Audio": { + "x-ms-discriminator-value": "#Microsoft.Media.Audio", + "allOf": [ + { + "$ref": "#/definitions/Codec" + } + ], + "properties": { + "channels": { + "type": "integer", + "format": "int32", + "description": "The number of channels in the audio." + }, + "samplingRate": { + "type": "integer", + "format": "int32", + "description": "The sampling rate to use for encoding in hertz." + }, + "bitrate": { + "type": "integer", + "format": "int32", + "description": "The bitrate, in bits per second, of the output encoded audio." + } + }, + "type": "object", + "description": "Defines the common properties for all audio codecs." + }, + "AacAudio": { + "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", + "allOf": [ + { + "$ref": "#/definitions/Audio" + } + ], + "properties": { + "profile": { + "type": "string", + "enum": [ + "AacLc", + "HeAacV1", + "HeAacV2" + ], + "x-ms-enum": { + "name": "AacAudioProfile", + "values": [ + { + "value": "AacLc", + "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." + }, + { + "value": "HeAacV1", + "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." + }, + { + "value": "HeAacV2", + "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." + } + ], + "modelAsString": true + }, + "description": "The encoding profile to be used when encoding audio with AAC." + } + }, + "type": "object", + "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." + }, + "Layer": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + }, + "width": { + "type": "string", + "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." + }, + "height": { + "type": "string", + "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." + }, + "label": { + "type": "string", + "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." + }, + "H265VideoLayer": { + "x-ms-discriminator-value": "#Microsoft.Media.H265VideoLayer", + "allOf": [ + { + "$ref": "#/definitions/Layer" + } + ], + "properties": { + "bitrate": { + "type": "integer", + "format": "int32", + "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field." + }, + "maxBitrate": { + "type": "integer", + "format": "int32", + "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." + }, + "bFrames": { + "type": "integer", + "format": "int32", + "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." + }, + "frameRate": { + "type": "string", + "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." + }, + "slices": { + "type": "integer", + "format": "int32", + "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." + }, + "adaptiveBFrame": { + "type": "boolean", + "description": "Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." + } + }, + "type": "object", + "required": [ + "bitrate" + ], + "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." + }, + "H265Layer": { + "x-ms-discriminator-value": "#Microsoft.Media.H265Layer", + "allOf": [ + { + "$ref": "#/definitions/H265VideoLayer" + } + ], + "properties": { + "profile": { + "type": "string", + "enum": [ + "Auto", + "Main" + ], + "x-ms-enum": { + "name": "H265VideoProfile", + "values": [ + { + "value": "Auto", + "description": "Tells the encoder to automatically determine the appropriate H.265 profile." + }, + { + "value": "Main", + "description": "Main profile (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier)" + } + ], + "modelAsString": true + }, + "description": "We currently support Main. Default is Auto." + }, + "level": { + "type": "string", + "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." + }, + "bufferWindow": { + "type": "string", + "format": "duration", + "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." + }, + "referenceFrames": { + "type": "integer", + "format": "int32", + "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." + } + }, + "type": "object", + "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec." + }, + "Video": { + "x-ms-discriminator-value": "#Microsoft.Media.Video", + "allOf": [ + { + "$ref": "#/definitions/Codec" + } + ], + "properties": { + "keyFrameInterval": { + "type": "string", + "format": "duration", + "description": "The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting." + }, + "stretchMode": { + "type": "string", + "enum": [ + "None", + "AutoSize", + "AutoFit" + ], + "x-ms-enum": { + "name": "StretchMode", + "values": [ + { + "value": "None", + "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." + }, + { + "value": "AutoSize", + "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." + }, + { + "value": "AutoFit", + "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." + } + ], + "modelAsString": true + }, + "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" + }, + "syncMode": { + "type": "string", + "enum": [ + "Auto", + "Passthrough", + "Cfr", + "Vfr" + ], + "x-ms-enum": { + "name": "VideoSyncMode", + "values": [ + { + "value": "Auto", + "description": "This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr." + }, + { + "value": "Passthrough", + "description": "The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior" + }, + { + "value": "Cfr", + "description": "Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value" + }, + { + "value": "Vfr", + "description": "Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input" + } + ], + "modelAsString": true + }, + "description": "The Video Sync Mode" + } + }, + "type": "object", + "description": "Describes the basic properties for encoding the input video." + }, + "H265Video": { + "x-ms-discriminator-value": "#Microsoft.Media.H265Video", + "allOf": [ + { + "$ref": "#/definitions/Video" + } + ], + "properties": { + "sceneChangeDetection": { + "type": "boolean", + "description": "Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." + }, + "complexity": { + "type": "string", + "enum": [ + "Speed", + "Balanced", + "Quality" + ], + "x-ms-enum": { + "name": "H265Complexity", + "values": [ + { + "value": "Speed", + "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." + }, + { + "value": "Balanced", + "description": "Tells the encoder to use settings that achieve a balance between speed and quality." + }, + { + "value": "Quality", + "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." + } + ], + "modelAsString": true + }, + "description": "Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced." + }, + "layers": { + "type": "array", + "items": { + "$ref": "#/definitions/H265Layer" + }, + "description": "The collection of output H.265 layers to be produced by the encoder." + } + }, + "type": "object", + "description": "Describes all the properties for encoding a video with the H.265 codec." + }, + "TrackDescriptor": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job" + }, + "AudioTrackDescriptor": { + "x-ms-discriminator-value": "#Microsoft.Media.AudioTrackDescriptor", + "allOf": [ + { + "$ref": "#/definitions/TrackDescriptor" + } + ], + "properties": { + "channelMapping": { + "type": "string", + "enum": [ + "FrontLeft", + "FrontRight", + "Center", + "LowFrequencyEffects", + "BackLeft", + "BackRight", + "StereoLeft", + "StereoRight" + ], + "x-ms-enum": { + "name": "ChannelMapping", + "values": [ + { + "value": "FrontLeft", + "description": "The Front Left Channel." + }, + { + "value": "FrontRight", + "description": "The Front Right Channel." + }, + { + "value": "Center", + "description": "The Center Channel." + }, + { + "value": "LowFrequencyEffects", + "description": "Low Frequency Effects Channel. Sometimes referred to as the Subwoofer." + }, + { + "value": "BackLeft", + "description": "The Back Left Channel. Sometimes referred to as the Left Surround Channel." + }, + { + "value": "BackRight", + "description": "The Back Right Channel. Sometimes referred to as the Right Surround Channel." + }, + { + "value": "StereoLeft", + "description": "The Left Stereo channel. Sometimes referred to as Down Mix Left." + }, + { + "value": "StereoRight", + "description": "The Right Stereo channel. Sometimes referred to as Down Mix Right." + } + ], + "modelAsString": true + }, + "description": "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks." + } + }, + "type": "object", + "description": "A TrackSelection to select audio tracks." + }, + "SelectAudioTrackByAttribute": { + "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackByAttribute", + "allOf": [ + { + "$ref": "#/definitions/AudioTrackDescriptor" + } + ], + "properties": { + "attribute": { + "type": "string", + "enum": [ + "Bitrate", + "Language" + ], + "x-ms-enum": { + "name": "TrackAttribute", + "values": [ + { + "value": "Bitrate", + "description": "The bitrate of the track." + }, + { + "value": "Language", + "description": "The language of the track." + } + ], + "modelAsString": true + }, + "description": "The TrackAttribute to filter the tracks by." + }, + "filter": { + "type": "string", + "enum": [ + "All", + "Top", + "Bottom", + "ValueEquals" + ], + "x-ms-enum": { + "name": "AttributeFilter", + "values": [ + { + "value": "All", + "description": "All tracks will be included." + }, + { + "value": "Top", + "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." + }, + { + "value": "Bottom", + "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." + }, + { + "value": "ValueEquals", + "description": "Any tracks that have an attribute equal to the value given will be included." + } + ], + "modelAsString": true + }, + "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." + }, + "filterValue": { + "type": "string", + "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property." + } + }, + "type": "object", + "required": [ + "attribute", + "filter" + ], + "description": "Select audio tracks from the input by specifying an attribute and an attribute filter." + }, + "SelectAudioTrackById": { + "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackById", + "allOf": [ + { + "$ref": "#/definitions/AudioTrackDescriptor" + } + ], + "properties": { + "trackId": { + "type": "integer", + "format": "int64", + "description": "Track identifier to select" + } + }, + "type": "object", + "required": [ + "trackId" + ], + "description": "Select audio tracks from the input by specifying a track identifier." + }, + "InputDefinition": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + }, + "includedTracks": { + "type": "array", + "items": { + "$ref": "#/definitions/TrackDescriptor" + }, + "description": "The list of TrackDescriptors which define the metadata and selection of tracks in the input." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata." + }, + "FromAllInputFile": { + "x-ms-discriminator-value": "#Microsoft.Media.FromAllInputFile", + "allOf": [ + { + "$ref": "#/definitions/InputDefinition" + } + ], + "properties": {}, + "type": "object", + "description": "An InputDefinition that looks across all of the files provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a single track across a set of input files." + }, + "FromEachInputFile": { + "x-ms-discriminator-value": "#Microsoft.Media.FromEachInputFile", + "allOf": [ + { + "$ref": "#/definitions/InputDefinition" + } + ], + "properties": {}, + "type": "object", + "description": "An InputDefinition that looks at each input file provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to select tracks from each file given." + }, + "InputFile": { + "x-ms-discriminator-value": "#Microsoft.Media.InputFile", + "allOf": [ + { + "$ref": "#/definitions/InputDefinition" + } + ], + "properties": { + "filename": { + "type": "string", + "description": "Name of the file that this input definition applies to." + } + }, + "type": "object", + "description": "An InputDefinition for a single file. TrackSelections are scoped to the file specified." + }, + "FaceDetectorPreset": { + "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", + "allOf": [ + { + "$ref": "#/definitions/Preset" + } + ], + "properties": { + "resolution": { + "type": "string", + "enum": [ + "SourceResolution", + "StandardDefinition" + ], + "x-ms-enum": { + "name": "AnalysisResolution", + "values": [ + { + "value": "SourceResolution" + }, + { + "value": "StandardDefinition" + } + ], + "modelAsString": true + }, + "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." + }, + "mode": { + "type": "string", + "enum": [ + "Analyze", + "Redact", + "Combined" + ], + "x-ms-enum": { + "name": "FaceRedactorMode", + "values": [ + { + "value": "Analyze", + "description": "Analyze mode detects faces and outputs a metadata file with the results. Allows editing of the metadata file before faces are blurred with Redact mode." + }, + { + "value": "Redact", + "description": "Redact mode consumes the metadata file from Analyze mode and redacts the faces found." + }, + { + "value": "Combined", + "description": "Combined mode does the Analyze and Redact steps in one pass when editing the analyzed faces is not desired." + } + ], + "modelAsString": true + }, + "description": "This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction." + }, + "blurType": { + "type": "string", + "enum": [ + "Box", + "Low", + "Med", + "High", + "Black" + ], + "x-ms-enum": { + "name": "BlurType", + "values": [ + { + "value": "Box", + "description": "Box: debug filter, bounding box only" + }, + { + "value": "Low", + "description": "Low: box-car blur filter" + }, + { + "value": "Med", + "description": "Med: Gaussian blur filter" + }, + { + "value": "High", + "description": "High: Confuse blur filter" + }, + { + "value": "Black", + "description": "Black: Black out filter" + } + ], + "modelAsString": true + }, + "description": "Blur type" + }, + "experimentalOptions": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" + } + }, + "type": "object", + "description": "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present." + }, + "AudioAnalyzerPreset": { + "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", + "allOf": [ + { + "$ref": "#/definitions/Preset" + } + ], + "properties": { + "audioLanguage": { + "type": "string", + "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463" + }, + "mode": { + "type": "string", + "enum": [ + "Standard", + "Basic" + ], + "x-ms-enum": { + "name": "AudioAnalysisMode", + "values": [ + { + "value": "Standard", + "description": "Performs all operations included in the Basic mode, additionally performing language detection and speaker diarization." + }, + { + "value": "Basic", + "description": "This mode performs speech-to-text transcription and generation of a VTT subtitle/caption file. The output of this mode includes an Insights JSON file including only the keywords, transcription,and timing information. Automatic language detection and speaker diarization are not included in this mode." + } + ], + "modelAsString": true + }, + "description": "Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen." + }, + "experimentalOptions": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" + } + }, + "type": "object", + "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." + }, + "Overlay": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + }, + "inputLabel": { + "type": "string", + "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." + }, + "start": { + "type": "string", + "format": "duration", + "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video." + }, + "end": { + "type": "string", + "format": "duration", + "description": "The end position, with reference to the input video, at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration." + }, + "fadeInDuration": { + "type": "string", + "format": "duration", + "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." + }, + "fadeOutDuration": { + "type": "string", + "format": "duration", + "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." + }, + "audioGainLevel": { + "type": "number", + "format": "double", + "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." + } + }, + "type": "object", + "required": [ + "@odata.type", + "inputLabel" + ], + "description": "Base type for all overlays - image, audio or video." + }, + "AudioOverlay": { + "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", + "allOf": [ + { + "$ref": "#/definitions/Overlay" + } + ], + "properties": {}, + "type": "object", + "description": "Describes the properties of an audio overlay." + }, + "CopyVideo": { + "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", + "allOf": [ + { + "$ref": "#/definitions/Codec" + } + ], + "properties": {}, + "type": "object", + "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." + }, + "Image": { + "x-ms-discriminator-value": "#Microsoft.Media.Image", + "allOf": [ + { + "$ref": "#/definitions/Video" + } + ], + "properties": { + "start": { + "type": "string", + "description": "The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}." + }, + "step": { + "type": "string", + "description": "The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time." + }, + "range": { + "type": "string", + "description": "The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream." + } + }, + "type": "object", + "required": [ + "start" + ], + "description": "Describes the basic properties for generating thumbnails from the input video" + }, + "Format": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + }, + "filenamePattern": { + "type": "string", + "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename." + } + }, + "type": "object", + "required": [ + "@odata.type", + "filenamePattern" + ], + "description": "Base class for output." + }, + "ImageFormat": { + "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", + "allOf": [ + { + "$ref": "#/definitions/Format" + } + ], + "properties": {}, + "type": "object", + "description": "Describes the properties for an output image file." + }, + "JpgFormat": { + "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", + "allOf": [ + { + "$ref": "#/definitions/ImageFormat" + } + ], + "properties": {}, + "type": "object", + "description": "Describes the settings for producing JPEG thumbnails." + }, + "PngFormat": { + "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", + "allOf": [ + { + "$ref": "#/definitions/ImageFormat" + } + ], + "properties": {}, + "type": "object", + "description": "Describes the settings for producing PNG thumbnails." + }, + "CopyAudio": { + "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", + "allOf": [ + { + "$ref": "#/definitions/Codec" + } + ], + "properties": {}, + "type": "object", + "description": "A codec flag, which tells the encoder to copy the input audio bitstream." + }, + "Deinterlace": { + "properties": { + "parity": { + "type": "string", + "enum": [ + "Auto", + "TopFieldFirst", + "BottomFieldFirst" + ], + "x-ms-enum": { + "name": "DeinterlaceParity", + "values": [ + { + "value": "Auto", + "description": "Automatically detect the order of fields" + }, + { + "value": "TopFieldFirst", + "description": "Apply top field first processing of input video." + }, + { + "value": "BottomFieldFirst", + "description": "Apply bottom field first processing of input video." + } + ], + "modelAsString": true + }, + "description": "The field parity for de-interlacing, defaults to Auto." + }, + "mode": { + "type": "string", + "enum": [ + "Off", + "AutoPixelAdaptive" + ], + "x-ms-enum": { + "name": "DeinterlaceMode", + "values": [ + { + "value": "Off", + "description": "Disables de-interlacing of the source video." + }, + { + "value": "AutoPixelAdaptive", + "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." + } + ], + "modelAsString": true + }, + "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." + } + }, + "type": "object", + "description": "Describes the de-interlacing settings." + }, + "Rectangle": { + "properties": { + "left": { + "type": "string", + "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." + }, + "top": { + "type": "string", + "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." + }, + "width": { + "type": "string", + "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." + }, + "height": { + "type": "string", + "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." + } + }, + "type": "object", + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "Filters": { + "properties": { + "deinterlace": { + "$ref": "#/definitions/Deinterlace", + "description": "The de-interlacing settings." + }, + "rotation": { + "type": "string", + "enum": [ + "Auto", + "None", + "Rotate0", + "Rotate90", + "Rotate180", + "Rotate270" + ], + "x-ms-enum": { + "name": "Rotation", + "values": [ + { + "value": "Auto", + "description": "Automatically detect and rotate as needed." + }, + { + "value": "None", + "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." + }, + { + "value": "Rotate0", + "description": "Do not rotate the video but remove any metadata about the rotation." + }, + { + "value": "Rotate90", + "description": "Rotate 90 degrees clockwise." + }, + { + "value": "Rotate180", + "description": "Rotate 180 degrees clockwise." + }, + { + "value": "Rotate270", + "description": "Rotate 270 degrees clockwise." + } + ], + "modelAsString": true + }, + "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" + }, + "crop": { + "$ref": "#/definitions/Rectangle", + "description": "The parameters for the rectangular window with which to crop the input video." + }, + "overlays": { + "type": "array", + "items": { + "$ref": "#/definitions/Overlay" + }, + "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." + } + }, + "type": "object", + "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." + }, + "VideoLayer": { + "x-ms-discriminator-value": "#Microsoft.Media.VideoLayer", + "allOf": [ + { + "$ref": "#/definitions/Layer" + } + ], + "properties": { + "bitrate": { + "type": "integer", + "format": "int32", + "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." + }, + "maxBitrate": { + "type": "integer", + "format": "int32", + "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." + }, + "bFrames": { + "type": "integer", + "format": "int32", + "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." + }, + "frameRate": { + "type": "string", + "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." + }, + "slices": { + "type": "integer", + "format": "int32", + "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." + }, + "adaptiveBFrame": { + "type": "boolean", + "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." + } + }, + "type": "object", + "required": [ + "bitrate" + ], + "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." + }, + "H264Layer": { + "x-ms-discriminator-value": "#Microsoft.Media.H264Layer", + "allOf": [ + { + "$ref": "#/definitions/VideoLayer" + } + ], + "properties": { + "profile": { + "type": "string", + "enum": [ + "Auto", + "Baseline", + "Main", + "High", + "High422", + "High444" + ], + "x-ms-enum": { + "name": "H264VideoProfile", + "values": [ + { + "value": "Auto", + "description": "Tells the encoder to automatically determine the appropriate H.264 profile." + }, + { + "value": "Baseline", + "description": "Baseline profile" + }, + { + "value": "Main", + "description": "Main profile" + }, + { + "value": "High", + "description": "High profile." + }, + { + "value": "High422", + "description": "High 4:2:2 profile." + }, + { + "value": "High444", + "description": "High 4:4:4 predictive profile." + } + ], + "modelAsString": true + }, + "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." + }, + "level": { + "type": "string", + "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." + }, + "bufferWindow": { + "type": "string", + "format": "duration", + "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." + }, + "referenceFrames": { + "type": "integer", + "format": "int32", + "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." + }, + "entropyMode": { + "type": "string", + "enum": [ + "Cabac", + "Cavlc" + ], + "x-ms-enum": { + "name": "EntropyMode", + "values": [ + { + "value": "Cabac", + "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." + }, + { + "value": "Cavlc", + "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." + } + ], + "modelAsString": true + }, + "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." + } + }, + "type": "object", + "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." + }, + "H264Video": { + "x-ms-discriminator-value": "#Microsoft.Media.H264Video", + "allOf": [ + { + "$ref": "#/definitions/Video" + } + ], + "properties": { + "sceneChangeDetection": { + "type": "boolean", + "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." + }, + "complexity": { + "type": "string", + "enum": [ + "Speed", + "Balanced", + "Quality" + ], + "x-ms-enum": { + "name": "H264Complexity", + "values": [ + { + "value": "Speed", + "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." + }, + { + "value": "Balanced", + "description": "Tells the encoder to use settings that achieve a balance between speed and quality." + }, + { + "value": "Quality", + "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." + } + ], + "modelAsString": true + }, + "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." + }, + "layers": { + "type": "array", + "items": { + "$ref": "#/definitions/H264Layer" + }, + "description": "The collection of output H.264 layers to be produced by the encoder." + } + }, + "type": "object", + "description": "Describes all the properties for encoding a video with the H.264 codec." + }, + "JpgImage": { + "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", + "allOf": [ + { + "$ref": "#/definitions/Image" + } + ], + "properties": { + "layers": { + "type": "array", + "items": { + "$ref": "#/definitions/JpgLayer" + }, + "description": "A collection of output JPEG image layers to be produced by the encoder." + }, + "spriteColumn": { + "type": "integer", + "format": "int32", + "description": "Sets the number of columns used in thumbnail sprite image. The number of rows are automatically calculated and a VTT file is generated with the coordinate mappings for each thumbnail in the sprite. Note: this value should be a positive integer and a proper value is recommended so that the output image resolution will not go beyond JPEG maximum pixel resolution limit 65535x65535." + } + }, + "type": "object", + "description": "Describes the properties for producing a series of JPEG images from the input video." + }, + "JpgLayer": { + "x-ms-discriminator-value": "#Microsoft.Media.JpgLayer", + "allOf": [ + { + "$ref": "#/definitions/Layer" + } + ], + "properties": { + "quality": { + "type": "integer", + "format": "int32", + "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." + } + }, + "type": "object", + "description": "Describes the settings to produce a JPEG image from the input video." + }, + "MultiBitrateFormat": { + "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", + "allOf": [ + { + "$ref": "#/definitions/Format" + } + ], + "properties": { + "outputFiles": { + "type": "array", + "items": { + "$ref": "#/definitions/OutputFile" + }, + "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." + } + }, + "type": "object", + "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." + }, + "OutputFile": { + "properties": { + "labels": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." + } + }, + "type": "object", + "required": [ + "labels" + ], + "description": "Represents an output file produced." + }, + "Mp4Format": { + "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", + "allOf": [ + { + "$ref": "#/definitions/MultiBitrateFormat" + } + ], + "properties": {}, + "type": "object", + "description": "Describes the properties for an output ISO MP4 file." + }, + "PngImage": { + "x-ms-discriminator-value": "#Microsoft.Media.PngImage", + "allOf": [ + { + "$ref": "#/definitions/Image" + } + ], + "properties": { + "layers": { + "type": "array", + "items": { + "$ref": "#/definitions/PngLayer" + }, + "description": "A collection of output PNG image layers to be produced by the encoder." + } + }, + "type": "object", + "description": "Describes the properties for producing a series of PNG images from the input video." + }, + "PngLayer": { + "x-ms-discriminator-value": "#Microsoft.Media.PngLayer", + "allOf": [ + { + "$ref": "#/definitions/Layer" + } + ], + "properties": {}, + "type": "object", + "description": "Describes the settings to produce a PNG image from the input video." + }, + "BuiltInStandardEncoderPreset": { + "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "allOf": [ + { + "$ref": "#/definitions/Preset" + } + ], + "properties": { + "presetName": { + "type": "string", + "enum": [ + "H264SingleBitrateSD", + "H264SingleBitrate720p", + "H264SingleBitrate1080p", + "AdaptiveStreaming", + "AACGoodQualityAudio", + "ContentAwareEncodingExperimental", + "ContentAwareEncoding", + "CopyAllBitrateNonInterleaved", + "H264MultipleBitrate1080p", + "H264MultipleBitrate720p", + "H264MultipleBitrateSD", + "H265ContentAwareEncoding", + "H265AdaptiveStreaming", + "H265SingleBitrate720p", + "H265SingleBitrate1080p", + "H265SingleBitrate4K" + ], + "x-ms-enum": { + "name": "EncoderNamedPreset", + "values": [ + { + "value": "H264SingleBitrateSD", + "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." + }, + { + "value": "H264SingleBitrate720p", + "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." + }, + { + "value": "H264SingleBitrate1080p", + "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." + }, + { + "value": "AdaptiveStreaming", + "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." + }, + { + "value": "AACGoodQualityAudio", + "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." + }, + { + "value": "ContentAwareEncodingExperimental", + "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." + }, + { + "value": "ContentAwareEncoding", + "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." + }, + { + "value": "CopyAllBitrateNonInterleaved", + "description": "Copy all video and audio streams from the input asset as non-interleaved video and audio output files. This preset can be used to clip an existing asset or convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed." + }, + { + "value": "H264MultipleBitrate1080p", + "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p." + }, + { + "value": "H264MultipleBitrate720p", + "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p." + }, + { + "value": "H264MultipleBitrateSD", + "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p." + }, + { + "value": "H265ContentAwareEncoding", + "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." + }, + { + "value": "H265AdaptiveStreaming", + "description": "Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." + }, + { + "value": "H265SingleBitrate720p", + "description": "Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." + }, + { + "value": "H265SingleBitrate1080p", + "description": "Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." + }, + { + "value": "H265SingleBitrate4K", + "description": "Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." + } + ], + "modelAsString": true + }, + "description": "The built-in preset to be used for encoding videos." + } + }, + "type": "object", + "required": [ + "presetName" + ], + "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." + }, + "StandardEncoderPreset": { + "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", + "allOf": [ + { + "$ref": "#/definitions/Preset" + } + ], + "properties": { + "filters": { + "$ref": "#/definitions/Filters", + "description": "One or more filtering operations that are applied to the input media before encoding." + }, + "codecs": { + "type": "array", + "items": { + "$ref": "#/definitions/Codec" + }, + "description": "The list of codecs to be used when encoding the input video." + }, + "formats": { + "type": "array", + "items": { + "$ref": "#/definitions/Format" + }, + "description": "The list of outputs to be produced by the encoder." + } + }, + "type": "object", + "required": [ + "codecs", + "formats" + ], + "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." + }, + "VideoAnalyzerPreset": { + "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", + "allOf": [ + { + "$ref": "#/definitions/AudioAnalyzerPreset" + } + ], + "properties": { + "insightsToExtract": { + "type": "string", + "enum": [ + "AudioInsightsOnly", + "VideoInsightsOnly", + "AllInsights" + ], + "x-ms-enum": { + "name": "InsightsType", + "values": [ + { + "value": "AudioInsightsOnly", + "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." + }, + { + "value": "VideoInsightsOnly", + "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." + }, + { + "value": "AllInsights", + "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." + } + ], + "modelAsString": true + }, + "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." + } + }, + "type": "object", + "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." + }, + "TransportStreamFormat": { + "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", + "allOf": [ + { + "$ref": "#/definitions/MultiBitrateFormat" + } + ], + "properties": {}, + "type": "object", + "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." + }, + "VideoOverlay": { + "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", + "allOf": [ + { + "$ref": "#/definitions/Overlay" + } + ], + "properties": { + "position": { + "$ref": "#/definitions/Rectangle", + "description": "The location in the input video where the overlay is applied." + }, + "opacity": { + "type": "number", + "format": "double", + "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." + }, + "cropRectangle": { + "$ref": "#/definitions/Rectangle", + "description": "An optional rectangular window used to crop the overlay image or video." + } + }, + "type": "object", + "description": "Describes the properties of a video overlay." + }, + "VideoTrackDescriptor": { + "x-ms-discriminator-value": "#Microsoft.Media.VideoTrackDescriptor", + "allOf": [ + { + "$ref": "#/definitions/TrackDescriptor" + } + ], + "properties": {}, + "type": "object", + "description": "A TrackSelection to select video tracks." + }, + "SelectVideoTrackByAttribute": { + "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackByAttribute", + "allOf": [ + { + "$ref": "#/definitions/VideoTrackDescriptor" + } + ], + "properties": { + "attribute": { + "type": "string", + "enum": [ + "Bitrate", + "Language" + ], + "x-ms-enum": { + "name": "TrackAttribute", + "values": [ + { + "value": "Bitrate", + "description": "The bitrate of the track." + }, + { + "value": "Language", + "description": "The language of the track." + } + ], + "modelAsString": true + }, + "description": "The TrackAttribute to filter the tracks by." + }, + "filter": { + "type": "string", + "enum": [ + "All", + "Top", + "Bottom", + "ValueEquals" + ], + "x-ms-enum": { + "name": "AttributeFilter", + "values": [ + { + "value": "All", + "description": "All tracks will be included." + }, + { + "value": "Top", + "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." + }, + { + "value": "Bottom", + "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." + }, + { + "value": "ValueEquals", + "description": "Any tracks that have an attribute equal to the value given will be included." + } + ], + "modelAsString": true + }, + "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." + }, + "filterValue": { + "type": "string", + "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks." + } + }, + "type": "object", + "required": [ + "attribute", + "filter" + ], + "description": "Select video tracks from the input by specifying an attribute and an attribute filter." + }, + "SelectVideoTrackById": { + "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackById", + "allOf": [ + { + "$ref": "#/definitions/VideoTrackDescriptor" + } + ], + "properties": { + "trackId": { + "type": "integer", + "format": "int64", + "description": "Track identifier to select" + } + }, + "type": "object", + "required": [ + "trackId" + ], + "description": "Select video tracks from the input by specifying a track identifier." + }, + "TransformOutput": { + "properties": { + "onError": { + "type": "string", + "enum": [ + "StopProcessingJob", + "ContinueJob" + ], + "x-ms-enum": { + "name": "OnErrorType", + "values": [ + { + "value": "StopProcessingJob", + "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." + }, + { + "value": "ContinueJob", + "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." + } + ], + "modelAsString": true + }, + "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." + }, + "relativePriority": { + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ], + "x-ms-enum": { + "name": "Priority", + "values": [ + { + "value": "Low", + "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." + }, + { + "value": "Normal", + "description": "Used for TransformOutputs that can be generated at Normal priority." + }, + { + "value": "High", + "description": "Used for TransformOutputs that should take precedence over others." + } + ], + "modelAsString": true + }, + "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." + }, + "preset": { + "$ref": "#/definitions/Preset", + "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." + } + }, + "type": "object", + "required": [ + "preset" + ], + "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." + }, + "TransformProperties": { + "properties": { + "created": { + "type": "string", + "format": "date-time", + "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", + "readOnly": true, + "x-nullable": false + }, + "description": { + "type": "string", + "description": "An optional verbose description of the Transform." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", + "readOnly": true, + "x-nullable": false + }, + "outputs": { + "type": "array", + "items": { + "$ref": "#/definitions/TransformOutput" + }, + "description": "An array of one or more TransformOutputs that the Transform should generate." + } + }, + "type": "object", + "required": [ + "outputs" + ], + "description": "A Transform." + }, + "Transform": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TransformProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." + }, + "JobInput": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base class for inputs to a Job." + }, + "JobInputClip": { + "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", + "allOf": [ + { + "$ref": "#/definitions/JobInput" + } + ], + "properties": { + "files": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each." + }, + "start": { + "$ref": "#/definitions/ClipTime", + "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." + }, + "end": { + "$ref": "#/definitions/ClipTime", + "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." + }, + "label": { + "type": "string", + "description": "A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." + }, + "inputDefinitions": { + "type": "array", + "items": { + "$ref": "#/definitions/InputDefinition" + }, + "description": "Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata." + } + }, + "type": "object", + "description": "Represents input files for a Job." + }, + "ClipTime": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." + }, + "AbsoluteClipTime": { + "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", + "allOf": [ + { + "$ref": "#/definitions/ClipTime" + } + ], + "properties": { + "time": { + "type": "string", + "format": "duration", + "description": "The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds." + } + }, + "type": "object", + "required": [ + "time" + ], + "description": "Specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not." + }, + "UtcClipTime": { + "x-ms-discriminator-value": "#Microsoft.Media.UtcClipTime", + "allOf": [ + { + "$ref": "#/definitions/ClipTime" + } + ], + "properties": { + "time": { + "type": "string", + "format": "date-time", + "description": "The time position on the timeline of the input media based on Utc time." + } + }, + "type": "object", + "required": [ + "time" + ], + "description": "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not." + }, + "JobInputs": { + "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", + "allOf": [ + { + "$ref": "#/definitions/JobInput" + } + ], + "properties": { + "inputs": { + "type": "array", + "items": { + "$ref": "#/definitions/JobInput" + }, + "description": "List of inputs to a Job." + } + }, + "type": "object", + "description": "Describes a list of inputs to a Job." + }, + "JobInputAsset": { + "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", + "allOf": [ + { + "$ref": "#/definitions/JobInputClip" + } + ], + "properties": { + "assetName": { + "type": "string", + "description": "The name of the input Asset." + } + }, + "type": "object", + "required": [ + "assetName" + ], + "description": "Represents an Asset for input into a Job." + }, + "JobInputHttp": { + "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", + "allOf": [ + { + "$ref": "#/definitions/JobInputClip" + } + ], + "properties": { + "baseUri": { + "type": "string", + "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters." + } + }, + "type": "object", + "description": "Represents HTTPS job input." + }, + "JobOutput": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + }, + "error": { + "$ref": "#/definitions/JobError", + "description": "If the JobOutput is in the Error state, it contains the details of the error.", + "readOnly": true + }, + "state": { + "type": "string", + "enum": [ + "Canceled", + "Canceling", + "Error", + "Finished", + "Processing", + "Queued", + "Scheduled" + ], + "x-ms-enum": { + "name": "JobState", + "values": [ + { + "value": "Canceled", + "description": "The job was canceled. This is a final state for the job." + }, + { + "value": "Canceling", + "description": "The job is in the process of being canceled. This is a transient state for the job." + }, + { + "value": "Error", + "description": "The job has encountered an error. This is a final state for the job." + }, + { + "value": "Finished", + "description": "The job is finished. This is a final state for the job." + }, + { + "value": "Processing", + "description": "The job is processing. This is a transient state for the job." + }, + { + "value": "Queued", + "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." + }, + { + "value": "Scheduled", + "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." + } + ], + "modelAsString": true + }, + "description": "Describes the state of the JobOutput.", + "readOnly": true, + "x-nullable": false + }, + "progress": { + "type": "integer", + "format": "int32", + "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", + "readOnly": true, + "x-nullable": false + }, + "label": { + "type": "string", + "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The UTC date and time at which this Job Output began processing.", + "readOnly": true, + "x-nullable": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The UTC date and time at which this Job Output finished processing.", + "readOnly": true, + "x-nullable": true + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Describes all the properties of a JobOutput." + }, + "JobError": { + "properties": { + "code": { + "type": "string", + "enum": [ + "ServiceError", + "ServiceTransientError", + "DownloadNotAccessible", + "DownloadTransientError", + "UploadNotAccessible", + "UploadTransientError", + "ConfigurationUnsupported", + "ContentMalformed", + "ContentUnsupported" + ], + "x-ms-enum": { + "name": "JobErrorCode", + "values": [ + { + "value": "ServiceError", + "description": "Fatal service error, please contact support." + }, + { + "value": "ServiceTransientError", + "description": "Transient error, please retry, if retry is unsuccessful, please contact support." + }, + { + "value": "DownloadNotAccessible", + "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." + }, + { + "value": "DownloadTransientError", + "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." + }, + { + "value": "UploadNotAccessible", + "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." + }, + { + "value": "UploadTransientError", + "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." + }, + { + "value": "ConfigurationUnsupported", + "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." + }, + { + "value": "ContentMalformed", + "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." + }, + { + "value": "ContentUnsupported", + "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." + } + ], + "modelAsString": true + }, + "description": "Error code describing the error.", + "readOnly": true, + "x-nullable": false + }, + "message": { + "type": "string", + "description": "A human-readable language-dependent representation of the error.", + "readOnly": true + }, + "category": { + "type": "string", + "enum": [ + "Service", + "Download", + "Upload", + "Configuration", + "Content" + ], + "x-ms-enum": { + "name": "JobErrorCategory", + "values": [ + { + "value": "Service", + "description": "The error is service related." + }, + { + "value": "Download", + "description": "The error is download related." + }, + { + "value": "Upload", + "description": "The error is upload related." + }, + { + "value": "Configuration", + "description": "The error is configuration related." + }, + { + "value": "Content", + "description": "The error is related to data in the input files." + } + ], + "modelAsString": true + }, + "description": "Helps with categorization of errors.", + "readOnly": true, + "x-nullable": false + }, + "retry": { + "type": "string", + "enum": [ + "DoNotRetry", + "MayRetry" + ], + "x-ms-enum": { + "name": "JobRetry", + "values": [ + { + "value": "DoNotRetry", + "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." + }, + { + "value": "MayRetry", + "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." + } + ], + "modelAsString": true + }, + "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", + "readOnly": true, + "x-nullable": false + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/JobErrorDetail" + }, + "description": "An array of details about specific errors that led to this reported error.", + "readOnly": true + } + }, + "type": "object", + "description": "Details of JobOutput errors." + }, + "JobOutputAsset": { + "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", + "allOf": [ + { + "$ref": "#/definitions/JobOutput" + } + ], + "properties": { + "assetName": { + "type": "string", + "description": "The name of the output Asset." + } + }, + "type": "object", + "required": [ + "assetName" + ], + "description": "Represents an Asset used as a JobOutput." + }, + "JobErrorDetail": { + "properties": { + "code": { + "type": "string", + "description": "Code describing the error detail.", + "readOnly": true + }, + "message": { + "type": "string", + "description": "A human-readable representation of the error.", + "readOnly": true + } + }, + "type": "object", + "description": "Details of JobOutput errors." + }, + "JobProperties": { + "properties": { + "created": { + "type": "string", + "format": "date-time", + "description": "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", + "readOnly": true, + "x-nullable": false + }, + "state": { + "type": "string", + "enum": [ + "Canceled", + "Canceling", + "Error", + "Finished", + "Processing", + "Queued", + "Scheduled" + ], + "x-ms-enum": { + "name": "JobState", + "values": [ + { + "value": "Canceled", + "description": "The job was canceled. This is a final state for the job." + }, + { + "value": "Canceling", + "description": "The job is in the process of being canceled. This is a transient state for the job." + }, + { + "value": "Error", + "description": "The job has encountered an error. This is a final state for the job." + }, + { + "value": "Finished", + "description": "The job is finished. This is a final state for the job." + }, + { + "value": "Processing", + "description": "The job is processing. This is a transient state for the job." + }, + { + "value": "Queued", + "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." + }, + { + "value": "Scheduled", + "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." + } + ], + "modelAsString": true + }, + "description": "The current state of the job.", + "readOnly": true, + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Optional customer supplied description of the Job." + }, + "input": { + "$ref": "#/definitions/JobInput", + "description": "The inputs for the Job." + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", + "readOnly": true, + "x-nullable": false + }, + "outputs": { + "type": "array", + "items": { + "$ref": "#/definitions/JobOutput" + }, + "description": "The outputs for the Job." + }, + "priority": { + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ], + "x-ms-enum": { + "name": "Priority", + "values": [ + { + "value": "Low", + "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." + }, + { + "value": "Normal", + "description": "Used for TransformOutputs that can be generated at Normal priority." + }, + { + "value": "High", + "description": "Used for TransformOutputs that should take precedence over others." + } + ], + "modelAsString": true + }, + "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." + }, + "correlationData": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The UTC date and time at which this Job began processing.", + "readOnly": true, + "x-nullable": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The UTC date and time at which this Job finished processing.", + "readOnly": true, + "x-nullable": true + } + }, + "type": "object", + "required": [ + "input", + "outputs" + ], + "description": "Properties of the Job." + }, + "JobInputSequence": { + "x-ms-discriminator-value": "#Microsoft.Media.JobInputSequence", + "allOf": [ + { + "$ref": "#/definitions/JobInput" + } + ], + "properties": { + "inputs": { + "type": "array", + "items": { + "$ref": "#/definitions/JobInputClip" + }, + "description": "JobInputs that make up the timeline." + } + }, + "type": "object", + "description": "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input." + }, + "Job": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/JobProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." + }, + "TransformCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Transform" + }, + "description": "A collection of Transform items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of Transform items." + }, + "JobCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Job" + }, + "description": "A collection of Job items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of Job items." + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { + "get": { + "summary": "List Transforms", + "description": "Lists the Transforms in the account.", + "operationId": "Transforms_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TransformCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "Restricts the set of items returned." + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string", + "description": "Specifies the key by which the result collection should be ordered." + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-odata": "#/definitions/Transform", + "x-ms-examples": { + "Lists the Transforms": { + "$ref": "examples/transforms-list-all.json" + }, + "Lists the Transforms filter by name": { + "$ref": "examples/transforms-list-all-filter-by-name.json" + }, + "Lists the Transforms filter by created": { + "$ref": "examples/transforms-list-all-filter-by-created.json" + }, + "Lists the Transforms filter by lastmodified": { + "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { + "get": { + "summary": "Get Transform", + "description": "Gets a Transform.", + "operationId": "Transforms_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Transform" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Transform by name": { + "$ref": "examples/transforms-get-by-name.json" + } + } + }, + "put": { + "summary": "Create or Update Transform", + "description": "Creates or updates a new Transform.", + "operationId": "Transforms_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Transform" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Transform" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Transform" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Create or update a Transform": { + "$ref": "examples/transforms-create.json" + } + } + }, + "delete": { + "summary": "Delete Transform", + "description": "Deletes a Transform.", + "operationId": "Transforms_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete a Transform": { + "$ref": "examples/transforms-delete.json" + } + } + }, + "patch": { + "summary": "Update Transform", + "description": "Updates a Transform.", + "operationId": "Transforms_Update", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Transform" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Transform" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Update a Transform.": { + "$ref": "examples/transforms-update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { + "get": { + "summary": "List Jobs", + "description": "Lists all of the Jobs for the Transform.", + "operationId": "Jobs_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JobCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "Restricts the set of items returned." + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string", + "description": "Specifies the key by which the result collection should be ordered." + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-odata": "#/definitions/Job", + "x-ms-examples": { + "Lists all of the Jobs for the Transform.": { + "$ref": "examples/jobs-list-all.json" + }, + "Lists Jobs for the Transform filter by name.": { + "$ref": "examples/jobs-list-all-filter-by-name.json" + }, + "Lists Jobs for the Transform filter by state equal.": { + "$ref": "examples/jobs-list-all-filter-by-state-eq.json" + }, + "Lists Jobs for the Transform filter by state not equal.": { + "$ref": "examples/jobs-list-all-filter-by-state-ne.json" + }, + "Lists Jobs for the Transform filter by name and state.": { + "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" + }, + "Lists Jobs for the Transform filter by created.": { + "$ref": "examples/jobs-list-all-filter-by-created.json" + }, + "Lists Jobs for the Transform filter by lastmodified.": { + "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { + "get": { + "summary": "Get Job", + "description": "Gets a Job.", + "operationId": "Jobs_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Job" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "name": "jobName", + "in": "path", + "required": true, + "type": "string", + "description": "The Job name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Job by name": { + "$ref": "examples/jobs-get-by-name.json" + } + } + }, + "put": { + "summary": "Create Job", + "description": "Creates a Job.", + "operationId": "Jobs_Create", + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Job" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "name": "jobName", + "in": "path", + "required": true, + "type": "string", + "description": "The Job name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Job" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Create a Job": { + "$ref": "examples/jobs-create.json" + } + } + }, + "delete": { + "summary": "Delete Job", + "description": "Deletes a Job.", + "operationId": "Jobs_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "name": "jobName", + "in": "path", + "required": true, + "type": "string", + "description": "The Job name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete a Job": { + "$ref": "examples/jobs-delete.json" + } + } + }, + "patch": { + "summary": "Update Job", + "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", + "operationId": "Jobs_Update", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Job" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "name": "jobName", + "in": "path", + "required": true, + "type": "string", + "description": "The Job name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Job" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Update a Job": { + "$ref": "examples/jobs-update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { + "post": { + "summary": "Cancel Job", + "description": "Cancel a Job.", + "operationId": "Jobs_CancelJob", + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "transformName", + "in": "path", + "required": true, + "type": "string", + "description": "The Transform name." + }, + { + "name": "jobName", + "in": "path", + "required": true, + "type": "string", + "description": "The Job name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Cancel a Job": { + "$ref": "examples/jobs-cancel.json" + } + } + } + } + }, + "parameters": { + "SubscriptionId": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The unique identifier for a Microsoft Azure subscription." + }, + "ResourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the Azure subscription.", + "x-ms-parameter-location": "method" + }, + "MediaServicesAccountName": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name.", + "x-ms-parameter-location": "method" + }, + "ApiVersion": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The version of the API to be used with the client request." + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json new file mode 100644 index 000000000000..258cd959b73b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json @@ -0,0 +1,1264 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2020-05-01" + }, + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "definitions": { + "TrackPropertyCondition": { + "properties": { + "property": { + "type": "string", + "enum": [ + "Unknown", + "FourCC" + ], + "x-ms-enum": { + "name": "TrackPropertyType", + "values": [ + { + "value": "Unknown", + "description": "Unknown track property" + }, + { + "value": "FourCC", + "description": "Track FourCC" + } + ], + "modelAsString": true + }, + "description": "Track property type" + }, + "operation": { + "type": "string", + "enum": [ + "Unknown", + "Equal" + ], + "x-ms-enum": { + "name": "TrackPropertyCompareOperation", + "values": [ + { + "value": "Unknown", + "description": "Unknown track property compare operation" + }, + { + "value": "Equal", + "description": "Equal operation" + } + ], + "modelAsString": true + }, + "description": "Track property condition operation" + }, + "value": { + "type": "string", + "description": "Track property value" + } + }, + "type": "object", + "required": [ + "property", + "operation" + ], + "description": "Class to specify one track property condition" + }, + "TrackSelection": { + "properties": { + "trackSelections": { + "type": "array", + "items": { + "$ref": "#/definitions/TrackPropertyCondition" + }, + "description": "TrackSelections is a track property condition list which can specify track(s)" + } + }, + "type": "object", + "description": "Class to select a track" + }, + "DefaultKey": { + "properties": { + "label": { + "type": "string", + "description": "Label can be used to specify Content Key when creating a Streaming Locator" + }, + "policyName": { + "type": "string", + "description": "Policy used by Default Key" + } + }, + "type": "object", + "description": "Class to specify properties of default content key for each encryption scheme" + }, + "StreamingPolicyContentKey": { + "properties": { + "label": { + "type": "string", + "description": "Label can be used to specify Content Key when creating a Streaming Locator" + }, + "policyName": { + "type": "string", + "description": "Policy used by Content Key" + }, + "tracks": { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + }, + "description": "Tracks which use this content key" + } + }, + "type": "object", + "description": "Class to specify properties of content key" + }, + "StreamingPolicyContentKeys": { + "properties": { + "defaultKey": { + "$ref": "#/definitions/DefaultKey", + "description": "Default content key for an encryption scheme" + }, + "keyToTrackMappings": { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingPolicyContentKey" + }, + "description": "Representing tracks needs separate content key" + } + }, + "type": "object", + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "StreamingPolicyPlayReadyConfiguration": { + "properties": { + "customLicenseAcquisitionUrlTemplate": { + "type": "string", + "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." + }, + "playReadyCustomAttributes": { + "type": "string", + "description": "Custom attributes for PlayReady" + } + }, + "type": "object", + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "StreamingPolicyWidevineConfiguration": { + "properties": { + "customLicenseAcquisitionUrlTemplate": { + "type": "string", + "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." + } + }, + "type": "object", + "description": "Class to specify configurations of Widevine in Streaming Policy" + }, + "StreamingPolicyFairPlayConfiguration": { + "properties": { + "customLicenseAcquisitionUrlTemplate": { + "type": "string", + "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." + }, + "allowPersistentLicense": { + "type": "boolean", + "description": "All license to be persistent or not" + } + }, + "type": "object", + "required": [ + "allowPersistentLicense" + ], + "description": "Class to specify configurations of FairPlay in Streaming Policy" + }, + "CbcsDrmConfiguration": { + "properties": { + "fairPlay": { + "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", + "description": "FairPlay configurations" + }, + "playReady": { + "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", + "description": "PlayReady configurations" + }, + "widevine": { + "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", + "description": "Widevine configurations" + } + }, + "type": "object", + "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" + }, + "CencDrmConfiguration": { + "properties": { + "playReady": { + "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", + "description": "PlayReady configurations" + }, + "widevine": { + "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", + "description": "Widevine configurations" + } + }, + "type": "object", + "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" + }, + "EnabledProtocols": { + "properties": { + "download": { + "type": "boolean", + "description": "Enable Download protocol or not" + }, + "dash": { + "type": "boolean", + "description": "Enable DASH protocol or not" + }, + "hls": { + "type": "boolean", + "description": "Enable HLS protocol or not" + }, + "smoothStreaming": { + "type": "boolean", + "description": "Enable SmoothStreaming protocol or not" + } + }, + "type": "object", + "required": [ + "download", + "dash", + "hls", + "smoothStreaming" + ], + "description": "Class to specify which protocols are enabled" + }, + "NoEncryption": { + "properties": { + "enabledProtocols": { + "$ref": "#/definitions/EnabledProtocols", + "description": "Representing supported protocols" + } + }, + "type": "object", + "description": "Class for NoEncryption scheme" + }, + "EnvelopeEncryption": { + "properties": { + "enabledProtocols": { + "$ref": "#/definitions/EnabledProtocols", + "description": "Representing supported protocols" + }, + "clearTracks": { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + }, + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "$ref": "#/definitions/StreamingPolicyContentKeys", + "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" + }, + "customKeyAcquisitionUrlTemplate": { + "type": "string", + "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." + } + }, + "type": "object", + "description": "Class for EnvelopeEncryption encryption scheme" + }, + "CommonEncryptionCenc": { + "properties": { + "enabledProtocols": { + "$ref": "#/definitions/EnabledProtocols", + "description": "Representing supported protocols" + }, + "clearTracks": { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + }, + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "$ref": "#/definitions/StreamingPolicyContentKeys", + "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" + }, + "drm": { + "$ref": "#/definitions/CencDrmConfiguration", + "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" + } + }, + "type": "object", + "description": "Class for envelope encryption scheme" + }, + "CommonEncryptionCbcs": { + "properties": { + "enabledProtocols": { + "$ref": "#/definitions/EnabledProtocols", + "description": "Representing supported protocols" + }, + "clearTracks": { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + }, + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "$ref": "#/definitions/StreamingPolicyContentKeys", + "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" + }, + "drm": { + "$ref": "#/definitions/CbcsDrmConfiguration", + "description": "Configuration of DRMs for current encryption scheme" + } + }, + "type": "object", + "description": "Class for CommonEncryptionCbcs encryption scheme" + }, + "StreamingPolicyProperties": { + "properties": { + "created": { + "type": "string", + "format": "date-time", + "description": "Creation time of Streaming Policy", + "readOnly": true, + "x-nullable": false + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Default ContentKey used by current Streaming Policy" + }, + "envelopeEncryption": { + "$ref": "#/definitions/EnvelopeEncryption", + "description": "Configuration of EnvelopeEncryption" + }, + "commonEncryptionCenc": { + "$ref": "#/definitions/CommonEncryptionCenc", + "description": "Configuration of CommonEncryptionCenc" + }, + "commonEncryptionCbcs": { + "$ref": "#/definitions/CommonEncryptionCbcs", + "description": "Configuration of CommonEncryptionCbcs" + }, + "noEncryption": { + "$ref": "#/definitions/NoEncryption", + "description": "Configurations of NoEncryption" + } + }, + "type": "object", + "description": "Class to specify properties of Streaming Policy" + }, + "StreamingPolicy": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/StreamingPolicyProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "A Streaming Policy resource" + }, + "StreamingLocatorContentKey": { + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "ID of Content Key" + }, + "type": { + "type": "string", + "enum": [ + "CommonEncryptionCenc", + "CommonEncryptionCbcs", + "EnvelopeEncryption" + ], + "x-ms-enum": { + "name": "StreamingLocatorContentKeyType", + "values": [ + { + "value": "CommonEncryptionCenc", + "description": "Common Encryption using CENC" + }, + { + "value": "CommonEncryptionCbcs", + "description": "Common Encryption using CBCS" + }, + { + "value": "EnvelopeEncryption", + "description": "Envelope Encryption" + } + ], + "modelAsString": true + }, + "description": "Encryption type of Content Key", + "readOnly": true, + "x-nullable": false + }, + "labelReferenceInStreamingPolicy": { + "type": "string", + "description": "Label of Content Key as specified in the Streaming Policy" + }, + "value": { + "type": "string", + "description": "Value of Content Key" + }, + "policyName": { + "type": "string", + "description": "ContentKeyPolicy used by Content Key", + "readOnly": true + }, + "tracks": { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + }, + "description": "Tracks which use this Content Key", + "readOnly": true + } + }, + "type": "object", + "required": [ + "id" + ], + "description": "Class for content key in Streaming Locator" + }, + "StreamingPath": { + "properties": { + "streamingProtocol": { + "type": "string", + "enum": [ + "Hls", + "Dash", + "SmoothStreaming", + "Download" + ], + "x-ms-enum": { + "name": "StreamingPolicyStreamingProtocol", + "values": [ + { + "value": "Hls", + "description": "HLS protocol" + }, + { + "value": "Dash", + "description": "DASH protocol" + }, + { + "value": "SmoothStreaming", + "description": "SmoothStreaming protocol" + }, + { + "value": "Download", + "description": "Download protocol" + } + ], + "modelAsString": true + }, + "description": "Streaming protocol" + }, + "encryptionScheme": { + "type": "string", + "enum": [ + "NoEncryption", + "EnvelopeEncryption", + "CommonEncryptionCenc", + "CommonEncryptionCbcs" + ], + "x-ms-enum": { + "name": "EncryptionScheme", + "values": [ + { + "value": "NoEncryption", + "description": "NoEncryption scheme" + }, + { + "value": "EnvelopeEncryption", + "description": "EnvelopeEncryption scheme" + }, + { + "value": "CommonEncryptionCenc", + "description": "CommonEncryptionCenc scheme" + }, + { + "value": "CommonEncryptionCbcs", + "description": "CommonEncryptionCbcs scheme" + } + ], + "modelAsString": true + }, + "description": "Encryption scheme" + }, + "paths": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Streaming paths for each protocol and encryptionScheme pair" + } + }, + "type": "object", + "required": [ + "streamingProtocol", + "encryptionScheme" + ], + "description": "Class of paths for streaming" + }, + "StreamingLocatorProperties": { + "properties": { + "assetName": { + "type": "string", + "description": "Asset Name" + }, + "created": { + "type": "string", + "format": "date-time", + "description": "The creation time of the Streaming Locator.", + "readOnly": true, + "x-nullable": false + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the Streaming Locator." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the Streaming Locator." + }, + "streamingLocatorId": { + "type": "string", + "format": "uuid", + "description": "The StreamingLocatorId of the Streaming Locator." + }, + "streamingPolicyName": { + "type": "string", + "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." + }, + "contentKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingLocatorContentKey" + }, + "description": "The ContentKeys used by this Streaming Locator." + }, + "alternativeMediaId": { + "type": "string", + "description": "Alternative Media ID of this Streaming Locator" + }, + "filters": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of asset or account filters which apply to this streaming locator" + } + }, + "type": "object", + "required": [ + "assetName", + "streamingPolicyName" + ], + "description": "Properties of the Streaming Locator." + }, + "ListContentKeysResponse": { + "properties": { + "contentKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingLocatorContentKey" + }, + "description": "ContentKeys used by current Streaming Locator" + } + }, + "type": "object", + "description": "Class of response for listContentKeys action" + }, + "ListPathsResponse": { + "properties": { + "streamingPaths": { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingPath" + }, + "description": "Streaming Paths supported by current Streaming Locator" + }, + "downloadPaths": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Download Paths supported by current Streaming Locator" + } + }, + "type": "object", + "description": "Class of response for listPaths action" + }, + "StreamingLocator": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/StreamingLocatorProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "A Streaming Locator resource" + }, + "StreamingPolicyCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingPolicy" + }, + "description": "A collection of StreamingPolicy items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of StreamingPolicy items." + }, + "StreamingLocatorCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingLocator" + }, + "description": "A collection of StreamingLocator items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of StreamingLocator items." + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { + "get": { + "summary": "List Streaming Policies", + "description": "Lists the Streaming Policies in the account", + "operationId": "StreamingPolicies_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StreamingPolicyCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "Restricts the set of items returned." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string", + "description": "Specifies the key by which the result collection should be ordered." + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-odata": "#/definitions/StreamingPolicy", + "x-ms-examples": { + "Lists Streaming Policies": { + "$ref": "examples/streaming-policies-list.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { + "get": { + "summary": "Get a Streaming Policy", + "description": "Get the details of a Streaming Policy in the Media Services account", + "operationId": "StreamingPolicies_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StreamingPolicy" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "streamingPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The Streaming Policy name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Streaming Policy by name": { + "$ref": "examples/streaming-policy-get-by-name.json" + } + } + }, + "put": { + "summary": "Create a Streaming Policy", + "description": "Create a Streaming Policy in the Media Services account", + "operationId": "StreamingPolicies_Create", + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/StreamingPolicy" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "streamingPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The Streaming Policy name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/StreamingPolicy" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Creates a Streaming Policy with clear streaming": { + "$ref": "examples/streaming-policies-create-clear.json" + }, + "Creates a Streaming Policy with envelopeEncryption only": { + "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" + }, + "Creates a Streaming Policy with commonEncryptionCenc only": { + "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" + }, + "Creates a Streaming Policy with commonEncryptionCbcs only": { + "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" + }, + "Creates a Streaming Policy with secure streaming": { + "$ref": "examples/streaming-policies-create-secure-streaming.json" + } + } + }, + "delete": { + "summary": "Delete a Streaming Policy", + "description": "Deletes a Streaming Policy in the Media Services account", + "operationId": "StreamingPolicies_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "streamingPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The Streaming Policy name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete a Streaming Policy": { + "$ref": "examples/streaming-policies-delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { + "get": { + "summary": "List Streaming Locators", + "description": "Lists the Streaming Locators in the account", + "operationId": "StreamingLocators_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StreamingLocatorCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "Restricts the set of items returned." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string", + "description": "Specifies the key by which the result collection should be ordered." + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-odata": "#/definitions/StreamingLocator", + "x-ms-examples": { + "Lists Streaming Locators": { + "$ref": "examples/streaming-locators-list.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { + "get": { + "summary": "Get a Streaming Locator", + "description": "Get the details of a Streaming Locator in the Media Services account", + "operationId": "StreamingLocators_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StreamingLocator" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "streamingLocatorName", + "in": "path", + "required": true, + "type": "string", + "description": "The Streaming Locator name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Streaming Locator by name": { + "$ref": "examples/streaming-locators-get-by-name.json" + } + } + }, + "put": { + "summary": "Create a Streaming Locator", + "description": "Create a Streaming Locator in the Media Services account", + "operationId": "StreamingLocators_Create", + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/StreamingLocator" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "streamingLocatorName", + "in": "path", + "required": true, + "type": "string", + "description": "The Streaming Locator name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/StreamingLocator" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Creates a Streaming Locator with clear streaming": { + "$ref": "examples/streaming-locators-create-clear.json" + }, + "Creates a Streaming Locator with secure streaming": { + "$ref": "examples/streaming-locators-create-secure.json" + }, + "Creates a Streaming Locator with user defined content keys": { + "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" + } + } + }, + "delete": { + "summary": "Delete a Streaming Locator", + "description": "Deletes a Streaming Locator in the Media Services account", + "operationId": "StreamingLocators_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "streamingLocatorName", + "in": "path", + "required": true, + "type": "string", + "description": "The Streaming Locator name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete a Streaming Locator": { + "$ref": "examples/streaming-locators-delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { + "post": { + "summary": "List Content Keys", + "description": "List Content Keys used by this Streaming Locator", + "operationId": "StreamingLocators_ListContentKeys", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListContentKeysResponse" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "streamingLocatorName", + "in": "path", + "required": true, + "type": "string", + "description": "The Streaming Locator name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "List Content Keys": { + "$ref": "examples/streaming-locators-list-content-keys.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { + "post": { + "summary": "List Paths", + "description": "List Paths supported by this Streaming Locator", + "operationId": "StreamingLocators_ListPaths", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListPathsResponse" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "streamingLocatorName", + "in": "path", + "required": true, + "type": "string", + "description": "The Streaming Locator name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "List Paths which has streaming paths only": { + "$ref": "examples/streaming-locators-list-paths-streaming-only.json" + }, + "List Paths which has streaming paths and download paths": { + "$ref": "examples/streaming-locators-list-paths-streaming-and-download.json" + } + } + } + } + }, + "parameters": { + "SubscriptionId": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The unique identifier for a Microsoft Azure subscription." + }, + "ResourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the Azure subscription.", + "x-ms-parameter-location": "method" + }, + "MediaServicesAccountName": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name.", + "x-ms-parameter-location": "method" + }, + "ApiVersion": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The version of the API to be used with the client request." + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json new file mode 100644 index 000000000000..4c6d70688845 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json @@ -0,0 +1,171 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "filterName": "newAccountFilter", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "operation": "Equal", + "value": "Audio" + }, + { + "property": "Language", + "operation": "NotEqual", + "value": "en" + }, + { + "property": "FourCC", + "operation": "NotEqual", + "value": "EC-3" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "operation": "Equal", + "value": "Video" + }, + { + "property": "Bitrate", + "operation": "Equal", + "value": "3000000-5000000" + } + ] + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "newAccountFilter", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", + "type": "Microsoft.Media/mediaservices/accountFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + }, + "200": { + "body": { + "name": "newAccountFilter", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", + "type": "Microsoft.Media/mediaservices/accountFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json new file mode 100644 index 000000000000..b8ce20a48042 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "filterName": "accountFilterWithTimeWindowAndTrack", + "api-version": "2020-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json new file mode 100644 index 000000000000..5a74560c990f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "filterName": "accountFilterWithTrack", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "accountFilterWithTrack", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", + "type": "Microsoft.Media/mediaservices/accountFilters", + "properties": { + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + }, + "404": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json new file mode 100644 index 000000000000..7dac9459b140 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "accountFilterWithTimeWindowAndTrack", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", + "type": "Microsoft.Media/mediaservices/accountFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + }, + { + "name": "accountFilterWithTrack", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", + "type": "Microsoft.Media/mediaservices/accountFilters", + "properties": { + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json new file mode 100644 index 000000000000..aec8c7c8c06a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "filterName": "accountFilterWithTimeWindowAndTrack", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "presentationTimeRange": { + "startTimestamp": 10, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "accountFilterWithTimeWindowAndTrack", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", + "type": "Microsoft.Media/mediaservices/accountFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 10, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-check-name-availability.json new file mode 100644 index 000000000000..d706c1e825ec --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-check-name-availability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "locationName": "japaneast", + "parameters": { + "name": "contosonew", + "type": "Microsoft.Media/MediaService" + }, + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "None", + "message": "" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-create.json new file mode 100644 index 000000000000..8f761a357b83 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-create.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01", + "parameters": { + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary" + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "contososports", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary" + } + ] + } + } + }, + "200": { + "body": { + "name": "contososports", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary" + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-delete.json new file mode 100644 index 000000000000..70012feb623d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-get-by-name.json new file mode 100644 index 000000000000..7512c2a08c66 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-get-by-name.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosotv", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "contosotv", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", + "type": "Primary" + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-all-accounts.json new file mode 100644 index 000000000000..04ff56babaec --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-all-accounts.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "contosotv", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", + "type": "Primary" + } + ] + } + }, + { + "name": "contosomovies", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", + "type": "Primary" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-media-edge-policies.json new file mode 100644 index 000000000000..dff0e11b78cb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-media-edge-policies.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01", + "parameters": { + "deviceId": "contosiothubhost_contosoiotdevice" + } + }, + "responses": { + "200": { + "body": { + "usageDataCollectionPolicy": { + "dataCollectionFrequency": "PT10M", + "dataReportingFrequency": "PT1H", + "maxAllowedUnreportedUsageDuration": "PT36H", + "eventHubDetails": { + "name": "ams-x", + "namespace": "ams-y-1-1", + "token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData" + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json new file mode 100644 index 000000000000..c40be298ae98 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "contososports", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary" + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json new file mode 100644 index 000000000000..ca18508aa67e --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "contosotv", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", + "type": "Primary" + } + ] + } + }, + { + "name": "contosomovies", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", + "type": "Primary" + } + ] + } + }, + { + "name": "fabrikamnews", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/fabrikamnews", + "type": "Microsoft.Media/mediaservices", + "location": "East US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "properties": { + "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", + "type": "Primary" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-sync-storage-keys.json new file mode 100644 index 000000000000..453aaa7a88e8 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-sync-storage-keys.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01", + "parameters": { + "id": "contososportsstore" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json new file mode 100644 index 000000000000..d1d67e1cc9bb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01", + "parameters": { + "location": "South Central US", + "tags": { + "key1": "value3" + } + } + }, + "responses": { + "200": { + "body": { + "name": "contososports", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", + "type": "Microsoft.Media/mediaservices", + "location": "South Central US", + "tags": { + "key1": "value3" + }, + "properties": { + "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary" + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json new file mode 100644 index 000000000000..dc7fe3d144cc --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json @@ -0,0 +1,172 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "filterName": "newAssetFilter", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "operation": "Equal", + "value": "Audio" + }, + { + "property": "Language", + "operation": "NotEqual", + "value": "en" + }, + { + "property": "FourCC", + "operation": "NotEqual", + "value": "EC-3" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "operation": "Equal", + "value": "Video" + }, + { + "property": "Bitrate", + "operation": "Equal", + "value": "3000000-5000000" + } + ] + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "newAssetFilter", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", + "type": "Microsoft.Media/mediaservices/assets/assetFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + }, + "200": { + "body": { + "name": "newAssetFilter", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", + "type": "Microsoft.Media/mediaservices/assets/assetFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json new file mode 100644 index 000000000000..da8d2fe16746 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "filterName": "assetFilterWithTimeWindowAndTrack", + "api-version": "2020-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json new file mode 100644 index 000000000000..2e874548f36a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "filterName": "assetFilterWithTimeWindowAndTrack", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "assetFilterWithTimeWindowAndTrack", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", + "type": "Microsoft.Media/mediaservices/assets/assetFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + }, + "404": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json new file mode 100644 index 000000000000..b0284501a3f1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "assetFilterWithTimeWindowAndTrack", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", + "type": "Microsoft.Media/mediaservices/assets/assetFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + }, + { + "name": "assetFilterWithTimeWindow", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", + "type": "Microsoft.Media/mediaservices/assets/assetFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 0, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [] + } + }, + { + "name": "assetFilterWithTrack", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", + "type": "Microsoft.Media/mediaservices/assets/assetFilters", + "properties": { + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json new file mode 100644 index 000000000000..4ce1ca0618e8 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "filterName": "assetFilterWithTimeWindowAndTrack", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "presentationTimeRange": { + "startTimestamp": 10, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "assetFilterWithTimeWindowAndTrack", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", + "type": "Microsoft.Media/mediaservices/assets/assetFilters", + "properties": { + "presentationTimeRange": { + "startTimestamp": 10, + "endTimestamp": 170000000, + "presentationWindowDuration": 9223372036854774806, + "liveBackoffDuration": 0, + "timescale": 10000000, + "forceEndTimestamp": false + }, + "firstQuality": { + "bitrate": 128000 + }, + "tracks": [ + { + "trackSelections": [ + { + "property": "Type", + "value": "Audio", + "operation": "Equal" + }, + { + "property": "Language", + "value": "en", + "operation": "NotEqual" + }, + { + "property": "FourCC", + "value": "EC-3", + "operation": "NotEqual" + } + ] + }, + { + "trackSelections": [ + { + "property": "Type", + "value": "Video", + "operation": "Equal" + }, + { + "property": "Bitrate", + "value": "3000000-5000000", + "operation": "Equal" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json new file mode 100644 index 000000000000..b15a6d7ecff2 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountLogan", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "description": "A documentary showing the ascent of Mount Logan", + "storageAccountName": "storage0" + } + } + }, + "responses": { + "201": { + "body": { + "name": "ClimbingMountLogan", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "09194258-36ba-4403-abb3-68780e6bc545", + "created": "2018-08-08T18:29:26.08Z", + "lastModified": "2018-08-08T18:29:26.08Z", + "description": "A documentary showing the ascent of Mount Logan", + "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", + "storageAccountName": "storage0", + "storageEncryptionFormat": "None" + } + } + }, + "200": { + "body": { + "name": "ClimbingMountLogan", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "09194258-36ba-4403-abb3-68780e6bc545", + "created": "2018-08-08T18:29:26.08Z", + "lastModified": "2018-08-08T18:29:26.107Z", + "description": "A documentary showing the ascent of Mount Logan", + "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", + "storageAccountName": "storage0", + "storageEncryptionFormat": "None" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json new file mode 100644 index 000000000000..0147afd32330 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountAdams", + "api-version": "2020-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json new file mode 100644 index 000000000000..f4635b39442d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountAdams", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "ClimbingMountAdams", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", + "created": "2013-02-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "alternateId": "CLIMB00002", + "description": "A documentary showing the ascent of Mount Adams", + "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", + "storageEncryptionFormat": "None" + } + } + }, + "404": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json new file mode 100644 index 000000000000..1b0ee2f1db86 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountSaintHelens", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "key": "AAAAAAAAAAAAAAAAAAAAAA==", + "assetFileEncryptionMetadata": [ + { + "initializationVector": "-988929866", + "assetFileName": "AssetFile0", + "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" + }, + { + "initializationVector": "1604993689", + "assetFileName": "AssetFile1", + "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" + }, + { + "initializationVector": "100082635", + "assetFileName": "AssetFile2", + "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json new file mode 100644 index 000000000000..5bba32e159de --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ClimbingLittleTahoma", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", + "created": "2012-04-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "alternateId": "CLIMB00003", + "description": "A documentary showing the ascent of Little Tahoma", + "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountAdams", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", + "created": "2013-02-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "alternateId": "CLIMB00002", + "description": "A documentary showing the ascent of Mount Adams", + "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountBaker", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", + "created": "2011-02-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "alternateId": "CLIMB00004", + "description": "A documentary showing the ascent of Mount Baker", + "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountRainer", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", + "created": "2018-08-08T18:29:24.3948982Z", + "lastModified": "2018-08-08T21:29:24.3948982Z", + "alternateId": "altClimbingMountRainer", + "description": "descClimbingMountRainer", + "container": "testasset0", + "storageAccountName": "storage0", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountRainier", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", + "created": "2012-11-01T00:00:00Z", + "lastModified": "2012-11-01T00:00:00Z", + "alternateId": "CLIMB00001", + "description": "A documentary showing the ascent of Mount Rainier", + "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountSaintHelens", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", + "created": "2013-03-01T00:00:00Z", + "lastModified": "2013-04-01T00:00:00Z", + "alternateId": "CLIMB00005", + "description": "A documentary showing the ascent of Saint Helens", + "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", + "storageEncryptionFormat": "MediaStorageClientEncryption" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json new file mode 100644 index 000000000000..fb2932e24145 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01", + "$orderby": "properties/created" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ClimbingMountBaker", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", + "created": "2011-02-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "alternateId": "CLIMB00004", + "description": "A documentary showing the ascent of Mount Baker", + "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingLittleTahoma", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", + "created": "2012-04-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "alternateId": "CLIMB00003", + "description": "A documentary showing the ascent of Little Tahoma", + "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountRainier", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", + "created": "2012-11-01T00:00:00Z", + "lastModified": "2012-11-01T00:00:00Z", + "alternateId": "CLIMB00001", + "description": "A documentary showing the ascent of Mount Rainier", + "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountAdams", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", + "created": "2013-02-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "alternateId": "CLIMB00002", + "description": "A documentary showing the ascent of Mount Adams", + "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountSaintHelens", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", + "created": "2013-03-01T00:00:00Z", + "lastModified": "2013-04-01T00:00:00Z", + "alternateId": "CLIMB00005", + "description": "A documentary showing the ascent of Saint Helens", + "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", + "storageEncryptionFormat": "MediaStorageClientEncryption" + } + }, + { + "name": "ClimbingMountRainer", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", + "created": "2018-08-08T18:29:25.0514734Z", + "lastModified": "2018-08-08T21:29:25.0514734Z", + "alternateId": "altClimbingMountRainer", + "description": "descClimbingMountRainer", + "container": "testasset0", + "storageAccountName": "storage0", + "storageEncryptionFormat": "None" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json new file mode 100644 index 000000000000..8c1e80ae23b8 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01", + "$orderby": "properties/created", + "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ClimbingMountRainier", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", + "created": "2012-11-01T00:00:00Z", + "lastModified": "2012-11-01T00:00:00Z", + "alternateId": "CLIMB00001", + "description": "A documentary showing the ascent of Mount Rainier", + "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountAdams", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", + "created": "2013-02-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "alternateId": "CLIMB00002", + "description": "A documentary showing the ascent of Mount Adams", + "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", + "storageEncryptionFormat": "None" + } + }, + { + "name": "ClimbingMountSaintHelens", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", + "created": "2013-03-01T00:00:00Z", + "lastModified": "2013-04-01T00:00:00Z", + "alternateId": "CLIMB00005", + "description": "A documentary showing the ascent of Saint Helens", + "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", + "storageEncryptionFormat": "MediaStorageClientEncryption" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json new file mode 100644 index 000000000000..e3ac6b3104dd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountBaker", + "api-version": "2020-05-01", + "parameters": { + "permissions": "ReadWrite", + "expiryTime": "2018-01-01T10:00:00.007Z" + } + }, + "responses": { + "200": { + "body": { + "assetContainerSasUrls": [ + "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", + "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json new file mode 100644 index 000000000000..4b99b6b6aae4 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountSaintHelens", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "streamingLocators": [ + { + "name": "secureStreamingLocator", + "assetName": "ClimbingMountSaintHelens", + "created": "2018-08-08T18:29:26.9729344Z", + "endTime": "9999-12-31T23:59:59.9999999Z", + "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", + "streamingPolicyName": "secureStreamingPolicy" + }, + { + "name": "clearStreamingLocator", + "assetName": "ClimbingMountSaintHelens", + "created": "2018-08-08T18:29:26.9487636Z", + "endTime": "9999-12-31T23:59:59.9999999Z", + "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", + "streamingPolicyName": "clearStreamingPolicy" + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json new file mode 100644 index 000000000000..2e45ce22a21c --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountBaker", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "description": "A documentary showing the ascent of Mount Baker in HD" + } + } + }, + "responses": { + "200": { + "body": { + "name": "ClimbingMountBaker", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", + "type": "Microsoft.Media/mediaservices/assets", + "properties": { + "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", + "created": "2011-02-01T00:00:00Z", + "lastModified": "2018-08-08T18:29:26.503Z", + "alternateId": "CLIMB00004", + "description": "A documentary showing the ascent of Mount Baker in HD", + "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", + "storageEncryptionFormat": "None" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json new file mode 100644 index 000000000000..fb8abf5c67f6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json @@ -0,0 +1,134 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "description": "ArmPolicyDescription", + "options": [ + { + "name": "ClearKeyOption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" + }, + "restrictionTokenType": "Swt" + } + }, + { + "name": "widevineoption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "PolicyCreatedWithMultipleOptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "07ad673b-dc14-4230-adab-716622f33992", + "created": "2018-08-08T18:29:29.98Z", + "lastModified": "2018-08-08T18:29:29.98Z", + "description": "ArmPolicyDescription", + "options": [ + { + "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", + "name": "ClearKeyOption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [], + "restrictionTokenType": "Swt" + } + }, + { + "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", + "name": "widevineoption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + }, + "201": { + "body": { + "name": "PolicyCreatedWithMultipleOptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "07ad673b-dc14-4230-adab-716622f33992", + "created": "2018-08-08T18:29:29.98Z", + "lastModified": "2018-08-08T18:29:29.98Z", + "description": "ArmPolicyDescription", + "options": [ + { + "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", + "name": "ClearKeyOption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [], + "restrictionTokenType": "Swt" + } + }, + { + "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", + "name": "widevineoption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json new file mode 100644 index 000000000000..13eca3bac701 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "description": "ArmPolicyDescription", + "options": [ + { + "name": "ClearKeyOption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" + }, + "restrictionTokenType": "Swt" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", + "created": "2018-08-08T18:29:29.837Z", + "lastModified": "2018-08-08T18:29:29.837Z", + "description": "ArmPolicyDescription", + "options": [ + { + "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", + "name": "ClearKeyOption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [], + "restrictionTokenType": "Swt" + } + } + ] + } + } + }, + "201": { + "body": { + "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", + "created": "2018-08-08T18:29:29.837Z", + "lastModified": "2018-08-08T18:29:29.837Z", + "description": "ArmPolicyDescription", + "options": [ + { + "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", + "name": "ClearKeyOption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [], + "restrictionTokenType": "Swt" + } + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json new file mode 100644 index 000000000000..c1917240ee27 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "description": "ArmPolicyDescription", + "options": [ + { + "name": "ArmPolicyOptionName", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", + "licenses": [ + { + "allowTestDevices": true, + "beginDate": "2017-10-16T18:22:53.46Z", + "playRight": { + "scmsRestriction": 2, + "digitalVideoOnlyContentRestriction": false, + "imageConstraintForAnalogComponentVideoRestriction": true, + "imageConstraintForAnalogComputerMonitorRestriction": false, + "allowPassingVideoContentToUnknownOutput": "NotAllowed" + }, + "licenseType": "Persistent", + "contentKeyLocation": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + }, + "contentType": "UltraVioletDownload" + } + ] + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "PolicyWithPlayReadyOptionAndOpenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", + "created": "2012-11-01T00:00:00Z", + "lastModified": "2018-08-08T18:29:29.51Z", + "description": "ArmPolicyDescription", + "options": [ + { + "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", + "name": "ArmPolicyOptionName", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", + "licenses": [ + { + "allowTestDevices": true, + "beginDate": "2017-10-16T18:22:53.46Z", + "playRight": { + "scmsRestriction": 2, + "digitalVideoOnlyContentRestriction": false, + "imageConstraintForAnalogComponentVideoRestriction": true, + "imageConstraintForAnalogComputerMonitorRestriction": false, + "allowPassingVideoContentToUnknownOutput": "NotAllowed" + }, + "licenseType": "Persistent", + "contentKeyLocation": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + }, + "contentType": "UltraVioletDownload" + } + ] + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + }, + "201": { + "body": { + "name": "PolicyWithPlayReadyOptionAndOpenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", + "created": "2012-11-01T00:00:00Z", + "lastModified": "2018-08-08T18:29:29.51Z", + "description": "ArmPolicyDescription", + "options": [ + { + "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", + "name": "ArmPolicyOptionName", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", + "licenses": [ + { + "allowTestDevices": true, + "beginDate": "2017-10-16T18:22:53.46Z", + "playRight": { + "scmsRestriction": 2, + "digitalVideoOnlyContentRestriction": false, + "imageConstraintForAnalogComponentVideoRestriction": true, + "imageConstraintForAnalogComputerMonitorRestriction": false, + "allowPassingVideoContentToUnknownOutput": "NotAllowed" + }, + "licenseType": "Persistent", + "contentKeyLocation": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + }, + "contentType": "UltraVioletDownload" + } + ] + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json new file mode 100644 index 000000000000..8c88dc47c4ad --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "description": "ArmPolicyDescription", + "options": [ + { + "name": "widevineoption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", + "exponent": "AQAB", + "modulus": "AQAD" + }, + "alternateVerificationKeys": [ + { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" + } + ], + "restrictionTokenType": "Jwt" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", + "created": "2018-08-08T18:29:29.663Z", + "lastModified": "2018-08-08T18:29:29.663Z", + "description": "ArmPolicyDescription", + "options": [ + { + "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", + "name": "widevineoption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", + "exponent": "", + "modulus": "" + }, + "alternateVerificationKeys": [ + { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + } + ], + "requiredClaims": [], + "restrictionTokenType": "Jwt" + } + } + ] + } + } + }, + "201": { + "body": { + "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", + "created": "2018-08-08T18:29:29.663Z", + "lastModified": "2018-08-08T18:29:29.663Z", + "description": "ArmPolicyDescription", + "options": [ + { + "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", + "name": "widevineoption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "urn:issuer", + "audience": "urn:audience", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", + "exponent": "", + "modulus": "" + }, + "alternateVerificationKeys": [ + { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + } + ], + "requiredClaims": [], + "restrictionTokenType": "Jwt" + } + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json new file mode 100644 index 000000000000..33eba3a15826 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", + "api-version": "2020-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json new file mode 100644 index 000000000000..28c9e5dc131d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithMultipleOptions", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "PolicyWithMultipleOptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", + "created": "2015-12-01T00:00:00Z", + "lastModified": "2016-12-02T00:00:00Z", + "description": "A policy with multiple options.", + "options": [ + { + "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "http://testacs", + "audience": "urn:test", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [ + { + "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" + }, + { + "claimType": "DRM", + "claimValue": "Widevine" + } + ], + "restrictionTokenType": "Jwt" + } + }, + { + "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + }, + "404": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json new file mode 100644 index 000000000000..0da829c2d657 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithMultipleOptions", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", + "created": "2015-12-01T00:00:00Z", + "lastModified": "2016-12-02T00:00:00Z", + "description": "A policy with multiple options.", + "options": [ + { + "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "http://testacs", + "audience": "urn:test", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "AAA=" + }, + "alternateVerificationKeys": [], + "requiredClaims": [ + { + "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" + }, + { + "claimType": "DRM", + "claimValue": "Widevine" + } + ], + "restrictionTokenType": "Jwt" + } + }, + { + "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + }, + "404": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json new file mode 100644 index 000000000000..a0e49ad9839b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json @@ -0,0 +1,165 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "PolicyWithClearKeyOptionAndTokenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "8352435b-ebea-4681-aae7-e19277771f64", + "created": "2017-12-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "description": "A policy with one ClearKey option and Open Restriction.", + "options": [ + { + "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", + "name": null, + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "http://testacs", + "audience": "urn:test", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [ + { + "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", + "claimValue": null + }, + { + "claimType": "DRM", + "claimValue": "Widevine" + } + ], + "restrictionTokenType": "Jwt", + "openIdConnectDiscoveryDocument": null + } + } + ] + } + }, + { + "name": "PolicyWithMultipleOptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", + "created": "2015-12-01T00:00:00Z", + "lastModified": "2016-12-02T00:00:00Z", + "description": "A policy with multiple options.", + "options": [ + { + "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", + "name": null, + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "http://testacs", + "audience": "urn:test", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [ + { + "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", + "claimValue": null + }, + { + "claimType": "DRM", + "claimValue": "Widevine" + } + ], + "restrictionTokenType": "Jwt", + "openIdConnectDiscoveryDocument": null + } + }, + { + "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", + "name": null, + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + }, + { + "name": "PolicyWithPlayReadyOptionAndOpenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", + "created": "2012-11-01T00:00:00Z", + "lastModified": "2012-11-01T00:00:00Z", + "description": "A policy with one PlayReady option and Open Restriction.", + "options": [ + { + "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", + "name": null, + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", + "licenses": [ + { + "allowTestDevices": false, + "beginDate": null, + "expirationDate": null, + "relativeBeginDate": null, + "relativeExpirationDate": null, + "gracePeriod": null, + "playRight": { + "firstPlayExpiration": null, + "scmsRestriction": null, + "agcAndColorStripeRestriction": null, + "explicitAnalogTelevisionOutputRestriction": null, + "digitalVideoOnlyContentRestriction": false, + "imageConstraintForAnalogComponentVideoRestriction": false, + "imageConstraintForAnalogComputerMonitorRestriction": false, + "allowPassingVideoContentToUnknownOutput": "NotAllowed", + "uncompressedDigitalVideoOpl": null, + "compressedDigitalVideoOpl": null, + "analogVideoOpl": null, + "compressedDigitalAudioOpl": null, + "uncompressedDigitalAudioOpl": null + }, + "licenseType": "NonPersistent", + "contentKeyLocation": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + }, + "contentType": "Unspecified" + } + ], + "responseCustomData": "testCustomData" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json new file mode 100644 index 000000000000..6cb81fd7ad9f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01", + "$orderby": "properties/lastModified" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "PolicyWithPlayReadyOptionAndOpenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", + "created": "2012-11-01T00:00:00Z", + "lastModified": "2012-11-01T00:00:00Z", + "description": "A policy with one PlayReady option and Open Restriction.", + "options": [ + { + "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", + "licenses": [ + { + "allowTestDevices": false, + "playRight": { + "digitalVideoOnlyContentRestriction": false, + "imageConstraintForAnalogComponentVideoRestriction": false, + "imageConstraintForAnalogComputerMonitorRestriction": false, + "allowPassingVideoContentToUnknownOutput": "NotAllowed" + }, + "licenseType": "NonPersistent", + "contentKeyLocation": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + }, + "contentType": "Unspecified" + } + ], + "responseCustomData": "testCustomData" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + }, + { + "name": "PolicyWithMultipleOptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", + "created": "2015-12-01T00:00:00Z", + "lastModified": "2016-12-02T00:00:00Z", + "description": "A policy with multiple options.", + "options": [ + { + "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "http://testacs", + "audience": "urn:test", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [ + { + "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" + }, + { + "claimType": "DRM", + "claimValue": "Widevine" + } + ], + "restrictionTokenType": "Jwt" + } + }, + { + "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", + "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + }, + { + "name": "PolicyWithClearKeyOptionAndTokenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "8352435b-ebea-4681-aae7-e19277771f64", + "created": "2017-12-01T00:00:00Z", + "lastModified": "2017-11-01T00:00:00Z", + "description": "A policy with one ClearKey option and Open Restriction.", + "options": [ + { + "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", + "issuer": "http://testacs", + "audience": "urn:test", + "primaryVerificationKey": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", + "keyValue": "" + }, + "alternateVerificationKeys": [], + "requiredClaims": [ + { + "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" + }, + { + "claimType": "DRM", + "claimValue": "Widevine" + } + ], + "restrictionTokenType": "Jwt" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json new file mode 100644 index 000000000000..179d30addc94 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01", + "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" + }, + "responses": { + "200": { + "body": { + "value": [] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json new file mode 100644 index 000000000000..33d98dab8af3 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "description": "Updated Policy", + "options": [ + { + "name": "ClearKeyOption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "PolicyWithClearKeyOptionAndTokenRestriction", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", + "type": "Microsoft.Media/mediaservices/contentKeyPolicies", + "properties": { + "policyId": "8352435b-ebea-4681-aae7-e19277771f64", + "created": "2017-12-01T00:00:00Z", + "lastModified": "2018-08-08T18:29:30.303Z", + "description": "Updated Policy", + "options": [ + { + "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", + "name": "ClearKeyOption", + "configuration": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + }, + "restriction": { + "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + } + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json new file mode 100644 index 000000000000..550a8aaf77c8 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "jobName": "job1" + }, + "responses": { + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json new file mode 100644 index 000000000000..0a080128b740 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "jobName": "job1", + "parameters": { + "properties": { + "input": { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "assetName": "job1-InputAsset" + }, + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "assetName": "job1-OutputAsset" + } + ], + "correlationData": { + "key1": "value1", + "Key 2": "Value 2" + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "job1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "2021-01-26T13:35:49.7274668Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + }, + "lastModified": "2021-01-26T13:35:49.7274668Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Queued", + "progress": 0, + "label": "BuiltInStandardEncoderPreset_0", + "assetName": "job1-OutputAsset" + } + ], + "priority": "Normal", + "correlationData": { + "key1": "value1", + "Key 2": "Value 2" + } + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T05:35:49.7274668-08:00", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T05:35:49.7274668-08:00" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json new file mode 100644 index 000000000000..2b68932ec48f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "jobName": "jobToDelete" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json new file mode 100644 index 000000000000..8f4f6197904b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "jobName": "job1" + }, + "responses": { + "404": {}, + "200": { + "body": { + "name": "job1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Queued", + "progress": 0, + "label": "example-custom-label", + "assetName": "job1-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {} + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json new file mode 100644 index 000000000000..4f8b14ffebff --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "$filter": "properties/created ge 2021-01-26T13:35:59.4284656Z and properties/created le 2021-01-26T13:36:09.4284656Z", + "$orderby": "properties/created" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "job2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "2021-01-26T13:35:59.4284656Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "2021-01-26T13:35:59.4284656Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:49.4284656Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:49.4284656Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:59.4284656Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:59.4284656Z" + } + }, + { + "name": "job3", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "2021-01-26T13:36:09.4284656Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "2021-01-26T13:36:09.4284656Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:49.4294655Z", + "endTime": "2021-01-26T13:35:49.4294655Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:49.4294655Z", + "endTime": "2021-01-26T13:35:49.4294655Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:36:09.4284656Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:36:09.4284656Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json new file mode 100644 index 000000000000..107f6990a7b9 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "$filter": "properties/lastmodified ge 2021-01-26T13:35:59.5194661Z and properties/lastmodified le 2021-01-26T13:36:09.5194661Z", + "$orderby": "properties/lastmodified desc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "job3", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "2021-01-26T13:36:09.5194661Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "2021-01-26T13:36:09.5194661Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:49.5194661Z", + "endTime": "2021-01-26T13:35:49.5194661Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:49.5194661Z", + "endTime": "2021-01-26T13:35:49.5194661Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:36:09.5194661Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:36:09.5194661Z" + } + }, + { + "name": "job2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "2021-01-26T13:35:59.5194661Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "2021-01-26T13:35:59.5194661Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:49.5194661Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:49.5194661Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:59.5194661Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:59.5194661Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json new file mode 100644 index 000000000000..70d677647acb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "job3", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:49.3314672Z", + "endTime": "2021-01-26T13:35:49.3314672Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:49.3314672Z", + "endTime": "2021-01-26T13:35:49.3314672Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json new file mode 100644 index 000000000000..ae389d22e87b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "$filter": "name eq 'job1' or name eq 'job2'", + "$orderby": "name" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "job1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Queued", + "progress": 0, + "label": "example-custom-label", + "assetName": "job1-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {} + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + }, + { + "name": "job2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:48.981468Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:48.981468Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json new file mode 100644 index 000000000000..dd65f1ec9733 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "job2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:49.0964684Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:49.0964684Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + }, + { + "name": "job3", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:49.0964684Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:49.0964684Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json new file mode 100644 index 000000000000..44f684becb2f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "$filter": "properties/state ne Microsoft.Media.JobState'processing'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "job1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Queued", + "progress": 0, + "label": "example-custom-label", + "assetName": "job1-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {} + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + }, + { + "name": "job4", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job4-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:49.2384669Z", + "endTime": "2021-01-26T13:35:49.2384669Z", + "assetName": "job4-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:49.2384669Z", + "endTime": "2021-01-26T13:35:49.2384669Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json new file mode 100644 index 000000000000..4739cd3ff59a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json @@ -0,0 +1,143 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "job1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Queued", + "progress": 0, + "label": "example-custom-label", + "assetName": "job1-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {} + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + }, + { + "name": "job2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:48.3299535Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:48.3299535Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + }, + { + "name": "job3", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "0001-01-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-01-26T13:25:48.3299535Z", + "endTime": "2021-01-26T13:35:48.3299535Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-01-26T13:25:48.3299535Z", + "endTime": "2021-01-26T13:35:48.3299535Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json new file mode 100644 index 000000000000..b7cb00bc3083 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "jobName": "job1", + "parameters": { + "properties": { + "description": "Example job to illustrate update.", + "input": { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "assetName": "job1-InputAsset" + }, + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "assetName": "job1-OutputAsset" + } + ], + "priority": "High" + } + } + }, + "responses": { + "200": { + "body": { + "name": "job1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", + "type": "Microsoft.Media/mediaservices/transforms/jobs", + "properties": { + "created": "0001-01-01T00:00:00Z", + "state": "Queued", + "description": "Example job to illustrate update.", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "2021-01-26T13:35:50.1029813Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Queued", + "progress": 0, + "label": "example-custom-label", + "assetName": "job1-OutputAsset" + } + ], + "priority": "High", + "correlationData": {} + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T05:35:50.1029813-08:00" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json new file mode 100644 index 000000000000..95fd7e6461e1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json new file mode 100644 index 000000000000..c15c83350440 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json @@ -0,0 +1,173 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01", + "parameters": { + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "input": { + "streamingProtocol": "RTMP", + "keyFrameIntervalDuration": "PT6S", + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowAll", + "address": "0.0.0.0", + "subnetPrefixLength": 0 + } + ] + } + } + }, + "preview": { + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowAll", + "address": "0.0.0.0", + "subnetPrefixLength": 0 + } + ] + } + } + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "type": "Microsoft.Media/mediaservices/liveevents", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "resourceState": "Creating", + "provisioningState": "InProgress", + "created": "2018-03-03T02:25:06.0982751Z", + "lastModified": "2018-03-03T02:25:06.0982751Z", + "useStaticHostname": false, + "streamOptions": [], + "input": { + "keyFrameIntervalDuration": "PT6S", + "streamingProtocol": "FragmentedMP4", + "accessToken": "", + "endpoints": [], + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowAll", + "address": "0.0.0.0", + "subnetPrefixLength": 0 + } + ] + } + } + }, + "preview": { + "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", + "streamingPolicyName": null, + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowAll", + "address": "0.0.0.0", + "subnetPrefixLength": 0 + } + ] + } + }, + "endpoints": [] + }, + "encoding": { + "encodingType": "None", + "presetName": null + }, + "crossSiteAccessPolicies": { + "clientAccessPolicy": null, + "crossDomainPolicy": null + } + } + } + }, + "200": { + "body": { + "name": "myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "type": "Microsoft.Media/mediaservices/liveevents", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "resourceState": "Stopped", + "provisioningState": "Succeeded", + "created": "2018-03-03T02:25:06.0982751Z", + "lastModified": "2018-03-03T02:25:06.0982751Z", + "useStaticHostname": false, + "streamOptions": [], + "input": { + "keyFrameIntervalDuration": "PT6S", + "streamingProtocol": "FragmentedMP4", + "accessToken": "", + "endpoints": [], + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowAll", + "address": "0.0.0.0", + "subnetPrefixLength": 0 + } + ] + } + } + }, + "preview": { + "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", + "streamingPolicyName": null, + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowAll", + "address": "0.0.0.0", + "subnetPrefixLength": 0 + } + ] + } + }, + "endpoints": [] + }, + "encoding": { + "encodingType": "None", + "presetName": null + }, + "crossSiteAccessPolicies": { + "clientAccessPolicy": null, + "crossDomainPolicy": null + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json new file mode 100644 index 000000000000..eddcf4c8ed4b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01", + "parameters": { + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "name": "myLiveEvent1", + "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", + "location": "West US", + "tags": { + "dynamicProperties": { + "tag1": "value1", + "tag2": "value2" + } + }, + "properties": { + "description": "test event updated", + "input": { + "streamingProtocol": "FragmentedMP4", + "keyFrameIntervalDuration": "PT6S", + "endpoints": [], + "accessToken": null + }, + "preview": { + "endpoints": [], + "accessControl": { + "iP": { + "allow": [ + { + "nName": "AllowOne", + "address": "192.1.1.0", + "subnetPrefixLength": null + } + ] + } + }, + "previewLocator": null, + "streamingPolicyName": null + }, + "encoding": { + "encodingType": "None", + "presetName": null + }, + "provisioningState": null, + "resourceState": "Stopped", + "crossSiteAccessPolicies": null, + "useStaticHostname": false, + "streamOptions": [], + "created": "2018-03-02T18:25:07.5748853-08:00", + "lastModified": "2018-03-02T18:25:07.5748853-08:00" + } + } + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json new file mode 100644 index 000000000000..c5e47d7187db --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "type": "Microsoft.Media/mediaservices/liveevents", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "resourceState": "Stopped", + "provisioningState": "Succeeded", + "created": "2018-03-03T02:25:08.5564064Z", + "lastModified": "2018-03-03T02:25:08.5564064Z", + "useStaticHostname": false, + "streamOptions": [], + "input": { + "keyFrameIntervalDuration": "PT6S", + "streamingProtocol": "FragmentedMP4", + "accessToken": "", + "endpoints": [ + { + "protocol": "FragmentedMP4", + "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" + } + ] + }, + "preview": { + "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", + "streamingPolicyName": null, + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowAll", + "address": "0.0.0.0", + "subnetPrefixLength": 0 + } + ] + } + }, + "endpoints": [ + { + "protocol": "FragmentedMP4", + "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" + } + ] + }, + "encoding": { + "encodingType": "None", + "presetName": null + }, + "crossSiteAccessPolicies": { + "clientAccessPolicy": null, + "crossDomainPolicy": null + } + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json new file mode 100644 index 000000000000..d7087ca92578 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01" + }, + "responses": { + "404": {}, + "200": { + "body": { + "name": "myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "type": "Microsoft.Media/mediaservices/liveevents", + "location": "West US", + "tags": {}, + "properties": { + "description": "", + "resourceState": "Stopped", + "provisioningState": "Succeeded", + "created": "2018-03-03T02:25:08.3474032Z", + "lastModified": "2018-03-03T02:25:08.3474032Z", + "useStaticHostname": false, + "streamOptions": [ + "Default" + ], + "input": { + "keyFrameIntervalDuration": "PT6S", + "streamingProtocol": "FragmentedMP4", + "accessToken": null, + "endpoints": [ + { + "protocol": "FragmentedMP4", + "url": "http://clouddeployment.media-test.net/ingest.isml" + } + ] + }, + "preview": { + "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", + "streamingPolicyName": null, + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowAll", + "address": "0.0.0.0", + "subnetPrefixLength": 0 + } + ] + } + }, + "endpoints": [ + { + "protocol": "FragmentedMP4", + "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" + } + ] + }, + "encoding": { + "encodingType": "None", + "presetName": null + }, + "crossSiteAccessPolicies": { + "clientAccessPolicy": "", + "crossDomainPolicy": "" + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json new file mode 100644 index 000000000000..95fd7e6461e1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json new file mode 100644 index 000000000000..95fd7e6461e1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json new file mode 100644 index 000000000000..a23df8bb0574 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01", + "parameters": { + "removeOutputsOnStop": false + } + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json new file mode 100644 index 000000000000..1c7da9a1f50d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json @@ -0,0 +1,166 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01", + "parameters": { + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "description": "test event updated", + "input": { + "streamingProtocol": "FragmentedMP4", + "keyFrameIntervalDuration": "PT6S", + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowOne", + "address": "192.1.1.0" + } + ] + } + } + }, + "preview": { + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowOne", + "address": "192.1.1.0" + } + ] + } + } + } + } + } + }, + "responses": { + "202": { + "body": { + "name": "myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "type": "Microsoft.Media/mediaservices/liveevents", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "description": "test event updated", + "resourceState": "Running", + "provisioningState": "InProgress", + "created": "0001-01-01T00:00:00Z", + "lastModified": "0001-01-01T00:00:00Z", + "useStaticHostname": false, + "streamOptions": [], + "input": { + "keyFrameIntervalDuration": "PT6S", + "streamingProtocol": "FragmentedMP4", + "accessToken": "", + "endpoints": [], + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowOne", + "address": "192.1.1.0", + "subnetPrefixLength": null + } + ] + } + } + }, + "preview": { + "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", + "streamingPolicyName": null, + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowOne", + "address": "192.1.1.0", + "subnetPrefixLength": null + } + ] + } + }, + "endpoints": [] + }, + "encoding": { + "encodingType": "None", + "presetName": null + } + } + } + }, + "200": { + "body": { + "name": "myLiveEvent1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", + "type": "Microsoft.Media/mediaservices/liveevents", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "description": "test event updated", + "resourceState": "Running", + "provisioningState": "InProgress", + "created": "0001-01-01T00:00:00Z", + "lastModified": "0001-01-01T00:00:00Z", + "useStaticHostname": false, + "streamOptions": [], + "input": { + "keyFrameIntervalDuration": "PT6S", + "streamingProtocol": "FragmentedMP4", + "accessToken": "", + "endpoints": [], + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowOne", + "address": "192.1.1.0", + "subnetPrefixLength": null + } + ] + } + } + }, + "preview": { + "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", + "streamingPolicyName": null, + "accessControl": { + "ip": { + "allow": [ + { + "name": "AllowOne", + "address": "192.1.1.0", + "subnetPrefixLength": null + } + ] + } + }, + "endpoints": [] + }, + "encoding": { + "encodingType": "None", + "presetName": null + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json new file mode 100644 index 000000000000..8f737778b732 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "liveOutputName": "myLiveOutput1", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "description": "test live output 1", + "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", + "archiveWindowLength": "PT5M", + "manifestName": "testmanifest", + "hls": { + "fragmentsPerTsSegment": 5 + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "myLiveOutput1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", + "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", + "properties": { + "description": "test live output 1", + "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", + "archiveWindowLength": "PT5M", + "manifestName": "testmanifest", + "outputSnapTime": 0, + "resourceState": "Stopped", + "provisioningState": "Succeeded", + "created": "2018-03-03T02:25:09.9431835Z", + "lastModified": "2018-03-03T02:25:09.9431835Z", + "hls": { + "fragmentsPerTsSegment": 5 + } + } + } + }, + "201": { + "body": { + "name": "myLiveOutput1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", + "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", + "properties": { + "description": "test live output 1", + "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", + "archiveWindowLength": "PT5M", + "manifestName": "testmanifest", + "outputSnapTime": 0, + "resourceState": "Creating", + "provisioningState": "InProgress", + "created": "2018-03-03T02:25:09.9431835Z", + "lastModified": "2018-03-03T02:25:09.9431835Z", + "hls": { + "fragmentsPerTsSegment": 5 + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json new file mode 100644 index 000000000000..c4abf69dcc75 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "liveOutputName": "myLiveOutput1", + "api-version": "2020-05-01" + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json new file mode 100644 index 000000000000..ebf145bcd695 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "liveoutput1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", + "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", + "properties": { + "description": null, + "assetName": "95dafce4-5320-464c-8597-909373854119", + "archiveWindowLength": "PT30S", + "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", + "outputSnapTime": 0, + "resourceState": "Running", + "provisioningState": "Succeeded", + "created": "0001-01-01T00:00:00-08:00", + "lastModified": "0001-01-01T00:00:00-08:00", + "hls": { + "fragmentsPerTsSegment": 5 + } + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json new file mode 100644 index 000000000000..fe3c9cfbe866 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "liveOutputName": "myLiveOutput1", + "api-version": "2020-05-01" + }, + "responses": { + "404": {}, + "200": { + "body": { + "name": "myLiveOutput1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", + "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", + "properties": { + "description": null, + "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", + "archiveWindowLength": "PT30S", + "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", + "outputSnapTime": 0, + "resourceState": "Running", + "provisioningState": "Succeeded", + "created": "0001-01-01T00:00:00-08:00", + "lastModified": "0001-01-01T00:00:00-08:00", + "hls": { + "fragmentsPerTsSegment": 5 + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json new file mode 100644 index 000000000000..530eeb904efb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json @@ -0,0 +1,589 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Media/register/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Microsoft Media Services", + "operation": "Registers the Media Services Resource Provider", + "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" + } + }, + { + "name": "Microsoft.Media/unregister/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Microsoft Media Services", + "operation": "Unregisters the Media Services Resource Provider", + "description": "Unregisters the subscription for the Media Services resource provider" + } + }, + { + "name": "Microsoft.Media/checknameavailability/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Microsoft Media Services", + "operation": "Check Name Availability", + "description": "Checks if a Media Services account name is available" + } + }, + { + "name": "Microsoft.Media/operations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Available Operations", + "operation": "Get Available Operations", + "description": "Get Available Operations" + } + }, + { + "name": "Microsoft.Media/mediaservices/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Read Media Services Account", + "description": "Read any Media Services Account" + } + }, + { + "name": "Microsoft.Media/mediaservices/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Create or Update Media Services Account", + "description": "Create or Update any Media Services Account" + } + }, + { + "name": "Microsoft.Media/mediaservices/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Delete Media Services Account", + "description": "Delete any Media Services Account" + } + }, + { + "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Synchronize Storage Keys", + "description": "Synchronize the Storage Keys for an attached Azure Storage account" + } + }, + { + "name": "Microsoft.Media/mediaservices/eventGridFilters/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Event Grid Filter", + "operation": "Read Event Grid Filter", + "description": "Read any Event Grid Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/eventGridFilters/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Event Grid Filter", + "operation": "Create or Update Event Grid Filter", + "description": "Create or Update any Event Grid Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Event Grid Filter", + "operation": "Delete Event Grid Filter", + "description": "Delete any Event Grid Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "Read Asset", + "description": "Read any Asset" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "Create or Update Asset", + "description": "Create or Update any Asset" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "Delete Asset", + "description": "Delete any Asset" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "List Asset Container SAS URLs", + "description": "List Asset Container SAS URLs" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "Get Asset Encryption Key", + "description": "Get Asset Encryption Key" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingPolicies/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Policy", + "operation": "Read Streaming Policy", + "description": "Read any Streaming Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingPolicies/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Policy", + "operation": "Create or Update Streaming Policy", + "description": "Create or Update any Streaming Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Policy", + "operation": "Delete Streaming Policy", + "description": "Delete any Streaming Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "Read Streaming Locator", + "description": "Read any Streaming Locator" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "Create or Update Streaming Locator", + "description": "Create or Update any Streaming Locator" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "Delete Streaming Locator", + "description": "Delete any Streaming Locator" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "List Content Keys", + "description": "List Content Keys" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "List Paths", + "description": "List Paths" + } + }, + { + "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Content Key Policy", + "operation": "Read Content Key Policy", + "description": "Read any Content Key Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Content Key Policy", + "operation": "Create or Update Content Key Policy", + "description": "Create or Update any Content Key Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Content Key Policy", + "operation": "Delete Content Key Policy", + "description": "Delete any Content Key Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Content Key Policy", + "operation": "Get Policy Properties With Secrets", + "description": "Get Policy Properties With Secrets" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Transform", + "operation": "Read Transform", + "description": "Read any Transform" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Transform", + "operation": "Create or Update Transform", + "description": "Create or Update any Transform" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Transform", + "operation": "Delete Transform", + "description": "Delete any Transform" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/jobs/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Job", + "operation": "Read Job", + "description": "Read any Job" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/jobs/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Job", + "operation": "Create or Update Job", + "description": "Create or Update any Job" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Job", + "operation": "Delete Job", + "description": "Delete any Job" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Job", + "operation": "Cancel Job", + "description": "Cancel Job" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Read Streaming Endpoint", + "description": "Read any Streaming Endpoint" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Create or Update Streaming Endpoint", + "description": "Create or Update any Streaming Endpoint" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Delete Streaming Endpoint", + "description": "Delete any Streaming Endpoint" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Start Streaming Endpoint Operation", + "description": "Start any Streaming Endpoint Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Stop Streaming Endpoint Operation", + "description": "Stop any Streaming Endpoint Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Scale Streaming Endpoint Operation", + "description": "Scale any Streaming Endpoint Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoints", + "operation": "Read diagnostic setting", + "description": "Gets the diagnostic setting for the resource." + }, + "origin": "system" + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoints", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource." + }, + "origin": "system" + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoints", + "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", + "description": "Get list of Media Services Streaming Endpoint Metrics definitions." + }, + "origin": "system", + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "Egress", + "displayName": "Egress", + "displayDescription": "The amount of Egress data, in bytes.", + "unit": "Bytes", + "aggregationType": "Total", + "dimensions": [ + { + "name": "OutputFormat", + "displayName": "Output Format", + "toBeExportedForShoebox": true + } + ] + }, + { + "name": "SuccessE2ELatency", + "displayName": "Success end to end Latency", + "displayDescription": "The average latency for successful requests in milliseconds.", + "unit": "Milliseconds", + "aggregationType": "Average", + "dimensions": [ + { + "name": "OutputFormat", + "displayName": "Output Format", + "toBeExportedForShoebox": true + } + ] + }, + { + "name": "Requests", + "displayName": "Requests", + "displayDescription": "Requests to a Streaming Endpoint.", + "unit": "Count", + "aggregationType": "Count", + "dimensions": [ + { + "name": "OutputFormat", + "displayName": "Output Format", + "toBeExportedForShoebox": true + }, + { + "name": "HttpStatusCode", + "displayName": "HTTP Status Code", + "toBeExportedForShoebox": true + }, + { + "name": "ErrorCode", + "displayName": "Error Code", + "toBeExportedForShoebox": false + } + ] + } + ] + } + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Read Live Event", + "description": "Read any Live Event" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Create or Update Live Event", + "description": "Create or Update any Live Event" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Delete Live Event", + "description": "Delete any Live Event" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/start/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Start Live Event Operation", + "description": "Start any Live Event Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Stop Live Event Operation", + "description": "Stop any Live Event Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Reset Live Event Operation", + "description": "Reset any Live Event Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Output", + "operation": "Read Live Output", + "description": "Read any Live Output" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Output", + "operation": "Create or Update Live Output", + "description": "Create or Update any Live Output" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Output", + "operation": "Delete Live Output", + "description": "Delete any Live Output" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint Operation", + "operation": "Read Streaming Endpoint Operation", + "description": "Read any Streaming Endpoint Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEventOperations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event Operation", + "operation": "Read Live Event Operation", + "description": "Read any Live Event Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Output Operation", + "operation": "Read Live Output Operation", + "description": "Read any Live Output Operation" + } + }, + { + "name": "Microsoft.Media/locations/checkNameAvailability/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Microsoft Media Services", + "operation": "Check Name Availability", + "description": "Checks if a Media Services account name is available" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json new file mode 100644 index 000000000000..ddc3608e5cab --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "connectionName1", + "api-version": "2020-05-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json new file mode 100644 index 000000000000..859c2857b95a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "connectionName1", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "connectionName1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", + "type": "Microsoft.Media/mediaservices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Test description." + }, + "privateEndpoint": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json new file mode 100644 index 000000000000..785b32db5fb0 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "cn1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn1", + "type": "Microsoft.Media/mediaservices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Test description" + }, + "privateEndpoint": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" + } + } + }, + { + "name": "cn2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn2", + "type": "Microsoft.Media/mediaservices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Test description" + }, + "privateEndpoint": { + "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" + } + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json new file mode 100644 index 000000000000..03ee510a3286 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "connectionName1", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Test description." + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "connectionName1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", + "type": "Microsoft.Media/mediaservices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Test description." + }, + "privateEndpoint": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json new file mode 100644 index 000000000000..7ef5ee153fcd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "keydelivery", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "keydelivery", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", + "type": "Microsoft.Media/mediaservices/privateLinkResources", + "properties": { + "groupId": "keydelivery", + "requiredMembers": [ + "keydelivery" + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json new file mode 100644 index 000000000000..5aa331ad27fd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "keydelivery", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", + "type": "Microsoft.Media/mediaservices/privateLinkResources", + "properties": { + "groupId": "keydelivery", + "requiredMembers": [ + "keydelivery" + ] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json new file mode 100644 index 000000000000..e5ef74a68e3b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "UserCreatedClearStreamingLocator", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "streamingPolicyName": "clearStreamingPolicy", + "assetName": "ClimbingMountRainier" + } + } + }, + "responses": { + "201": { + "body": { + "name": "UserCreatedClearStreamingLocator", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", + "type": "Microsoft.Media/mediaservices/streamingLocators", + "properties": { + "assetName": "ClimbingMountRainier", + "created": "2018-08-08T18:29:32.4323237Z", + "endTime": "9999-12-31T23:59:59.9999999Z", + "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013", + "streamingPolicyName": "clearStreamingPolicy", + "contentKeys": [] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json new file mode 100644 index 000000000000..72f7bc7edcf2 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "assetName": "ClimbingMountRainier", + "streamingPolicyName": "secureStreamingPolicy", + "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", + "contentKeys": [ + { + "labelReferenceInStreamingPolicy": "aesDefaultKey", + "id": "60000000-0000-0000-0000-000000000001", + "value": "1UqLohAfWsEGkULYxHjYZg==" + }, + { + "labelReferenceInStreamingPolicy": "cencDefaultKey", + "id": "60000000-0000-0000-0000-000000000004", + "value": "4UqLohAfWsEGkULYxHjYZg==" + }, + { + "labelReferenceInStreamingPolicy": "cbcsDefaultKey", + "id": "60000000-0000-0000-0000-000000000007", + "value": "7UqLohAfWsEGkULYxHjYZg==" + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", + "type": "Microsoft.Media/mediaservices/streamingLocators", + "properties": { + "assetName": "ClimbingMountRainier", + "created": "2018-08-08T18:29:32.7859424Z", + "endTime": "9999-12-31T23:59:59.9999999Z", + "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", + "streamingPolicyName": "secureStreamingPolicy", + "contentKeys": [ + { + "id": "60000000-0000-0000-0000-000000000007", + "type": "CommonEncryptionCbcs", + "labelReferenceInStreamingPolicy": "cbcsDefaultKey", + "tracks": [] + }, + { + "id": "60000000-0000-0000-0000-000000000004", + "type": "CommonEncryptionCenc", + "labelReferenceInStreamingPolicy": "cencDefaultKey", + "tracks": [] + }, + { + "id": "60000000-0000-0000-0000-000000000001", + "type": "EnvelopeEncryption", + "labelReferenceInStreamingPolicy": "aesDefaultKey", + "tracks": [] + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json new file mode 100644 index 000000000000..ac78cdfa4e47 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "UserCreatedSecureStreamingLocator", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "streamingPolicyName": "secureStreamingPolicy", + "assetName": "ClimbingMountRainier", + "startTime": "2018-03-01T00:00:00Z", + "endTime": "2028-12-31T23:59:59.9999999Z" + } + } + }, + "responses": { + "201": { + "body": { + "name": "UserCreatedSecureStreamingLocator", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", + "type": "Microsoft.Media/mediaservices/streamingLocators", + "properties": { + "assetName": "ClimbingMountRainier", + "created": "2018-08-08T18:29:32.6243295Z", + "startTime": "2018-03-01T00:00:00Z", + "endTime": "2028-12-31T23:59:59.9999999Z", + "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945", + "streamingPolicyName": "secureStreamingPolicy", + "contentKeys": [ + { + "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4", + "type": "CommonEncryptionCbcs", + "labelReferenceInStreamingPolicy": "cbcsDefaultKey", + "tracks": [] + }, + { + "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4", + "type": "CommonEncryptionCenc", + "labelReferenceInStreamingPolicy": "cencDefaultKey", + "tracks": [] + }, + { + "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1", + "type": "EnvelopeEncryption", + "labelReferenceInStreamingPolicy": "aesDefaultKey", + "tracks": [] + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json new file mode 100644 index 000000000000..ae40b3c0d91e --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "clearStreamingLocator", + "api-version": "2020-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json new file mode 100644 index 000000000000..5cded2bd270e --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "clearStreamingLocator", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "clearStreamingLocator", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", + "type": "Microsoft.Media/mediaservices/streamingLocators", + "properties": { + "assetName": "ClimbingMountRainier", + "created": "2018-08-08T18:29:32.1154071Z", + "endTime": "9999-12-31T23:59:59.9999999Z", + "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", + "streamingPolicyName": "clearStreamingPolicy", + "contentKeys": [] + } + } + }, + "404": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json new file mode 100644 index 000000000000..e912886dbc2b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "secureStreamingLocator", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "contentKeys": [ + { + "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", + "type": "EnvelopeEncryption", + "labelReferenceInStreamingPolicy": "aesDefaultKey", + "value": "QpiqeQROdN5xamnfUF2Wdw==", + "policyName": "PolicyWithMultipleOptions", + "tracks": [] + }, + { + "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", + "type": "CommonEncryptionCenc", + "labelReferenceInStreamingPolicy": "cencDefaultKey", + "value": "ZjgWhNnqnqcov/h+wrYusw==", + "policyName": "PolicyWithMultipleOptions", + "tracks": [] + }, + { + "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", + "type": "CommonEncryptionCbcs", + "labelReferenceInStreamingPolicy": "cbcsDefaultKey", + "value": "FjZ3n3yRcVxRFftdYFbe9g==", + "policyName": "PolicyWithMultipleOptions", + "tracks": [] + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json new file mode 100644 index 000000000000..58c864fe4494 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "clearStreamingLocator", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "streamingPaths": [ + { + "streamingProtocol": "Hls", + "encryptionScheme": "NoEncryption", + "paths": [ + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" + ] + }, + { + "streamingProtocol": "Dash", + "encryptionScheme": "NoEncryption", + "paths": [ + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" + ] + }, + { + "streamingProtocol": "SmoothStreaming", + "encryptionScheme": "NoEncryption", + "paths": [ + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", + "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" + ] + } + ], + "downloadPaths": [ + "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", + "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", + "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", + "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json new file mode 100644 index 000000000000..d0fb861781bf --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "secureStreamingLocator", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "streamingPaths": [ + { + "streamingProtocol": "Hls", + "encryptionScheme": "EnvelopeEncryption", + "paths": [ + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" + ] + }, + { + "streamingProtocol": "Dash", + "encryptionScheme": "EnvelopeEncryption", + "paths": [ + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" + ] + }, + { + "streamingProtocol": "SmoothStreaming", + "encryptionScheme": "EnvelopeEncryption", + "paths": [ + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" + ] + }, + { + "streamingProtocol": "Dash", + "encryptionScheme": "CommonEncryptionCenc", + "paths": [ + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" + ] + }, + { + "streamingProtocol": "SmoothStreaming", + "encryptionScheme": "CommonEncryptionCenc", + "paths": [ + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" + ] + }, + { + "streamingProtocol": "Hls", + "encryptionScheme": "CommonEncryptionCbcs", + "paths": [ + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", + "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" + ] + } + ], + "downloadPaths": [] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json new file mode 100644 index 000000000000..e5a389fed597 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "clearStreamingLocator", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", + "type": "Microsoft.Media/mediaservices/streamingLocators", + "properties": { + "assetName": "ClimbingMountRainier", + "created": "2018-08-08T18:29:31.9341192Z", + "endTime": "9999-12-31T23:59:59.9999999Z", + "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", + "streamingPolicyName": "clearStreamingPolicy", + "contentKeys": [] + } + }, + { + "name": "secureStreamingLocator", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", + "type": "Microsoft.Media/mediaservices/streamingLocators", + "properties": { + "assetName": "ClimbingMountRainier", + "created": "2018-08-08T18:29:31.9544387Z", + "endTime": "9999-12-31T23:59:59.9999999Z", + "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", + "streamingPolicyName": "secureStreamingPolicy", + "contentKeys": [] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json new file mode 100644 index 000000000000..bca0dd3c4eab --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingPolicyName": "UserCreatedClearStreamingPolicy", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "noEncryption": { + "enabledProtocols": { + "download": true, + "dash": true, + "hls": true, + "smoothStreaming": true + } + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "UserCreatedClearStreamingPolicy", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:31.1535417Z", + "noEncryption": { + "enabledProtocols": { + "download": true, + "dash": true, + "hls": true, + "smoothStreaming": true + } + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json new file mode 100644 index 000000000000..4814bb3ca62a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", + "commonEncryptionCbcs": { + "enabledProtocols": { + "download": false, + "dash": false, + "hls": true, + "smoothStreaming": false + }, + "contentKeys": { + "defaultKey": { + "label": "cbcsDefaultKey" + } + }, + "drm": { + "fairPlay": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", + "allowPersistentLicense": true + } + } + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:31.6197199Z", + "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", + "commonEncryptionCbcs": { + "enabledProtocols": { + "download": false, + "dash": false, + "hls": true, + "smoothStreaming": false + }, + "clearTracks": [], + "contentKeys": { + "defaultKey": { + "label": "cbcsDefaultKey" + }, + "keyToTrackMappings": [] + }, + "drm": { + "fairPlay": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", + "allowPersistentLicense": true + } + } + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json new file mode 100644 index 000000000000..074818a1b1fc --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", + "commonEncryptionCenc": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": false, + "smoothStreaming": true + }, + "clearTracks": [ + { + "trackSelections": [ + { + "property": "FourCC", + "operation": "Equal", + "value": "hev1" + } + ] + } + ], + "contentKeys": { + "defaultKey": { + "label": "cencDefaultKey" + } + }, + "drm": { + "playReady": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", + "playReadyCustomAttributes": "PlayReady CustomAttributes" + }, + "widevine": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" + } + } + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:31.4678543Z", + "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", + "commonEncryptionCenc": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": false, + "smoothStreaming": true + }, + "clearTracks": [ + { + "trackSelections": [ + { + "property": "FourCC", + "operation": "Equal", + "value": "hev1" + } + ] + } + ], + "contentKeys": { + "defaultKey": { + "label": "cencDefaultKey" + }, + "keyToTrackMappings": [] + }, + "drm": { + "playReady": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", + "playReadyCustomAttributes": "PlayReady CustomAttributes" + }, + "widevine": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" + } + } + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json new file mode 100644 index 000000000000..d6c0cf3248b5 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", + "envelopeEncryption": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": true, + "smoothStreaming": true + }, + "contentKeys": { + "defaultKey": { + "label": "aesDefaultKey" + } + }, + "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:31.3055712Z", + "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", + "envelopeEncryption": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": true, + "smoothStreaming": true + }, + "clearTracks": [], + "contentKeys": { + "defaultKey": { + "label": "aesDefaultKey" + }, + "keyToTrackMappings": [] + }, + "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json new file mode 100644 index 000000000000..cdd2235204c3 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json @@ -0,0 +1,164 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingPolicyName": "UserCreatedSecureStreamingPolicy", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", + "envelopeEncryption": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": true, + "smoothStreaming": true + }, + "contentKeys": { + "defaultKey": { + "label": "aesDefaultKey" + } + }, + "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" + }, + "commonEncryptionCenc": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": false, + "smoothStreaming": true + }, + "clearTracks": [ + { + "trackSelections": [ + { + "property": "FourCC", + "operation": "Equal", + "value": "hev1" + } + ] + } + ], + "contentKeys": { + "defaultKey": { + "label": "cencDefaultKey" + } + }, + "drm": { + "playReady": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", + "playReadyCustomAttributes": "PlayReady CustomAttributes" + }, + "widevine": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" + } + } + }, + "commonEncryptionCbcs": { + "enabledProtocols": { + "download": false, + "dash": false, + "hls": true, + "smoothStreaming": false + }, + "contentKeys": { + "defaultKey": { + "label": "cbcsDefaultKey" + } + }, + "drm": { + "fairPlay": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", + "allowPersistentLicense": true + } + } + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "UserCreatedSecureStreamingPolicy", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:31.7715696Z", + "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", + "envelopeEncryption": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": true, + "smoothStreaming": true + }, + "clearTracks": [], + "contentKeys": { + "defaultKey": { + "label": "aesDefaultKey" + }, + "keyToTrackMappings": [] + }, + "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" + }, + "commonEncryptionCenc": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": false, + "smoothStreaming": true + }, + "clearTracks": [ + { + "trackSelections": [ + { + "property": "FourCC", + "operation": "Equal", + "value": "hev1" + } + ] + } + ], + "contentKeys": { + "defaultKey": { + "label": "cencDefaultKey" + }, + "keyToTrackMappings": [] + }, + "drm": { + "playReady": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", + "playReadyCustomAttributes": "PlayReady CustomAttributes" + }, + "widevine": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" + } + } + }, + "commonEncryptionCbcs": { + "enabledProtocols": { + "download": false, + "dash": false, + "hls": true, + "smoothStreaming": false + }, + "clearTracks": [], + "contentKeys": { + "defaultKey": { + "label": "cbcsDefaultKey" + }, + "keyToTrackMappings": [] + }, + "drm": { + "fairPlay": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", + "allowPersistentLicense": true + } + } + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json new file mode 100644 index 000000000000..8278daace0e4 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", + "api-version": "2020-05-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json new file mode 100644 index 000000000000..5feec41b392f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json @@ -0,0 +1,211 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "clearStreamingPolicy", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:30.676067Z", + "noEncryption": { + "enabledProtocols": { + "download": true, + "dash": true, + "hls": true, + "smoothStreaming": true + } + } + } + }, + { + "name": "secureStreamingPolicy", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:30.6781134Z", + "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", + "envelopeEncryption": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": true, + "smoothStreaming": true + }, + "clearTracks": [], + "contentKeys": { + "defaultKey": { + "label": "aesDefaultKey" + }, + "keyToTrackMappings": [] + }, + "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" + }, + "commonEncryptionCenc": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": false, + "smoothStreaming": true + }, + "clearTracks": [ + { + "trackSelections": [ + { + "property": "FourCC", + "operation": "Unknown", + "value": "hev1" + } + ] + } + ], + "contentKeys": { + "defaultKey": { + "label": "cencDefaultKey" + }, + "keyToTrackMappings": [] + }, + "drm": { + "playReady": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", + "playReadyCustomAttributes": "PlayReady CustomAttributes" + }, + "widevine": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" + } + } + }, + "commonEncryptionCbcs": { + "enabledProtocols": { + "download": false, + "dash": false, + "hls": true, + "smoothStreaming": false + }, + "clearTracks": [], + "contentKeys": { + "defaultKey": { + "label": "cbcsDefaultKey" + }, + "keyToTrackMappings": [] + }, + "drm": { + "fairPlay": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", + "allowPersistentLicense": true + } + } + } + } + }, + { + "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:30.6781134Z", + "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", + "commonEncryptionCbcs": { + "enabledProtocols": { + "download": false, + "dash": false, + "hls": true, + "smoothStreaming": false + }, + "clearTracks": [], + "contentKeys": { + "defaultKey": { + "label": "cbcsDefaultKey" + }, + "keyToTrackMappings": [] + }, + "drm": { + "fairPlay": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", + "allowPersistentLicense": true + } + } + } + } + }, + { + "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:30.6781134Z", + "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", + "commonEncryptionCenc": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": false, + "smoothStreaming": true + }, + "clearTracks": [ + { + "trackSelections": [ + { + "property": "FourCC", + "operation": "Unknown", + "value": "hev1" + } + ] + } + ], + "contentKeys": { + "defaultKey": { + "label": "cencDefaultKey" + }, + "keyToTrackMappings": [] + }, + "drm": { + "playReady": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", + "playReadyCustomAttributes": "PlayReady CustomAttributes" + }, + "widevine": { + "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" + } + } + } + } + }, + { + "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:30.6781134Z", + "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", + "envelopeEncryption": { + "enabledProtocols": { + "download": false, + "dash": true, + "hls": true, + "smoothStreaming": true + }, + "clearTracks": [], + "contentKeys": { + "defaultKey": { + "label": "aesDefaultKey" + }, + "keyToTrackMappings": [] + }, + "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" + } + } + } + ], + "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2020-05-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json new file mode 100644 index 000000000000..7772551258f0 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingPolicyName": "clearStreamingPolicy", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "clearStreamingPolicy", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", + "type": "Microsoft.Media/mediaservices/streamingPolicies", + "properties": { + "created": "2018-08-08T18:29:30.8501486Z", + "noEncryption": { + "enabledProtocols": { + "download": true, + "dash": true, + "hls": true, + "smoothStreaming": true + } + } + } + } + }, + "404": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json new file mode 100644 index 000000000000..ca9c03071647 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json @@ -0,0 +1,154 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2020-05-01", + "parameters": { + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "scaleUnits": 1, + "availabilitySetName": "availableset", + "accessControl": { + "akamai": { + "akamaiSignatureHeaderAuthenticationKeyList": [ + { + "identifier": "id1", + "expiration": "2029-12-31T16:00:00-08:00", + "base64Key": "dGVzdGlkMQ==" + }, + { + "identifier": "id2", + "expiration": "2030-12-31T16:00:00-08:00", + "base64Key": "dGVzdGlkMQ==" + } + ] + }, + "ip": { + "allow": [ + { + "name": "AllowedIp", + "address": "192.168.1.1" + } + ] + } + }, + "cdnEnabled": false + } + } + }, + "responses": { + "201": { + "body": { + "name": "myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "type": "Microsoft.Media/mediaservices/streamingEndpoints", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "scaleUnits": 1, + "availabilitySetName": "availableset", + "cdnEnabled": false, + "cdnProvider": null, + "cdnProfile": "", + "customHostNames": [], + "accessControl": { + "akamai": { + "akamaiSignatureHeaderAuthenticationKeyList": [ + { + "identifier": "id1", + "expiration": "2030-01-01T00:00:00Z", + "base64Key": "dGVzdGlkMQ==" + }, + { + "identifier": "id2", + "expiration": "2031-01-01T00:00:00Z", + "base64Key": "dGVzdGlkMQ==" + } + ] + }, + "ip": { + "allow": [ + { + "name": "AllowedIp", + "address": "192.168.1.1", + "subnetPrefixLength": null + } + ] + } + }, + "maxCacheAge": null, + "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", + "freeTrialEndTime": "0001-01-01T00:00:00-08:00", + "provisioningState": "InProgress", + "resourceState": "Creating", + "created": "2018-03-03T02:25:09.7561389Z", + "lastModified": "2018-03-03T02:25:09.7561389Z" + } + } + }, + "200": { + "body": { + "name": "myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "type": "Microsoft.Media/mediaservices/streamingEndpoints", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "scaleUnits": 1, + "availabilitySetName": "availableset", + "cdnEnabled": false, + "cdnProvider": null, + "cdnProfile": "", + "customHostNames": [], + "accessControl": { + "akamai": { + "akamaiSignatureHeaderAuthenticationKeyList": [ + { + "identifier": "id1", + "expiration": "2030-01-01T00:00:00Z", + "base64Key": "dGVzdGlkMQ==" + }, + { + "identifier": "id2", + "expiration": "2031-01-01T00:00:00Z", + "base64Key": "dGVzdGlkMQ==" + } + ] + }, + "ip": { + "allow": [ + { + "name": "AllowedIp", + "address": "192.168.1.1", + "subnetPrefixLength": null + } + ] + } + }, + "maxCacheAge": null, + "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", + "freeTrialEndTime": "0001-01-01T00:00:00-08:00", + "provisioningState": "Succeeded", + "resourceState": "Stopped", + "created": "2018-03-03T02:25:09.7561389Z", + "lastModified": "2018-03-03T02:25:09.7561389Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json new file mode 100644 index 000000000000..03b31961247c --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2020-05-01", + "parameters": { + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "name": "myStreamingEndpoint1", + "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", + "location": "West US", + "tags": { + "dynamicProperties": { + "tag1": "value1", + "tag2": "value2" + } + }, + "properties": { + "description": "test event 1", + "scaleUnits": 1, + "accessControl": null, + "availabilitySetName": "availableset", + "maxCacheAge": null, + "crossSiteAccessPolicies": null, + "customHostNames": [], + "hostName": null, + "cdnEnabled": false, + "cdnProvider": null, + "cdnProfile": null, + "freeTrialEndTime": "0001-01-01T00:00:00-08:00", + "provisioningState": null, + "resourceState": "Stopped", + "created": "2018-03-02T18:25:09.4897514-08:00", + "lastModified": "2018-03-02T18:25:09.4897514-08:00" + } + } + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json new file mode 100644 index 000000000000..4a08601fdf6f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "type": "Microsoft.Media/mediaservices/streamingEndpoints", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "scaleUnits": 1, + "availabilitySetName": "availableset", + "cdnEnabled": false, + "cdnProvider": null, + "cdnProfile": "", + "customHostNames": [], + "maxCacheAge": null, + "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", + "freeTrialEndTime": "0001-01-01T08:00:00Z", + "provisioningState": "Succeeded", + "resourceState": "Stopped", + "created": "2018-03-03T02:25:09.202013Z", + "lastModified": "2018-03-03T02:25:09.202013Z" + } + }, + { + "name": "default", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", + "type": "Microsoft.Media/mediaservices/streamingEndpoints", + "location": "West US", + "tags": {}, + "properties": { + "description": "", + "scaleUnits": 0, + "availabilitySetName": null, + "cdnEnabled": true, + "cdnProvider": "StandardVerizon", + "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", + "customHostNames": [], + "maxCacheAge": null, + "hostName": "slitestmedia10.streaming.mediaservices.windows.net", + "freeTrialEndTime": "0001-01-01T00:00:00-08:00", + "provisioningState": "InProgress", + "resourceState": "Starting", + "created": "2018-03-03T02:25:09.2310128Z", + "lastModified": "2018-03-03T02:25:09.2310128Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json new file mode 100644 index 000000000000..1aa22e2e8c4e --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2020-05-01" + }, + "responses": { + "404": {}, + "200": { + "body": { + "name": "myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "type": "Microsoft.Media/mediaservices/streamingEndpoints", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "description": "test event 1", + "scaleUnits": 1, + "availabilitySetName": "availableset", + "cdnEnabled": false, + "cdnProvider": null, + "cdnProfile": "", + "customHostNames": [], + "maxCacheAge": null, + "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", + "freeTrialEndTime": "0001-01-01T08:00:00Z", + "provisioningState": "Succeeded", + "resourceState": "Stopped", + "created": "2018-03-03T02:25:09.3500423Z", + "lastModified": "2018-03-03T02:25:09.3500423Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json new file mode 100644 index 000000000000..4182c5ba595d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2020-05-01", + "parameters": { + "scaleUnit": 5 + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json new file mode 100644 index 000000000000..0edeff80c178 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2020-05-01" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json new file mode 100644 index 000000000000..0edeff80c178 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2020-05-01" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json new file mode 100644 index 000000000000..c8d0d6afd6e6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2020-05-01", + "parameters": { + "location": "West US", + "tags": { + "tag3": "value3", + "tag5": "value5" + }, + "properties": { + "description": "test event 2", + "scaleUnits": 5, + "availabilitySetName": "availableset" + } + } + }, + "responses": { + "200": { + "body": { + "name": "myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "type": "Microsoft.Media/mediaservices/streamingEndpoints", + "location": "West US", + "tags": { + "tag3": "value3", + "tag5": "value5" + }, + "properties": { + "description": "test event 2", + "scaleUnits": 5, + "availabilitySetName": "availableset", + "cdnEnabled": false, + "cdnProvider": null, + "cdnProfile": null, + "customHostNames": [], + "maxCacheAge": null, + "hostName": null, + "freeTrialEndTime": "0001-01-01T00:00:00Z", + "provisioningState": "Succeeded", + "resourceState": null, + "created": "0001-01-01T00:00:00Z", + "lastModified": "0001-01-01T00:00:00Z" + } + } + }, + "202": { + "body": { + "name": "myStreamingEndpoint1", + "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", + "type": "Microsoft.Media/mediaservices/streamingEndpoints", + "location": "West US", + "tags": { + "tag3": "value3", + "tag5": "value5" + }, + "properties": { + "description": "test event 2", + "scaleUnits": 5, + "availabilitySetName": "availableset", + "cdnEnabled": false, + "cdnProvider": null, + "cdnProfile": null, + "customHostNames": [], + "maxCacheAge": null, + "hostName": null, + "freeTrialEndTime": "0001-01-01T00:00:00Z", + "provisioningState": "Succeeded", + "resourceState": null, + "created": "0001-01-01T00:00:00Z", + "lastModified": "0001-01-01T00:00:00Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json new file mode 100644 index 000000000000..cbaabae0a310 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "createdTransform", + "parameters": { + "properties": { + "description": "Example Transform to illustrate create and update.", + "outputs": [ + { + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "createdTransform", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:47.7499582-08:00", + "description": "Example Transform to illustrate create and update.", + "lastModified": "2021-01-26T13:35:47.7499582-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:47.7499582Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:47.7499582Z" + } + } + }, + "200": { + "body": { + "name": "createdTransform", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:47.7499582-08:00", + "description": "Example Transform to illustrate create and update.", + "lastModified": "2021-01-26T13:35:47.7499582-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:47.7499582Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:47.7499582Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json new file mode 100644 index 000000000000..4a6cf2b6b7b3 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "sampleTransform" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json new file mode 100644 index 000000000000..4901bdaa67d8 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "sampleTransform" + }, + "responses": { + "404": {}, + "200": { + "body": { + "name": "sampleTransform", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:47.5799573-08:00", + "description": "A sample Transform using the Standard Encoder with a built in preset.", + "lastModified": "2021-01-26T13:35:47.5799573-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "H264MultipleBitrate1080p" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:47.5799573Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:47.5799573Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json new file mode 100644 index 000000000000..a8a1c733fca7 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "$filter": "properties/created gt 2021-01-26T13:35:47.4419559Z and properties/created le 2021-01-26T13:35:57.4419559Z", + "$orderby": "properties/created" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "sampleEncodeAndVideoIndex", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:57.4419559-08:00", + "description": "A sample Transform using the Video Analyzer.", + "lastModified": "2021-01-26T13:35:57.4419559-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", + "mode": "Standard", + "insightsToExtract": "AllInsights" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:57.4419559Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:57.4419559Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json new file mode 100644 index 000000000000..0b9a921098b4 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "$filter": "properties/lastmodified gt 2021-01-26T13:35:47.5239560Z and properties/lastmodified le 2021-01-26T13:35:57.5239560Z", + "$orderby": "properties/lastmodified desc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "sampleEncodeAndVideoIndex", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:57.523956-08:00", + "description": "A sample Transform using the Video Analyzer.", + "lastModified": "2021-01-26T13:35:57.523956-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", + "mode": "Standard", + "insightsToExtract": "AllInsights" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:57.523956Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:57.523956Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json new file mode 100644 index 000000000000..bc617355e544 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", + "$orderby": "name desc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "sampleEncodeAndVideoIndex", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:47.1144419-08:00", + "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", + "lastModified": "2021-01-26T13:35:47.1144419-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + }, + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", + "mode": "Standard", + "insightsToExtract": "AllInsights" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:47.1144419Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:47.1144419Z" + } + }, + { + "name": "sampleEncode", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:47.1144419-08:00", + "description": "A sample Transform using the Standard Encoder with a built in preset.", + "lastModified": "2021-01-26T13:35:47.1144419-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:47.1144419Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:47.1144419Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json new file mode 100644 index 000000000000..05cc796a7f60 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "sampleEncode", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:46.2354434-08:00", + "description": "A sample Transform using the Standard Encoder with a built in preset.", + "lastModified": "2021-01-26T13:35:46.2354434-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:46.2354434Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:46.2354434Z" + } + }, + { + "name": "sampleEncodeAndVideoIndex", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:46.3584429-08:00", + "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", + "lastModified": "2021-01-26T13:35:46.3584429-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + }, + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", + "mode": "Standard", + "insightsToExtract": "AllInsights" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:46.3584429Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:46.3584429Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json new file mode 100644 index 000000000000..765a4d18dba7 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2020-05-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "transformToUpdate", + "parameters": { + "properties": { + "description": "Example transform to illustrate update.", + "outputs": [ + { + "relativePriority": "High", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "H264MultipleBitrate720p" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "transformToUpdate", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", + "type": "Microsoft.Media/mediaservices/transforms", + "properties": { + "created": "2021-01-26T13:35:48.1389546-08:00", + "description": "Example transform to illustrate update.", + "lastModified": "2021-01-26T13:35:48.1769542-08:00", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "High", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "H264MultipleBitrate720p" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-01-26T13:35:48.1389546Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-26T13:35:48.1769542Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json new file mode 100644 index 000000000000..35c041562059 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json @@ -0,0 +1,2012 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "Live event and streaming endpoint management APIs", + "version": "2020-05-01" + }, + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { + "get": { + "tags": [ + "LiveEvents" + ], + "summary": "List live events", + "description": "Lists all the live events in the account.", + "operationId": "LiveEvents_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LiveEventListResult" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List all LiveEvents": { + "$ref": "examples/liveevent-list-all.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { + "get": { + "tags": [ + "LiveEvents" + ], + "summary": "Get Live Event", + "description": "Gets properties of a live event.", + "operationId": "LiveEvents_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LiveEvent" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-examples": { + "Get a LiveEvent by name": { + "$ref": "examples/liveevent-list-by-name.json" + } + } + }, + "put": { + "tags": [ + "LiveEvents" + ], + "summary": "Create Live Event", + "description": "Creates a new live event.", + "operationId": "LiveEvents_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/StreamingResourceAutoStart" + }, + { + "name": "parameters", + "description": "Live event properties needed for creation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LiveEvent" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LiveEvent" + } + }, + "201": { + "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", + "schema": { + "$ref": "#/definitions/LiveEvent" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create a LiveEvent": { + "$ref": "examples/liveevent-create.json" + } + } + }, + "patch": { + "tags": [ + "LiveEvents" + ], + "description": "Updates settings on an existing live event.", + "operationId": "LiveEvents_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "description": "Live event properties needed for patch.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LiveEvent" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LiveEvent" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", + "schema": { + "$ref": "#/definitions/LiveEvent" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a LiveEvent": { + "$ref": "examples/liveevent-update.json" + } + } + }, + "delete": { + "tags": [ + "LiveEvents" + ], + "summary": "Delete Live Event", + "description": "Deletes a live event.", + "operationId": "LiveEvents_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "204": { + "description": "No content. The request has been accepted but the live event was not found." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a LiveEvent": { + "$ref": "examples/liveevent-delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate": { + "post": { + "tags": [ + "LiveEvents" + ], + "summary": "Allocate resources for a live event", + "description": "A live event is in StandBy state after allocation completes, and is ready to start.", + "operationId": "LiveEvents_Allocate", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Allocate a LiveEvent": { + "$ref": "examples/liveevent-allocate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { + "post": { + "tags": [ + "LiveEvents" + ], + "summary": "Start Live Event", + "description": "A live event in Stopped or StandBy state will be in Running state after the start operation completes.", + "operationId": "LiveEvents_Start", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Start a LiveEvent": { + "$ref": "examples/liveevent-start.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { + "post": { + "tags": [ + "LiveEvents" + ], + "summary": "Stop Live Event", + "description": "Stops a running live event.", + "operationId": "LiveEvents_Stop", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "description": "LiveEvent stop parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LiveEventActionInput" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Stop a LiveEvent": { + "$ref": "examples/liveevent-stop.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { + "post": { + "tags": [ + "LiveEvents" + ], + "summary": "Reset Live Event", + "description": "Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected. ", + "operationId": "LiveEvents_Reset", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Reset a LiveEvent": { + "$ref": "examples/liveevent-reset.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { + "get": { + "tags": [ + "LiveOutputs" + ], + "summary": "List Live Outputs", + "description": "Lists the live outputs of a live event.", + "operationId": "LiveOutputs_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LiveOutputListResult" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List all LiveOutputs": { + "$ref": "examples/liveoutput-list-all.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { + "get": { + "tags": [ + "LiveOutputs" + ], + "summary": "Get Live Output", + "description": "Gets a live output.", + "operationId": "LiveOutputs_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/LiveOutputName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LiveOutput" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-examples": { + "Get a LiveOutput by name": { + "$ref": "examples/liveoutput-list-by-name.json" + } + } + }, + "put": { + "tags": [ + "LiveOutputs" + ], + "summary": "Create Live Output", + "description": "Creates a new live output.", + "operationId": "LiveOutputs_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/LiveOutputName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "description": "Live Output properties needed for creation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LiveOutput" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LiveOutput" + } + }, + "201": { + "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", + "schema": { + "$ref": "#/definitions/LiveOutput" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create a LiveOutput": { + "$ref": "examples/liveoutput-create.json" + } + } + }, + "delete": { + "tags": [ + "LiveOutputs" + ], + "summary": "Delete Live Output", + "description": "Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.", + "operationId": "LiveOutputs_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/LiveOutputName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "204": { + "description": "No content. The request has been accepted but the live output was not found." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a LiveOutput": { + "$ref": "examples/liveoutput-delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { + "get": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "List StreamingEndpoints", + "description": "Lists the streaming endpoints in the account.", + "operationId": "StreamingEndpoints_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/StreamingEndpointListResult" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List all streaming endpoints": { + "$ref": "examples/streamingendpoint-list-all.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { + "get": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "Get StreamingEndpoint", + "description": "Gets a streaming endpoint.", + "operationId": "StreamingEndpoints_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/StreamingEndpointName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/StreamingEndpoint" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-examples": { + "Get a streaming endpoint by name": { + "$ref": "examples/streamingendpoint-list-by-name.json" + } + } + }, + "put": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "Create StreamingEndpoint", + "description": "Creates a streaming endpoint.", + "operationId": "StreamingEndpoints_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/StreamingEndpointName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/StreamingResourceAutoStart" + }, + { + "name": "parameters", + "description": "Streaming endpoint properties needed for creation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/StreamingEndpoint" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/StreamingEndpoint" + } + }, + "201": { + "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", + "schema": { + "$ref": "#/definitions/StreamingEndpoint" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create a streaming endpoint": { + "$ref": "examples/streamingendpoint-create.json" + } + } + }, + "patch": { + "tags": [ + "StreamingEndpoint" + ], + "summary": "Update StreamingEndpoint", + "description": "Updates a existing streaming endpoint.", + "operationId": "StreamingEndpoints_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/StreamingEndpointName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "description": "Streaming endpoint properties needed for creation.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/StreamingEndpoint" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/StreamingEndpoint" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", + "schema": { + "$ref": "#/definitions/StreamingEndpoint" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a streaming endpoint": { + "$ref": "examples/streamingendpoint-update.json" + } + } + }, + "delete": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "Delete StreamingEndpoint", + "description": "Deletes a streaming endpoint.", + "operationId": "StreamingEndpoints_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/StreamingEndpointName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "204": { + "description": "No content. The request has been accepted but the Streaming Endpoint was not found." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a streaming endpoint": { + "$ref": "examples/streamingendpoint-delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { + "post": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "Start StreamingEndpoint", + "description": "Starts an existing streaming endpoint.", + "operationId": "StreamingEndpoints_Start", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/StreamingEndpointName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Start a streaming endpoint": { + "$ref": "examples/streamingendpoint-start.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { + "post": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "Stop StreamingEndpoint", + "description": "Stops an existing streaming endpoint.", + "operationId": "StreamingEndpoints_Stop", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/StreamingEndpointName" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Stop a streaming endpoint": { + "$ref": "examples/streamingendpoint-stop.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { + "post": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "Scale StreamingEndpoint", + "description": "Scales an existing streaming endpoint.", + "operationId": "StreamingEndpoints_Scale", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/StreamingEndpointName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "parameters", + "description": "Streaming endpoint scale parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/StreamingEntityScaleUnit" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "./Common.json#/definitions/ApiError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Scale a StreamingEndpoint": { + "$ref": "examples/streamingendpoint-scale.json" + } + } + } + } + }, + "definitions": { + "Hls": { + "properties": { + "fragmentsPerTsSegment": { + "format": "int32", + "type": "integer", + "description": "The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output." + } + }, + "description": "HTTP Live Streaming (HLS) packing setting for the live output." + }, + "LiveOutputProperties": { + "required": [ + "assetName", + "archiveWindowLength" + ], + "properties": { + "description": { + "type": "string", + "description": "The description of the live output." + }, + "assetName": { + "type": "string", + "description": "The asset that the live output will write to." + }, + "archiveWindowLength": { + "format": "duration", + "type": "string", + "description": "ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window." + }, + "manifestName": { + "type": "string", + "description": "The manifest file name. If not provided, the service will generate one automatically." + }, + "hls": { + "type": "object", + "$ref": "#/definitions/Hls", + "description": "HTTP Live Streaming (HLS) packing setting for the live output." + }, + "outputSnapTime": { + "type": "integer", + "format": "int64", + "description": "The initial timestamp that the live output will start at, any content before this value will not be archived." + }, + "created": { + "readOnly": true, + "format": "date-time", + "type": "string", + "description": "The creation time the live output." + }, + "lastModified": { + "readOnly": true, + "format": "date-time", + "type": "string", + "description": "The time the live output was last modified." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the live output." + }, + "resourceState": { + "description": "The resource state of the live output.", + "readOnly": true, + "type": "string", + "enum": [ + "Creating", + "Running", + "Deleting" + ], + "x-ms-enum": { + "name": "LiveOutputResourceState", + "values": [ + { + "value": "Creating", + "description": "Live output is being created. No content is archived in the asset until the live output is in running state." + }, + { + "value": "Running", + "description": "Live output is running and archiving live streaming content to the asset if there is valid input from a contribution encoder." + }, + { + "value": "Deleting", + "description": "Live output is being deleted. The live asset is being converted from live to on-demand asset. Any streaming URLs created on the live output asset continue to work." + } + ], + "modelAsString": true + } + } + }, + "description": "The JSON object that contains the properties required to create a live output." + }, + "LiveOutput": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LiveOutputProperties", + "description": "Live output properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "The Live Output." + }, + "LiveOutputListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LiveOutput" + }, + "description": "The result of the List LiveOutput operation." + }, + "@odata.count": { + "type": "integer", + "format": "int32", + "description": "The number of result." + }, + "@odata.nextLink": { + "type": "string", + "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." + } + }, + "description": "The LiveOutput list result.", + "title": "LiveOutputListResult" + }, + "LiveEventEndpoint": { + "properties": { + "protocol": { + "type": "string", + "description": "The endpoint protocol." + }, + "url": { + "type": "string", + "description": "The endpoint URL." + } + }, + "description": "The live event endpoint." + }, + "LiveEventInputAccessControl": { + "properties": { + "ip": { + "type": "object", + "$ref": "#/definitions/IPAccessControl", + "description": "The IP access control properties." + } + }, + "description": "The IP access control for live event input." + }, + "LiveEventInput": { + "required": [ + "streamingProtocol" + ], + "properties": { + "streamingProtocol": { + "type": "string", + "description": "The input protocol for the live event. This is specified at creation time and cannot be updated.", + "enum": [ + "FragmentedMP4", + "RTMP" + ], + "x-ms-enum": { + "name": "LiveEventInputProtocol", + "values": [ + { + "value": "FragmentedMP4", + "description": "Smooth Streaming input will be sent by the contribution encoder to the live event." + }, + { + "value": "RTMP", + "description": "RTMP input will be sent by the contribution encoder to the live event." + } + ], + "modelAsString": true + } + }, + "accessControl": { + "type": "object", + "$ref": "#/definitions/LiveEventInputAccessControl", + "description": "Access control for live event input." + }, + "keyFrameIntervalDuration": { + "type": "string", + "description": "ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events." + }, + "accessToken": { + "type": "string", + "description": "A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." + }, + "endpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + }, + "description": "The input endpoints for the live event." + } + }, + "description": "The live event input." + }, + "IPRange": { + "properties": { + "name": { + "type": "string", + "description": "The friendly name for the IP address range." + }, + "address": { + "type": "string", + "description": "The IP address." + }, + "subnetPrefixLength": { + "format": "int32", + "type": "integer", + "description": "The subnet mask prefix length (see CIDR notation)." + } + }, + "description": "The IP address range in the CIDR scheme." + }, + "IPAccessControl": { + "properties": { + "allow": { + "type": "array", + "items": { + "$ref": "#/definitions/IPRange" + }, + "description": "The IP allow list." + } + }, + "description": "The IP access control." + }, + "LiveEventPreviewAccessControl": { + "properties": { + "ip": { + "type": "object", + "$ref": "#/definitions/IPAccessControl", + "description": "The IP access control properties." + } + }, + "description": "The IP access control for the live event preview endpoint." + }, + "LiveEventPreview": { + "properties": { + "endpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + }, + "description": "The endpoints for preview. Do not share the preview URL with the live event audience." + }, + "accessControl": { + "type": "object", + "$ref": "#/definitions/LiveEventPreviewAccessControl", + "description": "The access control for live event preview." + }, + "previewLocator": { + "type": "string", + "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." + }, + "streamingPolicyName": { + "type": "string", + "description": "The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated." + }, + "alternativeMediaId": { + "type": "string", + "description": "An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." + } + }, + "description": "Live event preview settings." + }, + "LiveEventEncoding": { + "properties": { + "encodingType": { + "type": "string", + "description": "Live event type. When encodingType is set to None, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created.", + "enum": [ + "None", + "Standard", + "Premium1080p" + ], + "x-ms-enum": { + "name": "LiveEventEncodingType", + "values": [ + { + "value": "None", + "description": "A contribution live encoder sends a multiple bitrate stream. The ingested stream passes through the live event without any further processing. It is also called the pass-through mode." + }, + { + "value": "Standard", + "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution." + }, + { + "value": "Premium1080p", + "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution." + } + ], + "modelAsString": true + } + }, + "presetName": { + "type": "string", + "description": "The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’." + }, + "stretchMode": { + "type": "string", + "enum": [ + "None", + "AutoSize", + "AutoFit" + ], + "x-ms-enum": { + "name": "StretchMode", + "values": [ + { + "value": "None", + "description": "Strictly respects the output resolution specified in the encoding preset without considering the pixel aspect ratio or display aspect ratio of the input video." + }, + { + "value": "AutoSize", + "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." + }, + { + "value": "AutoFit", + "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." + } + ], + "modelAsString": true + }, + "description": "Specifies how the input video will be resized to fit the desired output resolution(s). Default is None" + }, + "keyFrameInterval": { + "type": "string", + "format": "duration", + "description": "Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events." + } + }, + "description": "Specifies the live event type and optional encoding settings for encoding live events." + }, + "LiveEventInputTrackSelection": { + "properties": { + "property": { + "type": "string", + "description": "Property name to select. This property is reserved for future use, any value set on this property will be ignored." + }, + "operation": { + "type": "string", + "description": "Comparing operation. This property is reserved for future use, any value set on this property will be ignored." + }, + "value": { + "type": "string", + "description": "Property value to select. This property is reserved for future use, any value set on this property will be ignored." + } + }, + "description": "A track selection condition. This property is reserved for future use, any value set on this property will be ignored." + }, + "LiveEventOutputTranscriptionTrack": { + "required": [ + "trackName" + ], + "properties": { + "trackName": { + "type": "string", + "description": "The output track name. This property is reserved for future use, any value set on this property will be ignored." + } + }, + "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." + }, + "LiveEventTranscription": { + "properties": { + "language": { + "type": "string", + "description": "Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages." + }, + "inputTrackSelection": { + "type": "array", + "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.", + "items": { + "$ref": "#/definitions/LiveEventInputTrackSelection" + } + }, + "outputTranscriptionTrack": { + "type": "object", + "$ref": "#/definitions/LiveEventOutputTranscriptionTrack", + "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." + } + }, + "description": "Describes the transcription tracks in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." + }, + "CrossSiteAccessPolicies": { + "properties": { + "clientAccessPolicy": { + "type": "string", + "description": "The content of clientaccesspolicy.xml used by Silverlight." + }, + "crossDomainPolicy": { + "type": "string", + "description": "The content of crossdomain.xml used by Silverlight." + } + }, + "description": "The client access policy." + }, + "LiveEventActionInput": { + "properties": { + "removeOutputsOnStop": { + "type": "boolean", + "description": "The flag indicates whether live outputs are automatically deleted when live event is being stopped. Deleting live outputs do not delete the underlying assets." + } + }, + "description": "The LiveEvent action input parameter definition." + }, + "LiveEventProperties": { + "required": [ + "input" + ], + "properties": { + "description": { + "type": "string", + "description": "A description for the live event." + }, + "input": { + "type": "object", + "$ref": "#/definitions/LiveEventInput", + "description": "Live event input settings. It defines how the live event receives input from a contribution encoder." + }, + "preview": { + "type": "object", + "$ref": "#/definitions/LiveEventPreview", + "description": "Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output." + }, + "encoding": { + "type": "object", + "$ref": "#/definitions/LiveEventEncoding", + "description": "Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used." + }, + "transcriptions": { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventTranscription" + }, + "description": "Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the live event." + }, + "resourceState": { + "readOnly": true, + "type": "string", + "description": "The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.", + "enum": [ + "Stopped", + "Allocating", + "StandBy", + "Starting", + "Running", + "Stopping", + "Deleting" + ], + "x-ms-enum": { + "name": "LiveEventResourceState", + "values": [ + { + "value": "Stopped", + "description": "This is the initial state of the live event after creation (unless autostart was set to true.) No billing occurs in this state. In this state, the live event properties can be updated but streaming is not allowed." + }, + { + "value": "Allocating", + "description": "Allocate action was called on the live event and resources are being provisioned for this live event. Once allocation completes successfully, the live event will transition to StandBy state." + }, + { + "value": "StandBy", + "description": "Live event resources have been provisioned and is ready to start. Billing occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed during this state." + }, + { + "value": "Starting", + "description": "The live event is being started and resources are being allocated. No billing occurs in this state. Updates or streaming are not allowed during this state. If an error occurs, the live event returns to the Stopped state." + }, + { + "value": "Running", + "description": "The live event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop on the live event resource to halt further billing." + }, + { + "value": "Stopping", + "description": "The live event is being stopped and resources are being de-provisioned. No billing occurs in this transient state. Updates or streaming are not allowed during this state." + }, + { + "value": "Deleting", + "description": "The live event is being deleted. No billing occurs in this transient state. Updates or streaming are not allowed during this state." + } + ], + "modelAsString": true + } + }, + "crossSiteAccessPolicies": { + "type": "object", + "$ref": "#/definitions/CrossSiteAccessPolicies", + "description": "Live event cross site access policies." + }, + "useStaticHostname": { + "type": "boolean", + "description": "Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state" + }, + "hostnamePrefix": { + "type": "string", + "description": "When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center." + }, + "streamOptions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Default", + "LowLatency" + ], + "x-ms-enum": { + "name": "StreamOptionsFlag", + "values": [ + { + "value": "Default", + "description": "Live streaming with no special latency optimizations." + }, + { + "value": "LowLatency", + "description": "The live event provides lower end to end latency by reducing its internal buffers. This could result in more client buffering during playback if network bandwidth is low." + } + ], + "modelAsString": true + } + }, + "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'." + }, + "created": { + "readOnly": true, + "format": "date-time", + "type": "string", + "description": "The creation time for the live event" + }, + "lastModified": { + "readOnly": true, + "format": "date-time", + "type": "string", + "description": "The last modified time of the live event." + } + }, + "description": "The live event properties." + }, + "LiveEvent": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LiveEventProperties", + "description": "The live event properties." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "The live event." + }, + "LiveEventListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEvent" + }, + "description": "The result of the List Live Event operation." + }, + "@odata.count": { + "type": "integer", + "format": "int32", + "description": "The number of result." + }, + "@odata.nextLink": { + "type": "string", + "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." + } + }, + "description": "The LiveEvent list result.", + "title": "LiveEventListResult" + }, + "AkamaiSignatureHeaderAuthenticationKey": { + "properties": { + "identifier": { + "type": "string", + "description": "identifier of the key" + }, + "base64Key": { + "type": "string", + "description": "authentication key" + }, + "expiration": { + "format": "date-time", + "type": "string", + "description": "The expiration time of the authentication key." + } + }, + "description": "Akamai Signature Header authentication key." + }, + "AkamaiAccessControl": { + "properties": { + "akamaiSignatureHeaderAuthenticationKeyList": { + "type": "array", + "items": { + "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" + }, + "description": "authentication key list" + } + }, + "description": "Akamai access control" + }, + "StreamingEndpointAccessControl": { + "properties": { + "akamai": { + "type": "object", + "$ref": "#/definitions/AkamaiAccessControl", + "description": "The access control of Akamai" + }, + "ip": { + "type": "object", + "$ref": "#/definitions/IPAccessControl", + "description": "The IP access control of the streaming endpoint." + } + }, + "description": "Streaming endpoint access control definition." + }, + "StreamingEntityScaleUnit": { + "properties": { + "scaleUnit": { + "type": "integer", + "format": "int32", + "description": "The scale unit number of the streaming endpoint." + } + }, + "description": "scale units definition" + }, + "StreamingEndpointProperties": { + "required": [ + "scaleUnits" + ], + "properties": { + "description": { + "type": "string", + "description": "The streaming endpoint description." + }, + "scaleUnits": { + "type": "integer", + "format": "int32", + "description": "The number of scale units. Use the Scale operation to adjust this value." + }, + "availabilitySetName": { + "type": "string", + "description": "This feature is deprecated, do not set a value for this property." + }, + "accessControl": { + "type": "object", + "$ref": "#/definitions/StreamingEndpointAccessControl", + "description": "The access control definition of the streaming endpoint." + }, + "maxCacheAge": { + "type": "integer", + "format": "int64", + "description": "Max cache age" + }, + "customHostNames": { + "type": "array", + "items": { + "type": "string", + "description": "custom host name" + }, + "description": "The custom host names of the streaming endpoint" + }, + "hostName": { + "readOnly": true, + "type": "string", + "description": "The streaming endpoint host name." + }, + "cdnEnabled": { + "type": "boolean", + "description": "The CDN enabled flag." + }, + "cdnProvider": { + "type": "string", + "description": "The CDN provider name." + }, + "cdnProfile": { + "type": "string", + "description": "The CDN profile name." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the streaming endpoint." + }, + "resourceState": { + "readOnly": true, + "type": "string", + "description": "The resource state of the streaming endpoint.", + "enum": [ + "Stopped", + "Starting", + "Running", + "Stopping", + "Deleting", + "Scaling" + ], + "x-ms-enum": { + "name": "StreamingEndpointResourceState", + "values": [ + { + "value": "Stopped", + "description": "The initial state of a streaming endpoint after creation. Content is not ready to be streamed from this endpoint." + }, + { + "value": "Starting", + "description": "The streaming endpoint is transitioning to the running state." + }, + { + "value": "Running", + "description": "The streaming endpoint is running. It is able to stream content to clients" + }, + { + "value": "Stopping", + "description": "The streaming endpoint is transitioning to the stopped state." + }, + { + "value": "Deleting", + "description": "The streaming endpoint is being deleted." + }, + { + "value": "Scaling", + "description": "The streaming endpoint is increasing or decreasing scale units." + } + ], + "modelAsString": true + } + }, + "crossSiteAccessPolicies": { + "type": "object", + "$ref": "#/definitions/CrossSiteAccessPolicies", + "description": "The streaming endpoint access policies." + }, + "freeTrialEndTime": { + "readOnly": true, + "format": "date-time", + "type": "string", + "description": "The free trial expiration time." + }, + "created": { + "readOnly": true, + "format": "date-time", + "type": "string", + "description": "The exact time the streaming endpoint was created." + }, + "lastModified": { + "readOnly": true, + "format": "date-time", + "type": "string", + "description": "The exact time the streaming endpoint was last modified." + } + }, + "description": "The streaming endpoint properties." + }, + "StreamingEndpoint": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/StreamingEndpointProperties", + "description": "The streaming endpoint properties." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "The streaming endpoint." + }, + "StreamingEndpointListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingEndpoint" + }, + "description": "The result of the List StreamingEndpoint operation." + }, + "@odata.count": { + "type": "integer", + "format": "int32", + "description": "The number of result." + }, + "@odata.nextLink": { + "type": "string", + "description": "The link to the next set of results. Not empty if value contains incomplete list of streaming endpoints." + } + }, + "description": "The streaming endpoint list result.", + "title": "StreamingEndpointListResult" + } + }, + "parameters": { + "SubscriptionId": { + "name": "subscriptionId", + "description": "The unique identifier for a Microsoft Azure subscription.", + "in": "path", + "required": true, + "type": "string" + }, + "ApiVersion": { + "name": "api-version", + "description": "The version of the API to be used with the client request.", + "in": "query", + "required": true, + "type": "string" + }, + "ResourceGroupName": { + "name": "resourceGroupName", + "description": "The name of the resource group within the Azure subscription.", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "MediaServicesAccountName": { + "name": "accountName", + "description": "The Media Services account name.", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "LiveEventName": { + "name": "liveEventName", + "description": "The name of the live event, maximum length is 32.", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32, + "x-ms-parameter-location": "method" + }, + "StreamingResourceAutoStart": { + "name": "autoStart", + "description": "The flag indicates if the resource should be automatically started on creation.", + "in": "query", + "required": false, + "type": "boolean", + "x-ms-parameter-location": "method" + }, + "LiveOutputName": { + "name": "liveOutputName", + "description": "The name of the live output.", + "in": "path", + "required": true, + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256, + "x-ms-parameter-location": "method" + }, + "StreamingEndpointName": { + "name": "streamingEndpointName", + "description": "The name of the streaming endpoint, maximum length is 24.", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24, + "x-ms-parameter-location": "method" + } + } +} From 3246013f3957a4c2d34116ca5a4e090c83acd76d Mon Sep 17 00:00:00 2001 From: giakas Date: Wed, 24 Mar 2021 22:04:43 -0700 Subject: [PATCH 02/10] Updates readme --- .../mediaservices/resource-manager/readme.md | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/specification/mediaservices/resource-manager/readme.md b/specification/mediaservices/resource-manager/readme.md index 146b30c69b18..8dbf5b40285e 100644 --- a/specification/mediaservices/resource-manager/readme.md +++ b/specification/mediaservices/resource-manager/readme.md @@ -26,16 +26,31 @@ These are the global settings for the MediaServices API. ``` yaml openapi-type: arm -tag: package-2020-05 +tag: package-2021-05 opt-in-extensible-enums: true ``` +### Tag: package-2021-05 + +These settings apply only when `--tag=package-2021-05` is specified on the command line. + +```yaml $(tag) == 'package-2021-05' +input-file: + - Microsoft.Media/stable/2021-05-01/AccountFilters.json + - Microsoft.Media/stable/2021-05-01/Accounts.json + - Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json + - Microsoft.Media/stable/2021-05-01/Common.json + - Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json + - Microsoft.Media/stable/2021-05-01/Encoding.json + - Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json + - Microsoft.Media/stable/2021-05-01/streamingservice.json +``` ### Tag: package-2020-05 These settings apply only when `--tag=package-2020-05` is specified on the command line. -```yaml $(tag) == 'package-2020-05' +``` yaml $(tag) == 'package-2020-05' input-file: - Microsoft.Media/stable/2020-05-01/AccountFilters.json - Microsoft.Media/stable/2020-05-01/Accounts.json @@ -50,6 +65,7 @@ directive: where: $.definitions.TrackedResource.required reason: location is a required property for our patch calls ``` + ### Tag: package-2020-02-preview These settings apply only when `--tag=package-2020-02-preview` is specified on the command line. @@ -221,4 +237,3 @@ directive: ## AzureResourceSchema See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) - From 219add79918f74f24d6eec67c9ed2aa5e8ed4d67 Mon Sep 17 00:00:00 2001 From: giakas Date: Wed, 24 Mar 2021 22:04:45 -0700 Subject: [PATCH 03/10] Updates API version in new specs and examples --- .../Microsoft.Media/stable/2021-05-01/AccountFilters.json | 2 +- .../Microsoft.Media/stable/2021-05-01/Accounts.json | 2 +- .../stable/2021-05-01/AssetsAndAssetFilters.json | 2 +- .../Microsoft.Media/stable/2021-05-01/Common.json | 2 +- .../Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json | 2 +- .../Microsoft.Media/stable/2021-05-01/Encoding.json | 2 +- .../2021-05-01/StreamingPoliciesAndStreamingLocators.json | 2 +- .../stable/2021-05-01/examples/accountFilters-create.json | 2 +- .../stable/2021-05-01/examples/accountFilters-delete.json | 2 +- .../2021-05-01/examples/accountFilters-get-by-name.json | 2 +- .../stable/2021-05-01/examples/accountFilters-list-all.json | 2 +- .../stable/2021-05-01/examples/accountFilters-update.json | 2 +- .../2021-05-01/examples/accounts-check-name-availability.json | 2 +- .../stable/2021-05-01/examples/accounts-create.json | 2 +- .../stable/2021-05-01/examples/accounts-delete.json | 2 +- .../stable/2021-05-01/examples/accounts-get-by-name.json | 2 +- .../2021-05-01/examples/accounts-list-all-accounts.json | 2 +- .../examples/accounts-list-media-edge-policies.json | 2 +- .../examples/accounts-subscription-get-by-name.json | 2 +- .../examples/accounts-subscription-list-all-accounts.json | 2 +- .../2021-05-01/examples/accounts-sync-storage-keys.json | 2 +- .../stable/2021-05-01/examples/accounts-update.json | 2 +- .../stable/2021-05-01/examples/assetFilters-create.json | 2 +- .../stable/2021-05-01/examples/assetFilters-delete.json | 2 +- .../stable/2021-05-01/examples/assetFilters-get-by-name.json | 2 +- .../stable/2021-05-01/examples/assetFilters-list-all.json | 2 +- .../stable/2021-05-01/examples/assetFilters-update.json | 2 +- .../stable/2021-05-01/examples/assets-create.json | 2 +- .../stable/2021-05-01/examples/assets-delete.json | 2 +- .../stable/2021-05-01/examples/assets-get-by-name.json | 2 +- .../2021-05-01/examples/assets-get-encryption-keys.json | 2 +- .../stable/2021-05-01/examples/assets-list-all.json | 2 +- .../stable/2021-05-01/examples/assets-list-by-date.json | 2 +- .../stable/2021-05-01/examples/assets-list-in-date-range.json | 2 +- .../stable/2021-05-01/examples/assets-list-sas-urls.json | 2 +- .../2021-05-01/examples/assets-list-streaming-locators.json | 2 +- .../stable/2021-05-01/examples/assets-update.json | 2 +- .../content-key-policies-create-multiple-options.json | 2 +- .../examples/content-key-policies-create-nodrm-token.json | 2 +- .../examples/content-key-policies-create-playready-open.json | 2 +- .../examples/content-key-policies-create-widevine-token.json | 2 +- .../2021-05-01/examples/content-key-policies-delete.json | 2 +- .../2021-05-01/examples/content-key-policies-get-by-name.json | 2 +- .../examples/content-key-policies-get-with-secrets.json | 2 +- .../2021-05-01/examples/content-key-policies-list-all.json | 2 +- .../examples/content-key-policies-list-by-lastModified.json | 2 +- .../examples/content-key-policies-list-in-date-range.json | 2 +- .../2021-05-01/examples/content-key-policies-update.json | 2 +- .../stable/2021-05-01/examples/jobs-cancel.json | 2 +- .../stable/2021-05-01/examples/jobs-create.json | 2 +- .../stable/2021-05-01/examples/jobs-delete.json | 2 +- .../stable/2021-05-01/examples/jobs-get-by-name.json | 2 +- .../2021-05-01/examples/jobs-list-all-filter-by-created.json | 2 +- .../examples/jobs-list-all-filter-by-lastmodified.json | 2 +- .../examples/jobs-list-all-filter-by-name-and-state.json | 2 +- .../2021-05-01/examples/jobs-list-all-filter-by-name.json | 2 +- .../2021-05-01/examples/jobs-list-all-filter-by-state-eq.json | 2 +- .../2021-05-01/examples/jobs-list-all-filter-by-state-ne.json | 2 +- .../stable/2021-05-01/examples/jobs-list-all.json | 2 +- .../stable/2021-05-01/examples/jobs-update.json | 2 +- .../stable/2021-05-01/examples/liveevent-allocate.json | 2 +- .../stable/2021-05-01/examples/liveevent-create.json | 2 +- .../stable/2021-05-01/examples/liveevent-delete.json | 2 +- .../stable/2021-05-01/examples/liveevent-list-all.json | 2 +- .../stable/2021-05-01/examples/liveevent-list-by-name.json | 2 +- .../stable/2021-05-01/examples/liveevent-reset.json | 2 +- .../stable/2021-05-01/examples/liveevent-start.json | 2 +- .../stable/2021-05-01/examples/liveevent-stop.json | 2 +- .../stable/2021-05-01/examples/liveevent-update.json | 2 +- .../stable/2021-05-01/examples/liveoutput-create.json | 2 +- .../stable/2021-05-01/examples/liveoutput-delete.json | 2 +- .../stable/2021-05-01/examples/liveoutput-list-all.json | 2 +- .../stable/2021-05-01/examples/liveoutput-list-by-name.json | 2 +- .../stable/2021-05-01/examples/operations-list-all.json | 2 +- .../examples/private-endpoint-connection-delete.json | 2 +- .../examples/private-endpoint-connection-get-by-name.json | 2 +- .../2021-05-01/examples/private-endpoint-connection-list.json | 2 +- .../2021-05-01/examples/private-endpoint-connection-put.json | 2 +- .../examples/private-link-resources-get-by-name.json | 2 +- .../2021-05-01/examples/private-link-resources-list.json | 2 +- .../2021-05-01/examples/streaming-locators-create-clear.json | 2 +- ...reaming-locators-create-secure-userDefinedContentKeys.json | 2 +- .../2021-05-01/examples/streaming-locators-create-secure.json | 2 +- .../stable/2021-05-01/examples/streaming-locators-delete.json | 2 +- .../2021-05-01/examples/streaming-locators-get-by-name.json | 2 +- .../examples/streaming-locators-list-content-keys.json | 2 +- .../streaming-locators-list-paths-streaming-and-download.json | 2 +- .../streaming-locators-list-paths-streaming-only.json | 2 +- .../stable/2021-05-01/examples/streaming-locators-list.json | 2 +- .../2021-05-01/examples/streaming-policies-create-clear.json | 2 +- .../streaming-policies-create-commonEncryptionCbcs-only.json | 2 +- .../streaming-policies-create-commonEncryptionCenc-only.json | 2 +- .../streaming-policies-create-envelopeEncryption-only.json | 2 +- .../examples/streaming-policies-create-secure-streaming.json | 2 +- .../stable/2021-05-01/examples/streaming-policies-delete.json | 2 +- .../stable/2021-05-01/examples/streaming-policies-list.json | 4 ++-- .../2021-05-01/examples/streaming-policy-get-by-name.json | 2 +- .../stable/2021-05-01/examples/streamingendpoint-create.json | 2 +- .../stable/2021-05-01/examples/streamingendpoint-delete.json | 2 +- .../2021-05-01/examples/streamingendpoint-list-all.json | 2 +- .../2021-05-01/examples/streamingendpoint-list-by-name.json | 2 +- .../stable/2021-05-01/examples/streamingendpoint-scale.json | 2 +- .../stable/2021-05-01/examples/streamingendpoint-start.json | 2 +- .../stable/2021-05-01/examples/streamingendpoint-stop.json | 2 +- .../stable/2021-05-01/examples/streamingendpoint-update.json | 2 +- .../stable/2021-05-01/examples/transforms-create.json | 2 +- .../stable/2021-05-01/examples/transforms-delete.json | 2 +- .../stable/2021-05-01/examples/transforms-get-by-name.json | 2 +- .../examples/transforms-list-all-filter-by-created.json | 2 +- .../examples/transforms-list-all-filter-by-lastmodified.json | 2 +- .../examples/transforms-list-all-filter-by-name.json | 2 +- .../stable/2021-05-01/examples/transforms-list-all.json | 2 +- .../stable/2021-05-01/examples/transforms-update.json | 2 +- .../Microsoft.Media/stable/2021-05-01/streamingservice.json | 2 +- 114 files changed, 115 insertions(+), 115 deletions(-) diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json index ce4e09d0bf2e..a82aca4004a4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" + "version": "2021-05-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json index 29e79eb18e30..24a21208ba9f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" + "version": "2021-05-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json index 9badab194841..36533b8936f5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" + "version": "2021-05-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json index 47062ce01dfd..3aab68811148 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Azure Media Services", - "version": "2020-05-01" + "version": "2021-05-01" }, "securityDefinitions": { "azure_auth": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json index 6bd4a9314c64..ec3a249a322a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" + "version": "2021-05-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json index 4953392abbb8..fe9c8bcbfa12 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" + "version": "2021-05-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json index 258cd959b73b..be3063568c3c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" + "version": "2021-05-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json index 4c6d70688845..ee26c9f47839 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "filterName": "newAccountFilter", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "presentationTimeRange": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json index b8ce20a48042..22e72f941e7b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json index 5a74560c990f..9a33532253df 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "filterName": "accountFilterWithTrack", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json index 7dac9459b140..e9d820098e3b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json index aec8c7c8c06a..9f94447b16b4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "presentationTimeRange": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-check-name-availability.json index d706c1e825ec..ec514e8f8fbf 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-check-name-availability.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-check-name-availability.json @@ -6,7 +6,7 @@ "name": "contosonew", "type": "Microsoft.Media/MediaService" }, - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-create.json index 8f761a357b83..9507e022ec83 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-create.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "location": "South Central US", "tags": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-delete.json index 70012feb623d..44b8c322d53d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-delete.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-get-by-name.json index 7512c2a08c66..a26fd73bfaac 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-get-by-name.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosotv", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-all-accounts.json index 04ff56babaec..fbfc39a490ac 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-all-accounts.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-media-edge-policies.json index dff0e11b78cb..7c46dbacc38d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-media-edge-policies.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-list-media-edge-policies.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "deviceId": "contosiothubhost_contosoiotdevice" } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json index c40be298ae98..85a2eb610093 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json index ca18508aa67e..591f78f6f6f8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-sync-storage-keys.json index 453aaa7a88e8..07f8108f5788 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-sync-storage-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-sync-storage-keys.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "id": "contososportsstore" } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json index d1d67e1cc9bb..cb54c2b3c45c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "location": "South Central US", "tags": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json index dc7fe3d144cc..f20cb802fb11 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "filterName": "newAssetFilter", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "presentationTimeRange": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json index da8d2fe16746..3189eb92f2a4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json index 2e874548f36a..c357bdb40303 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json index b0284501a3f1..fd54a182a51c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountRainer", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json index 4ce1ca0618e8..0afee79eaec5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "presentationTimeRange": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json index b15a6d7ecff2..6af60e9880d6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountLogan", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "description": "A documentary showing the ascent of Mount Logan", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json index 0147afd32330..0b660ce23da6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountAdams", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json index f4635b39442d..44c2baae72d2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountAdams", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json index 1b0ee2f1db86..4ae5225fb94a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountSaintHelens", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json index 5bba32e159de..eb8050420082 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json index fb2932e24145..e8bddbda1ce5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "$orderby": "properties/created" }, "responses": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json index 8c1e80ae23b8..febc79a65ed4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "$orderby": "properties/created", "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" }, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json index e3ac6b3104dd..28745949f756 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountBaker", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "permissions": "ReadWrite", "expiryTime": "2018-01-01T10:00:00.007Z" diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json index 4b99b6b6aae4..e7e5ce5e2dc3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountSaintHelens", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json index 2e45ce22a21c..84d4c366a44b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountBaker", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "description": "A documentary showing the ascent of Mount Baker in HD" diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json index fb8abf5c67f6..59aa5f068860 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "description": "ArmPolicyDescription", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json index 13eca3bac701..5f911f2d7e13 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "description": "ArmPolicyDescription", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json index c1917240ee27..8a00520f6f1a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "description": "ArmPolicyDescription", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json index 8c88dc47c4ad..dd54a7138f85 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "description": "ArmPolicyDescription", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json index 33eba3a15826..f9e9ca3c938e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json index 28c9e5dc131d..b35fbc12d35a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json index 0da829c2d657..11e7b9133e76 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json index a0e49ad9839b..7ab7346a3861 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json index 6cb81fd7ad9f..0350ae7f502a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "$orderby": "properties/lastModified" }, "responses": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json index 179d30addc94..cad7c5d03ebe 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" }, "responses": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json index 33d98dab8af3..b728c02d5a47 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "description": "Updated Policy", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json index 550a8aaf77c8..38506d6513da 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json index 0a080128b740..a99b2f6f2089 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json index 2b68932ec48f..c1ceccd3c4e2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json index 8f4f6197904b..906b05f13a05 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json index 4f8b14ffebff..b23ee27b71ee 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json index 107f6990a7b9..14e54fb6c427 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json index 70d677647acb..37f653ddf614 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json index ae389d22e87b..7b4670c45ea0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json index dd65f1ec9733..245a233daccb 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json index 44f684becb2f..441a5ef73ca0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json index 4739cd3ff59a..965c0a626b04 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json index b7cb00bc3083..56e74913d2d5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json index 95fd7e6461e1..1b71c6e20649 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json index c15c83350440..3937d26bb5e6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "location": "West US", "tags": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json index eddcf4c8ed4b..0299a9e94f0d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", "name": "myLiveEvent1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json index c5e47d7187db..a5c61f7ee54c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json index d7087ca92578..451de487dd1d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "404": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json index 95fd7e6461e1..1b71c6e20649 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json index 95fd7e6461e1..1b71c6e20649 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json index a23df8bb0574..1c6a5733037f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "removeOutputsOnStop": false } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json index 1c7da9a1f50d..6dbe01782baf 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "location": "West US", "tags": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json index 8f737778b732..7800a7b280d1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json @@ -5,7 +5,7 @@ "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", "liveOutputName": "myLiveOutput1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "description": "test live output 1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json index c4abf69dcc75..b55e94f09244 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json @@ -5,7 +5,7 @@ "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", "liveOutputName": "myLiveOutput1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json index ebf145bcd695..4bc0449df628 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json index fe3c9cfbe866..ef7a817a00e9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json @@ -5,7 +5,7 @@ "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", "liveOutputName": "myLiveOutput1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "404": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json index 530eeb904efb..891cba2e1f8e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json index ddc3608e5cab..e793f73a93db 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contososports", "name": "connectionName1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": {} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json index 859c2857b95a..1fb0b61b1269 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contososports", "name": "connectionName1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json index 785b32db5fb0..339931570d79 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json index 03ee510a3286..401062e60aa6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contososports", "name": "connectionName1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "privateLinkServiceConnectionState": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json index 7ef5ee153fcd..c5675f4d7858 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contososports", "name": "keydelivery", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json index 5aa331ad27fd..6086d1cf6766 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json index e5ef74a68e3b..28fe36cde026 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "streamingPolicyName": "clearStreamingPolicy", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json index 72f7bc7edcf2..dbfe86bea7da 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "assetName": "ClimbingMountRainier", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json index ac78cdfa4e47..b648a3cdea83 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "streamingPolicyName": "secureStreamingPolicy", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json index ae40b3c0d91e..a5af464367d4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "clearStreamingLocator", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json index 5cded2bd270e..414769f2a0f0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "clearStreamingLocator", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json index e912886dbc2b..d60b7fa7160e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "secureStreamingLocator", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json index 58c864fe4494..eee3f3f3b3ae 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "clearStreamingLocator", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json index d0fb861781bf..da3972f27be7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "secureStreamingLocator", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json index e5a389fed597..65a32bc6b612 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json index bca0dd3c4eab..7947c71fed69 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "noEncryption": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json index 4814bb3ca62a..4cddc0c3876b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json index 074818a1b1fc..a3ab693030a9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json index d6c0cf3248b5..5f65cc5a0919 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json index cdd2235204c3..27cb049ae5cd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "properties": { "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json index 8278daace0e4..c2a8ddeefbc6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json index 5feec41b392f..da843ab77d66 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { @@ -204,7 +204,7 @@ } } ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2020-05-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" + "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2021-05-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json index 7772551258f0..f9b501c870cf 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json index ca9c03071647..73d18d767393 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "location": "West US", "tags": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json index 03b31961247c..a662ccd11583 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", "name": "myStreamingEndpoint1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json index 4a08601fdf6f..df2755c15f53 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json index 1aa22e2e8c4e..d4ee8f695a67 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "404": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json index 4182c5ba595d..9138f17a17ea 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "scaleUnit": 5 } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json index 0edeff80c178..7a587e003955 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json index 0edeff80c178..7a587e003955 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01" + "api-version": "2021-05-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json index c8d0d6afd6e6..2bedf539d4a2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01", + "api-version": "2021-05-01", "parameters": { "location": "West US", "tags": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json index cbaabae0a310..4a8e1bddabda 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json index 4a6cf2b6b7b3..d0caff021be8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json index 4901bdaa67d8..342721752ca1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json index a8a1c733fca7..798438b5c431 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json index 0b9a921098b4..ed07fefa0706 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json index bc617355e544..5a87ca3f93d5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json index 05cc796a7f60..2db5e6b84fde 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia" diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json index 765a4d18dba7..53fb61147d80 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-05-01", + "api-version": "2021-05-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json index 35c041562059..32f972261524 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "Live event and streaming endpoint management APIs", - "version": "2020-05-01" + "version": "2021-05-01" }, "host": "management.azure.com", "consumes": [ From 127a29bf7de92a99871cb9942d6945900316c3b2 Mon Sep 17 00:00:00 2001 From: giakas Date: Fri, 26 Mar 2021 12:03:10 -0700 Subject: [PATCH 04/10] [AMS] new 2021-05-01 release for Account service in AMS --- .../stable/2021-05-01/AccountFilters.json | 519 --- .../stable/2021-05-01/Accounts.json | 169 +- .../2021-05-01/AssetsAndAssetFilters.json | 1248 ------- .../stable/2021-05-01/Common.json | 56 - .../stable/2021-05-01/ContentKeyPolicies.json | 1174 ------- .../stable/2021-05-01/Encoding.json | 3099 ----------------- ...StreamingPoliciesAndStreamingLocators.json | 1264 ------- .../examples/accountFilters-create.json | 171 - .../examples/accountFilters-delete.json | 13 - .../examples/accountFilters-get-by-name.json | 56 - .../examples/accountFilters-list-all.json | 111 - .../examples/accountFilters-update.json | 81 - .../accounts-subscription-get-by-name.json | 31 - .../examples/assetFilters-create.json | 172 - .../examples/assetFilters-delete.json | 14 - .../examples/assetFilters-get-by-name.json | 68 - .../examples/assetFilters-list-all.json | 131 - .../examples/assetFilters-update.json | 82 - .../2021-05-01/examples/assets-create.json | 49 - .../2021-05-01/examples/assets-delete.json | 13 - .../examples/assets-get-by-name.json | 28 - .../examples/assets-get-encryption-keys.json | 33 - .../2021-05-01/examples/assets-list-all.json | 101 - .../examples/assets-list-by-date.json | 102 - .../examples/assets-list-in-date-range.json | 60 - .../examples/assets-list-sas-urls.json | 23 - .../assets-list-streaming-locators.json | 33 - .../2021-05-01/examples/assets-update.json | 32 - ...-key-policies-create-multiple-options.json | 134 - ...ntent-key-policies-create-nodrm-token.json | 102 - ...nt-key-policies-create-playready-open.json | 131 - ...nt-key-policies-create-widevine-token.json | 124 - .../examples/content-key-policies-delete.json | 13 - .../content-key-policies-get-by-name.json | 63 - ...content-key-policies-get-with-secrets.json | 58 - .../content-key-policies-list-all.json | 165 - ...ent-key-policies-list-by-lastModified.json | 144 - ...ntent-key-policies-list-in-date-range.json | 16 - .../examples/content-key-policies-update.json | 52 - .../2021-05-01/examples/jobs-cancel.json | 13 - .../2021-05-01/examples/jobs-create.json | 70 - .../2021-05-01/examples/jobs-delete.json | 14 - .../2021-05-01/examples/jobs-get-by-name.json | 55 - .../jobs-list-all-filter-by-created.json | 105 - .../jobs-list-all-filter-by-lastmodified.json | 105 - ...obs-list-all-filter-by-name-and-state.json | 62 - .../jobs-list-all-filter-by-name.json | 101 - .../jobs-list-all-filter-by-state-eq.json | 102 - .../jobs-list-all-filter-by-state-ne.json | 102 - .../2021-05-01/examples/jobs-list-all.json | 143 - .../2021-05-01/examples/jobs-update.json | 71 - .../examples/liveevent-allocate.json | 13 - .../2021-05-01/examples/liveevent-create.json | 173 - .../2021-05-01/examples/liveevent-delete.json | 62 - .../examples/liveevent-list-all.json | 75 - .../examples/liveevent-list-by-name.json | 72 - .../2021-05-01/examples/liveevent-reset.json | 13 - .../2021-05-01/examples/liveevent-start.json | 13 - .../2021-05-01/examples/liveevent-stop.json | 16 - .../2021-05-01/examples/liveevent-update.json | 166 - .../examples/liveoutput-create.json | 65 - .../examples/liveoutput-delete.json | 15 - .../examples/liveoutput-list-all.json | 36 - .../examples/liveoutput-list-by-name.json | 34 - .../examples/operations-list-all.json | 589 ---- .../private-endpoint-connection-delete.json | 12 - ...ivate-endpoint-connection-get-by-name.json | 28 - .../private-endpoint-connection-list.json | 46 - .../private-endpoint-connection-put.json | 36 - .../private-link-resources-get-by-name.json | 24 - .../examples/private-link-resources-list.json | 27 - .../streaming-locators-create-clear.json | 32 - ...-create-secure-userDefinedContentKeys.json | 69 - .../streaming-locators-create-secure.json | 54 - .../examples/streaming-locators-delete.json | 13 - .../streaming-locators-get-by-name.json | 27 - .../streaming-locators-list-content-keys.json | 41 - ...ors-list-paths-streaming-and-download.json | 50 - ...ng-locators-list-paths-streaming-only.json | 72 - .../examples/streaming-locators-list.json | 42 - .../streaming-policies-create-clear.json | 41 - ...cies-create-commonEncryptionCbcs-only.json | 67 - ...cies-create-commonEncryptionCenc-only.json | 94 - ...licies-create-envelopeEncryption-only.json | 57 - ...ming-policies-create-secure-streaming.json | 164 - .../examples/streaming-policies-delete.json | 13 - .../examples/streaming-policies-list.json | 211 -- .../streaming-policy-get-by-name.json | 30 - .../examples/streamingendpoint-create.json | 154 - .../examples/streamingendpoint-delete.json | 44 - .../examples/streamingendpoint-list-all.json | 65 - .../streamingendpoint-list-by-name.json | 40 - .../examples/streamingendpoint-scale.json | 16 - .../examples/streamingendpoint-start.json | 13 - .../examples/streamingendpoint-stop.json | 13 - .../examples/streamingendpoint-update.json | 79 - .../examples/transforms-create.json | 84 - .../examples/transforms-delete.json | 13 - .../examples/transforms-get-by-name.json | 42 - ...transforms-list-all-filter-by-created.json | 47 - ...forms-list-all-filter-by-lastmodified.json | 47 - .../transforms-list-all-filter-by-name.json | 83 - .../examples/transforms-list-all.json | 81 - .../examples/transforms-update.json | 55 - .../stable/2021-05-01/streamingservice.json | 2012 ----------- .../mediaservices/resource-manager/readme.md | 68 +- 106 files changed, 145 insertions(+), 16281 deletions(-) delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json deleted file mode 100644 index a82aca4004a4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AccountFilters.json +++ /dev/null @@ -1,519 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-05-01" - }, - "host": "management.azure.com", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "definitions": { - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Account Filter." - }, - "AccountFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "A collection of AccountFilter items." - }, - "@odata.nextLink": { - "type": "string", - "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." - } - }, - "type": "object", - "description": "A collection of AccountFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { - "get": { - "summary": "List Account Filters", - "description": "List Account Filters in the Media Services account.", - "operationId": "AccountFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Account Filters": { - "$ref": "examples/accountFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { - "get": { - "summary": "Get an Account Filter.", - "description": "Get the details of an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Account Filter by name": { - "$ref": "examples/accountFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Account Filter", - "description": "Creates or updates an Account Filter in the Media Services account.", - "operationId": "AccountFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Account Filter": { - "$ref": "examples/accountFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Account Filter.", - "description": "Deletes an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Account Filter": { - "$ref": "examples/accountFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Account Filter", - "description": "Updates an existing Account Filter in the Media Services account.", - "operationId": "AccountFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Account Filter": { - "$ref": "examples/accountFilters-update.json" - } - } - } - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The unique identifier for a Microsoft Azure subscription." - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the Azure subscription.", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name.", - "x-ms-parameter-location": "method" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json index 24a21208ba9f..01fd8dc61cd8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2021-05-01" + "version": "2020-05-01" }, "host": "management.azure.com", "consumes": [ @@ -202,6 +202,30 @@ }, "description": "The metric dimensions.", "readOnly": true + }, + "enableRegionalMdmAccount": { + "type": "boolean", + "description": "Indicates whether regional MDM account is enabled.", + "readOnly": true, + "x-nullable": false + }, + "sourceMdmAccount": { + "type": "string", + "description": "The source MDM account.", + "readOnly": true + }, + "sourceMdmNamespace": { + "type": "string", + "description": "The source MDM namespace.", + "readOnly": true + }, + "supportedTimeGrainTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The supported time grain types.", + "readOnly": true } }, "type": "object", @@ -279,6 +303,29 @@ "properties": { "$ref": "#/definitions/Properties", "description": "Operation properties format." + }, + "isDataAction": { + "type": "boolean", + "description": "Whether the operation applies to data-plane.", + "x-nullable": true + }, + "actionType": { + "type": "string", + "enum": [ + "Internal" + ], + "x-ms-enum": { + "name": "ActionType", + "values": [ + { + "value": "Internal", + "description": "An internal action." + } + ], + "modelAsString": true + }, + "description": "Indicates the action type.", + "x-nullable": true } }, "type": "object", @@ -404,6 +451,10 @@ "encryption": { "$ref": "#/definitions/AccountEncryption", "description": "The account encryption properties." + }, + "keyDelivery": { + "$ref": "#/definitions/KeyDelivery", + "description": "The Key Delivery properties for Media Services account." } }, "type": "object", @@ -577,6 +628,49 @@ "type" ] }, + "AccessControl": { + "properties": { + "defaultAction": { + "type": "string", + "enum": [ + "Allow", + "Deny" + ], + "x-ms-enum": { + "name": "DefaultAction", + "values": [ + { + "value": "Allow", + "description": "All public IP addresses are allowed." + }, + { + "value": "Deny", + "description": "Public IP addresses are blocked." + } + ], + "modelAsString": true + }, + "description": "The behavior for IP access control in Key Delivery." + }, + "ipAllowList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty." + } + }, + "type": "object" + }, + "KeyDelivery": { + "properties": { + "accessControl": { + "$ref": "#/definitions/AccessControl", + "description": "The access control properties for Key Delivery." + } + }, + "type": "object" + }, "OperationCollection": { "properties": { "value": { @@ -642,7 +736,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -676,7 +770,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -716,7 +810,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -764,7 +858,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -815,7 +909,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -857,7 +951,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -907,7 +1001,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -960,7 +1054,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1013,7 +1107,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1057,7 +1151,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1107,7 +1201,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1151,7 +1245,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1199,7 +1293,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1253,7 +1347,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1303,7 +1397,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1353,7 +1447,7 @@ "default": { "description": "Detailed error information.", "schema": { - "$ref": "./Common.json#/definitions/ApiError" + "$ref": "../2020-05-01/Common.json#/definitions/ApiError" } } }, @@ -1374,47 +1468,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_GetBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "description": "The Media Services account name.", - "name": "accountName", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-subscription-get-by-name.json" - } - } - } } }, "parameters": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json deleted file mode 100644 index 36533b8936f5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json +++ /dev/null @@ -1,1248 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-05-01" - }, - "host": "management.azure.com", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "definitions": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsString": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetFileEncryptionMetadata": { - "properties": { - "initializationVector": { - "type": "string", - "description": "The Asset File initialization vector." - }, - "assetFileName": { - "type": "string", - "description": "The Asset File name." - }, - "assetFileId": { - "type": "string", - "format": "uuid", - "description": "The Asset File Id." - } - }, - "type": "object", - "required": [ - "assetFileId" - ], - "description": "The Asset File Storage encryption metadata." - }, - "StorageEncryptedAssetDecryptionData": { - "properties": { - "key": { - "type": "string", - "format": "byte", - "description": "The Asset File storage encryption key." - }, - "assetFileEncryptionMetadata": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFileEncryptionMetadata" - }, - "description": "Asset File encryption metadata." - } - }, - "type": "object", - "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." - }, - "ListStreamingLocatorsResponse": { - "properties": { - "streamingLocators": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetStreamingLocator" - }, - "description": "The list of Streaming Locators.", - "readOnly": true - } - }, - "type": "object", - "description": "The Streaming Locators associated with this Asset." - }, - "AssetStreamingLocator": { - "properties": { - "name": { - "type": "string", - "description": "Streaming Locator name.", - "readOnly": true - }, - "assetName": { - "type": "string", - "description": "Asset Name.", - "readOnly": true - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator.", - "readOnly": true - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Streaming Locator." - }, - "Asset": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset." - }, - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset items." - }, - "@odata.nextLink": { - "type": "string", - "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." - } - }, - "type": "object", - "description": "A collection of Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsString": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - }, - "AssetFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "A collection of AssetFilter items." - }, - "@odata.nextLink": { - "type": "string", - "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." - } - }, - "type": "object", - "description": "A collection of AssetFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { - "post": { - "summary": "List Streaming Locators", - "description": "Lists Streaming Locators which are associated with this asset.", - "operationId": "Assets_ListStreamingLocators", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListStreamingLocatorsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-streaming-locators.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { - "get": { - "summary": "List Asset Filters", - "description": "List Asset Filters associated with the specified Asset.", - "operationId": "AssetFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Asset Filters": { - "$ref": "examples/assetFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { - "get": { - "summary": "Get an Asset Filter.", - "description": "Get the details of an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset Filter by name": { - "$ref": "examples/assetFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset Filter", - "description": "Creates or updates an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset Filter": { - "$ref": "examples/assetFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset Filter.", - "description": "Deletes an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset Filter": { - "$ref": "examples/assetFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset Filter", - "description": "Updates an existing Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset Filter": { - "$ref": "examples/assetFilters-update.json" - } - } - } - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The unique identifier for a Microsoft Azure subscription." - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the Azure subscription.", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name.", - "x-ms-parameter-location": "method" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json deleted file mode 100644 index 3aab68811148..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Common.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "version": "2021-05-01" - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": {}, - "definitions": { - "ODataError": { - "properties": { - "code": { - "type": "string", - "description": "A language-independent error name." - }, - "message": { - "type": "string", - "description": "The error message." - }, - "target": { - "type": "string", - "description": "The target of the error (for example, the name of the property in error)." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ODataError" - }, - "description": "The error details." - } - }, - "type": "object", - "description": "Information about an error." - }, - "ApiError": { - "properties": { - "error": { - "$ref": "#/definitions/ODataError", - "description": "The error properties." - } - }, - "type": "object", - "description": "The API error." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json deleted file mode 100644 index ec3a249a322a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json +++ /dev/null @@ -1,1174 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-05-01" - }, - "host": "management.azure.com", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "definitions": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsString": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsString": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsString": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent", - "x-nullable": true - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key." - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsString": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { - "properties": { - "playbackDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Playback duration" - }, - "storageDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Storage duration" - } - }, - "type": "object", - "required": [ - "playbackDurationSeconds", - "storageDurationSeconds" - ] - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay Application Secret key.", - "x-nullable": true - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format.", - "x-nullable": true - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).", - "x-nullable": true - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "DualExpiry", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "DualExpiry", - "description": "Dual expiry for offline rental." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsString": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - }, - "offlineRentalConfiguration": { - "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration", - "description": "Offline rental policy" - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy items." - }, - "@odata.nextLink": { - "type": "string", - "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." - } - }, - "type": "object", - "description": "A collection of ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.json" - } - } - } - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The unique identifier for a Microsoft Azure subscription." - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the Azure subscription.", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name.", - "x-ms-parameter-location": "method" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json deleted file mode 100644 index fe9c8bcbfa12..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Encoding.json +++ /dev/null @@ -1,3099 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-05-01" - }, - "host": "management.azure.com", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "definitions": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsString": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "Layer": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "H265VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.H265VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H265Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Layer", - "allOf": [ - { - "$ref": "#/definitions/H265VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Main" - ], - "x-ms-enum": { - "name": "H265VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.265 profile." - }, - { - "value": "Main", - "description": "Main profile (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier)" - } - ], - "modelAsString": true - }, - "description": "We currently support Main. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - }, - "syncMode": { - "type": "string", - "enum": [ - "Auto", - "Passthrough", - "Cfr", - "Vfr" - ], - "x-ms-enum": { - "name": "VideoSyncMode", - "values": [ - { - "value": "Auto", - "description": "This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr." - }, - { - "value": "Passthrough", - "description": "The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior" - }, - { - "value": "Cfr", - "description": "Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value" - }, - { - "value": "Vfr", - "description": "Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input" - } - ], - "modelAsString": true - }, - "description": "The Video Sync Mode" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "H265Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H265Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H265Layer" - }, - "description": "The collection of output H.265 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.265 codec." - }, - "TrackDescriptor": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job" - }, - "AudioTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": { - "channelMapping": { - "type": "string", - "enum": [ - "FrontLeft", - "FrontRight", - "Center", - "LowFrequencyEffects", - "BackLeft", - "BackRight", - "StereoLeft", - "StereoRight" - ], - "x-ms-enum": { - "name": "ChannelMapping", - "values": [ - { - "value": "FrontLeft", - "description": "The Front Left Channel." - }, - { - "value": "FrontRight", - "description": "The Front Right Channel." - }, - { - "value": "Center", - "description": "The Center Channel." - }, - { - "value": "LowFrequencyEffects", - "description": "Low Frequency Effects Channel. Sometimes referred to as the Subwoofer." - }, - { - "value": "BackLeft", - "description": "The Back Left Channel. Sometimes referred to as the Left Surround Channel." - }, - { - "value": "BackRight", - "description": "The Back Right Channel. Sometimes referred to as the Right Surround Channel." - }, - { - "value": "StereoLeft", - "description": "The Left Stereo channel. Sometimes referred to as Down Mix Left." - }, - { - "value": "StereoRight", - "description": "The Right Stereo channel. Sometimes referred to as Down Mix Right." - } - ], - "modelAsString": true - }, - "description": "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks." - } - }, - "type": "object", - "description": "A TrackSelection to select audio tracks." - }, - "SelectAudioTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select audio tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectAudioTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackById", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select audio tracks from the input by specifying a track identifier." - }, - "InputDefinition": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "includedTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackDescriptor" - }, - "description": "The list of TrackDescriptors which define the metadata and selection of tracks in the input." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata." - }, - "FromAllInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromAllInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks across all of the files provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a single track across a set of input files." - }, - "FromEachInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromEachInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks at each input file provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to select tracks from each file given." - }, - "InputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.InputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": { - "filename": { - "type": "string", - "description": "Name of the file that this input definition applies to." - } - }, - "type": "object", - "description": "An InputDefinition for a single file. TrackSelections are scoped to the file specified." - }, - "FaceDetectorPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "resolution": { - "type": "string", - "enum": [ - "SourceResolution", - "StandardDefinition" - ], - "x-ms-enum": { - "name": "AnalysisResolution", - "values": [ - { - "value": "SourceResolution" - }, - { - "value": "StandardDefinition" - } - ], - "modelAsString": true - }, - "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." - }, - "mode": { - "type": "string", - "enum": [ - "Analyze", - "Redact", - "Combined" - ], - "x-ms-enum": { - "name": "FaceRedactorMode", - "values": [ - { - "value": "Analyze", - "description": "Analyze mode detects faces and outputs a metadata file with the results. Allows editing of the metadata file before faces are blurred with Redact mode." - }, - { - "value": "Redact", - "description": "Redact mode consumes the metadata file from Analyze mode and redacts the faces found." - }, - { - "value": "Combined", - "description": "Combined mode does the Analyze and Redact steps in one pass when editing the analyzed faces is not desired." - } - ], - "modelAsString": true - }, - "description": "This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction." - }, - "blurType": { - "type": "string", - "enum": [ - "Box", - "Low", - "Med", - "High", - "Black" - ], - "x-ms-enum": { - "name": "BlurType", - "values": [ - { - "value": "Box", - "description": "Box: debug filter, bounding box only" - }, - { - "value": "Low", - "description": "Low: box-car blur filter" - }, - { - "value": "Med", - "description": "Med: Gaussian blur filter" - }, - { - "value": "High", - "description": "High: Confuse blur filter" - }, - { - "value": "Black", - "description": "Black: Black out filter" - } - ], - "modelAsString": true - }, - "description": "Blur type" - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463" - }, - "mode": { - "type": "string", - "enum": [ - "Standard", - "Basic" - ], - "x-ms-enum": { - "name": "AudioAnalysisMode", - "values": [ - { - "value": "Standard", - "description": "Performs all operations included in the Basic mode, additionally performing language detection and speaker diarization." - }, - { - "value": "Basic", - "description": "This mode performs speech-to-text transcription and generation of a VTT subtitle/caption file. The output of this mode includes an Insights JSON file including only the keywords, transcription,and timing information. Automatic language detection and speaker diarization are not included in this mode." - } - ], - "modelAsString": true - }, - "description": "Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen." - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The end position, with reference to the input video, at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type", - "inputLabel" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time." - }, - "range": { - "type": "string", - "description": "The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream." - } - }, - "type": "object", - "required": [ - "start" - ], - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type", - "filenamePattern" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsString": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsString": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsString": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Layer", - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsString": true - }, - "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsString": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "description": "The collection of output H.264 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "description": "A collection of output JPEG image layers to be produced by the encoder." - }, - "spriteColumn": { - "type": "integer", - "format": "int32", - "description": "Sets the number of columns used in thumbnail sprite image. The number of rows are automatically calculated and a VTT file is generated with the coordinate mappings for each thumbnail in the sprite. Note: this value should be a positive integer and a proper value is recommended so that the output image resolution will not go beyond JPEG maximum pixel resolution limit 65535x65535." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "required": [ - "labels" - ], - "description": "Represents an output file produced." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.PngLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "presetName": { - "type": "string", - "enum": [ - "H264SingleBitrateSD", - "H264SingleBitrate720p", - "H264SingleBitrate1080p", - "AdaptiveStreaming", - "AACGoodQualityAudio", - "ContentAwareEncodingExperimental", - "ContentAwareEncoding", - "CopyAllBitrateNonInterleaved", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD", - "H265ContentAwareEncoding", - "H265AdaptiveStreaming", - "H265SingleBitrate720p", - "H265SingleBitrate1080p", - "H265SingleBitrate4K" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "H264SingleBitrateSD", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." - }, - { - "value": "ContentAwareEncodingExperimental", - "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "CopyAllBitrateNonInterleaved", - "description": "Copy all video and audio streams from the input asset as non-interleaved video and audio output files. This preset can be used to clip an existing asset or convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p." - }, - { - "value": "H265ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "H265AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "H265SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate4K", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - } - ], - "modelAsString": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "required": [ - "codecs", - "formats" - ], - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "insightsToExtract": { - "type": "string", - "enum": [ - "AudioInsightsOnly", - "VideoInsightsOnly", - "AllInsights" - ], - "x-ms-enum": { - "name": "InsightsType", - "values": [ - { - "value": "AudioInsightsOnly", - "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." - }, - { - "value": "VideoInsightsOnly", - "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." - }, - { - "value": "AllInsights", - "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." - } - ], - "modelAsString": true - }, - "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "VideoTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": {}, - "type": "object", - "description": "A TrackSelection to select video tracks." - }, - "SelectVideoTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select video tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectVideoTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackById", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select video tracks from the input by specifying a track identifier." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsString": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each." - }, - "start": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." - }, - "end": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - }, - "inputDefinitions": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDefinition" - }, - "description": "Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "ClipTime": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." - }, - "AbsoluteClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "duration", - "description": "The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds." - } - }, - "type": "object", - "required": [ - "time" - ], - "description": "Specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not." - }, - "UtcClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.UtcClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "date-time", - "description": "The time position on the timeline of the input media based on Utc time." - } - }, - "type": "object", - "required": [ - "time" - ], - "description": "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - } - ], - "modelAsString": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - } - ], - "modelAsString": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsString": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "JobInputSequence": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputSequence", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInputClip" - }, - "description": "JobInputs that make up the timeline." - } - }, - "type": "object", - "description": "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform items." - }, - "@odata.nextLink": { - "type": "string", - "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." - } - }, - "type": "object", - "description": "A collection of Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job items." - }, - "@odata.nextLink": { - "type": "string", - "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." - } - }, - "type": "object", - "description": "A collection of Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - }, - "Lists the Transforms filter by name": { - "$ref": "examples/transforms-list-all-filter-by-name.json" - }, - "Lists the Transforms filter by created": { - "$ref": "examples/transforms-list-all-filter-by-created.json" - }, - "Lists the Transforms filter by lastmodified": { - "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - }, - "Lists Jobs for the Transform filter by name.": { - "$ref": "examples/jobs-list-all-filter-by-name.json" - }, - "Lists Jobs for the Transform filter by state equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-eq.json" - }, - "Lists Jobs for the Transform filter by state not equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-ne.json" - }, - "Lists Jobs for the Transform filter by name and state.": { - "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" - }, - "Lists Jobs for the Transform filter by created.": { - "$ref": "examples/jobs-list-all-filter-by-created.json" - }, - "Lists Jobs for the Transform filter by lastmodified.": { - "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - }, - "patch": { - "summary": "Update Job", - "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", - "operationId": "Jobs_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Job": { - "$ref": "examples/jobs-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.json" - } - } - } - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The unique identifier for a Microsoft Azure subscription." - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the Azure subscription.", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name.", - "x-ms-parameter-location": "method" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index be3063568c3c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1264 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-05-01" - }, - "host": "management.azure.com", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "definitions": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsString": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsString": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsString": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "labelReferenceInStreamingPolicy": { - "type": "string", - "description": "Label of Content Key as specified in the Streaming Policy" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this Content Key", - "readOnly": true - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsString": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsString": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator." - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "The StreamingLocatorId of the Streaming Locator." - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "The ContentKeys used by this Streaming Locator." - }, - "alternativeMediaId": { - "type": "string", - "description": "Alternative Media ID of this Streaming Locator" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of asset or account filters which apply to this streaming locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Properties of the Streaming Locator." - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy items." - }, - "@odata.nextLink": { - "type": "string", - "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." - } - }, - "type": "object", - "description": "A collection of StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator items." - }, - "@odata.nextLink": { - "type": "string", - "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." - } - }, - "type": "object", - "description": "A collection of StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.json" - } - } - } - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The unique identifier for a Microsoft Azure subscription." - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the Azure subscription.", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name.", - "x-ms-parameter-location": "method" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json deleted file mode 100644 index ee26c9f47839..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-create.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "newAccountFilter", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json deleted file mode 100644 index 22e72f941e7b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2021-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json deleted file mode 100644 index 9a33532253df..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json deleted file mode 100644 index e9d820098e3b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-list-all.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json deleted file mode 100644 index 9f94447b16b4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accountFilters-update.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json deleted file mode 100644 index 85a2eb610093..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-subscription-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json deleted file mode 100644 index f20cb802fb11..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-create.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "newAssetFilter", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json deleted file mode 100644 index 3189eb92f2a4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json deleted file mode 100644 index c357bdb40303..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json deleted file mode 100644 index fd54a182a51c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-list-all.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "assetFilterWithTimeWindow", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [] - } - }, - { - "name": "assetFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json deleted file mode 100644 index 0afee79eaec5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assetFilters-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json deleted file mode 100644 index 6af60e9880d6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-create.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json deleted file mode 100644 index 0b660ce23da6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2021-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json deleted file mode 100644 index 44c2baae72d2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json deleted file mode 100644 index 4ae5225fb94a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "key": "AAAAAAAAAAAAAAAAAAAAAA==", - "assetFileEncryptionMetadata": [ - { - "initializationVector": "-988929866", - "assetFileName": "AssetFile0", - "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" - }, - { - "initializationVector": "1604993689", - "assetFileName": "AssetFile1", - "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" - }, - { - "initializationVector": "100082635", - "assetFileName": "AssetFile2", - "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json deleted file mode 100644 index eb8050420082..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-all.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", - "created": "2018-08-08T18:29:24.3948982Z", - "lastModified": "2018-08-08T21:29:24.3948982Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json deleted file mode 100644 index e8bddbda1ce5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-by-date.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", - "created": "2018-08-08T18:29:25.0514734Z", - "lastModified": "2018-08-08T21:29:25.0514734Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json deleted file mode 100644 index febc79a65ed4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json deleted file mode 100644 index 28745949f756..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2021-05-01", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json deleted file mode 100644 index e7e5ce5e2dc3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-list-streaming-locators.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "streamingLocators": [ - { - "name": "secureStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9729344Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", - "streamingPolicyName": "secureStreamingPolicy" - }, - { - "name": "clearStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9487636Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", - "streamingPolicyName": "clearStreamingPolicy" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json deleted file mode 100644 index 84d4c366a44b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/assets-update.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:26.503Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 59aa5f068860..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 5f911f2d7e13..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index 8a00520f6f1a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index dd54a7138f85..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json deleted file mode 100644 index f9e9ca3c938e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2021-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json deleted file mode 100644 index b35fbc12d35a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 11e7b9133e76..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json deleted file mode 100644 index 7ab7346a3861..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index 0350ae7f502a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "playRight": { - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index cad7c5d03ebe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json deleted file mode 100644 index b728c02d5a47..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:30.303Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json deleted file mode 100644 index 38506d6513da..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json deleted file mode 100644 index a99b2f6f2089..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-create.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:35:49.7274668Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2021-01-26T13:35:49.7274668Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "BuiltInStandardEncoderPreset_0", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T05:35:49.7274668-08:00", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T05:35:49.7274668-08:00" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json deleted file mode 100644 index c1ceccd3c4e2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json deleted file mode 100644 index 906b05f13a05..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-get-by-name.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index b23ee27b71ee..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2021-01-26T13:35:59.4284656Z and properties/created le 2021-01-26T13:36:09.4284656Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:35:59.4284656Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:35:59.4284656Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.4284656Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.4284656Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:59.4284656Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:59.4284656Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:36:09.4284656Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:36:09.4284656Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.4294655Z", - "endTime": "2021-01-26T13:35:49.4294655Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.4294655Z", - "endTime": "2021-01-26T13:35:49.4294655Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:36:09.4284656Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:36:09.4284656Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index 14e54fb6c427..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2021-01-26T13:35:59.5194661Z and properties/lastmodified le 2021-01-26T13:36:09.5194661Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:36:09.5194661Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:36:09.5194661Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.5194661Z", - "endTime": "2021-01-26T13:35:49.5194661Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.5194661Z", - "endTime": "2021-01-26T13:35:49.5194661Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:36:09.5194661Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:36:09.5194661Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:35:59.5194661Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:35:59.5194661Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.5194661Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.5194661Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:59.5194661Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:59.5194661Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index 37f653ddf614..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.3314672Z", - "endTime": "2021-01-26T13:35:49.3314672Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.3314672Z", - "endTime": "2021-01-26T13:35:49.3314672Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index 7b4670c45ea0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job1' or name eq 'job2'", - "$orderby": "name" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:48.981468Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:48.981468Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index 245a233daccb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.0964684Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.0964684Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.0964684Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.0964684Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index 441a5ef73ca0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state ne Microsoft.Media.JobState'processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job4", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job4-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.2384669Z", - "endTime": "2021-01-26T13:35:49.2384669Z", - "assetName": "job4-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.2384669Z", - "endTime": "2021-01-26T13:35:49.2384669Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json deleted file mode 100644 index 965c0a626b04..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-list-all.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:48.3299535Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:48.3299535Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:48.3299535Z", - "endTime": "2021-01-26T13:35:48.3299535Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:48.3299535Z", - "endTime": "2021-01-26T13:35:48.3299535Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json deleted file mode 100644 index 56e74913d2d5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/jobs-update.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High" - } - } - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:35:50.1029813Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T05:35:50.1029813-08:00" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json deleted file mode 100644 index 1b71c6e20649..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-allocate.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json deleted file mode 100644 index 3937d26bb5e6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-create.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json deleted file mode 100644 index 0299a9e94f0d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-delete.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "endpoints": [], - "accessToken": null - }, - "preview": { - "endpoints": [], - "accessControl": { - "iP": { - "allow": [ - { - "nName": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "previewLocator": null, - "streamingPolicyName": null - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "provisioningState": null, - "resourceState": "Stopped", - "crossSiteAccessPolicies": null, - "useStaticHostname": false, - "streamOptions": [], - "created": "2018-03-02T18:25:07.5748853-08:00", - "lastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json deleted file mode 100644 index a5c61f7ee54c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json deleted file mode 100644 index 451de487dd1d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "useStaticHostname": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json deleted file mode 100644 index 1b71c6e20649..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-reset.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json deleted file mode 100644 index 1b71c6e20649..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json deleted file mode 100644 index 1c6a5733037f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-stop.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json deleted file mode 100644 index 6dbe01782baf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveevent-update.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json deleted file mode 100644 index 7800a7b280d1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "201": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json deleted file mode 100644 index b55e94f09244..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-delete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-05-01" - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json deleted file mode 100644 index 4bc0449df628..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-all.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json deleted file mode 100644 index ef7a817a00e9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-05-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json deleted file mode 100644 index 891cba2e1f8e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json +++ /dev/null @@ -1,589 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", - "description": "Get list of Media Services Streaming Endpoint Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of Egress data, in bytes.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success end to end Latency", - "displayDescription": "The average latency for successful requests in milliseconds.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Count", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json deleted file mode 100644 index e793f73a93db..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-05-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json deleted file mode 100644 index 1fb0b61b1269..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json deleted file mode 100644 index 339931570d79..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "cn1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "cn2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn2", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json deleted file mode 100644 index 401062e60aa6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json deleted file mode 100644 index c5675f4d7858..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "keydelivery", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json deleted file mode 100644 index 6086d1cf6766..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json deleted file mode 100644 index 28fe36cde026..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.4323237Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index dbfe86bea7da..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.7859424Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json deleted file mode 100644 index b648a3cdea83..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "streamingPolicyName": "secureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.6243295Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json deleted file mode 100644 index a5af464367d4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json deleted file mode 100644 index 414769f2a0f0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.1154071Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index d60b7fa7160e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "value": "QpiqeQROdN5xamnfUF2Wdw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "value": "ZjgWhNnqnqcov/h+wrYusw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "value": "FjZ3n3yRcVxRFftdYFbe9g==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index eee3f3f3b3ae..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", - "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index da3972f27be7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json deleted file mode 100644 index 65a32bc6b612..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-locators-list.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9341192Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9544387Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json deleted file mode 100644 index 7947c71fed69..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.1535417Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 4cddc0c3876b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index a3ab693030a9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index 5f65cc5a0919..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.3055712Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index 27cb049ae5cd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2021-05-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.7715696Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json deleted file mode 100644 index c2a8ddeefbc6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2021-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json deleted file mode 100644 index da843ab77d66..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policies-list.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.676067Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2021-05-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json deleted file mode 100644 index f9b501c870cf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.8501486Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json deleted file mode 100644 index 73d18d767393..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-create.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-05-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "201": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Creating", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json deleted file mode 100644 index a662ccd11583..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-05-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "name": "myStreamingEndpoint1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "accessControl": null, - "availabilitySetName": "availableset", - "maxCacheAge": null, - "crossSiteAccessPolicies": null, - "customHostNames": [], - "hostName": null, - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": null, - "resourceState": "Stopped", - "created": "2018-03-02T18:25:09.4897514-08:00", - "lastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json deleted file mode 100644 index df2755c15f53..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index d4ee8f695a67..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-05-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json deleted file mode 100644 index 9138f17a17ea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-05-01", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json deleted file mode 100644 index 7a587e003955..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json deleted file mode 100644 index 7a587e003955..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json deleted file mode 100644 index 2bedf539d4a2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/streamingendpoint-update.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-05-01", - "parameters": { - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json deleted file mode 100644 index 4a8e1bddabda..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "createdTransform", - "parameters": { - "properties": { - "description": "Example Transform to illustrate create and update.", - "outputs": [ - { - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.7499582-08:00", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-01-26T13:35:47.7499582-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.7499582Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.7499582Z" - } - } - }, - "200": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.7499582-08:00", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-01-26T13:35:47.7499582-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.7499582Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.7499582Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json deleted file mode 100644 index d0caff021be8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json deleted file mode 100644 index 342721752ca1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-get-by-name.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "sampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.5799573-08:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-01-26T13:35:47.5799573-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.5799573Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.5799573Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index 798438b5c431..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2021-01-26T13:35:47.4419559Z and properties/created le 2021-01-26T13:35:57.4419559Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:57.4419559-08:00", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-01-26T13:35:57.4419559-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:57.4419559Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:57.4419559Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index ed07fefa0706..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2021-01-26T13:35:47.5239560Z and properties/lastmodified le 2021-01-26T13:35:57.5239560Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:57.523956-08:00", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-01-26T13:35:57.523956-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:57.523956Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:57.523956Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index 5a87ca3f93d5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", - "$orderby": "name desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.1144419-08:00", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-01-26T13:35:47.1144419-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.1144419Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.1144419Z" - } - }, - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.1144419-08:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-01-26T13:35:47.1144419-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.1144419Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.1144419Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json deleted file mode 100644 index 2db5e6b84fde..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-list-all.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:46.2354434-08:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-01-26T13:35:46.2354434-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:46.2354434Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:46.2354434Z" - } - }, - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:46.3584429-08:00", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-01-26T13:35:46.3584429-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:46.3584429Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:46.3584429Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json deleted file mode 100644 index 53fb61147d80..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/transforms-update.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2021-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "transformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "outputs": [ - { - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "transformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:48.1389546-08:00", - "description": "Example transform to illustrate update.", - "lastModified": "2021-01-26T13:35:48.1769542-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:48.1389546Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:48.1769542Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json deleted file mode 100644 index 32f972261524..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/streamingservice.json +++ /dev/null @@ -1,2012 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Live event and streaming endpoint management APIs", - "version": "2021-05-01" - }, - "host": "management.azure.com", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "Impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List live events", - "description": "Lists all the live events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets properties of a live event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a new live event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates settings on an existing live event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live event properties needed for patch.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a live event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Allocate resources for a live event", - "description": "A live event is in StandBy state after allocation completes, and is ready to start.", - "operationId": "LiveEvents_Allocate", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Allocate a LiveEvent": { - "$ref": "examples/liveevent-allocate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "A live event in Stopped or StandBy state will be in Running state after the start operation completes.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops a running live event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected. ", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the live outputs of a live event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a live output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a new live output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the streaming endpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all streaming endpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a streaming endpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a streaming endpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a streaming endpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a streaming endpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoint" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing streaming endpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a streaming endpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a streaming endpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a streaming endpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a streaming endpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a streaming endpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "./Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output." - } - }, - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "LiveOutputProperties": { - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the live output." - }, - "assetName": { - "type": "string", - "description": "The asset that the live output will write to." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The initial timestamp that the live output will start at, any content before this value will not be archived." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time the live output." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The time the live output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live output." - }, - "resourceState": { - "description": "The resource state of the live output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "values": [ - { - "value": "Creating", - "description": "Live output is being created. No content is archived in the asset until the live output is in running state." - }, - { - "value": "Running", - "description": "Live output is running and archiving live streaming content to the asset if there is valid input from a contribution encoder." - }, - { - "value": "Deleting", - "description": "Live output is being deleted. The live asset is being converted from live to on-demand asset. Any streaming URLs created on the live output asset continue to work." - } - ], - "modelAsString": true - } - } - }, - "description": "The JSON object that contains the properties required to create a live output." - }, - "LiveOutput": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "Live output properties." - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List LiveOutput operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The live event endpoint." - }, - "LiveEventInputAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for live event input." - }, - "LiveEventInput": { - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The input protocol for the live event. This is specified at creation time and cannot be updated.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "values": [ - { - "value": "FragmentedMP4", - "description": "Smooth Streaming input will be sent by the contribution encoder to the live event." - }, - { - "value": "RTMP", - "description": "RTMP input will be sent by the contribution encoder to the live event." - } - ], - "modelAsString": true - } - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventInputAccessControl", - "description": "Access control for live event input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events." - }, - "accessToken": { - "type": "string", - "description": "A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The input endpoints for the live event." - } - }, - "description": "The live event input." - }, - "IPRange": { - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for the live event preview endpoint." - }, - "LiveEventPreview": { - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The endpoints for preview. Do not share the preview URL with the live event audience." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for live event preview." - }, - "previewLocator": { - "type": "string", - "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated." - }, - "alternativeMediaId": { - "type": "string", - "description": "An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "Live event preview settings." - }, - "LiveEventEncoding": { - "properties": { - "encodingType": { - "type": "string", - "description": "Live event type. When encodingType is set to None, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created.", - "enum": [ - "None", - "Standard", - "Premium1080p" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "values": [ - { - "value": "None", - "description": "A contribution live encoder sends a multiple bitrate stream. The ingested stream passes through the live event without any further processing. It is also called the pass-through mode." - }, - { - "value": "Standard", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution." - }, - { - "value": "Premium1080p", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution." - } - ], - "modelAsString": true - } - }, - "presetName": { - "type": "string", - "description": "The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respects the output resolution specified in the encoding preset without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "Specifies how the input video will be resized to fit the desired output resolution(s). Default is None" - }, - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events." - } - }, - "description": "Specifies the live event type and optional encoding settings for encoding live events." - }, - "LiveEventInputTrackSelection": { - "properties": { - "property": { - "type": "string", - "description": "Property name to select. This property is reserved for future use, any value set on this property will be ignored." - }, - "operation": { - "type": "string", - "description": "Comparing operation. This property is reserved for future use, any value set on this property will be ignored." - }, - "value": { - "type": "string", - "description": "Property value to select. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "A track selection condition. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventOutputTranscriptionTrack": { - "required": [ - "trackName" - ], - "properties": { - "trackName": { - "type": "string", - "description": "The output track name. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventTranscription": { - "properties": { - "language": { - "type": "string", - "description": "Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages." - }, - "inputTrackSelection": { - "type": "array", - "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.", - "items": { - "$ref": "#/definitions/LiveEventInputTrackSelection" - } - }, - "outputTranscriptionTrack": { - "type": "object", - "$ref": "#/definitions/LiveEventOutputTranscriptionTrack", - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes the transcription tracks in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "CrossSiteAccessPolicies": { - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates whether live outputs are automatically deleted when live event is being stopped. Deleting live outputs do not delete the underlying assets." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "A description for the live event." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "Live event input settings. It defines how the live event receives input from a contribution encoder." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used." - }, - "transcriptions": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTranscription" - }, - "description": "Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.", - "enum": [ - "Stopped", - "Allocating", - "StandBy", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "values": [ - { - "value": "Stopped", - "description": "This is the initial state of the live event after creation (unless autostart was set to true.) No billing occurs in this state. In this state, the live event properties can be updated but streaming is not allowed." - }, - { - "value": "Allocating", - "description": "Allocate action was called on the live event and resources are being provisioned for this live event. Once allocation completes successfully, the live event will transition to StandBy state." - }, - { - "value": "StandBy", - "description": "Live event resources have been provisioned and is ready to start. Billing occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed during this state." - }, - { - "value": "Starting", - "description": "The live event is being started and resources are being allocated. No billing occurs in this state. Updates or streaming are not allowed during this state. If an error occurs, the live event returns to the Stopped state." - }, - { - "value": "Running", - "description": "The live event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop on the live event resource to halt further billing." - }, - { - "value": "Stopping", - "description": "The live event is being stopped and resources are being de-provisioned. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - }, - { - "value": "Deleting", - "description": "The live event is being deleted. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "Live event cross site access policies." - }, - "useStaticHostname": { - "type": "boolean", - "description": "Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state" - }, - "hostnamePrefix": { - "type": "string", - "description": "When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "values": [ - { - "value": "Default", - "description": "Live streaming with no special latency optimizations." - }, - { - "value": "LowLatency", - "description": "The live event provides lower end to end latency by reducing its internal buffers. This could result in more client buffering during playback if network bandwidth is low." - } - ], - "modelAsString": true - } - }, - "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time for the live event" - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The last modified time of the live event." - } - }, - "description": "The live event properties." - }, - "LiveEvent": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The live event properties." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "The live event." - }, - "LiveEventListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The expiration time of the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the streaming endpoint." - } - }, - "description": "Streaming endpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the streaming endpoint." - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "required": [ - "scaleUnits" - ], - "properties": { - "description": { - "type": "string", - "description": "The streaming endpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units. Use the Scale operation to adjust this value." - }, - "availabilitySetName": { - "type": "string", - "description": "This feature is deprecated, do not set a value for this property." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the streaming endpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the streaming endpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The streaming endpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the streaming endpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the streaming endpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "values": [ - { - "value": "Stopped", - "description": "The initial state of a streaming endpoint after creation. Content is not ready to be streamed from this endpoint." - }, - { - "value": "Starting", - "description": "The streaming endpoint is transitioning to the running state." - }, - { - "value": "Running", - "description": "The streaming endpoint is running. It is able to stream content to clients" - }, - { - "value": "Stopping", - "description": "The streaming endpoint is transitioning to the stopped state." - }, - { - "value": "Deleting", - "description": "The streaming endpoint is being deleted." - }, - { - "value": "Scaling", - "description": "The streaming endpoint is increasing or decreasing scale units." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The streaming endpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was last modified." - } - }, - "description": "The streaming endpoint properties." - }, - "StreamingEndpoint": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The streaming endpoint properties." - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "The streaming endpoint." - }, - "StreamingEndpointListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of streaming endpoints." - } - }, - "description": "The streaming endpoint list result.", - "title": "StreamingEndpointListResult" - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the live event, maximum length is 32.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if the resource should be automatically started on creation.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the live output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the streaming endpoint, maximum length is 24.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/readme.md b/specification/mediaservices/resource-manager/readme.md index 8dbf5b40285e..2600fa39b64f 100644 --- a/specification/mediaservices/resource-manager/readme.md +++ b/specification/mediaservices/resource-manager/readme.md @@ -24,33 +24,33 @@ To see additional help and options, run: These are the global settings for the MediaServices API. -``` yaml +```yaml openapi-type: arm tag: package-2021-05 opt-in-extensible-enums: true ``` - ### Tag: package-2021-05 These settings apply only when `--tag=package-2021-05` is specified on the command line. ```yaml $(tag) == 'package-2021-05' input-file: - - Microsoft.Media/stable/2021-05-01/AccountFilters.json + - Microsoft.Media/stable/2020-05-01/AccountFilters.json - Microsoft.Media/stable/2021-05-01/Accounts.json - - Microsoft.Media/stable/2021-05-01/AssetsAndAssetFilters.json - - Microsoft.Media/stable/2021-05-01/Common.json - - Microsoft.Media/stable/2021-05-01/ContentKeyPolicies.json - - Microsoft.Media/stable/2021-05-01/Encoding.json - - Microsoft.Media/stable/2021-05-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/stable/2021-05-01/streamingservice.json + - Microsoft.Media/stable/2020-05-01/AssetsAndAssetFilters.json + - Microsoft.Media/stable/2020-05-01/ContentKeyPolicies.json + - Microsoft.Media/stable/2020-05-01/Encoding.json + - Microsoft.Media/stable/2020-05-01/StreamingPoliciesAndStreamingLocators.json + - Microsoft.Media/stable/2020-05-01/streamingservice.json + - Microsoft.Media/stable/2020-05-01/Common.json ``` + ### Tag: package-2020-05 These settings apply only when `--tag=package-2020-05` is specified on the command line. -``` yaml $(tag) == 'package-2020-05' +```yaml $(tag) == 'package-2020-05' input-file: - Microsoft.Media/stable/2020-05-01/AccountFilters.json - Microsoft.Media/stable/2020-05-01/Accounts.json @@ -70,7 +70,7 @@ directive: These settings apply only when `--tag=package-2020-02-preview` is specified on the command line. -``` yaml $(tag) == 'package-2020-02-preview' +```yaml $(tag) == 'package-2020-02-preview' input-file: - Microsoft.Media/stable/2018-07-01/AccountFilters.json - Microsoft.Media/stable/2018-07-01/Accounts.json @@ -86,7 +86,7 @@ input-file: These settings apply only when `--tag=package-2019-09-preview` is specified on the command line. -``` yaml $(tag) == 'package-2019-09-preview' +```yaml $(tag) == 'package-2019-09-preview' input-file: - Microsoft.Media/stable/2018-07-01/AccountFilters.json - Microsoft.Media/stable/2018-07-01/Accounts.json @@ -102,7 +102,7 @@ input-file: These settings apply only when `--tag=package-2019-05-preview` is specified on the command line. -``` yaml $(tag) == 'package-2019-05-preview' +```yaml $(tag) == 'package-2019-05-preview' input-file: - Microsoft.Media/preview/2019-05-01-preview/AccountFilters.json - Microsoft.Media/preview/2019-05-01-preview/Accounts.json @@ -118,7 +118,7 @@ input-file: These settings apply only when `--tag=package-2018-07` is specified on the command line. -``` yaml $(tag) == 'package-2018-07' +```yaml $(tag) == 'package-2018-07' input-file: - Microsoft.Media/stable/2018-07-01/AccountFilters.json - Microsoft.Media/stable/2018-07-01/Accounts.json @@ -134,37 +134,37 @@ input-file: These settings apply only when `--tag=package-2015-10` is specified on the command line. -``` yaml $(tag) == 'package-2015-10' +```yaml $(tag) == 'package-2015-10' input-file: -- Microsoft.Media/stable/2015-10-01/media.json + - Microsoft.Media/stable/2015-10-01/media.json ``` ### Tag: package-2018-03-preview These settings apply only when `--tag=package-2018-03-preview` is specified on the command line. -``` yaml $(tag) == 'package-2018-03-preview' +```yaml $(tag) == 'package-2018-03-preview' input-file: -- Microsoft.Media/preview/2018-03-30-preview/Accounts.json -- Microsoft.Media/preview/2018-03-30-preview/Assets.json -- Microsoft.Media/preview/2018-03-30-preview/ContentKeyPolicies.json -- Microsoft.Media/preview/2018-03-30-preview/Encoding.json -- Microsoft.Media/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json -- Microsoft.Media/preview/2018-03-30-preview/streamingservice.json + - Microsoft.Media/preview/2018-03-30-preview/Accounts.json + - Microsoft.Media/preview/2018-03-30-preview/Assets.json + - Microsoft.Media/preview/2018-03-30-preview/ContentKeyPolicies.json + - Microsoft.Media/preview/2018-03-30-preview/Encoding.json + - Microsoft.Media/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json + - Microsoft.Media/preview/2018-03-30-preview/streamingservice.json ``` ### Tag: package-2018-06-preview These settings apply only when `--tag=package-2018-06-preview` is specified on the command line. -``` yaml $(tag) == 'package-2018-06-preview' +```yaml $(tag) == 'package-2018-06-preview' input-file: -- Microsoft.Media/preview/2018-06-01-preview/Accounts.json -- Microsoft.Media/preview/2018-06-01-preview/Assets.json -- Microsoft.Media/preview/2018-06-01-preview/ContentKeyPolicies.json -- Microsoft.Media/preview/2018-06-01-preview/Encoding.json -- Microsoft.Media/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json -- Microsoft.Media/preview/2018-06-01-preview/streamingservice.json + - Microsoft.Media/preview/2018-06-01-preview/Accounts.json + - Microsoft.Media/preview/2018-06-01-preview/Assets.json + - Microsoft.Media/preview/2018-06-01-preview/ContentKeyPolicies.json + - Microsoft.Media/preview/2018-06-01-preview/Encoding.json + - Microsoft.Media/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json + - Microsoft.Media/preview/2018-06-01-preview/streamingservice.json ``` --- @@ -176,7 +176,7 @@ input-file: This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself. -``` yaml $(swagger-to-sdk) +```yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-sdk-for-python @@ -192,12 +192,12 @@ swagger-to-sdk: - node sdkauto_afterscript.js mediaservices/resource-manager ``` -## C# +## C These settings apply only when `--csharp` is specified on the command line. Please also specify `--csharp-sdks-folder=`. -``` yaml $(csharp) +```yaml $(csharp) csharp: # last generated from commit 3586e2989d502434c4f607dd38d40e46aabede5c azure-arm: true @@ -222,7 +222,7 @@ See configuration in [readme.java.md](./readme.java.md) ## Suppression -``` yaml +```yaml directive: - suppress: OBJECT_MISSING_REQUIRED_PROPERTY from: Encoding.json From 19b4c7e0787dc5c143cea87af185b0a64b63f9d3 Mon Sep 17 00:00:00 2001 From: giakas Date: Fri, 26 Mar 2021 12:11:01 -0700 Subject: [PATCH 05/10] add missing example files --- .../private-endpoint-connection-delete.json | 12 +++++ ...ivate-endpoint-connection-get-by-name.json | 28 +++++++++++ .../private-endpoint-connection-list.json | 46 +++++++++++++++++++ .../private-endpoint-connection-put.json | 36 +++++++++++++++ .../private-link-resources-get-by-name.json | 24 ++++++++++ .../examples/private-link-resources-list.json | 27 +++++++++++ 6 files changed, 173 insertions(+) create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json new file mode 100644 index 000000000000..ddc3608e5cab --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "connectionName1", + "api-version": "2020-05-01" + }, + "responses": { + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json new file mode 100644 index 000000000000..859c2857b95a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "connectionName1", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "connectionName1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", + "type": "Microsoft.Media/mediaservices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Test description." + }, + "privateEndpoint": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json new file mode 100644 index 000000000000..785b32db5fb0 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-list.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "cn1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn1", + "type": "Microsoft.Media/mediaservices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Test description" + }, + "privateEndpoint": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" + } + } + }, + { + "name": "cn2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn2", + "type": "Microsoft.Media/mediaservices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Test description" + }, + "privateEndpoint": { + "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" + } + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json new file mode 100644 index 000000000000..03ee510a3286 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-endpoint-connection-put.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "connectionName1", + "api-version": "2020-05-01", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Test description." + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "connectionName1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", + "type": "Microsoft.Media/mediaservices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Test description." + }, + "privateEndpoint": { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json new file mode 100644 index 000000000000..7ef5ee153fcd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-get-by-name.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "keydelivery", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "name": "keydelivery", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", + "type": "Microsoft.Media/mediaservices/privateLinkResources", + "properties": { + "groupId": "keydelivery", + "requiredMembers": [ + "keydelivery" + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json new file mode 100644 index 000000000000..5aa331ad27fd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/private-link-resources-list.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "keydelivery", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", + "type": "Microsoft.Media/mediaservices/privateLinkResources", + "properties": { + "groupId": "keydelivery", + "requiredMembers": [ + "keydelivery" + ] + } + } + ] + } + } + } +} From bd836f51687622813450486c97906fc4beb28204 Mon Sep 17 00:00:00 2001 From: giakas Date: Fri, 26 Mar 2021 12:16:04 -0700 Subject: [PATCH 06/10] fix the api version and missing example files --- .../stable/2021-05-01/Accounts.json | 2 +- .../examples/operations-list-all.json | 589 ++++++++++++++++++ 2 files changed, 590 insertions(+), 1 deletion(-) create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json index 01fd8dc61cd8..fe73f91bcd26 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" + "version": "2021-05-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json new file mode 100644 index 000000000000..530eeb904efb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/operations-list-all.json @@ -0,0 +1,589 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Media/register/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Microsoft Media Services", + "operation": "Registers the Media Services Resource Provider", + "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" + } + }, + { + "name": "Microsoft.Media/unregister/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Microsoft Media Services", + "operation": "Unregisters the Media Services Resource Provider", + "description": "Unregisters the subscription for the Media Services resource provider" + } + }, + { + "name": "Microsoft.Media/checknameavailability/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Microsoft Media Services", + "operation": "Check Name Availability", + "description": "Checks if a Media Services account name is available" + } + }, + { + "name": "Microsoft.Media/operations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Available Operations", + "operation": "Get Available Operations", + "description": "Get Available Operations" + } + }, + { + "name": "Microsoft.Media/mediaservices/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Read Media Services Account", + "description": "Read any Media Services Account" + } + }, + { + "name": "Microsoft.Media/mediaservices/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Create or Update Media Services Account", + "description": "Create or Update any Media Services Account" + } + }, + { + "name": "Microsoft.Media/mediaservices/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Delete Media Services Account", + "description": "Delete any Media Services Account" + } + }, + { + "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Synchronize Storage Keys", + "description": "Synchronize the Storage Keys for an attached Azure Storage account" + } + }, + { + "name": "Microsoft.Media/mediaservices/eventGridFilters/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Event Grid Filter", + "operation": "Read Event Grid Filter", + "description": "Read any Event Grid Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/eventGridFilters/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Event Grid Filter", + "operation": "Create or Update Event Grid Filter", + "description": "Create or Update any Event Grid Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Event Grid Filter", + "operation": "Delete Event Grid Filter", + "description": "Delete any Event Grid Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "Read Asset", + "description": "Read any Asset" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "Create or Update Asset", + "description": "Create or Update any Asset" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "Delete Asset", + "description": "Delete any Asset" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "List Asset Container SAS URLs", + "description": "List Asset Container SAS URLs" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "Get Asset Encryption Key", + "description": "Get Asset Encryption Key" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingPolicies/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Policy", + "operation": "Read Streaming Policy", + "description": "Read any Streaming Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingPolicies/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Policy", + "operation": "Create or Update Streaming Policy", + "description": "Create or Update any Streaming Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Policy", + "operation": "Delete Streaming Policy", + "description": "Delete any Streaming Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "Read Streaming Locator", + "description": "Read any Streaming Locator" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "Create or Update Streaming Locator", + "description": "Create or Update any Streaming Locator" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "Delete Streaming Locator", + "description": "Delete any Streaming Locator" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "List Content Keys", + "description": "List Content Keys" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Locator", + "operation": "List Paths", + "description": "List Paths" + } + }, + { + "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Content Key Policy", + "operation": "Read Content Key Policy", + "description": "Read any Content Key Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Content Key Policy", + "operation": "Create or Update Content Key Policy", + "description": "Create or Update any Content Key Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Content Key Policy", + "operation": "Delete Content Key Policy", + "description": "Delete any Content Key Policy" + } + }, + { + "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Content Key Policy", + "operation": "Get Policy Properties With Secrets", + "description": "Get Policy Properties With Secrets" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Transform", + "operation": "Read Transform", + "description": "Read any Transform" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Transform", + "operation": "Create or Update Transform", + "description": "Create or Update any Transform" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Transform", + "operation": "Delete Transform", + "description": "Delete any Transform" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/jobs/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Job", + "operation": "Read Job", + "description": "Read any Job" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/jobs/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Job", + "operation": "Create or Update Job", + "description": "Create or Update any Job" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Job", + "operation": "Delete Job", + "description": "Delete any Job" + } + }, + { + "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Job", + "operation": "Cancel Job", + "description": "Cancel Job" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Read Streaming Endpoint", + "description": "Read any Streaming Endpoint" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Create or Update Streaming Endpoint", + "description": "Create or Update any Streaming Endpoint" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Delete Streaming Endpoint", + "description": "Delete any Streaming Endpoint" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Start Streaming Endpoint Operation", + "description": "Start any Streaming Endpoint Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Stop Streaming Endpoint Operation", + "description": "Stop any Streaming Endpoint Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint", + "operation": "Scale Streaming Endpoint Operation", + "description": "Scale any Streaming Endpoint Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoints", + "operation": "Read diagnostic setting", + "description": "Gets the diagnostic setting for the resource." + }, + "origin": "system" + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoints", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource." + }, + "origin": "system" + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoints", + "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", + "description": "Get list of Media Services Streaming Endpoint Metrics definitions." + }, + "origin": "system", + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "Egress", + "displayName": "Egress", + "displayDescription": "The amount of Egress data, in bytes.", + "unit": "Bytes", + "aggregationType": "Total", + "dimensions": [ + { + "name": "OutputFormat", + "displayName": "Output Format", + "toBeExportedForShoebox": true + } + ] + }, + { + "name": "SuccessE2ELatency", + "displayName": "Success end to end Latency", + "displayDescription": "The average latency for successful requests in milliseconds.", + "unit": "Milliseconds", + "aggregationType": "Average", + "dimensions": [ + { + "name": "OutputFormat", + "displayName": "Output Format", + "toBeExportedForShoebox": true + } + ] + }, + { + "name": "Requests", + "displayName": "Requests", + "displayDescription": "Requests to a Streaming Endpoint.", + "unit": "Count", + "aggregationType": "Count", + "dimensions": [ + { + "name": "OutputFormat", + "displayName": "Output Format", + "toBeExportedForShoebox": true + }, + { + "name": "HttpStatusCode", + "displayName": "HTTP Status Code", + "toBeExportedForShoebox": true + }, + { + "name": "ErrorCode", + "displayName": "Error Code", + "toBeExportedForShoebox": false + } + ] + } + ] + } + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Read Live Event", + "description": "Read any Live Event" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Create or Update Live Event", + "description": "Create or Update any Live Event" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Delete Live Event", + "description": "Delete any Live Event" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/start/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Start Live Event Operation", + "description": "Start any Live Event Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Stop Live Event Operation", + "description": "Stop any Live Event Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Reset Live Event Operation", + "description": "Reset any Live Event Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Output", + "operation": "Read Live Output", + "description": "Read any Live Output" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Output", + "operation": "Create or Update Live Output", + "description": "Create or Update any Live Output" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Output", + "operation": "Delete Live Output", + "description": "Delete any Live Output" + } + }, + { + "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Streaming Endpoint Operation", + "operation": "Read Streaming Endpoint Operation", + "description": "Read any Streaming Endpoint Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveEventOperations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event Operation", + "operation": "Read Live Event Operation", + "description": "Read any Live Event Operation" + } + }, + { + "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Output Operation", + "operation": "Read Live Output Operation", + "description": "Read any Live Output Operation" + } + }, + { + "name": "Microsoft.Media/locations/checkNameAvailability/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Microsoft Media Services", + "operation": "Check Name Availability", + "description": "Checks if a Media Services account name is available" + } + } + ] + } + } + } +} From aa64d28536b749ba0f3ac9f0af69b6095f5b85b6 Mon Sep 17 00:00:00 2001 From: giakas Date: Mon, 29 Mar 2021 15:24:02 -0700 Subject: [PATCH 07/10] Create a new Update definition to fix the "R2016 - PatchBodyParametersSchema " --- .../stable/2021-05-01/Accounts.json | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json index fe73f91bcd26..5971fa3f49ec 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json @@ -485,6 +485,33 @@ }, "type": "object" }, + "MediaServiceUpdate": { + "description": "A Media Services account update.", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "properties": { + "$ref": "#/definitions/MediaServiceProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "#/definitions/MediaServiceIdentity", + "description": "The Managed Identity for the Media Services account." + } + }, + "type": "object" + }, "ListEdgePoliciesInput": { "properties": { "deviceId": { @@ -945,7 +972,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MediaService" + "$ref": "#/definitions/MediaServiceUpdate" } }, "default": { From b043ed671f95e6b8f6bdd6f3b714608c84f5eabb Mon Sep 17 00:00:00 2001 From: giakas Date: Mon, 29 Mar 2021 15:28:19 -0700 Subject: [PATCH 08/10] fix respnse --- .../Microsoft.Media/stable/2021-05-01/Accounts.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json index 5971fa3f49ec..c52aff5fcef9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/Accounts.json @@ -972,7 +972,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MediaServiceUpdate" + "$ref": "#/definitions/MediaService" } }, "default": { @@ -1001,7 +1001,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/MediaService" + "$ref": "#/definitions/MediaServiceUpdate" }, "description": "The request parameters" }, From 9cb986ee8eb42aaf2dd37d204d65e7878980a67e Mon Sep 17 00:00:00 2001 From: giakas Date: Mon, 29 Mar 2021 15:33:54 -0700 Subject: [PATCH 09/10] fix update example --- .../stable/2021-05-01/examples/accounts-update.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json index cb54c2b3c45c..6fe37b02c675 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-05-01/examples/accounts-update.json @@ -5,7 +5,6 @@ "accountName": "contososports", "api-version": "2021-05-01", "parameters": { - "location": "South Central US", "tags": { "key1": "value3" } From b337fb3d253b765a8d8de2b99d82eb0ddd1282c3 Mon Sep 17 00:00:00 2001 From: giakas Date: Thu, 1 Apr 2021 09:19:32 -0700 Subject: [PATCH 10/10] add the 2016 supression for new tag as well. --- specification/mediaservices/resource-manager/readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/mediaservices/resource-manager/readme.md b/specification/mediaservices/resource-manager/readme.md index 2600fa39b64f..340a38cc4bd0 100644 --- a/specification/mediaservices/resource-manager/readme.md +++ b/specification/mediaservices/resource-manager/readme.md @@ -44,6 +44,10 @@ input-file: - Microsoft.Media/stable/2020-05-01/StreamingPoliciesAndStreamingLocators.json - Microsoft.Media/stable/2020-05-01/streamingservice.json - Microsoft.Media/stable/2020-05-01/Common.json +directive: + - suppress: R2016 + where: $.definitions.TrackedResource.required + reason: location is a required property for our patch calls ``` ### Tag: package-2020-05