From fc98f4211010a10847e00d1e0592687525ec8053 Mon Sep 17 00:00:00 2001 From: StephanieHan Date: Thu, 21 Jul 2022 12:33:16 -0700 Subject: [PATCH 1/7] Adds base for updating Microsoft.Media from version stable/2021-11-01 to version 2022-08-01 --- .../stable/2022-08-01/AccountFilters.json | 518 +++ .../stable/2022-08-01/Accounts.json | 1821 ++++++++++ .../2022-08-01/AssetsAndAssetFilters.json | 2023 +++++++++++ .../stable/2022-08-01/ContentKeyPolicies.json | 1175 ++++++ .../stable/2022-08-01/Encoding.json | 3233 +++++++++++++++++ ...StreamingPoliciesAndStreamingLocators.json | 1268 +++++++ .../examples/accountFilters-create.json | 171 + .../examples/accountFilters-delete.json | 13 + .../examples/accountFilters-get-by-name.json | 55 + .../examples/accountFilters-list-all.json | 111 + .../examples/accountFilters-update.json | 81 + .../accounts-check-name-availability.json | 21 + .../2022-08-01/examples/accounts-delete.json | 12 + .../examples/accounts-get-by-name.json | 94 + .../examples/accounts-list-all-accounts.json | 148 + .../accounts-list-media-edge-policies.json | 27 + ...counts-subscription-list-all-accounts.json | 75 + .../examples/accounts-sync-storage-keys.json | 14 + .../examples/asset-tracks-create.json | 58 + .../examples/asset-tracks-delete.json | 14 + .../examples/asset-tracks-get-by-name.json | 29 + .../examples/asset-tracks-list-all.json | 74 + .../asset-tracks-operation-result-by-id.json | 31 + ...ation-status-by-id-non-terminal-state.json | 21 + ...on-status-by-id-terminal-state-failed.json | 26 + ...operation-status-by-id-terminal-state.json | 22 + .../examples/asset-tracks-update-data.json | 18 + .../examples/asset-tracks-update.json | 41 + .../examples/assetFilters-create.json | 172 + .../examples/assetFilters-delete.json | 14 + .../examples/assetFilters-get-by-name.json | 67 + .../examples/assetFilters-list-all.json | 131 + .../examples/assetFilters-update.json | 82 + .../2022-08-01/examples/assets-create.json | 49 + .../2022-08-01/examples/assets-delete.json | 13 + .../examples/assets-get-by-name.json | 27 + .../examples/assets-get-encryption-keys.json | 33 + .../2022-08-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 + .../2022-08-01/examples/assets-update.json | 32 + .../examples/async-accounts-create.json | 212 ++ .../examples/async-accounts-update.json | 97 + ...-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 | 62 + ...content-key-policies-get-with-secrets.json | 57 + .../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 + .../2022-08-01/examples/jobs-cancel.json | 13 + .../2022-08-01/examples/jobs-create.json | 70 + .../2022-08-01/examples/jobs-delete.json | 14 + .../2022-08-01/examples/jobs-get-by-name.json | 54 + .../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 + .../2022-08-01/examples/jobs-list-all.json | 143 + .../2022-08-01/examples/jobs-update.json | 71 + .../examples/liveevent-allocate.json | 13 + .../2022-08-01/examples/liveevent-create.json | 177 + .../2022-08-01/examples/liveevent-delete.json | 67 + .../examples/liveevent-list-all.json | 75 + .../examples/liveevent-list-by-name.json | 71 + .../2022-08-01/examples/liveevent-reset.json | 18 + .../2022-08-01/examples/liveevent-start.json | 18 + .../2022-08-01/examples/liveevent-stop.json | 21 + .../2022-08-01/examples/liveevent-update.json | 170 + .../examples/liveoutput-create.json | 65 + .../examples/liveoutput-delete.json | 15 + .../examples/liveoutput-list-all.json | 36 + .../examples/liveoutput-list-by-name.json | 33 + .../media-service-operation-result-by-id.json | 100 + ...tatus-by-id-non-terminal-state-failed.json | 24 + ...ation-status-by-id-non-terminal-state.json | 20 + ...operation-status-by-id-terminal-state.json | 20 + .../examples/operations-list-all.json | 1539 ++++++++ .../private-endpoint-connection-delete.json | 13 + ...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 | 26 + .../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 | 29 + .../examples/streamingendpoint-create.json | 158 + .../examples/streamingendpoint-delete.json | 49 + .../examples/streamingendpoint-list-all.json | 65 + .../streamingendpoint-list-by-name.json | 39 + .../examples/streamingendpoint-list-skus.json | 29 + .../examples/streamingendpoint-scale.json | 21 + .../examples/streamingendpoint-start.json | 18 + .../examples/streamingendpoint-stop.json | 18 + .../examples/streamingendpoint-update.json | 83 + .../examples/transforms-create.json | 84 + .../examples/transforms-delete.json | 13 + .../examples/transforms-get-by-name.json | 41 + ...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/2022-08-01/streamingservice.json | 2189 +++++++++++ 127 files changed, 21235 insertions(+) create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-put.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json new file mode 100644 index 000000000000..9a051070efbf --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json @@ -0,0 +1,518 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2021-11-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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "description": "The tracks selection conditions." + } + }, + "type": "object", + "description": "The Media Filter properties." + }, + "AccountFilter": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/MediaFilterProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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/2022-08-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json new file mode 100644 index 000000000000..46b7155e4b59 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json @@ -0,0 +1,1821 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2021-11-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": { + "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" + }, + "x-ms-identifiers": [ + "name" + ], + "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", + "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" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of log specifications.", + "readOnly": true + }, + "metricSpecifications": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "x-ms-identifiers": [ + "name" + ], + "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": { + "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." + }, + "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", + "required": [ + "name" + ], + "description": "An operation." + }, + "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." + }, + "identity": { + "$ref": "#/definitions/ResourceIdentity", + "description": "The storage account identity." + }, + "status": { + "type": "string", + "description": "The current status of the storage account mapping.", + "readOnly": true + } + }, + "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." + }, + "keyDelivery": { + "$ref": "#/definitions/KeyDelivery", + "description": "The Key Delivery properties for Media Services account." + }, + "publicNetworkAccess": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "values": [ + { + "value": "Enabled", + "description": "Public network access is enabled." + }, + { + "value": "Disabled", + "description": "Public network access is disabled." + } + ], + "modelAsString": true + }, + "description": "Whether or not public network access is allowed for resources under the Media Services account.", + "x-nullable": true + }, + "provisioningState": { + "type": "string", + "enum": [ + "Failed", + "InProgress", + "Succeeded" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "values": [ + { + "value": "Failed", + "description": "Provisioning state failed." + }, + { + "value": "InProgress", + "description": "Provisioning state in progress." + }, + { + "value": "Succeeded", + "description": "Provisioning state succeeded." + } + ], + "modelAsString": true + }, + "description": "Provisioning state of the Media Services account.", + "readOnly": true, + "x-nullable": false + }, + "privateEndpointConnections": { + "items": { + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "description": "The Private Endpoint Connections created for the Media Service account.", + "type": "array", + "readOnly": true + } + }, + "type": "object", + "description": "Properties of the Media Services account." + }, + "MediaService": { + "description": "A Media Services account.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/MediaServiceProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + }, + "identity": { + "$ref": "#/definitions/MediaServiceIdentity", + "description": "The Managed Identity for the Media Services account." + } + }, + "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": { + "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", + "description": "The identity type." + }, + "principalId": { + "type": "string", + "format": "uuid", + "description": "The Principal ID of the identity.", + "readOnly": true, + "x-nullable": true + }, + "tenantId": { + "type": "string", + "format": "uuid", + "description": "The Tenant ID of the identity.", + "readOnly": true, + "x-nullable": true + }, + "userAssignedIdentities": { + "$ref": "#/definitions/UserAssignedManagedIdentities", + "description": "The user assigned managed identities." + } + }, + "type": "object", + "required": [ + "type" + ] + }, + "UserAssignedManagedIdentity": { + "properties": { + "clientId": { + "type": "string", + "format": "uuid", + "description": "The client ID.", + "readOnly": true, + "x-nullable": true + }, + "principalId": { + "type": "string", + "format": "uuid", + "description": "The principal ID.", + "readOnly": true, + "x-nullable": true + } + }, + "type": "object" + }, + "UserAssignedManagedIdentities": { + "type": "object", + "description": "The User Assigned Managed Identities.", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedManagedIdentity" + } + }, + "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" + }, + "ResourceIdentity": { + "properties": { + "userAssignedIdentity": { + "type": "string", + "description": "The user assigned managed identity's ARM ID to use when accessing a resource." + }, + "useSystemAssignedIdentity": { + "type": "boolean", + "description": "Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity." + } + }, + "type": "object", + "required": [ + "useSystemAssignedIdentity" + ] + }, + "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." + }, + "identity": { + "$ref": "#/definitions/ResourceIdentity", + "description": "The Key Vault identity." + }, + "status": { + "type": "string", + "description": "The current status of the Key Vault mapping.", + "readOnly": true + } + }, + "type": "object", + "required": [ + "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" + }, + "MediaServiceOperationStatus": { + "properties": { + "name": { + "type": "string", + "description": "Operation identifier." + }, + "id": { + "type": "string", + "description": "Operation resource ID." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Operation start time." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "Operation end time." + }, + "status": { + "type": "string", + "description": "Operation status." + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", + "x-nullable": true + } + }, + "type": "object", + "required": [ + "name", + "status" + ], + "description": "Status of media service operation." + }, + "OperationCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "A collection of Operation items." + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + } + ], + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + }, + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/MediaService" + }, + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-long-running-operation": true, + "x-ms-examples": { + "Create a Media Services account": { + "$ref": "examples/async-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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/MediaService" + }, + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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/MediaServiceUpdate" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a Media Services accounts": { + "$ref": "examples/async-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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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 all 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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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": "List supported group IDs.", + "operationId": "PrivateLinkResources_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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 details of a group ID.", + "operationId": "PrivateLinkResources_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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": "List private endpoint connections.", + "description": "List all private endpoint connections.", + "operationId": "PrivateEndpointConnections_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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 the details of a private endpoint connection.", + "operationId": "PrivateEndpointConnections_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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 a private endpoint connection.", + "description": "Update an existing private endpoint connection.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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/v2/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 a private endpoint connection.", + "description": "Deletes a private endpoint connection.", + "operationId": "PrivateEndpointConnections_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "Location name." + }, + { + "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/locations/{locationName}/mediaServicesOperationStatuses/{operationId}": { + "get": { + "summary": "Get operation status.", + "description": "Get media service operation status.", + "operationId": "MediaServicesOperationStatuses_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaServiceOperationStatus" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "Location name." + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "Operation ID." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get status of asynchronous operation when it is completed.": { + "$ref": "examples/media-service-operation-status-by-id-terminal-state.json" + }, + "Get status of asynchronous operation when it is ongoing.": { + "$ref": "examples/media-service-operation-status-by-id-non-terminal-state.json" + }, + "Get status of asynchronous operation when it is completed with error.": { + "$ref": "examples/media-service-operation-status-by-id-non-terminal-state-failed.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/mediaServicesOperationResults/{operationId}": { + "get": { + "summary": "Get operation result.", + "description": "Get media service operation result.", + "operationId": "MediaServicesOperationResults_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaService" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "Location name." + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "Operation Id." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get status of asynchronous operation.": { + "$ref": "examples/media-service-operation-result-by-id.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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + } + } + } + }, + "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/2022-08-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json new file mode 100644 index 000000000000..a3719ea6b4b6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json @@ -0,0 +1,2023 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2021-11-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" + }, + "x-ms-identifiers": [ + "assetFileId" + ], + "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" + }, + "x-ms-identifiers": [ + "name" + ], + "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/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AssetProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "description": "The tracks selection conditions." + } + }, + "type": "object", + "description": "The Media Filter properties." + }, + "AssetFilter": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/MediaFilterProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "type": "object", + "description": "An Asset Filter." + }, + "HlsSettings": { + "properties": { + "default": { + "type": "boolean", + "description": "The default for the HLS setting." + }, + "forced": { + "type": "boolean", + "description": "The forced for the HLS setting." + }, + "characteristics": { + "type": "string", + "description": "The characteristics for the HLS setting." + } + }, + "type": "object", + "description": "The HLS setting for a text track." + }, + "TrackBase": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + } + }, + "type": "object", + "required": [ + "@odata.type" + ], + "description": "Base type for concrete track types. A derived type must be used to represent the Track." + }, + "AudioTrack": { + "x-ms-discriminator-value": "#Microsoft.Media.AudioTrack", + "allOf": [ + { + "$ref": "#/definitions/TrackBase" + } + ], + "properties": {}, + "type": "object", + "description": "Represents an audio track in the asset." + }, + "VideoTrack": { + "x-ms-discriminator-value": "#Microsoft.Media.VideoTrack", + "allOf": [ + { + "$ref": "#/definitions/TrackBase" + } + ], + "properties": {}, + "type": "object", + "description": "Represents a video track in the asset." + }, + "TextTrack": { + "x-ms-discriminator-value": "#Microsoft.Media.TextTrack", + "allOf": [ + { + "$ref": "#/definitions/TrackBase" + } + ], + "properties": { + "fileName": { + "type": "string", + "description": "The file name to the source file. This file is located in the storage container of the asset." + }, + "displayName": { + "type": "string", + "description": "The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA." + }, + "languageCode": { + "type": "string", + "description": "The RFC5646 language code for the text track.", + "readOnly": true + }, + "playerVisibility": { + "type": "string", + "enum": [ + "Hidden", + "Visible" + ], + "x-ms-enum": { + "name": "Visibility", + "values": [ + { + "value": "Hidden", + "description": "The track is hidden to video player." + }, + { + "value": "Visible", + "description": "The track is visible to video player." + } + ], + "modelAsString": true + }, + "description": "When PlayerVisibility is set to \"Visible\", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to \"Hidden\", the text will not be available to the client. The default value is \"Visible\"." + }, + "hlsSettings": { + "$ref": "#/definitions/HlsSettings", + "description": "The HLS specific setting for the text track." + } + }, + "type": "object", + "description": "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks." + }, + "AssetTrackProperties": { + "properties": { + "track": { + "$ref": "#/definitions/TrackBase", + "description": "Detailed information about a track in the asset." + }, + "provisioningState": { + "type": "string", + "enum": [ + "Failed", + "InProgress", + "Succeeded" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "values": [ + { + "value": "Failed", + "description": "Provisioning state failed." + }, + { + "value": "InProgress", + "description": "Provisioning state in progress." + }, + { + "value": "Succeeded", + "description": "Provisioning state succeeded." + } + ], + "modelAsString": true + }, + "description": "Provisioning state of the asset track.", + "readOnly": true, + "x-nullable": false + } + }, + "type": "object", + "description": "Properties of a video, audio or text track in the asset." + }, + "AssetTrack": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AssetTrackProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + } + }, + "type": "object", + "description": "An Asset Track resource." + }, + "AssetTrackOperationStatus": { + "properties": { + "name": { + "type": "string", + "description": "Operation identifier." + }, + "id": { + "type": "string", + "description": "Operation resource ID." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Operation start time." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "Operation end time." + }, + "status": { + "type": "string", + "description": "Operation status." + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", + "x-nullable": true + } + }, + "type": "object", + "required": [ + "name", + "status" + ], + "description": "Status of asset track operation." + }, + "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." + }, + "AssetTrackCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetTrack" + }, + "description": "A collection of AssetTrack items." + } + }, + "type": "object", + "description": "A collection of AssetTrack 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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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", + "format": "int32", + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks": { + "get": { + "summary": "List Tracks in the Asset", + "description": "Lists the Tracks in the asset", + "operationId": "Tracks_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetTrackCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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": null + }, + "x-ms-examples": { + "Lists all Tracks": { + "$ref": "examples/asset-tracks-list-all.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}": { + "get": { + "summary": "Get a Track", + "description": "Get the details of a Track in the Asset", + "operationId": "Tracks_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetTrack" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "trackName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Track name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Track by name": { + "$ref": "examples/asset-tracks-get-by-name.json" + } + } + }, + "put": { + "summary": "Create or update a Track", + "description": "Create or update a Track in the asset", + "operationId": "Tracks_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/AssetTrack" + } + }, + "201": { + "description": "Created", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/AssetTrack" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "trackName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Track name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AssetTrack" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Creates a Track": { + "$ref": "examples/asset-tracks-create.json" + } + } + }, + "delete": { + "summary": "Delete a Track", + "description": "Deletes a Track in the asset", + "operationId": "Tracks_Delete", + "responses": { + "202": { + "description": "Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "trackName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Track name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a Track": { + "$ref": "examples/asset-tracks-delete.json" + } + } + }, + "patch": { + "summary": "Update an Track", + "description": "Updates an existing Track in the asset", + "operationId": "Tracks_Update", + "responses": { + "202": { + "description": "Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/AssetTrack" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "trackName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Track name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AssetTrack" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a Track": { + "$ref": "examples/asset-tracks-update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/updateTrackData": { + "post": { + "summary": "Update the track data", + "description": "Update the track data. Call this API after any changes are made to the track data stored in the asset container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not be reflected immediately. CDN cache may also need to be purged if applicable.", + "operationId": "Tracks_UpdateTrackData", + "responses": { + "202": { + "description": "Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "trackName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Track name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update the data for a tracks": { + "$ref": "examples/asset-tracks-update-data.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationStatuses/{operationId}": { + "get": { + "summary": "Get operation status.", + "description": "Get asset track operation status.", + "operationId": "OperationStatuses_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetTrackOperationStatus" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "trackName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Track name." + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "Operation Id." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get status of asynchronous operation when it is completed.": { + "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state.json" + }, + "Get status of asynchronous operation when it is ongoing.": { + "$ref": "examples/asset-tracks-operation-status-by-id-non-terminal-state.json" + }, + "Get status of asynchronous operation when it is completed with error.": { + "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state-failed.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationResults/{operationId}": { + "get": { + "summary": "Get operation result.", + "description": "Get asset track operation result.", + "operationId": "OperationResults_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AssetTrack" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The URI to poll for completion status.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "assetName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset name." + }, + { + "name": "trackName", + "in": "path", + "required": true, + "type": "string", + "description": "The Asset Track name." + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "Operation Id." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get result of asynchronous operation.": { + "$ref": "examples/asset-tracks-operation-result-by-id.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/2022-08-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json new file mode 100644 index 000000000000..5f765822749d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json @@ -0,0 +1,1175 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2021-11-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" + }, + "x-ms-identifiers": [], + "description": "A list of alternative verification keys." + }, + "requiredClaims": { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyTokenClaim" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [ + "policyOptionId" + ], + "description": "The Key Policy options." + } + }, + "type": "object", + "required": [ + "options" + ], + "description": "The properties of the Content Key Policy." + }, + "ContentKeyPolicy": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ContentKeyPolicyProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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", + "format": "int32", + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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/2022-08-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json new file mode 100644 index 000000000000..70756c53fb91 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json @@ -0,0 +1,3233 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2021-11-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": { + "properties": { + "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", + "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": { + "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": { + "allOf": [ + { + "$ref": "#/definitions/H265VideoLayer" + } + ], + "properties": { + "profile": { + "type": "string", + "enum": [ + "Auto", + "Main", + "Main10" + ], + "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)" + }, + { + "description": "Main 10 profile (https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Main_10)", + "value": "Main10" + } + ], + "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)." + }, + "crf": { + "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 28.", + "format": "float", + "type": "number" + }, + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [ + "inputLabel" + ], + "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": { + "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": { + "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)." + }, + "crf": { + "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 23.", + "format": "float", + "type": "number" + }, + "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": { + "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" + }, + "x-ms-identifiers": [], + "description": "The collection of output H.264 layers to be produced by the encoder." + }, + "rateControlMode": { + "description": "The video rate control mode", + "enum": [ + "ABR", + "CBR", + "CRF" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "H264RateControlMode", + "values": [ + { + "description": "Average Bitrate (ABR) mode that hits the target bitrate: Default mode.", + "value": "ABR" + }, + { + "description": "Constant Bitrate (CBR) mode that tightens bitrate variations around target bitrate.", + "value": "CBR" + }, + { + "description": "Constant Rate Factor (CRF) mode that targets at constant subjective quality.", + "value": "CRF" + } + ] + } + }, + "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." + } + }, + "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" + }, + "x-ms-identifiers": [], + "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": { + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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": { + "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": { + "configurations": { + "$ref": "#/definitions/PresetConfigurations", + "description": "Optional configuration settings for encoder. Configurations is only supported for ContentAwareEncoding and H265ContentAwareEncoding BuiltInStandardEncoderPreset." + }, + "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" + }, + "x-ms-identifiers": [], + "description": "The list of codecs to be used when encoding the input video." + }, + "formats": { + "type": "array", + "items": { + "$ref": "#/definitions/Format" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TransformProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/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. Query strings will not be returned in service responses to prevent sensitive data exposure." + }, + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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. The query strings will not be returned in service responses to prevent sensitive data exposure." + } + }, + "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 + }, + "presetOverride": { + "$ref": "#/definitions/Preset", + "description": "A preset used to override the preset in the corresponding transform output." + }, + "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" + }, + "x-ms-identifiers": [ + "code" + ], + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/JobProperties", + "description": "The resource properties.", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/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." + }, + "PresetConfigurations": { + "description": "An object of optional configuration settings for encoder.", + "properties": { + "complexity": { + "description": "Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.", + "enum": [ + "Speed", + "Balanced", + "Quality" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "Complexity", + "values": [ + { + "description": "Configures the encoder to use settings optimized for faster encoding. Quality is sacrificed to decrease encoding time.", + "value": "Speed" + }, + { + "description": "Configures the encoder to use settings that achieve a balance between speed and quality.", + "value": "Balanced" + }, + { + "description": "Configures the encoder to use settings optimized to produce higher quality output at the expense of slower overall encode time.", + "value": "Quality" + } + ] + } + }, + "interleaveOutput": { + "description": "Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.", + "enum": [ + "NonInterleavedOutput", + "InterleavedOutput" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "InterleaveOutput", + "values": [ + { + "description": "The output is video-only or audio-only.", + "value": "NonInterleavedOutput" + }, + { + "description": "The output includes both audio and video.", + "value": "InterleavedOutput" + } + ] + } + }, + "keyFrameIntervalInSeconds": { + "description": "The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.", + "format": "float", + "type": "number" + }, + "maxBitrateBps": { + "description": "The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.", + "format": "int32", + "type": "integer" + }, + "maxHeight": { + "description": "The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.", + "format": "int32", + "type": "integer" + }, + "maxLayers": { + "description": "The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.", + "format": "int32", + "type": "integer" + }, + "minBitrateBps": { + "description": "The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.", + "format": "int32", + "type": "integer" + }, + "minHeight": { + "description": "The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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/2022-08-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json new file mode 100644 index 000000000000..79cd435a61ae --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json @@ -0,0 +1,1268 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2021-11-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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/StreamingPolicyProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/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" + }, + "x-ms-identifiers": [], + "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" + }, + "x-ms-identifiers": [], + "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/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/StreamingLocatorProperties", + "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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", + "format": "int32", + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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", + "format": "int32", + "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" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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/2022-08-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json new file mode 100644 index 000000000000..82627f3b3a3d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json @@ -0,0 +1,171 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "filterName": "newAccountFilter", + "api-version": "2021-11-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/2022-08-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json new file mode 100644 index 000000000000..71831b8e29e4 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "filterName": "accountFilterWithTimeWindowAndTrack", + "api-version": "2021-11-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json new file mode 100644 index 000000000000..fafdbcdbd0d7 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "filterName": "accountFilterWithTrack", + "api-version": "2021-11-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" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json new file mode 100644 index 000000000000..7f1cd088e1ed --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2021-11-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/2022-08-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json new file mode 100644 index 000000000000..0dd77db1fc73 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "filterName": "accountFilterWithTimeWindowAndTrack", + "api-version": "2021-11-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/2022-08-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json new file mode 100644 index 000000000000..d5b24abf4221 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "locationName": "japanwest", + "api-version": "2021-11-01", + "parameters": { + "name": "contosotv", + "type": "videoAnalyzers" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "None", + "message": "" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json new file mode 100644 index 000000000000..a55298655fe1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2021-11-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json new file mode 100644 index 000000000000..f90c838f8e38 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosotv", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + }, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + } + } + }, + "properties": { + "encryption": { + "type": "CustomerKey", + "keyVaultProperties": { + "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", + "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" + }, + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + }, + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary", + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + } + ], + "storageAuthentication": "ManagedIdentity", + "publicNetworkAccess": "Enabled", + "keyDelivery": { + "accessControl": { + "defaultAction": "Allow" + } + }, + "privateEndpointConnections": [ + { + "name": "00000000-0000-0000-0000-000000000001", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", + "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": "00000000-0000-0000-0000-000000000002", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", + "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/2022-08-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json new file mode 100644 index 000000000000..c988c7c13649 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "api-version": "2021-11-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" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + }, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + } + } + }, + "properties": { + "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", + "encryption": { + "type": "CustomerKey", + "keyVaultProperties": { + "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", + "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" + }, + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + }, + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", + "type": "Primary" + } + ], + "storageAuthentication": "ManagedIdentity", + "publicNetworkAccess": "Enabled", + "keyDelivery": { + "accessControl": { + "defaultAction": "Allow" + } + }, + "privateEndpointConnections": [ + { + "name": "00000000-0000-0000-0000-000000000001", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", + "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": "00000000-0000-0000-0000-000000000002", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", + "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" + } + } + } + ] + } + }, + { + "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" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + }, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + } + } + }, + "properties": { + "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", + "encryption": { + "type": "CustomerKey", + "keyVaultProperties": { + "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", + "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" + }, + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + }, + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", + "type": "Primary" + } + ], + "storageAuthentication": "ManagedIdentity", + "publicNetworkAccess": "Enabled", + "keyDelivery": { + "accessControl": { + "defaultAction": "Allow" + } + }, + "privateEndpointConnections": [] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json new file mode 100644 index 000000000000..60ba1567e43f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json new file mode 100644 index 000000000000..ad0a2af517ca --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "api-version": "2021-11-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" + } + ], + "privateEndpointConnections": [] + } + }, + { + "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" + } + ], + "privateEndpointConnections": [] + } + }, + { + "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" + } + ], + "privateEndpointConnections": [] + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json new file mode 100644 index 000000000000..175980e05c11 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2021-11-01", + "parameters": { + "id": "contososportsstore" + } + }, + "responses": { + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json new file mode 100644 index 000000000000..746e7f9f96d6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text3", + "api-version": "2021-11-01", + "parameters": { + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "displayName": "A new track", + "fileName": "text3.ttml", + "playerVisibility": "Visible" + } + } + } + }, + "responses": { + "201": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + }, + "body": { + "name": "text3", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", + "type": "Microsoft.Media/mediaservices/assets/tracks", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "fileName": "text3.ttml", + "displayName": "A new track", + "playerVisibility": "Visible" + }, + "provisioningState": "InProgress" + } + } + }, + "200": { + "body": { + "name": "text3", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", + "type": "Microsoft.Media/mediaservices/assets/tracks", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "fileName": "text3.ttml", + "displayName": "A new track", + "playerVisibility": "Visible" + }, + "provisioningState": "InProgress" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json new file mode 100644 index 000000000000..21d1928098f1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text2", + "api-version": "2021-11-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json new file mode 100644 index 000000000000..3d70f779d823 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text1", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "name": "text1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", + "type": "Microsoft.Media/mediaservices/assets/tracks", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "fileName": "auto_generated.ttml", + "displayName": "Auto generated", + "languageCode": "en-us", + "playerVisibility": "Visible" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json new file mode 100644 index 000000000000..ef4e305f35f6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "video", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/video", + "type": "Microsoft.Media/mediaservices/assets/tracks", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.VideoTrack" + }, + "provisioningState": "Succeeded" + } + }, + { + "name": "audio", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/audio", + "type": "Microsoft.Media/mediaservices/assets/tracks", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.AudioTrack" + }, + "provisioningState": "Succeeded" + } + }, + { + "name": "text1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", + "type": "Microsoft.Media/mediaservices/assets/tracks", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "fileName": "auto_generated.ttml", + "displayName": "Auto generated", + "languageCode": "en-us", + "playerVisibility": "Visible" + }, + "provisioningState": "Succeeded" + } + }, + { + "name": "text2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text2", + "type": "Microsoft.Media/mediaservices/assets/tracks", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "fileName": "text2.vtt", + "displayName": "user uploaded text track", + "languageCode": "en-us", + "playerVisibility": "Hidden", + "hlsSettings": { + "default": true, + "forced": true, + "characteristics": "public.accessibility.transcribes-spoken-dialog,public.easy-to-read" + } + }, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json new file mode 100644 index 000000000000..74166e3368cb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text1", + "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "name": "text1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationResults/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", + "type": "Microsoft.Media/mediaservices/assets/tracks/operationResults", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "displayName": "Auto generated", + "languageCode": "en-us", + "playerVisibility": "Visible" + }, + "provisioningState": "Succeeded" + } + } + }, + "202": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json new file mode 100644 index 000000000000..5f91c6009e6c --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text1", + "operationId": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "name": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", + "startTime": "2021-11-01T00:00:00Z", + "status": "InProgress" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json new file mode 100644 index 000000000000..227403733933 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text1", + "operationId": "86835197-3b47-402e-b313-70b82eaba296", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "name": "86835197-3b47-402e-b313-70b82eaba296", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/86835197-3b47-402e-b313-70b82eaba296", + "startTime": "2021-11-01T00:00:00Z", + "endTime": "2021-11-01T00:00:30Z", + "status": "Failed", + "error": { + "code": "ClientError", + "message": "Error while parsing WEBVTT file and creating CMFT header." + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json new file mode 100644 index 000000000000..7787f20f5282 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text1", + "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "name": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", + "startTime": "2021-11-01T00:00:00Z", + "endTime": "2021-11-01T00:00:30Z", + "status": "Succeeded" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json new file mode 100644 index 000000000000..fb7b06d50467 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text2", + "api-version": "2021-11-01" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json new file mode 100644 index 000000000000..f309ca80a98a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "trackName": "text1", + "api-version": "2021-11-01", + "parameters": { + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "displayName": "A new name" + } + } + } + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + }, + "body": { + "name": "text1", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", + "type": "Microsoft.Media/mediaservices/assets/tracks", + "properties": { + "track": { + "@odata.type": "#Microsoft.Media.TextTrack", + "fileName": "auto_generated.ttml", + "displayName": "A new name", + "languageCode": "en-us", + "playerVisibility": "Visible" + }, + "provisioningState": "InProgress" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json new file mode 100644 index 000000000000..cea073746adb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json new file mode 100644 index 000000000000..d5c0fac2ef0f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json new file mode 100644 index 000000000000..e476bb7723f6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountRainer", + "filterName": "assetFilterWithTimeWindowAndTrack", + "api-version": "2021-11-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" + } + ] + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json new file mode 100644 index 000000000000..031a1cc08ae4 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json new file mode 100644 index 000000000000..7521925a221b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json new file mode 100644 index 000000000000..70e3f9968a72 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountLogan", + "api-version": "2021-11-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/2022-08-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json new file mode 100644 index 000000000000..3c7f183268b4 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountAdams", + "api-version": "2021-11-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json new file mode 100644 index 000000000000..7b2e31a7ad43 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountAdams", + "api-version": "2021-11-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" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json new file mode 100644 index 000000000000..a5cdcdc8b703 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json new file mode 100644 index 000000000000..24d676a1a850 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2021-11-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/2022-08-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json new file mode 100644 index 000000000000..6ee0fdc7d5b6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2021-11-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/2022-08-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json new file mode 100644 index 000000000000..ed9df50ad8ac --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json new file mode 100644 index 000000000000..eabf4f3c664a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json new file mode 100644 index 000000000000..a1c71b3671d3 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json new file mode 100644 index 000000000000..5449669efbd6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "assetName": "ClimbingMountBaker", + "api-version": "2021-11-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/2022-08-01/examples/async-accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json new file mode 100644 index 000000000000..0973e7a7a7cc --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json @@ -0,0 +1,212 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2021-11-01", + "parameters": { + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} + } + }, + "properties": { + "encryption": { + "type": "CustomerKey", + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + }, + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary", + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + } + ], + "storageAuthentication": "ManagedIdentity", + "publicNetworkAccess": "Enabled", + "keyDelivery": { + "accessControl": { + "defaultAction": "Allow" + } + } + } + } + }, + "responses": { + "201": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + }, + "body": { + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} + } + }, + "properties": { + "provisioningState": "InProgress", + "encryption": { + "type": "CustomerKey", + "keyVaultProperties": { + "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", + "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" + }, + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + }, + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary", + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + } + ], + "storageAuthentication": "ManagedIdentity", + "publicNetworkAccess": "Enabled", + "keyDelivery": { + "accessControl": { + "defaultAction": "Allow" + } + }, + "privateEndpointConnections": [ + { + "name": "00000000-0000-0000-0000-000000000001", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", + "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": "00000000-0000-0000-0000-000000000002", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", + "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" + } + } + } + ] + } + } + }, + "200": { + "body": { + "location": "South Central US", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} + } + }, + "properties": { + "provisioningState": "InProgress", + "encryption": { + "type": "CustomerKey", + "keyVaultProperties": { + "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", + "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" + }, + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + }, + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary", + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + } + ], + "storageAuthentication": "ManagedIdentity", + "publicNetworkAccess": "Enabled", + "keyDelivery": { + "accessControl": { + "defaultAction": "Allow" + } + }, + "privateEndpointConnections": [ + { + "name": "00000000-0000-0000-0000-000000000001", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", + "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": "00000000-0000-0000-0000-000000000002", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", + "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/2022-08-01/examples/async-accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json new file mode 100644 index 000000000000..768fcfa092cb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2021-11-01", + "parameters": { + "tags": { + "key1": "value3" + } + } + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + }, + "body": { + "location": "South Central US", + "tags": { + "key1": "value3" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} + } + }, + "properties": { + "provisioningState": "InProgress", + "encryption": { + "type": "CustomerKey", + "keyVaultProperties": { + "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", + "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" + }, + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + }, + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary", + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + } + ], + "storageAuthentication": "ManagedIdentity", + "publicNetworkAccess": "Enabled", + "keyDelivery": { + "accessControl": { + "defaultAction": "Allow" + } + }, + "privateEndpointConnections": [ + { + "name": "00000000-0000-0000-0000-000000000001", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", + "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": "00000000-0000-0000-0000-000000000002", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", + "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/2022-08-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json new file mode 100644 index 000000000000..176cb19989ab --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json new file mode 100644 index 000000000000..c084f4498063 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json new file mode 100644 index 000000000000..353179050779 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json new file mode 100644 index 000000000000..2c75d6701bde --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json new file mode 100644 index 000000000000..32fc45ccd967 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json new file mode 100644 index 000000000000..45f0e1458fa1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithMultipleOptions", + "api-version": "2021-11-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" + } + } + ] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json new file mode 100644 index 000000000000..5ed7af0886e4 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "contentKeyPolicyName": "PolicyWithMultipleOptions", + "api-version": "2021-11-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" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json new file mode 100644 index 000000000000..9a6af82323c6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json new file mode 100644 index 000000000000..45d909a231dd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json new file mode 100644 index 000000000000..e35562227877 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json new file mode 100644 index 000000000000..c42f8f671ea3 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json new file mode 100644 index 000000000000..1411466bff10 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-11-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/2022-08-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json new file mode 100644 index 000000000000..01d37f2763aa --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "api-version": "2021-11-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-07-12T10:44:30.6393998Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + }, + "lastModified": "2021-07-12T10:44:30.6393998Z", + "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-07-12T10:44:30.6393998Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:30.6393998Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json new file mode 100644 index 000000000000..d6ee433e9e79 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-11-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/2022-08-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json new file mode 100644 index 000000000000..19eed9fea6fc --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2021-11-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "jobName": "job1" + }, + "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": "2021-11-01T00:00:00Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "2021-11-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": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:00Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json new file mode 100644 index 000000000000..f4e0c2c92def --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2021-11-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "$filter": "properties/created ge 2021-11-01T00:00:10.0000000Z and properties/created le 2021-11-01T00:00:20.0000000Z", + "$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-11-01T00:00:10Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:10Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.4143905Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.4143905Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:10Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:10Z" + } + }, + { + "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-11-01T00:00:20Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:20Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.4143905Z", + "endTime": "2021-07-12T10:44:30.4143905Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.4143905Z", + "endTime": "2021-07-12T10:44:30.4143905Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:20Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:20Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json new file mode 100644 index 000000000000..2bb5f2a10793 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "api-version": "2021-11-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "exampleTransform", + "$filter": "properties/lastmodified ge 2021-11-01T00:00:10.0000000Z and properties/lastmodified le 2021-11-01T00:00:20.0000000Z", + "$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-11-01T00:00:20Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:20Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.4893941Z", + "endTime": "2021-07-12T10:44:30.4893941Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.4893941Z", + "endTime": "2021-07-12T10:44:30.4893941Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:20Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:20Z" + } + }, + { + "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-11-01T00:00:10Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:10Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.4893941Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.4893941Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:10Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:10Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json new file mode 100644 index 000000000000..1034180ff11f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.3393701Z", + "endTime": "2021-07-12T10:44:30.3393701Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.3393701Z", + "endTime": "2021-07-12T10:44:30.3393701Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json new file mode 100644 index 000000000000..3e90973d8de1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "2021-11-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": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.0631403Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.0631403Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json new file mode 100644 index 000000000000..93fbbd71ce2d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.1393325Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.1393325Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.1393325Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.1393325Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json new file mode 100644 index 000000000000..15cb4dbc82d8 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "2021-11-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": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job4-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:30.2743374Z", + "endTime": "2021-07-12T10:44:30.2743374Z", + "assetName": "job4-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:30.2743374Z", + "endTime": "2021-07-12T10:44:30.2743374Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json new file mode 100644 index 000000000000..8e619592d973 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json @@ -0,0 +1,143 @@ +{ + "parameters": { + "api-version": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Queued", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job1-InputAsset" + } + ] + }, + "lastModified": "2021-11-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": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Processing", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job2-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Processing", + "progress": 50, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:29.691737Z", + "assetName": "job2-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:29.691737Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-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": "2021-11-01T00:00:00Z", + "state": "Finished", + "input": { + "@odata.type": "#Microsoft.Media.JobInputs", + "inputs": [ + { + "@odata.type": "#Microsoft.Media.JobInputAsset", + "files": [], + "inputDefinitions": [], + "assetName": "job3-InputAsset" + } + ] + }, + "lastModified": "2021-11-01T00:00:00Z", + "outputs": [ + { + "@odata.type": "#Microsoft.Media.JobOutputAsset", + "state": "Finished", + "progress": 100, + "label": "example-custom-label", + "startTime": "2021-07-12T10:34:29.691737Z", + "endTime": "2021-07-12T10:44:29.691737Z", + "assetName": "job3-OutputAsset" + } + ], + "priority": "Low", + "correlationData": {}, + "startTime": "2021-07-12T10:34:29.691737Z", + "endTime": "2021-07-12T10:44:29.691737Z" + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:00Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json new file mode 100644 index 000000000000..ec6f5dc5720c --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2021-11-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": "2021-11-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-07-12T10:44:30.9494087Z", + "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": "2021-11-01T00:00:00Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:30.9494087Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json new file mode 100644 index 000000000000..789abe61a734 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2021-11-01" + }, + "responses": { + "202": {}, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json new file mode 100644 index 000000000000..a532229807d1 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json @@ -0,0 +1,177 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2021-11-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": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + }, + "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/2022-08-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json new file mode 100644 index 000000000000..511607ce29ee --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2021-11-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": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json new file mode 100644 index 000000000000..b3277f092491 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "api-version": "2021-11-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/2022-08-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json new file mode 100644 index 000000000000..571d2deca262 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2021-11-01" + }, + "responses": { + "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/2022-08-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json new file mode 100644 index 000000000000..9d3fc798a4bc --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2021-11-01" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + }, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json new file mode 100644 index 000000000000..9d3fc798a4bc --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2021-11-01" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + }, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json new file mode 100644 index 000000000000..56125b9214fe --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2021-11-01", + "parameters": { + "removeOutputsOnStop": false + } + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + }, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json new file mode 100644 index 000000000000..642ac6e07117 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json @@ -0,0 +1,170 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "api-version": "2021-11-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": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + }, + "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/2022-08-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json new file mode 100644 index 000000000000..233d556acf96 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json new file mode 100644 index 000000000000..4cacdb165e55 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-01" + }, + "responses": { + "202": {}, + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json new file mode 100644 index 000000000000..00294ed84bd5 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json new file mode 100644 index 000000000000..4411aa20859b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "liveOutputName": "myLiveOutput1", + "api-version": "2021-11-01" + }, + "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": 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/2022-08-01/examples/media-service-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json new file mode 100644 index 000000000000..32c3dd463644 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "locationName": "westus", + "operationId": "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", + "api-version": "2021-11-01" + }, + "responses": { + "202": {}, + "200": { + "body": { + "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" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + }, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + } + } + }, + "properties": { + "provisioningState": "Succeeded", + "encryption": { + "type": "CustomerKey", + "keyVaultProperties": { + "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", + "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" + }, + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + }, + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "type": "Primary", + "identity": { + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + "useSystemAssignedIdentity": false + } + } + ], + "storageAuthentication": "ManagedIdentity", + "publicNetworkAccess": "Enabled", + "keyDelivery": { + "accessControl": { + "defaultAction": "Allow" + } + }, + "privateEndpointConnections": [ + { + "name": "00000000-0000-0000-0000-000000000001", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", + "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": "00000000-0000-0000-0000-000000000002", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", + "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/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json new file mode 100644 index 000000000000..a52f1cff3a37 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "locationName": "westus", + "operationId": "D612C429-2526-49D5-961B-885AE11406FD", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", + "name": "D612C429-2526-49D5-961B-885AE11406FD", + "status": "Failed", + "startTime": "2021-01-01T12:56:36.002812-08:00", + "endTime": "2021-01-01T12:56:36.002812-08:00", + "error": { + "code": "BadRequest", + "message": "Storage account cannot be accessed." + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json new file mode 100644 index 000000000000..f94b26d30a33 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "locationName": "westus", + "operationId": "D612C429-2526-49D5-961B-885AE11406FD", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", + "name": "D612C429-2526-49D5-961B-885AE11406FD", + "status": "InProgress", + "startTime": "2021-01-01T12:56:36.002812-08:00", + "endTime": "2021-01-01T12:56:36.002812-08:00" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json new file mode 100644 index 000000000000..37026b258712 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "locationName": "westus", + "operationId": "D612C429-2526-49D5-961B-885AE11406FD", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", + "name": "D612C429-2526-49D5-961B-885AE11406FD", + "status": "Succeeded", + "startTime": "2021-01-01T12:56:36.002812-08:00", + "endTime": "2021-01-01T12:56:36.002812-08:00" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json new file mode 100644 index 000000000000..31a2885b7f7b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json @@ -0,0 +1,1539 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "api-version": "2021-11-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/regenerateKey/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Regenerate Key", + "description": "Regenerate a Media Services ACS key" + } + }, + { + "name": "Microsoft.Media/mediaservices/listKeys/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "List Keys", + "description": "List the ACS keys for the 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/listEdgePolicies/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "List policies for an edge device.", + "description": "List policies for an edge device." + } + }, + { + "name": "Microsoft.Media/mediaservices/PrivateEndpointConnectionsApproval/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Approve Private Endpoint Connections", + "description": "Approve Private Endpoint Connections" + } + }, + { + "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/accountfilters/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Account Filter", + "operation": "Read Account Filter", + "description": "Read any Account Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/accountfilters/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Account Filter", + "operation": "Create or Update Account Filter", + "description": "Create or Update any Account Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/accountfilters/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Account Filter", + "operation": "Delete Account Filter", + "description": "Delete any Account 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/assets/listStreamingLocators/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset", + "operation": "List Streaming Locators for Asset", + "description": "List Streaming Locators for Asset" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/assetfilters/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset Filter", + "operation": "Read Asset Filter", + "description": "Read any Asset Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/assetfilters/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset Filter", + "operation": "Create or Update Asset Filter", + "description": "Create or Update any Asset Filter" + } + }, + { + "name": "Microsoft.Media/mediaservices/assets/assetfilters/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Asset Filter", + "operation": "Delete Asset Filter", + "description": "Delete any Asset Filter" + } + }, + { + "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/privateLinkResources/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateLinkResource", + "operation": "Read Private Link Resource", + "description": "Read any Private Link Resource" + } + }, + { + "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnectionProxy", + "operation": "Read Private Endpoint Connection Proxy", + "description": "Read any Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnectionProxy", + "operation": "Create Private Endpoint Connection Proxy", + "description": "Create Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnectionProxy", + "operation": "Delete Private Endpoint Connection Proxy", + "description": "Delete Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/validate/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnectionProxy", + "operation": "Validate Private Endpoint Connection Proxy", + "description": "Validate Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.Media/mediaservices/privateEndpointConnections/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnection", + "operation": "Read Private Endpoint Connection", + "description": "Read any Private Endpoint Connection" + } + }, + { + "name": "Microsoft.Media/mediaservices/privateEndpointConnections/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnection", + "operation": "Create Private Endpoint Connection", + "description": "Create Private Endpoint Connection" + } + }, + { + "name": "Microsoft.Media/mediaservices/privateEndpointConnections/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnection", + "operation": "Delete Private Endpoint Connection", + "description": "Delete Private Endpoint Connection" + } + }, + { + "name": "Microsoft.Media/mediaservices/privateEndpointConnectionOperations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Private Endpoint Connection Operation", + "operation": "Read Private Endpoint Connection Operation", + "description": "Read any Private Endpoint Connection Operation" + } + }, + { + "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 + } + ], + "supportedAggregationTypes": [ + "Total" + ] + }, + { + "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 + } + ], + "supportedAggregationTypes": [ + "Average", + "Minimum", + "Maximum" + ] + }, + { + "name": "Requests", + "displayName": "Requests", + "displayDescription": "Requests to a Streaming Endpoint.", + "unit": "Count", + "aggregationType": "Total", + "dimensions": [ + { + "name": "OutputFormat", + "displayName": "Output Format", + "toBeExportedForShoebox": true + }, + { + "name": "HttpStatusCode", + "displayName": "HTTP Status Code", + "toBeExportedForShoebox": true + }, + { + "name": "ErrorCode", + "displayName": "Error Code", + "toBeExportedForShoebox": false + } + ], + "supportedAggregationTypes": [ + "Total" + ] + }, + { + "name": "EgressBandwidth", + "displayName": "Egress bandwidth", + "displayDescription": "Egress bandwidth in bits per second.", + "unit": "BitsPerSecond", + "aggregationType": "Average", + "lockAggregationType": "Total", + "dimensions": [], + "supportedAggregationTypes": [ + "Average", + "Minimum", + "Maximum" + ] + }, + { + "name": "CPU", + "displayName": "CPU usage", + "displayDescription": "CPU usage for premium streaming endpoints. This data is not available for standard streaming endpoints.", + "unit": "Percent", + "aggregationType": "Average", + "dimensions": [], + "supportedAggregationTypes": [ + "Average", + "Minimum", + "Maximum" + ] + } + ] + } + } + }, + { + "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/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Read diagnostic setting", + "description": "Gets the diagnostic setting for the resource." + }, + "origin": "system" + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource." + }, + "origin": "system" + }, + { + "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Event", + "operation": "Get a list of Media Services Live Event Metrics definitions.", + "description": "Get a list of Media Services Live Event Metrics definitions." + }, + "origin": "system", + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "IngestBitrate", + "displayName": "Live Event ingest bitrate", + "displayDescription": "The incoming bitrate ingested for a live event, in bits per second.", + "unit": "BitsPerSecond", + "aggregationType": "Average", + "dimensions": [ + { + "name": "TrackName", + "displayName": "Track name", + "toBeExportedForShoebox": true + } + ], + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MicrosoftMediaLiveEvent", + "supportedAggregationTypes": [ + "Average", + "Minimum", + "Maximum" + ] + }, + { + "name": "IngestLastTimestamp", + "displayName": "Live Event ingest last timestamp", + "displayDescription": "Last timestamp ingested for a live event.", + "unit": "Milliseconds", + "aggregationType": "Maximum", + "dimensions": [ + { + "name": "TrackName", + "displayName": "Track name", + "toBeExportedForShoebox": true + } + ], + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MicrosoftMediaLiveEvent", + "supportedAggregationTypes": [ + "Maximum" + ] + }, + { + "name": "IngestDriftValue", + "displayName": "Live Event ingest drift value", + "displayDescription": "Drift between the timestamp of the ingested content and the system clock, measured in seconds per minute. A non zero value indicates that the ingested content is arriving slower than system clock time.", + "unit": "Seconds", + "aggregationType": "Maximum", + "dimensions": [ + { + "name": "TrackName", + "displayName": "Track name", + "toBeExportedForShoebox": true + } + ], + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MicrosoftMediaLiveEvent", + "supportedAggregationTypes": [ + "Maximum" + ] + }, + { + "name": "LiveOutputLastTimestamp", + "displayName": "Last output timestamp", + "displayDescription": "Timestamp of the last fragment uploaded to storage for a live event output.", + "unit": "Milliseconds", + "aggregationType": "Maximum", + "dimensions": [ + { + "name": "TrackName", + "displayName": "Track name", + "toBeExportedForShoebox": true + } + ], + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MicrosoftMediaLiveEvent", + "supportedAggregationTypes": [ + "Maximum" + ] + } + ] + } + } + }, + { + "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/mediaservices/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Read diagnostic setting", + "description": "Gets the diagnostic setting for the resource." + }, + "origin": "system" + }, + { + "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Services Account", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource." + }, + "origin": "system" + }, + { + "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/logDefinitions/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "The log definition of mediaservices", + "operation": "Read mediaservices log definitions", + "description": "Gets the available logs for a Media Services Account" + }, + "origin": "system", + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "KeyDeliveryRequests", + "displayName": "Key Delivery Requests", + "blobDuration": "PT1H" + } + ] + } + } + }, + { + "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Media Service", + "operation": "Get list of Media Services Metric definitions.", + "description": "Get list of Media Services Metric definitions." + }, + "origin": "system", + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "AssetQuota", + "displayName": "Asset quota", + "displayDescription": "How many assets are allowed for current media service account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "AssetCount", + "displayName": "Asset count", + "displayDescription": "How many assets are already created in current media service account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "AssetQuotaUsedPercentage", + "displayName": "Asset quota used percentage", + "displayDescription": "Asset used percentage in current media service account", + "unit": "Percent", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "ContentKeyPolicyQuota", + "displayName": "Content Key Policy quota", + "displayDescription": "How many content key polices are allowed for current media service account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "ContentKeyPolicyCount", + "displayName": "Content Key Policy count", + "displayDescription": "How many content key policies are already created in current media service account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "ContentKeyPolicyQuotaUsedPercentage", + "displayName": "Content Key Policy quota used percentage", + "displayDescription": "Content Key Policy used percentage in current media service account", + "unit": "Percent", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "StreamingPolicyQuota", + "displayName": "Streaming Policy quota", + "displayDescription": "How many streaming policies are allowed for current media service account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "StreamingPolicyCount", + "displayName": "Streaming Policy count", + "displayDescription": "How many streaming policies are already created in current media service account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "StreamingPolicyQuotaUsedPercentage", + "displayName": "Streaming Policy quota used percentage", + "displayDescription": "Streaming Policy used percentage in current media service account", + "unit": "Percent", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "MediaServiceQuotaAndUsage", + "supportedAggregationTypes": [ + "Average" + ], + "supportedTimeGrainTypes": [ + "PT1H", + "PT6H", + "PT12H", + "P1D" + ] + }, + { + "name": "ChannelsAndLiveEventsCount", + "displayName": "Live event count", + "displayDescription": "The total number of live events in the current media services account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", + "supportedAggregationTypes": [ + "Average" + ] + }, + { + "name": "RunningChannelsAndLiveEventsCount", + "displayName": "Running live event count", + "displayDescription": "The total number of running live events in the current media services account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", + "supportedAggregationTypes": [ + "Average" + ] + }, + { + "name": "MaxChannelsAndLiveEventsCount", + "displayName": "Max live event quota", + "displayDescription": "The maximum number of live events allowed in the current media services account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", + "supportedAggregationTypes": [ + "Average" + ] + }, + { + "name": "MaxRunningChannelsAndLiveEventsCount", + "displayName": "Max running live event quota", + "displayDescription": "The maximum number of running live events allowed in the current media services account", + "unit": "Count", + "aggregationType": "Average", + "enableRegionalMdmAccount": true, + "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", + "supportedAggregationTypes": [ + "Average" + ] + } + ] + } + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Analyzer Account", + "operation": "Read a Video Analyzer Account", + "description": "Read a Video Analyzer Account" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Analyzer Account", + "operation": "Create or Update a Video Analyzer Account", + "description": "Create or Update a Video Analyzer Account" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Analyzer Account", + "operation": "Delete a Video Analyzer Account", + "description": "Delete a Video Analyzer Account" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/PrivateEndpointConnectionsApproval/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Analyzer Account", + "operation": "Approve Private Endpoint Connections", + "description": "Approve Private Endpoint Connections" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/videos/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Resource", + "operation": "Read Video", + "description": "Read any Video" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/videos/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Resource", + "operation": "Create or Update Video", + "description": "Create or Update any Video" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/videos/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Resource", + "operation": "Delete Video", + "description": "Delete any Video" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/videos/listStreamingToken/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Resource", + "operation": "Generates a streaming token which can be used for video playback", + "description": "Generates a streaming token which can be used for video playback" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/videos/listContentToken/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Video Resource", + "operation": "Generates a content token which can be used for video playback", + "description": "Generates a content token which can be used for video playback" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/accessPolicies/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Access Policy Resource", + "operation": "Read Access Policy", + "description": "Read any Access Policy" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/accessPolicies/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Access Policy Resource", + "operation": "Create or Update Access Policy", + "description": "Create or Update any Access Policy" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/accessPolicies/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Access Policy Resource", + "operation": "Delete Access Policy", + "description": "Delete any Access Policy" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/edgeModules/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Edge Module Resource", + "operation": "Read Edge Module", + "description": "Read any Edge Module" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/edgeModules/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Edge Module Resource", + "operation": "Create or Update Edge Module", + "description": "Create or Update any Edge Module" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/edgeModules/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Edge Module Resource", + "operation": "Delete Edge Module", + "description": "Delete any Edge Module" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/edgeModules/listProvisioningToken/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Edge Module Resource", + "operation": "Creates a new provisioning token", + "description": "Creates a new provisioning token. A provisioning token allows for a single instance of Azure Video analyzer IoT edge module to be initialized and authorized to the cloud account. The provisioning token itself is short lived and it is only used for the initial handshake between IoT edge module and the cloud. After the initial handshake, the IoT edge module will agree on a set of authentication keys which will be auto-rotated as long as the module is able to periodically connect to the cloud. A new provisioning token can be generated for the same IoT edge module in case the module state lost or reset" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Pipeline Topology Resource", + "operation": "Read Pipeline Topology", + "description": "Read any Pipeline Topology" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Pipeline Topology Resource", + "operation": "Create or Update Pipeline Topology", + "description": "Create or Update any Pipeline Topology" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Pipeline Topology Resource", + "operation": "Delete Pipeline Topology", + "description": "Delete any Pipeline Topology" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/livePipelines/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Pipeline Resource", + "operation": "Read Live Pipeline", + "description": "Read any Live Pipeline" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/livePipelines/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Pipeline Resource", + "operation": "Create or Update Live Pipeline", + "description": "Create or Update any Live Pipeline" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/livePipelines/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Pipeline Resource", + "operation": "Delete Live Pipeline", + "description": "Delete any Live Pipeline" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/livePipelines/activate/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Pipeline Resource", + "operation": "Activate Live Pipeline", + "description": "Activate any Live Pipeline" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/livePipelines/deactivate/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Pipeline Resource", + "operation": "Deactivate Live Pipeline", + "description": "Deactivate any Live Pipeline" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/livePipelines/operationsStatus/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Live Pipeline operation status Resource", + "operation": "Read Live Pipeline operation status", + "description": "Read any Live Pipeline operation status" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Pipeline Job Resource", + "operation": "Read Pipeline Job", + "description": "Read any Pipeline Job" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "Pipeline Job Resource", + "operation": "Create or Update Pipeline Job", + "description": "Create or Update any Pipeline Job" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "Pipeline Job Resource", + "operation": "Delete Pipeline Job", + "description": "Delete any Pipeline Job" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/cancel/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "Pipeline Job Resource", + "operation": "Cancel Pipeline Job", + "description": "Cancel any Pipeline Job" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/operationsStatus/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Pipeline Job operation status Resource", + "operation": "Read Pipeline Job operation status", + "description": "Read any Pipeline Job operation status" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateLinkResources/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateLinkResource", + "operation": "Read Private Link Resource", + "description": "Read any Private Link Resource" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnectionProxy", + "operation": "Read Private Endpoint Connection Proxy", + "description": "Read any Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnectionProxy", + "operation": "Create Private Endpoint Connection Proxy", + "description": "Create Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnectionProxy", + "operation": "Delete Private Endpoint Connection Proxy", + "description": "Delete Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/validate/action", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnectionProxy", + "operation": "Validate Private Endpoint Connection Proxy", + "description": "Validate Private Endpoint Connection Proxy" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnection", + "operation": "Read Private Endpoint Connection", + "description": "Read any Private Endpoint Connection" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/write", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnection", + "operation": "Create Private Endpoint Connection", + "description": "Create Private Endpoint Connection" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/delete", + "display": { + "provider": "Microsoft Media Services", + "resource": "PrivateEndpointConnection", + "operation": "Delete Private Endpoint Connection", + "description": "Delete Private Endpoint Connection" + } + }, + { + "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionOperations/read", + "display": { + "provider": "Microsoft Media Services", + "resource": "Private Endpoint Connection Operation", + "operation": "Read Private Endpoint Connection Operation", + "description": "Read any Private Endpoint Connection 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/2022-08-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json new file mode 100644 index 000000000000..5d9c75d2dd02 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "name": "connectionName1", + "api-version": "2021-11-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json new file mode 100644 index 000000000000..d19c6752d450 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json new file mode 100644 index 000000000000..353ee141d7ce --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2021-11-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/2022-08-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-put.json new file mode 100644 index 000000000000..c0bf4ec197b4 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-get-by-name.json new file mode 100644 index 000000000000..fde8ac990d7a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json new file mode 100644 index 000000000000..f76bf16a1b9e --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contososports", + "api-version": "2021-11-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/2022-08-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json new file mode 100644 index 000000000000..1e53b21c26cb --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json new file mode 100644 index 000000000000..55dcc252f1f3 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json new file mode 100644 index 000000000000..4a5ac59345cd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json new file mode 100644 index 000000000000..3ed03d2d7fbc --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json new file mode 100644 index 000000000000..f1696d41a027 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingLocatorName": "clearStreamingLocator", + "api-version": "2021-11-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": [] + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json new file mode 100644 index 000000000000..75de7463fca8 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json new file mode 100644 index 000000000000..1d38cc3e4170 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json new file mode 100644 index 000000000000..ee15b07c055d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json new file mode 100644 index 000000000000..35aaf789cf12 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2021-11-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/2022-08-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json new file mode 100644 index 000000000000..53adcedf861a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json new file mode 100644 index 000000000000..84d41e126c1a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json new file mode 100644 index 000000000000..6338440a89f9 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json new file mode 100644 index 000000000000..3f496b4252b2 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json new file mode 100644 index 000000000000..e9c935bd8e93 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-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/2022-08-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json new file mode 100644 index 000000000000..939e5226c838 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json new file mode 100644 index 000000000000..6083551e2922 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json @@ -0,0 +1,211 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2021-11-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-11-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json new file mode 100644 index 000000000000..f0436fddc735 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "streamingPolicyName": "clearStreamingPolicy", + "api-version": "2021-11-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 + } + } + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json new file mode 100644 index 000000000000..6ecd0b1284ef --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json @@ -0,0 +1,158 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2021-11-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": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + }, + "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/2022-08-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json new file mode 100644 index 000000000000..12c7f435feac --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2021-11-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": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json new file mode 100644 index 000000000000..1c7db6cf5940 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "api-version": "2021-11-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/2022-08-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json new file mode 100644 index 000000000000..f9aa24ea5f9d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2021-11-01" + }, + "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": { + "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/2022-08-01/examples/streamingendpoint-list-skus.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json new file mode 100644 index 000000000000..9fc2284213d9 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2021-11-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "Microsoft.Media/mediaservices/streamingEndpoints", + "capacity": { + "scaleType": "Automatic", + "default": 1, + "minimum": 1, + "maximum": 10 + }, + "sku": { + "name": "Premium" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json new file mode 100644 index 000000000000..f0944822c10b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2021-11-01", + "parameters": { + "scaleUnit": 5 + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json new file mode 100644 index 000000000000..6f538cfe301f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2021-11-01" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + }, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json new file mode 100644 index 000000000000..6f538cfe301f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2021-11-01" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + } + }, + "200": {} + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json new file mode 100644 index 000000000000..975b022a81bd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "api-version": "2021-11-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": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + }, + "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/2022-08-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json new file mode 100644 index 000000000000..004712339822 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2021-11-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-07-12T10:44:29.3367225Z", + "description": "Example Transform to illustrate create and update.", + "lastModified": "2021-07-12T10:44:29.3367225Z", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-07-12T10:44:29.3367225Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:29.3367225Z" + } + } + }, + "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-07-12T10:44:29.3367225Z", + "description": "Example Transform to illustrate create and update.", + "lastModified": "2021-07-12T10:44:29.3367225Z", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-07-12T10:44:29.3367225Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:29.3367225Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json new file mode 100644 index 000000000000..8b1bc1ae017c --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-11-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/2022-08-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json new file mode 100644 index 000000000000..76cde7f91778 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2021-11-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "transformName": "sampleTransform" + }, + "responses": { + "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-07-12T10:44:29.2267128Z", + "description": "A sample Transform using the Standard Encoder with a built in preset.", + "lastModified": "2021-07-12T10:44:29.2267128Z", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "H264MultipleBitrate1080p" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-07-12T10:44:29.2267128Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:29.2267128Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json new file mode 100644 index 000000000000..4c1789c6f245 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2021-11-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "$filter": "properties/created gt 2021-11-01T00:00:00.0000000Z and properties/created le 2021-11-01T00:00:10.0000000Z", + "$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-11-01T00:00:10Z", + "description": "A sample Transform using the Video Analyzer.", + "lastModified": "2021-11-01T00:00:10Z", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", + "mode": "Standard", + "insightsToExtract": "AllInsights" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:10Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:10Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json new file mode 100644 index 000000000000..e4c344817f6f --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2021-11-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contosoresources", + "accountName": "contosomedia", + "$filter": "properties/lastmodified gt 2021-11-01T00:00:00.0000000Z and properties/lastmodified le 2021-11-01T00:00:10.0000000Z", + "$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-11-01T00:00:10Z", + "description": "A sample Transform using the Video Analyzer.", + "lastModified": "2021-11-01T00:00:10Z", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", + "mode": "Standard", + "insightsToExtract": "AllInsights" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-11-01T00:00:10Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-11-01T00:00:10Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json new file mode 100644 index 000000000000..594dd6fbaaad --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2021-11-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-07-12T10:44:28.9563077Z", + "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", + "lastModified": "2021-07-12T10:44:28.9563077Z", + "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-07-12T10:44:28.9563077Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:28.9563077Z" + } + }, + { + "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-07-12T10:44:28.9563077Z", + "description": "A sample Transform using the Standard Encoder with a built in preset.", + "lastModified": "2021-07-12T10:44:28.9563077Z", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-07-12T10:44:28.9563077Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:28.9563077Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json new file mode 100644 index 000000000000..d6bae816296b --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2021-11-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-07-12T10:44:28.1563119Z", + "description": "A sample Transform using the Standard Encoder with a built in preset.", + "lastModified": "2021-07-12T10:44:28.1563119Z", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "Normal", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "AdaptiveStreaming" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-07-12T10:44:28.1563119Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:28.1563119Z" + } + }, + { + "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-07-12T10:44:28.281304Z", + "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", + "lastModified": "2021-07-12T10:44:28.281304Z", + "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-07-12T10:44:28.281304Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:28.281304Z" + } + } + ] + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json new file mode 100644 index 000000000000..11a28ba64ecd --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2021-11-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-07-12T10:44:29.6217348Z", + "description": "Example transform to illustrate update.", + "lastModified": "2021-07-12T10:44:29.6267341Z", + "outputs": [ + { + "onError": "StopProcessingJob", + "relativePriority": "High", + "preset": { + "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", + "presetName": "H264MultipleBitrate720p" + } + } + ] + }, + "systemData": { + "createdBy": "contoso@microsoft.com", + "createdByType": "User", + "createdAt": "2021-07-12T10:44:29.6217348Z", + "lastModifiedBy": "contoso@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-07-12T10:44:29.6267341Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json new file mode 100644 index 000000000000..fe9050747dea --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json @@ -0,0 +1,2189 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "Live event and streaming endpoint management APIs", + "version": "2021-11-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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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}/skus": { + "get": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "List StreamingEndpoint skus", + "description": "List streaming endpoint supported skus.", + "operationId": "StreamingEndpoints_Skus", + "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/StreamingEndpointSkuInfoListResult" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List a streaming endpoint sku": { + "$ref": "examples/streamingendpoint-list-skus.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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Scale a StreamingEndpoint": { + "$ref": "examples/streamingendpoint-scale.json" + } + } + } + } + }, + "definitions": { + "Hls": { + "type": "object", + "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": { + "type": "object", + "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": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LiveOutputProperties", + "description": "Live output properties." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "description": "The Live Output." + }, + "LiveOutputListResult": { + "type": "object", + "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": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "description": "The endpoint protocol." + }, + "url": { + "type": "string", + "description": "The endpoint URL." + } + }, + "description": "The live event endpoint." + }, + "LiveEventInputAccessControl": { + "type": "object", + "properties": { + "ip": { + "type": "object", + "$ref": "#/definitions/IPAccessControl", + "description": "The IP access control properties." + } + }, + "description": "The IP access control for live event input." + }, + "LiveEventInput": { + "type": "object", + "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" + }, + "x-ms-identifiers": [], + "description": "The input endpoints for the live event." + } + }, + "description": "The live event input." + }, + "IPRange": { + "type": "object", + "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": { + "type": "object", + "properties": { + "allow": { + "type": "array", + "items": { + "$ref": "#/definitions/IPRange" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "The IP allow list." + } + }, + "description": "The IP access control." + }, + "LiveEventPreviewAccessControl": { + "type": "object", + "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": { + "type": "object", + "properties": { + "endpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + }, + "x-ms-identifiers": [], + "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": { + "type": "object", + "properties": { + "encodingType": { + "type": "string", + "description": "Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, 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", + "PassthroughBasic", + "PassthroughStandard" + ], + "x-ms-enum": { + "name": "LiveEventEncodingType", + "values": [ + { + "value": "None", + "description": "This is the same as PassthroughStandard, please see description below. This enumeration value is being deprecated." + }, + { + "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." + }, + { + "value": "PassthroughBasic", + "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. In the PassthroughBasic mode, ingestion is limited to up to 5Mbps and only 1 concurrent live output is allowed. Live transcription is not available." + }, + { + "value": "PassthroughStandard", + "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. Live transcription is available. Ingestion bitrate limits are much higher and up to 3 concurrent live outputs are allowed." + } + ], + "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": { + "type": "object", + "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": { + "type": "object", + "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": { + "type": "object", + "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" + }, + "x-ms-identifiers": [] + }, + "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": { + "type": "object", + "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": { + "type": "object", + "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": { + "type": "object", + "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" + }, + "x-ms-identifiers": [ + "language" + ], + "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", + "LowLatencyV2" + ], + "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." + }, + { + "value": "LowLatencyV2", + "description": "The live event is optimized for end to end latency. This option is only available for encoding live events with RTMP input. The outputs can be streamed using HLS or DASH formats. The outputs' archive or DVR rewind length is limited to 6 hours. Use \"LowLatency\" stream option for all other scenarios." + } + ], + "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": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LiveEventProperties", + "description": "The live event properties." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "description": "The live event." + }, + "LiveEventListResult": { + "type": "object", + "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": { + "type": "object", + "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": { + "type": "object", + "properties": { + "akamaiSignatureHeaderAuthenticationKeyList": { + "type": "array", + "items": { + "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" + }, + "x-ms-identifiers": [], + "description": "authentication key list" + } + }, + "description": "Akamai access control" + }, + "StreamingEndpointAccessControl": { + "type": "object", + "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": { + "type": "object", + "properties": { + "scaleUnit": { + "type": "integer", + "format": "int32", + "description": "The scale unit number of the streaming endpoint." + } + }, + "description": "scale units definition" + }, + "StreamingEndpointProperties": { + "type": "object", + "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": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/StreamingEndpointProperties", + "description": "The streaming endpoint properties." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "The system metadata relating to this resource.", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/ArmStreamingEndpointCurrentSku", + "description": "The streaming endpoint sku." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "description": "The streaming endpoint." + }, + "StreamingEndpointListResult": { + "type": "object", + "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" + }, + "ArmStreamingEndpointCurrentSku": { + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The streaming endpoint sku name." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The streaming endpoint sku capacity." + } + }, + "description": "The streaming endpoint current sku.", + "type": "object" + }, + "ArmStreamingEndpointSku": { + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The streaming endpoint sku name." + } + }, + "description": "The streaming endpoint sku.", + "type": "object" + }, + "ArmStreamingEndpointCapacity": { + "properties": { + "scaleType": { + "type": "string", + "readOnly": true + }, + "default": { + "type": "integer", + "format": "int32", + "description": "The streaming endpoint default capacity." + }, + "minimum": { + "type": "integer", + "format": "int32", + "description": "The streaming endpoint minimum capacity." + }, + "maximum": { + "type": "integer", + "format": "int32", + "description": "The streaming endpoint maximum capacity." + } + }, + "description": "The streaming endpoint sku capacity.", + "type": "object" + }, + "ArmStreamingEndpointSkuInfo": { + "properties": { + "resourceType": { + "type": "string" + }, + "capacity": { + "$ref": "#/definitions/ArmStreamingEndpointCapacity" + }, + "sku": { + "$ref": "#/definitions/ArmStreamingEndpointSku" + } + }, + "type": "object" + }, + "StreamingEndpointSkuInfoListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ArmStreamingEndpointSkuInfo" + }, + "x-ms-identifiers": [], + "description": "The result of the List StreamingEndpoint skus." + } + }, + "type": "object" + } + }, + "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 94c6f6eea7e944f413bdf0d39dd82f8b78654ab9 Mon Sep 17 00:00:00 2001 From: StephanieHan Date: Thu, 21 Jul 2022 12:33:19 -0700 Subject: [PATCH 2/7] Updates readme --- .../mediaservices/resource-manager/readme.md | 51 ++++++++++++------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/specification/mediaservices/resource-manager/readme.md b/specification/mediaservices/resource-manager/readme.md index 32d6c3f99a93..d6701bc1d690 100644 --- a/specification/mediaservices/resource-manager/readme.md +++ b/specification/mediaservices/resource-manager/readme.md @@ -24,15 +24,15 @@ To see additional help and options, run: These are the global settings for the MediaServices API. -```yaml +``` yaml openapi-type: arm -tag: package-account-2021-11 +tag: package-2022-08 opt-in-extensible-enums: true ``` ### Suppression -```yaml +``` yaml directive: - suppress: R2016 where: $.definitions.TrackedResource.required @@ -62,11 +62,26 @@ directive: from: Accounts.json ``` + +### Tag: package-2022-08 + +These settings apply only when `--tag=package-2022-08` is specified on the command line. + +```yaml $(tag) == 'package-2022-08' +input-file: + - Microsoft.Media/stable/2022-08-01/AccountFilters.json + - Microsoft.Media/stable/2022-08-01/Accounts.json + - Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json + - Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json + - Microsoft.Media/stable/2022-08-01/Encoding.json + - Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json + - Microsoft.Media/stable/2022-08-01/streamingservice.json +``` ### Tag: package-account-2021-11 These settings apply only when `--tag=package-account-2021-11` is specified on the command line. -```yaml $(tag) == 'package-account-2021-11' +``` yaml $(tag) == 'package-account-2021-11' input-file: - Microsoft.Media/stable/2021-11-01/AccountFilters.json - Microsoft.Media/stable/2021-11-01/Accounts.json @@ -81,7 +96,7 @@ input-file: These settings apply only when `--tag=package-2021-11` is specified on the command line. -```yaml $(tag) == 'package-2021-11' +``` yaml $(tag) == 'package-2021-11' input-file: - Microsoft.Media/stable/2021-11-01/AccountFilters.json - Microsoft.Media/stable/2021-06-01/Accounts.json @@ -96,7 +111,7 @@ input-file: These settings apply only when `--tag=package-2021-06` is specified on the command line. -```yaml $(tag) == 'package-2021-06' +``` yaml $(tag) == 'package-2021-06' input-file: - Microsoft.Media/stable/2021-06-01/Accounts.json - Microsoft.Media/stable/2021-06-01/AccountFilters.json @@ -115,7 +130,7 @@ directive: These settings apply only when `--tag=package-2021-05` is specified on the command line. -```yaml $(tag) == 'package-2021-05' +``` yaml $(tag) == 'package-2021-05' input-file: - Microsoft.Media/stable/2020-05-01/AccountFilters.json - Microsoft.Media/stable/2021-05-01/Accounts.json @@ -135,7 +150,7 @@ directive: 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 @@ -155,7 +170,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 @@ -171,7 +186,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 @@ -187,7 +202,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 @@ -203,7 +218,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 @@ -219,7 +234,7 @@ 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 ``` @@ -228,7 +243,7 @@ input-file: 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 @@ -242,7 +257,7 @@ input-file: 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 @@ -261,7 +276,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-track2 @@ -281,7 +296,7 @@ swagger-to-sdk: 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 @@ -306,7 +321,7 @@ See configuration in [readme.java.md](./readme.java.md) ## Suppression -```yaml +``` yaml directive: - suppress: OBJECT_MISSING_REQUIRED_PROPERTY from: Encoding.json From f7ecf67ea3133f6d9ec5b9792ef1673631ddfa97 Mon Sep 17 00:00:00 2001 From: StephanieHan Date: Thu, 21 Jul 2022 12:33:22 -0700 Subject: [PATCH 3/7] Updates API version in new specs and examples --- .../stable/2022-08-01/AccountFilters.json | 2 +- .../stable/2022-08-01/Accounts.json | 2 +- .../2022-08-01/AssetsAndAssetFilters.json | 2 +- .../stable/2022-08-01/ContentKeyPolicies.json | 2 +- .../stable/2022-08-01/Encoding.json | 2 +- ...StreamingPoliciesAndStreamingLocators.json | 2 +- .../examples/accountFilters-create.json | 2 +- .../examples/accountFilters-delete.json | 2 +- .../examples/accountFilters-get-by-name.json | 2 +- .../examples/accountFilters-list-all.json | 2 +- .../examples/accountFilters-update.json | 2 +- .../accounts-check-name-availability.json | 2 +- .../2022-08-01/examples/accounts-delete.json | 2 +- .../examples/accounts-get-by-name.json | 2 +- .../examples/accounts-list-all-accounts.json | 2 +- .../accounts-list-media-edge-policies.json | 2 +- ...counts-subscription-list-all-accounts.json | 2 +- .../examples/accounts-sync-storage-keys.json | 2 +- .../examples/asset-tracks-create.json | 6 ++--- .../examples/asset-tracks-delete.json | 2 +- .../examples/asset-tracks-get-by-name.json | 2 +- .../examples/asset-tracks-list-all.json | 2 +- .../asset-tracks-operation-result-by-id.json | 2 +- ...ation-status-by-id-non-terminal-state.json | 4 +-- ...on-status-by-id-terminal-state-failed.json | 6 ++--- ...operation-status-by-id-terminal-state.json | 6 ++--- .../examples/asset-tracks-update-data.json | 6 ++--- .../examples/asset-tracks-update.json | 6 ++--- .../examples/assetFilters-create.json | 2 +- .../examples/assetFilters-delete.json | 2 +- .../examples/assetFilters-get-by-name.json | 2 +- .../examples/assetFilters-list-all.json | 2 +- .../examples/assetFilters-update.json | 2 +- .../2022-08-01/examples/assets-create.json | 2 +- .../2022-08-01/examples/assets-delete.json | 2 +- .../examples/assets-get-by-name.json | 2 +- .../examples/assets-get-encryption-keys.json | 2 +- .../2022-08-01/examples/assets-list-all.json | 2 +- .../examples/assets-list-by-date.json | 2 +- .../examples/assets-list-in-date-range.json | 2 +- .../examples/assets-list-sas-urls.json | 2 +- .../assets-list-streaming-locators.json | 2 +- .../2022-08-01/examples/assets-update.json | 2 +- .../examples/async-accounts-create.json | 6 ++--- .../examples/async-accounts-update.json | 6 ++--- ...-key-policies-create-multiple-options.json | 2 +- ...ntent-key-policies-create-nodrm-token.json | 2 +- ...nt-key-policies-create-playready-open.json | 2 +- ...nt-key-policies-create-widevine-token.json | 2 +- .../examples/content-key-policies-delete.json | 2 +- .../content-key-policies-get-by-name.json | 2 +- ...content-key-policies-get-with-secrets.json | 2 +- .../content-key-policies-list-all.json | 2 +- ...ent-key-policies-list-by-lastModified.json | 2 +- ...ntent-key-policies-list-in-date-range.json | 2 +- .../examples/content-key-policies-update.json | 2 +- .../2022-08-01/examples/jobs-cancel.json | 2 +- .../2022-08-01/examples/jobs-create.json | 2 +- .../2022-08-01/examples/jobs-delete.json | 2 +- .../2022-08-01/examples/jobs-get-by-name.json | 10 +++---- .../jobs-list-all-filter-by-created.json | 20 +++++++------- .../jobs-list-all-filter-by-lastmodified.json | 20 +++++++------- ...obs-list-all-filter-by-name-and-state.json | 10 +++---- .../jobs-list-all-filter-by-name.json | 18 ++++++------- .../jobs-list-all-filter-by-state-eq.json | 18 ++++++------- .../jobs-list-all-filter-by-state-ne.json | 18 ++++++------- .../2022-08-01/examples/jobs-list-all.json | 26 +++++++++---------- .../2022-08-01/examples/jobs-update.json | 6 ++--- .../examples/liveevent-allocate.json | 2 +- .../2022-08-01/examples/liveevent-create.json | 6 ++--- .../2022-08-01/examples/liveevent-delete.json | 6 ++--- .../examples/liveevent-list-all.json | 2 +- .../examples/liveevent-list-by-name.json | 2 +- .../2022-08-01/examples/liveevent-reset.json | 6 ++--- .../2022-08-01/examples/liveevent-start.json | 6 ++--- .../2022-08-01/examples/liveevent-stop.json | 6 ++--- .../2022-08-01/examples/liveevent-update.json | 6 ++--- .../examples/liveoutput-create.json | 2 +- .../examples/liveoutput-delete.json | 2 +- .../examples/liveoutput-list-all.json | 2 +- .../examples/liveoutput-list-by-name.json | 2 +- .../media-service-operation-result-by-id.json | 2 +- ...tatus-by-id-non-terminal-state-failed.json | 2 +- ...ation-status-by-id-non-terminal-state.json | 2 +- ...operation-status-by-id-terminal-state.json | 2 +- .../examples/operations-list-all.json | 2 +- .../private-endpoint-connection-delete.json | 2 +- ...ivate-endpoint-connection-get-by-name.json | 2 +- .../private-endpoint-connection-list.json | 2 +- .../private-endpoint-connection-put.json | 2 +- .../private-link-resources-get-by-name.json | 2 +- .../examples/private-link-resources-list.json | 2 +- .../streaming-locators-create-clear.json | 2 +- ...-create-secure-userDefinedContentKeys.json | 2 +- .../streaming-locators-create-secure.json | 2 +- .../examples/streaming-locators-delete.json | 2 +- .../streaming-locators-get-by-name.json | 2 +- .../streaming-locators-list-content-keys.json | 2 +- ...ors-list-paths-streaming-and-download.json | 2 +- ...ng-locators-list-paths-streaming-only.json | 2 +- .../examples/streaming-locators-list.json | 2 +- .../streaming-policies-create-clear.json | 2 +- ...cies-create-commonEncryptionCbcs-only.json | 2 +- ...cies-create-commonEncryptionCenc-only.json | 2 +- ...licies-create-envelopeEncryption-only.json | 2 +- ...ming-policies-create-secure-streaming.json | 2 +- .../examples/streaming-policies-delete.json | 2 +- .../examples/streaming-policies-list.json | 4 +-- .../streaming-policy-get-by-name.json | 2 +- .../examples/streamingendpoint-create.json | 6 ++--- .../examples/streamingendpoint-delete.json | 6 ++--- .../examples/streamingendpoint-list-all.json | 2 +- .../streamingendpoint-list-by-name.json | 2 +- .../examples/streamingendpoint-list-skus.json | 2 +- .../examples/streamingendpoint-scale.json | 6 ++--- .../examples/streamingendpoint-start.json | 6 ++--- .../examples/streamingendpoint-stop.json | 6 ++--- .../examples/streamingendpoint-update.json | 6 ++--- .../examples/transforms-create.json | 2 +- .../examples/transforms-delete.json | 2 +- .../examples/transforms-get-by-name.json | 2 +- ...transforms-list-all-filter-by-created.json | 12 ++++----- ...forms-list-all-filter-by-lastmodified.json | 12 ++++----- .../transforms-list-all-filter-by-name.json | 2 +- .../examples/transforms-list-all.json | 2 +- .../examples/transforms-update.json | 2 +- .../stable/2022-08-01/streamingservice.json | 2 +- 127 files changed, 241 insertions(+), 241 deletions(-) diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json index 9a051070efbf..cf50989c8aa7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" + "version": "2022-08-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json index 46b7155e4b59..f3d818e47d3f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" + "version": "2022-08-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json index a3719ea6b4b6..448147c02316 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" + "version": "2022-08-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json index 5f765822749d..d5132f51fbd7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" + "version": "2022-08-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json index 70756c53fb91..26e24cff376e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" + "version": "2022-08-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json index 79cd435a61ae..6b783d469f25 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" + "version": "2022-08-01" }, "host": "management.azure.com", "consumes": [ diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json index 82627f3b3a3d..fa79c462d43b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "filterName": "newAccountFilter", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "presentationTimeRange": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json index 71831b8e29e4..306fadc9ce6a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json index fafdbcdbd0d7..88821861dd08 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "filterName": "accountFilterWithTrack", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json index 7f1cd088e1ed..798d9b92b5ff 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json index 0dd77db1fc73..54e4ee2976e2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "presentationTimeRange": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json index d5b24abf4221..544ae288fe5c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "locationName": "japanwest", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "name": "contosotv", "type": "videoAnalyzers" diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json index a55298655fe1..780c2fba8ed4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json index f90c838f8e38..4d215c3c2be1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosotv", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json index c988c7c13649..1038e2b4754b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json index 60ba1567e43f..c141b3a08218 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "deviceId": "contosiothubhost_contosoiotdevice" } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json index ad0a2af517ca..677b051c9292 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json index 175980e05c11..808412b5101f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "id": "contososportsstore" } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json index 746e7f9f96d6..179098a112d5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "trackName": "text3", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "track": { @@ -20,8 +20,8 @@ "responses": { "201": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" }, "body": { "name": "text3", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json index 21d1928098f1..a2597a0d9ab0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "trackName": "text2", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json index 3d70f779d823..3d299e5dd0e2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "trackName": "text1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json index ef4e305f35f6..daf94cc8eabd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountRainer", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json index 74166e3368cb..65e069ac69f4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json @@ -6,7 +6,7 @@ "assetName": "ClimbingMountRainer", "trackName": "text1", "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json index 5f91c6009e6c..facdd42a2df3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json @@ -6,14 +6,14 @@ "assetName": "ClimbingMountRainer", "trackName": "text1", "operationId": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { "body": { "name": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "startTime": "2021-11-01T00:00:00Z", + "startTime": "2022-08-01T00:00:00Z", "status": "InProgress" } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json index 227403733933..80a76f09732d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json @@ -6,15 +6,15 @@ "assetName": "ClimbingMountRainer", "trackName": "text1", "operationId": "86835197-3b47-402e-b313-70b82eaba296", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { "body": { "name": "86835197-3b47-402e-b313-70b82eaba296", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/86835197-3b47-402e-b313-70b82eaba296", - "startTime": "2021-11-01T00:00:00Z", - "endTime": "2021-11-01T00:00:30Z", + "startTime": "2022-08-01T00:00:00Z", + "endTime": "2022-08-01T00:00:30Z", "status": "Failed", "error": { "code": "ClientError", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json index 7787f20f5282..817ccc15b3a2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json @@ -6,15 +6,15 @@ "assetName": "ClimbingMountRainer", "trackName": "text1", "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { "body": { "name": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "startTime": "2021-11-01T00:00:00Z", - "endTime": "2021-11-01T00:00:30Z", + "startTime": "2022-08-01T00:00:00Z", + "endTime": "2022-08-01T00:00:30Z", "status": "Succeeded" } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json index fb7b06d50467..415214a1bef1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json @@ -5,13 +5,13 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "trackName": "text2", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json index f309ca80a98a..7d9b717cd4d1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "trackName": "text1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "track": { @@ -18,8 +18,8 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" }, "body": { "name": "text1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json index cea073746adb..be259a0af6dc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "filterName": "newAssetFilter", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "presentationTimeRange": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json index d5c0fac2ef0f..f88eb3b116d9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json index e476bb7723f6..77f65cb7f6b6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json index 031a1cc08ae4..1039e176b815 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountRainer", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json index 7521925a221b..4849f4264f77 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json @@ -5,7 +5,7 @@ "accountName": "contosomedia", "assetName": "ClimbingMountRainer", "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "presentationTimeRange": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json index 70e3f9968a72..32c315a44fb1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountLogan", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "description": "A documentary showing the ascent of Mount Logan", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json index 3c7f183268b4..733fc95e9233 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountAdams", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json index 7b2e31a7ad43..cfc9260e561c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountAdams", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json index a5cdcdc8b703..67a854a5add3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountSaintHelens", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json index 24d676a1a850..0409503ddff2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json index 6ee0fdc7d5b6..e138b62c1ab8 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "$orderby": "properties/created" }, "responses": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json index ed9df50ad8ac..2e5f18051759 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2021-11-01", + "api-version": "2022-08-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/2022-08-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json index eabf4f3c664a..16a86c603bea 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountBaker", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "permissions": "ReadWrite", "expiryTime": "2018-01-01T10:00:00.007Z" diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json index a1c71b3671d3..b3fc2595950e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountSaintHelens", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json index 5449669efbd6..d7aca4f5e86a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "assetName": "ClimbingMountBaker", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "description": "A documentary showing the ascent of Mount Baker in HD" diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json index 0973e7a7a7cc..c42a54025a66 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "location": "South Central US", "tags": { @@ -48,8 +48,8 @@ "responses": { "201": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" }, "body": { "location": "South Central US", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json index 768fcfa092cb..88bca32cf670 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "tags": { "key1": "value3" @@ -13,8 +13,8 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" }, "body": { "location": "South Central US", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json index 176cb19989ab..12ca651aaaf0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "description": "ArmPolicyDescription", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json index c084f4498063..870854b34262 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "description": "ArmPolicyDescription", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json index 353179050779..4098a77ad28c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "description": "ArmPolicyDescription", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json index 2c75d6701bde..c910bfa064ec 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "description": "ArmPolicyDescription", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json index 32fc45ccd967..740e40a1e5f0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json index 45f0e1458fa1..5577cb54df34 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json index 5ed7af0886e4..249c8998ea35 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json index 9a6af82323c6..0557613bed03 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json index 45d909a231dd..cdeb18dfa1ed 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-01", + "api-version": "2022-08-01", "$orderby": "properties/lastModified" }, "responses": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json index e35562227877..f5af4864cb8a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2021-11-01", + "api-version": "2022-08-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/2022-08-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json index c42f8f671ea3..c4678a0081e5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "description": "Updated Policy", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json index 1411466bff10..7f2408f9ddf9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json index 01d37f2763aa..f95807f12167 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json index d6ee433e9e79..1998f4ff3f53 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json index 19eed9fea6fc..b9b14ef8097c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", @@ -14,7 +14,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Queued", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -27,7 +27,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -43,10 +43,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json index f4e0c2c92def..aaab997821a6 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json @@ -1,11 +1,11 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", "transformName": "exampleTransform", - "$filter": "properties/created ge 2021-11-01T00:00:10.0000000Z and properties/created le 2021-11-01T00:00:20.0000000Z", + "$filter": "properties/created ge 2022-08-01T00:00:10.0000000Z and properties/created le 2022-08-01T00:00:20.0000000Z", "$orderby": "properties/created" }, "responses": { @@ -17,7 +17,7 @@ "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-11-01T00:00:10Z", + "created": "2022-08-01T00:00:10Z", "state": "Processing", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -30,7 +30,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:10Z", + "lastModified": "2022-08-01T00:00:10Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -48,10 +48,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:10Z", + "createdAt": "2022-08-01T00:00:10Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:10Z" + "lastModifiedAt": "2022-08-01T00:00:10Z" } }, { @@ -59,7 +59,7 @@ "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-11-01T00:00:20Z", + "created": "2022-08-01T00:00:20Z", "state": "Finished", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -72,7 +72,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:20Z", + "lastModified": "2022-08-01T00:00:20Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -92,10 +92,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:20Z", + "createdAt": "2022-08-01T00:00:20Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:20Z" + "lastModifiedAt": "2022-08-01T00:00:20Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json index 2bb5f2a10793..b0f3290e8ef9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json @@ -1,11 +1,11 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2021-11-01T00:00:10.0000000Z and properties/lastmodified le 2021-11-01T00:00:20.0000000Z", + "$filter": "properties/lastmodified ge 2022-08-01T00:00:10.0000000Z and properties/lastmodified le 2022-08-01T00:00:20.0000000Z", "$orderby": "properties/lastmodified desc" }, "responses": { @@ -17,7 +17,7 @@ "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-11-01T00:00:20Z", + "created": "2022-08-01T00:00:20Z", "state": "Finished", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -30,7 +30,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:20Z", + "lastModified": "2022-08-01T00:00:20Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -50,10 +50,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:20Z", + "createdAt": "2022-08-01T00:00:20Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:20Z" + "lastModifiedAt": "2022-08-01T00:00:20Z" } }, { @@ -61,7 +61,7 @@ "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-11-01T00:00:10Z", + "created": "2022-08-01T00:00:10Z", "state": "Processing", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -74,7 +74,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:10Z", + "lastModified": "2022-08-01T00:00:10Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -92,10 +92,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:10Z", + "createdAt": "2022-08-01T00:00:10Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:10Z" + "lastModifiedAt": "2022-08-01T00:00:10Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json index 1034180ff11f..92bcf566f604 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", @@ -16,7 +16,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Finished", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -29,7 +29,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -49,10 +49,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json index 3e90973d8de1..283627234daa 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", @@ -17,7 +17,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Queued", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -30,7 +30,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -46,10 +46,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } }, { @@ -57,7 +57,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Processing", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -70,7 +70,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -88,10 +88,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json index 93fbbd71ce2d..7e9c0579d453 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", @@ -16,7 +16,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Processing", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -29,7 +29,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -47,10 +47,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } }, { @@ -58,7 +58,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Processing", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -71,7 +71,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -89,10 +89,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json index 15cb4dbc82d8..95ffd45dfeac 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", @@ -16,7 +16,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Queued", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -29,7 +29,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -45,10 +45,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } }, { @@ -56,7 +56,7 @@ "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": "2021-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Finished", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -69,7 +69,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -89,10 +89,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json index 8e619592d973..55980eb90041 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", @@ -15,7 +15,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Queued", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -28,7 +28,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -44,10 +44,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } }, { @@ -55,7 +55,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Processing", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -68,7 +68,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -86,10 +86,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } }, { @@ -97,7 +97,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Finished", "input": { "@odata.type": "#Microsoft.Media.JobInputs", @@ -110,7 +110,7 @@ } ] }, - "lastModified": "2021-11-01T00:00:00Z", + "lastModified": "2022-08-01T00:00:00Z", "outputs": [ { "@odata.type": "#Microsoft.Media.JobOutputAsset", @@ -130,10 +130,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" + "lastModifiedAt": "2022-08-01T00:00:00Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json index ec6f5dc5720c..0a8a4801d7cf 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", @@ -30,7 +30,7 @@ "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-11-01T00:00:00Z", + "created": "2022-08-01T00:00:00Z", "state": "Queued", "description": "Example job to illustrate update.", "input": { @@ -60,7 +60,7 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", + "createdAt": "2022-08-01T00:00:00Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", "lastModifiedAt": "2021-07-12T10:44:30.9494087Z" diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json index 789abe61a734..209b9f66a0f4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json index a532229807d1..877eca1d65e0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "location": "West US", "tags": { @@ -47,8 +47,8 @@ "responses": { "201": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" }, "body": { "name": "myLiveEvent1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json index 511607ce29ee..5561429d828d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", "name": "myLiveEvent1", @@ -57,8 +57,8 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } }, "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json index b3277f092491..8c848e4c9a92 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json index 571d2deca262..4142074894d2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json index 9d3fc798a4bc..1522ade43e51 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json @@ -4,13 +4,13 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } }, "200": {} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json index 9d3fc798a4bc..1522ade43e51 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json @@ -4,13 +4,13 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } }, "200": {} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json index 56125b9214fe..ac52130ccbfb 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "removeOutputsOnStop": false } @@ -12,8 +12,8 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } }, "200": {} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json index 642ac6e07117..5eb9ddf006ee 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "location": "West US", "tags": { @@ -46,8 +46,8 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" }, "body": { "name": "myLiveEvent1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json index 233d556acf96..a8095e023fcc 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json @@ -5,7 +5,7 @@ "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", "liveOutputName": "myLiveOutput1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "description": "test live output 1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json index 4cacdb165e55..9e5aecb00dfa 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json @@ -5,7 +5,7 @@ "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", "liveOutputName": "myLiveOutput1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json index 00294ed84bd5..4a8d922e6338 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json index 4411aa20859b..7f4a8ccd7541 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json @@ -5,7 +5,7 @@ "accountName": "slitestmedia10", "liveEventName": "myLiveEvent1", "liveOutputName": "myLiveOutput1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json index 32c3dd463644..18e94a271370 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "locationName": "westus", "operationId": "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json index a52f1cff3a37..2464ac417100 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "locationName": "westus", "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json index f94b26d30a33..34aeccca8b0f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "locationName": "westus", "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json index 37026b258712..20c7aaf0a230 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "locationName": "westus", "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json index 31a2885b7f7b..d905fdb14799 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json index 5d9c75d2dd02..e004f31f4c6f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contososports", "name": "connectionName1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json index d19c6752d450..f9923b54a970 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contososports", "name": "connectionName1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json index 353ee141d7ce..7db9acaaca35 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-put.json index c0bf4ec197b4..45fbd099444c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-put.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-put.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contososports", "name": "connectionName1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "privateLinkServiceConnectionState": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-get-by-name.json index fde8ac990d7a..cdbd51cf250c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contososports", "name": "keydelivery", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json index f76bf16a1b9e..9c133fa309c9 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contososports", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json index 1e53b21c26cb..2f05ae00f97c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "streamingPolicyName": "clearStreamingPolicy", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json index 55dcc252f1f3..7889bbf5cfdb 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "assetName": "ClimbingMountRainier", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json index 4a5ac59345cd..ebe242d981e1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "streamingPolicyName": "secureStreamingPolicy", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json index 3ed03d2d7fbc..b12888a46c25 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json index f1696d41a027..1dd76890c530 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json index 75de7463fca8..c2f70478ea31 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "secureStreamingLocator", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json index 1d38cc3e4170..1ab507ad1835 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json index ee15b07c055d..ef8b8e3f8864 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingLocatorName": "secureStreamingLocator", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json index 35aaf789cf12..7f3fa959ea6b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json index 53adcedf861a..09cfae951ad1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "noEncryption": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json index 84d41e126c1a..7f3e8074320a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json index 6338440a89f9..dab4ef7594a2 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json index 3f496b4252b2..7f18a40bf5c5 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json index e9c935bd8e93..a0670c3f3fc7 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "properties": { "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json index 939e5226c838..b020360f557b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json index 6083551e2922..3bee4522bf8e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "api-version": "2021-11-01" + "api-version": "2022-08-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=2021-11-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" + "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2022-08-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json index f0436fddc735..8faa340cd09f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "contoso", "accountName": "contosomedia", "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json index 6ecd0b1284ef..131a1423fe9a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "location": "West US", "tags": { @@ -46,8 +46,8 @@ "responses": { "201": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" }, "body": { "name": "myStreamingEndpoint1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json index 12c7f435feac..bbb49ae4be66 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", "name": "myStreamingEndpoint1", @@ -39,8 +39,8 @@ "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } }, "200": {}, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json index 1c7db6cf5940..d61aa36df148 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json @@ -3,7 +3,7 @@ "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json index f9aa24ea5f9d..12bbc6fecc5f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json index 9fc2284213d9..f314b375e7c4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "200": { diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json index f0944822c10b..d7c66985ffce 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "scaleUnit": 5 } @@ -13,8 +13,8 @@ "200": {}, "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json index 6f538cfe301f..ff947ee41c2f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json @@ -4,13 +4,13 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } }, "200": {} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json index 6f538cfe301f..ff947ee41c2f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json @@ -4,13 +4,13 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01" + "api-version": "2022-08-01" }, "responses": { "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" } }, "200": {} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json index 975b022a81bd..9b0cf0719a48 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json @@ -4,7 +4,7 @@ "resourceGroupName": "mediaresources", "accountName": "slitestmedia10", "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01", + "api-version": "2022-08-01", "parameters": { "location": "West US", "tags": { @@ -49,8 +49,8 @@ }, "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" + "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", + "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" }, "body": { "name": "myStreamingEndpoint1", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json index 004712339822..e1aa623c920c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json index 8b1bc1ae017c..375f14417e90 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json index 76cde7f91778..16eb76190ea4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json index 4c1789c6f245..5e369a11f0b0 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json @@ -1,10 +1,10 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", - "$filter": "properties/created gt 2021-11-01T00:00:00.0000000Z and properties/created le 2021-11-01T00:00:10.0000000Z", + "$filter": "properties/created gt 2022-08-01T00:00:00.0000000Z and properties/created le 2022-08-01T00:00:10.0000000Z", "$orderby": "properties/created" }, "responses": { @@ -16,9 +16,9 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", "type": "Microsoft.Media/mediaservices/transforms", "properties": { - "created": "2021-11-01T00:00:10Z", + "created": "2022-08-01T00:00:10Z", "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-11-01T00:00:10Z", + "lastModified": "2022-08-01T00:00:10Z", "outputs": [ { "onError": "StopProcessingJob", @@ -34,10 +34,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:10Z", + "createdAt": "2022-08-01T00:00:10Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:10Z" + "lastModifiedAt": "2022-08-01T00:00:10Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json index e4c344817f6f..a586d1f7c1d1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json @@ -1,10 +1,10 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2021-11-01T00:00:00.0000000Z and properties/lastmodified le 2021-11-01T00:00:10.0000000Z", + "$filter": "properties/lastmodified gt 2022-08-01T00:00:00.0000000Z and properties/lastmodified le 2022-08-01T00:00:10.0000000Z", "$orderby": "properties/lastmodified desc" }, "responses": { @@ -16,9 +16,9 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", "type": "Microsoft.Media/mediaservices/transforms", "properties": { - "created": "2021-11-01T00:00:10Z", + "created": "2022-08-01T00:00:10Z", "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-11-01T00:00:10Z", + "lastModified": "2022-08-01T00:00:10Z", "outputs": [ { "onError": "StopProcessingJob", @@ -34,10 +34,10 @@ "systemData": { "createdBy": "contoso@microsoft.com", "createdByType": "User", - "createdAt": "2021-11-01T00:00:10Z", + "createdAt": "2022-08-01T00:00:10Z", "lastModifiedBy": "contoso@microsoft.com", "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:10Z" + "lastModifiedAt": "2022-08-01T00:00:10Z" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json index 594dd6fbaaad..bfe8159f64da 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json index d6bae816296b..9748a1c8e47c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia" diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json index 11a28ba64ecd..84684d05f9a3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-11-01", + "api-version": "2022-08-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contosoresources", "accountName": "contosomedia", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json index fe9050747dea..f66607714725 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json @@ -6,7 +6,7 @@ "info": { "title": "Azure Media Services", "description": "Live event and streaming endpoint management APIs", - "version": "2021-11-01" + "version": "2022-08-01" }, "host": "management.azure.com", "consumes": [ From deb12892f541254a5dc456e28427782758f40c2c Mon Sep 17 00:00:00 2001 From: Stephanie Han Date: Thu, 21 Jul 2022 13:53:14 -0700 Subject: [PATCH 4/7] remove unrelated changes --- .../stable/2022-08-01/AccountFilters.json | 518 --- .../stable/2022-08-01/Accounts.json | 1821 ---------- .../2022-08-01/AssetsAndAssetFilters.json | 2023 ----------- .../stable/2022-08-01/ContentKeyPolicies.json | 1175 ------ .../stable/2022-08-01/Encoding.json | 3233 ----------------- ...StreamingPoliciesAndStreamingLocators.json | 1268 ------- .../mediaservices/resource-manager/readme.md | 12 +- 7 files changed, 6 insertions(+), 10044 deletions(-) delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json deleted file mode 100644 index cf50989c8aa7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AccountFilters.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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/2022-08-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json deleted file mode 100644 index f3d818e47d3f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Accounts.json +++ /dev/null @@ -1,1821 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-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": { - "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" - }, - "x-ms-identifiers": [ - "name" - ], - "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", - "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" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of log specifications.", - "readOnly": true - }, - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "x-ms-identifiers": [ - "name" - ], - "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": { - "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." - }, - "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", - "required": [ - "name" - ], - "description": "An operation." - }, - "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." - }, - "identity": { - "$ref": "#/definitions/ResourceIdentity", - "description": "The storage account identity." - }, - "status": { - "type": "string", - "description": "The current status of the storage account mapping.", - "readOnly": true - } - }, - "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." - }, - "keyDelivery": { - "$ref": "#/definitions/KeyDelivery", - "description": "The Key Delivery properties for Media Services account." - }, - "publicNetworkAccess": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "PublicNetworkAccess", - "values": [ - { - "value": "Enabled", - "description": "Public network access is enabled." - }, - { - "value": "Disabled", - "description": "Public network access is disabled." - } - ], - "modelAsString": true - }, - "description": "Whether or not public network access is allowed for resources under the Media Services account.", - "x-nullable": true - }, - "provisioningState": { - "type": "string", - "enum": [ - "Failed", - "InProgress", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "values": [ - { - "value": "Failed", - "description": "Provisioning state failed." - }, - { - "value": "InProgress", - "description": "Provisioning state in progress." - }, - { - "value": "Succeeded", - "description": "Provisioning state succeeded." - } - ], - "modelAsString": true - }, - "description": "Provisioning state of the Media Services account.", - "readOnly": true, - "x-nullable": false - }, - "privateEndpointConnections": { - "items": { - "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "description": "The Private Endpoint Connections created for the Media Service account.", - "type": "array", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - } - }, - "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": { - "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", - "description": "The identity type." - }, - "principalId": { - "type": "string", - "format": "uuid", - "description": "The Principal ID of the identity.", - "readOnly": true, - "x-nullable": true - }, - "tenantId": { - "type": "string", - "format": "uuid", - "description": "The Tenant ID of the identity.", - "readOnly": true, - "x-nullable": true - }, - "userAssignedIdentities": { - "$ref": "#/definitions/UserAssignedManagedIdentities", - "description": "The user assigned managed identities." - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "UserAssignedManagedIdentity": { - "properties": { - "clientId": { - "type": "string", - "format": "uuid", - "description": "The client ID.", - "readOnly": true, - "x-nullable": true - }, - "principalId": { - "type": "string", - "format": "uuid", - "description": "The principal ID.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object" - }, - "UserAssignedManagedIdentities": { - "type": "object", - "description": "The User Assigned Managed Identities.", - "additionalProperties": { - "$ref": "#/definitions/UserAssignedManagedIdentity" - } - }, - "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" - }, - "ResourceIdentity": { - "properties": { - "userAssignedIdentity": { - "type": "string", - "description": "The user assigned managed identity's ARM ID to use when accessing a resource." - }, - "useSystemAssignedIdentity": { - "type": "boolean", - "description": "Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity." - } - }, - "type": "object", - "required": [ - "useSystemAssignedIdentity" - ] - }, - "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." - }, - "identity": { - "$ref": "#/definitions/ResourceIdentity", - "description": "The Key Vault identity." - }, - "status": { - "type": "string", - "description": "The current status of the Key Vault mapping.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "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" - }, - "MediaServiceOperationStatus": { - "properties": { - "name": { - "type": "string", - "description": "Operation identifier." - }, - "id": { - "type": "string", - "description": "Operation resource ID." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Operation start time." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "Operation end time." - }, - "status": { - "type": "string", - "description": "Operation status." - }, - "error": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name", - "status" - ], - "description": "Status of media service operation." - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "A collection of Operation items." - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-long-running-operation": true, - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/async-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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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": { - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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/MediaServiceUpdate" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/async-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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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 all 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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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": "List supported group IDs.", - "operationId": "PrivateLinkResources_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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 details of a group ID.", - "operationId": "PrivateLinkResources_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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": "List private endpoint connections.", - "description": "List all private endpoint connections.", - "operationId": "PrivateEndpointConnections_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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 the details of a private endpoint connection.", - "operationId": "PrivateEndpointConnections_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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 a private endpoint connection.", - "description": "Update an existing private endpoint connection.", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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/v2/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 a private endpoint connection.", - "description": "Deletes a private endpoint connection.", - "operationId": "PrivateEndpointConnections_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "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/locations/{locationName}/mediaServicesOperationStatuses/{operationId}": { - "get": { - "summary": "Get operation status.", - "description": "Get media service operation status.", - "operationId": "MediaServicesOperationStatuses_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceOperationStatus" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation ID." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation when it is completed.": { - "$ref": "examples/media-service-operation-status-by-id-terminal-state.json" - }, - "Get status of asynchronous operation when it is ongoing.": { - "$ref": "examples/media-service-operation-status-by-id-non-terminal-state.json" - }, - "Get status of asynchronous operation when it is completed with error.": { - "$ref": "examples/media-service-operation-status-by-id-non-terminal-state-failed.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/mediaServicesOperationResults/{operationId}": { - "get": { - "summary": "Get operation result.", - "description": "Get media service operation result.", - "operationId": "MediaServicesOperationResults_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation.": { - "$ref": "examples/media-service-operation-result-by-id.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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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" - } - } - } - } - }, - "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/2022-08-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json deleted file mode 100644 index 448147c02316..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json +++ /dev/null @@ -1,2023 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-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" - }, - "x-ms-identifiers": [ - "assetFileId" - ], - "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" - }, - "x-ms-identifiers": [ - "name" - ], - "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/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "HlsSettings": { - "properties": { - "default": { - "type": "boolean", - "description": "The default for the HLS setting." - }, - "forced": { - "type": "boolean", - "description": "The forced for the HLS setting." - }, - "characteristics": { - "type": "string", - "description": "The characteristics for the HLS setting." - } - }, - "type": "object", - "description": "The HLS setting for a text track." - }, - "TrackBase": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for concrete track types. A derived type must be used to represent the Track." - }, - "AudioTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an audio track in the asset." - }, - "VideoTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a video track in the asset." - }, - "TextTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.TextTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": { - "fileName": { - "type": "string", - "description": "The file name to the source file. This file is located in the storage container of the asset." - }, - "displayName": { - "type": "string", - "description": "The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA." - }, - "languageCode": { - "type": "string", - "description": "The RFC5646 language code for the text track.", - "readOnly": true - }, - "playerVisibility": { - "type": "string", - "enum": [ - "Hidden", - "Visible" - ], - "x-ms-enum": { - "name": "Visibility", - "values": [ - { - "value": "Hidden", - "description": "The track is hidden to video player." - }, - { - "value": "Visible", - "description": "The track is visible to video player." - } - ], - "modelAsString": true - }, - "description": "When PlayerVisibility is set to \"Visible\", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to \"Hidden\", the text will not be available to the client. The default value is \"Visible\"." - }, - "hlsSettings": { - "$ref": "#/definitions/HlsSettings", - "description": "The HLS specific setting for the text track." - } - }, - "type": "object", - "description": "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks." - }, - "AssetTrackProperties": { - "properties": { - "track": { - "$ref": "#/definitions/TrackBase", - "description": "Detailed information about a track in the asset." - }, - "provisioningState": { - "type": "string", - "enum": [ - "Failed", - "InProgress", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "values": [ - { - "value": "Failed", - "description": "Provisioning state failed." - }, - { - "value": "InProgress", - "description": "Provisioning state in progress." - }, - { - "value": "Succeeded", - "description": "Provisioning state succeeded." - } - ], - "modelAsString": true - }, - "description": "Provisioning state of the asset track.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "Properties of a video, audio or text track in the asset." - }, - "AssetTrack": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetTrackProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Asset Track resource." - }, - "AssetTrackOperationStatus": { - "properties": { - "name": { - "type": "string", - "description": "Operation identifier." - }, - "id": { - "type": "string", - "description": "Operation resource ID." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Operation start time." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "Operation end time." - }, - "status": { - "type": "string", - "description": "Operation status." - }, - "error": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name", - "status" - ], - "description": "Status of asset track operation." - }, - "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." - }, - "AssetTrackCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "A collection of AssetTrack items." - } - }, - "type": "object", - "description": "A collection of AssetTrack 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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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", - "format": "int32", - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks": { - "get": { - "summary": "List Tracks in the Asset", - "description": "Lists the Tracks in the asset", - "operationId": "Tracks_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrackCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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": null - }, - "x-ms-examples": { - "Lists all Tracks": { - "$ref": "examples/asset-tracks-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}": { - "get": { - "summary": "Get a Track", - "description": "Get the details of a Track in the Asset", - "operationId": "Tracks_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Track by name": { - "$ref": "examples/asset-tracks-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Track", - "description": "Create or update a Track in the asset", - "operationId": "Tracks_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "201": { - "description": "Created", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Creates a Track": { - "$ref": "examples/asset-tracks-create.json" - } - } - }, - "delete": { - "summary": "Delete a Track", - "description": "Deletes a Track in the asset", - "operationId": "Tracks_Delete", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a Track": { - "$ref": "examples/asset-tracks-delete.json" - } - } - }, - "patch": { - "summary": "Update an Track", - "description": "Updates an existing Track in the asset", - "operationId": "Tracks_Update", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a Track": { - "$ref": "examples/asset-tracks-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/updateTrackData": { - "post": { - "summary": "Update the track data", - "description": "Update the track data. Call this API after any changes are made to the track data stored in the asset container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not be reflected immediately. CDN cache may also need to be purged if applicable.", - "operationId": "Tracks_UpdateTrackData", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update the data for a tracks": { - "$ref": "examples/asset-tracks-update-data.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationStatuses/{operationId}": { - "get": { - "summary": "Get operation status.", - "description": "Get asset track operation status.", - "operationId": "OperationStatuses_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrackOperationStatus" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation when it is completed.": { - "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state.json" - }, - "Get status of asynchronous operation when it is ongoing.": { - "$ref": "examples/asset-tracks-operation-status-by-id-non-terminal-state.json" - }, - "Get status of asynchronous operation when it is completed with error.": { - "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state-failed.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationResults/{operationId}": { - "get": { - "summary": "Get operation result.", - "description": "Get asset track operation result.", - "operationId": "OperationResults_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get result of asynchronous operation.": { - "$ref": "examples/asset-tracks-operation-result-by-id.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/2022-08-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json deleted file mode 100644 index d5132f51fbd7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json +++ /dev/null @@ -1,1175 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-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" - }, - "x-ms-identifiers": [], - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [ - "policyOptionId" - ], - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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", - "format": "int32", - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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/2022-08-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json deleted file mode 100644 index 26e24cff376e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/Encoding.json +++ /dev/null @@ -1,3233 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-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": { - "properties": { - "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", - "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": { - "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": { - "allOf": [ - { - "$ref": "#/definitions/H265VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Main", - "Main10" - ], - "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)" - }, - { - "description": "Main 10 profile (https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Main_10)", - "value": "Main10" - } - ], - "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)." - }, - "crf": { - "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 28.", - "format": "float", - "type": "number" - }, - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [ - "inputLabel" - ], - "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": { - "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": { - "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)." - }, - "crf": { - "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 23.", - "format": "float", - "type": "number" - }, - "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": { - "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" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.264 layers to be produced by the encoder." - }, - "rateControlMode": { - "description": "The video rate control mode", - "enum": [ - "ABR", - "CBR", - "CRF" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "H264RateControlMode", - "values": [ - { - "description": "Average Bitrate (ABR) mode that hits the target bitrate: Default mode.", - "value": "ABR" - }, - { - "description": "Constant Bitrate (CBR) mode that tightens bitrate variations around target bitrate.", - "value": "CBR" - }, - { - "description": "Constant Rate Factor (CRF) mode that targets at constant subjective quality.", - "value": "CRF" - } - ] - } - }, - "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." - } - }, - "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" - }, - "x-ms-identifiers": [], - "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": { - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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": { - "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": { - "configurations": { - "$ref": "#/definitions/PresetConfigurations", - "description": "Optional configuration settings for encoder. Configurations is only supported for ContentAwareEncoding and H265ContentAwareEncoding BuiltInStandardEncoderPreset." - }, - "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" - }, - "x-ms-identifiers": [], - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/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. Query strings will not be returned in service responses to prevent sensitive data exposure." - }, - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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. The query strings will not be returned in service responses to prevent sensitive data exposure." - } - }, - "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 - }, - "presetOverride": { - "$ref": "#/definitions/Preset", - "description": "A preset used to override the preset in the corresponding transform output." - }, - "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" - }, - "x-ms-identifiers": [ - "code" - ], - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/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." - }, - "PresetConfigurations": { - "description": "An object of optional configuration settings for encoder.", - "properties": { - "complexity": { - "description": "Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "Complexity", - "values": [ - { - "description": "Configures the encoder to use settings optimized for faster encoding. Quality is sacrificed to decrease encoding time.", - "value": "Speed" - }, - { - "description": "Configures the encoder to use settings that achieve a balance between speed and quality.", - "value": "Balanced" - }, - { - "description": "Configures the encoder to use settings optimized to produce higher quality output at the expense of slower overall encode time.", - "value": "Quality" - } - ] - } - }, - "interleaveOutput": { - "description": "Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.", - "enum": [ - "NonInterleavedOutput", - "InterleavedOutput" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "InterleaveOutput", - "values": [ - { - "description": "The output is video-only or audio-only.", - "value": "NonInterleavedOutput" - }, - { - "description": "The output includes both audio and video.", - "value": "InterleavedOutput" - } - ] - } - }, - "keyFrameIntervalInSeconds": { - "description": "The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.", - "format": "float", - "type": "number" - }, - "maxBitrateBps": { - "description": "The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.", - "format": "int32", - "type": "integer" - }, - "maxHeight": { - "description": "The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.", - "format": "int32", - "type": "integer" - }, - "maxLayers": { - "description": "The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.", - "format": "int32", - "type": "integer" - }, - "minBitrateBps": { - "description": "The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.", - "format": "int32", - "type": "integer" - }, - "minHeight": { - "description": "The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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/2022-08-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index 6b783d469f25..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1268 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/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" - }, - "x-ms-identifiers": [], - "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" - }, - "x-ms-identifiers": [], - "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/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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", - "format": "int32", - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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", - "format": "int32", - "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" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "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/readme.md b/specification/mediaservices/resource-manager/readme.md index d6701bc1d690..5e56089994d7 100644 --- a/specification/mediaservices/resource-manager/readme.md +++ b/specification/mediaservices/resource-manager/readme.md @@ -69,12 +69,12 @@ These settings apply only when `--tag=package-2022-08` is specified on the comma ```yaml $(tag) == 'package-2022-08' input-file: - - Microsoft.Media/stable/2022-08-01/AccountFilters.json - - Microsoft.Media/stable/2022-08-01/Accounts.json - - Microsoft.Media/stable/2022-08-01/AssetsAndAssetFilters.json - - Microsoft.Media/stable/2022-08-01/ContentKeyPolicies.json - - Microsoft.Media/stable/2022-08-01/Encoding.json - - Microsoft.Media/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json + - Microsoft.Media/stable/2021-11-01/AccountFilters.json + - Microsoft.Media/stable/2021-11-01/Accounts.json + - Microsoft.Media/stable/2021-11-01/AssetsAndAssetFilters.json + - Microsoft.Media/stable/2021-11-01/ContentKeyPolicies.json + - Microsoft.Media/stable/2021-11-01/Encoding.json + - Microsoft.Media/stable/2021-11-01/StreamingPoliciesAndStreamingLocators.json - Microsoft.Media/stable/2022-08-01/streamingservice.json ``` ### Tag: package-account-2021-11 From 592358feb93a1756db5b5518a0db25dee7c18a4a Mon Sep 17 00:00:00 2001 From: Stephanie Han Date: Thu, 21 Jul 2022 14:06:36 -0700 Subject: [PATCH 5/7] delete unrelated examples --- .../examples/accountFilters-create.json | 171 -- .../examples/accountFilters-delete.json | 13 - .../examples/accountFilters-get-by-name.json | 55 - .../examples/accountFilters-list-all.json | 111 -- .../examples/accountFilters-update.json | 81 - .../accounts-check-name-availability.json | 21 - .../2022-08-01/examples/accounts-delete.json | 12 - .../examples/accounts-get-by-name.json | 94 - .../examples/accounts-list-all-accounts.json | 148 -- .../accounts-list-media-edge-policies.json | 27 - ...counts-subscription-list-all-accounts.json | 75 - .../examples/accounts-sync-storage-keys.json | 14 - .../examples/asset-tracks-create.json | 58 - .../examples/asset-tracks-delete.json | 14 - .../examples/asset-tracks-get-by-name.json | 29 - .../examples/asset-tracks-list-all.json | 74 - .../asset-tracks-operation-result-by-id.json | 31 - ...ation-status-by-id-non-terminal-state.json | 21 - ...on-status-by-id-terminal-state-failed.json | 26 - ...operation-status-by-id-terminal-state.json | 22 - .../examples/asset-tracks-update-data.json | 18 - .../examples/asset-tracks-update.json | 41 - .../examples/assetFilters-create.json | 172 -- .../examples/assetFilters-delete.json | 14 - .../examples/assetFilters-get-by-name.json | 67 - .../examples/assetFilters-list-all.json | 131 -- .../examples/assetFilters-update.json | 82 - .../2022-08-01/examples/assets-create.json | 49 - .../2022-08-01/examples/assets-delete.json | 13 - .../examples/assets-get-by-name.json | 27 - .../examples/assets-get-encryption-keys.json | 33 - .../2022-08-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 - .../2022-08-01/examples/assets-update.json | 32 - .../examples/async-accounts-create.json | 212 --- .../examples/async-accounts-update.json | 97 -- ...-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 | 62 - ...content-key-policies-get-with-secrets.json | 57 - .../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 - .../2022-08-01/examples/jobs-cancel.json | 13 - .../2022-08-01/examples/jobs-create.json | 70 - .../2022-08-01/examples/jobs-delete.json | 14 - .../2022-08-01/examples/jobs-get-by-name.json | 54 - .../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 -- .../2022-08-01/examples/jobs-list-all.json | 143 -- .../2022-08-01/examples/jobs-update.json | 71 - .../media-service-operation-result-by-id.json | 100 -- ...tatus-by-id-non-terminal-state-failed.json | 24 - ...ation-status-by-id-non-terminal-state.json | 20 - ...operation-status-by-id-terminal-state.json | 20 - .../examples/operations-list-all.json | 1539 ----------------- .../private-endpoint-connection-delete.json | 13 - ...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 | 26 - .../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 | 29 - .../examples/transforms-create.json | 84 - .../examples/transforms-delete.json | 13 - .../examples/transforms-get-by-name.json | 41 - ...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 - 98 files changed, 7749 deletions(-) delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-put.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json deleted file mode 100644 index fa79c462d43b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-delete.json deleted file mode 100644 index 306fadc9ce6a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json deleted file mode 100644 index 88821861dd08..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2022-08-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" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-list-all.json deleted file mode 100644 index 798d9b92b5ff..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json deleted file mode 100644 index 54e4ee2976e2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json deleted file mode 100644 index 544ae288fe5c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "locationName": "japanwest", - "api-version": "2022-08-01", - "parameters": { - "name": "contosotv", - "type": "videoAnalyzers" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json deleted file mode 100644 index 780c2fba8ed4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json deleted file mode 100644 index 4d215c3c2be1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-get-by-name.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosotv", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "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": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "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/2022-08-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json deleted file mode 100644 index 1038e2b4754b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2022-08-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" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "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": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "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" - } - } - } - ] - } - }, - { - "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" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json deleted file mode 100644 index c141b3a08218..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-list-media-edge-policies.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2022-08-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/2022-08-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index 677b051c9292..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2022-08-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" - } - ], - "privateEndpointConnections": [] - } - }, - { - "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" - } - ], - "privateEndpointConnections": [] - } - }, - { - "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" - } - ], - "privateEndpointConnections": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json deleted file mode 100644 index 808412b5101f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2022-08-01", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json deleted file mode 100644 index 179098a112d5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text3", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "A new track", - "fileName": "text3.ttml", - "playerVisibility": "Visible" - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "name": "text3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text3.ttml", - "displayName": "A new track", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - }, - "200": { - "body": { - "name": "text3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text3.ttml", - "displayName": "A new track", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json deleted file mode 100644 index a2597a0d9ab0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text2", - "api-version": "2022-08-01" - }, - "responses": { - "202": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json deleted file mode 100644 index 3d299e5dd0e2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json deleted file mode 100644 index daf94cc8eabd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-list-all.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "video", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/video", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.VideoTrack" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "audio", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/audio", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.AudioTrack" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "text2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text2", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text2.vtt", - "displayName": "user uploaded text track", - "languageCode": "en-us", - "playerVisibility": "Hidden", - "hlsSettings": { - "default": true, - "forced": true, - "characteristics": "public.accessibility.transcribes-spoken-dialog,public.easy-to-read" - } - }, - "provisioningState": "Succeeded" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json deleted file mode 100644 index 65e069ac69f4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationResults/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "type": "Microsoft.Media/mediaservices/assets/tracks/operationResults", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - } - }, - "202": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json deleted file mode 100644 index facdd42a2df3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "startTime": "2022-08-01T00:00:00Z", - "status": "InProgress" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json deleted file mode 100644 index 80a76f09732d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "86835197-3b47-402e-b313-70b82eaba296", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "86835197-3b47-402e-b313-70b82eaba296", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/86835197-3b47-402e-b313-70b82eaba296", - "startTime": "2022-08-01T00:00:00Z", - "endTime": "2022-08-01T00:00:30Z", - "status": "Failed", - "error": { - "code": "ClientError", - "message": "Error while parsing WEBVTT file and creating CMFT header." - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json deleted file mode 100644 index 817ccc15b3a2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "startTime": "2022-08-01T00:00:00Z", - "endTime": "2022-08-01T00:00:30Z", - "status": "Succeeded" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json deleted file mode 100644 index 415214a1bef1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update-data.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text2", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json deleted file mode 100644 index 7d9b717cd4d1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-update.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "A new name" - } - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "A new name", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json deleted file mode 100644 index be259a0af6dc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-delete.json deleted file mode 100644 index f88eb3b116d9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json deleted file mode 100644 index 77f65cb7f6b6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2022-08-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" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-list-all.json deleted file mode 100644 index 1039e176b815..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json deleted file mode 100644 index 4849f4264f77..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json deleted file mode 100644 index 32c315a44fb1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-delete.json deleted file mode 100644 index 733fc95e9233..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json deleted file mode 100644 index cfc9260e561c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-by-name.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2022-08-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" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-get-encryption-keys.json deleted file mode 100644 index 67a854a5add3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json deleted file mode 100644 index 0409503ddff2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-by-date.json deleted file mode 100644 index e138b62c1ab8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json deleted file mode 100644 index 2e5f18051759..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json deleted file mode 100644 index 16a86c603bea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-streaming-locators.json deleted file mode 100644 index b3fc2595950e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-update.json deleted file mode 100644 index d7aca4f5e86a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/async-accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json deleted file mode 100644 index c42a54025a66..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-create.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2022-08-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "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": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "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" - } - } - } - ] - } - } - }, - "200": { - "body": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "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": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "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/2022-08-01/examples/async-accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json deleted file mode 100644 index 88bca32cf670..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-accounts-update.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2022-08-01", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "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": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "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/2022-08-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 12ca651aaaf0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 870854b34262..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index 4098a77ad28c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index c910bfa064ec..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-delete.json deleted file mode 100644 index 740e40a1e5f0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 5577cb54df34..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2022-08-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" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 249c8998ea35..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2022-08-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" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-all.json deleted file mode 100644 index 0557613bed03..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index cdeb18dfa1ed..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index f5af4864cb8a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json deleted file mode 100644 index c4678a0081e5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json deleted file mode 100644 index 7f2408f9ddf9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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/2022-08-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json deleted file mode 100644 index f95807f12167..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-create.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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-07-12T10:44:30.6393998Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2021-07-12T10:44:30.6393998Z", - "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-07-12T10:44:30.6393998Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:30.6393998Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json deleted file mode 100644 index 1998f4ff3f53..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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/2022-08-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json deleted file mode 100644 index b9b14ef8097c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-get-by-name.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "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": "2022-08-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2022-08-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": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index aaab997821a6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2022-08-01T00:00:10.0000000Z and properties/created le 2022-08-01T00:00:20.0000000Z", - "$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": "2022-08-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4143905Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4143905Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:10Z" - } - }, - { - "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": "2022-08-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4143905Z", - "endTime": "2021-07-12T10:44:30.4143905Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4143905Z", - "endTime": "2021-07-12T10:44:30.4143905Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:20Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index b0f3290e8ef9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2022-08-01T00:00:10.0000000Z and properties/lastmodified le 2022-08-01T00:00:20.0000000Z", - "$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": "2022-08-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4893941Z", - "endTime": "2021-07-12T10:44:30.4893941Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4893941Z", - "endTime": "2021-07-12T10:44:30.4893941Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:20Z" - } - }, - { - "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": "2022-08-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4893941Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4893941Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index 92bcf566f604..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.3393701Z", - "endTime": "2021-07-12T10:44:30.3393701Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.3393701Z", - "endTime": "2021-07-12T10:44:30.3393701Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index 283627234daa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2022-08-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": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.0631403Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.0631403Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index 7e9c0579d453..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.1393325Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.1393325Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.1393325Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.1393325Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index 95ffd45dfeac..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2022-08-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": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job4-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.2743374Z", - "endTime": "2021-07-12T10:44:30.2743374Z", - "assetName": "job4-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.2743374Z", - "endTime": "2021-07-12T10:44:30.2743374Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json deleted file mode 100644 index 55980eb90041..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-list-all.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2022-08-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": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:29.691737Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:29.691737Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-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": "2022-08-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2022-08-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:29.691737Z", - "endTime": "2021-07-12T10:44:29.691737Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:29.691737Z", - "endTime": "2021-07-12T10:44:29.691737Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json deleted file mode 100644 index 0a8a4801d7cf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/jobs-update.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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": "2022-08-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-07-12T10:44:30.9494087Z", - "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": "2022-08-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:30.9494087Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json deleted file mode 100644 index 18e94a271370..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-result-by-id.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "locationName": "westus", - "operationId": "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", - "api-version": "2022-08-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "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" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "provisioningState": "Succeeded", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "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": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "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/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json deleted file mode 100644 index 2464ac417100..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "Failed", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00", - "error": { - "code": "BadRequest", - "message": "Storage account cannot be accessed." - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json deleted file mode 100644 index 34aeccca8b0f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-non-terminal-state.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "InProgress", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json deleted file mode 100644 index 20c7aaf0a230..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/media-service-operation-status-by-id-terminal-state.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "Succeeded", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json deleted file mode 100644 index d905fdb14799..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/operations-list-all.json +++ /dev/null @@ -1,1539 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2022-08-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/regenerateKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Regenerate Key", - "description": "Regenerate a Media Services ACS key" - } - }, - { - "name": "Microsoft.Media/mediaservices/listKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "List Keys", - "description": "List the ACS keys for the 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/listEdgePolicies/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "List policies for an edge device.", - "description": "List policies for an edge device." - } - }, - { - "name": "Microsoft.Media/mediaservices/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - } - }, - { - "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/accountfilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Read Account Filter", - "description": "Read any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Create or Update Account Filter", - "description": "Create or Update any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Delete Account Filter", - "description": "Delete any Account 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/assets/listStreamingLocators/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Streaming Locators for Asset", - "description": "List Streaming Locators for Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Read Asset Filter", - "description": "Read any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Create or Update Asset Filter", - "description": "Create or Update any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Delete Asset Filter", - "description": "Delete any Asset Filter" - } - }, - { - "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/privateLinkResources/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateLinkResource", - "operation": "Read Private Link Resource", - "description": "Read any Private Link Resource" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Read Private Endpoint Connection Proxy", - "description": "Read any Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Read Private Endpoint Connection", - "description": "Read any Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Create Private Endpoint Connection", - "description": "Create Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Delete Private Endpoint Connection", - "description": "Delete Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Private Endpoint Connection Operation", - "operation": "Read Private Endpoint Connection Operation", - "description": "Read any Private Endpoint Connection Operation" - } - }, - { - "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 - } - ], - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "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 - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ], - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "EgressBandwidth", - "displayName": "Egress bandwidth", - "displayDescription": "Egress bandwidth in bits per second.", - "unit": "BitsPerSecond", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "CPU", - "displayName": "CPU usage", - "displayDescription": "CPU usage for premium streaming endpoints. This data is not available for standard streaming endpoints.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "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/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Get a list of Media Services Live Event Metrics definitions.", - "description": "Get a list of Media Services Live Event Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "IngestBitrate", - "displayName": "Live Event ingest bitrate", - "displayDescription": "The incoming bitrate ingested for a live event, in bits per second.", - "unit": "BitsPerSecond", - "aggregationType": "Average", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "IngestLastTimestamp", - "displayName": "Live Event ingest last timestamp", - "displayDescription": "Last timestamp ingested for a live event.", - "unit": "Milliseconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - }, - { - "name": "IngestDriftValue", - "displayName": "Live Event ingest drift value", - "displayDescription": "Drift between the timestamp of the ingested content and the system clock, measured in seconds per minute. A non zero value indicates that the ingested content is arriving slower than system clock time.", - "unit": "Seconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - }, - { - "name": "LiveOutputLastTimestamp", - "displayName": "Last output timestamp", - "displayDescription": "Timestamp of the last fragment uploaded to storage for a live event output.", - "unit": "Milliseconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - } - ] - } - } - }, - { - "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/mediaservices/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "The log definition of mediaservices", - "operation": "Read mediaservices log definitions", - "description": "Gets the available logs for a Media Services Account" - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "KeyDeliveryRequests", - "displayName": "Key Delivery Requests", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Service", - "operation": "Get list of Media Services Metric definitions.", - "description": "Get list of Media Services Metric definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "AssetQuota", - "displayName": "Asset quota", - "displayDescription": "How many assets are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "AssetCount", - "displayName": "Asset count", - "displayDescription": "How many assets are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "AssetQuotaUsedPercentage", - "displayName": "Asset quota used percentage", - "displayDescription": "Asset used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyQuota", - "displayName": "Content Key Policy quota", - "displayDescription": "How many content key polices are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyCount", - "displayName": "Content Key Policy count", - "displayDescription": "How many content key policies are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyQuotaUsedPercentage", - "displayName": "Content Key Policy quota used percentage", - "displayDescription": "Content Key Policy used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyQuota", - "displayName": "Streaming Policy quota", - "displayDescription": "How many streaming policies are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyCount", - "displayName": "Streaming Policy count", - "displayDescription": "How many streaming policies are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyQuotaUsedPercentage", - "displayName": "Streaming Policy quota used percentage", - "displayDescription": "Streaming Policy used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ChannelsAndLiveEventsCount", - "displayName": "Live event count", - "displayDescription": "The total number of live events in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "RunningChannelsAndLiveEventsCount", - "displayName": "Running live event count", - "displayDescription": "The total number of running live events in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "MaxChannelsAndLiveEventsCount", - "displayName": "Max live event quota", - "displayDescription": "The maximum number of live events allowed in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "MaxRunningChannelsAndLiveEventsCount", - "displayName": "Max running live event quota", - "displayDescription": "The maximum number of running live events allowed in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Read a Video Analyzer Account", - "description": "Read a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Create or Update a Video Analyzer Account", - "description": "Create or Update a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Delete a Video Analyzer Account", - "description": "Delete a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Read Video", - "description": "Read any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Create or Update Video", - "description": "Create or Update any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Delete Video", - "description": "Delete any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/listStreamingToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Generates a streaming token which can be used for video playback", - "description": "Generates a streaming token which can be used for video playback" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/listContentToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Generates a content token which can be used for video playback", - "description": "Generates a content token which can be used for video playback" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Read Access Policy", - "description": "Read any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Create or Update Access Policy", - "description": "Create or Update any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Delete Access Policy", - "description": "Delete any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Read Edge Module", - "description": "Read any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Create or Update Edge Module", - "description": "Create or Update any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Delete Edge Module", - "description": "Delete any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/listProvisioningToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Creates a new provisioning token", - "description": "Creates a new provisioning token. A provisioning token allows for a single instance of Azure Video analyzer IoT edge module to be initialized and authorized to the cloud account. The provisioning token itself is short lived and it is only used for the initial handshake between IoT edge module and the cloud. After the initial handshake, the IoT edge module will agree on a set of authentication keys which will be auto-rotated as long as the module is able to periodically connect to the cloud. A new provisioning token can be generated for the same IoT edge module in case the module state lost or reset" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Read Pipeline Topology", - "description": "Read any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Create or Update Pipeline Topology", - "description": "Create or Update any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Delete Pipeline Topology", - "description": "Delete any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Read Live Pipeline", - "description": "Read any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Create or Update Live Pipeline", - "description": "Create or Update any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Delete Live Pipeline", - "description": "Delete any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/activate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Activate Live Pipeline", - "description": "Activate any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/deactivate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Deactivate Live Pipeline", - "description": "Deactivate any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/operationsStatus/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline operation status Resource", - "operation": "Read Live Pipeline operation status", - "description": "Read any Live Pipeline operation status" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Read Pipeline Job", - "description": "Read any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Create or Update Pipeline Job", - "description": "Create or Update any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Delete Pipeline Job", - "description": "Delete any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/cancel/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Cancel Pipeline Job", - "description": "Cancel any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/operationsStatus/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job operation status Resource", - "operation": "Read Pipeline Job operation status", - "description": "Read any Pipeline Job operation status" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateLinkResources/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateLinkResource", - "operation": "Read Private Link Resource", - "description": "Read any Private Link Resource" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Read Private Endpoint Connection Proxy", - "description": "Read any Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Read Private Endpoint Connection", - "description": "Read any Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Create Private Endpoint Connection", - "description": "Create Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Delete Private Endpoint Connection", - "description": "Delete Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Private Endpoint Connection Operation", - "operation": "Read Private Endpoint Connection Operation", - "description": "Read any Private Endpoint Connection 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/2022-08-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json deleted file mode 100644 index e004f31f4c6f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-get-by-name.json deleted file mode 100644 index f9923b54a970..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-list.json deleted file mode 100644 index 7db9acaaca35..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-endpoint-connection-put.json deleted file mode 100644 index 45fbd099444c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-get-by-name.json deleted file mode 100644 index cdbd51cf250c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/private-link-resources-list.json deleted file mode 100644 index 9c133fa309c9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json deleted file mode 100644 index 2f05ae00f97c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index 7889bbf5cfdb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json deleted file mode 100644 index ebe242d981e1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-delete.json deleted file mode 100644 index b12888a46c25..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json deleted file mode 100644 index 1dd76890c530..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2022-08-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": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index c2f70478ea31..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 1ab507ad1835..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index ef8b8e3f8864..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list.json deleted file mode 100644 index 7f3fa959ea6b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json deleted file mode 100644 index 09cfae951ad1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 7f3e8074320a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index dab4ef7594a2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index 7f18a40bf5c5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index a0670c3f3fc7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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/2022-08-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-delete.json deleted file mode 100644 index b020360f557b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-list.json deleted file mode 100644 index 3bee4522bf8e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-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": "2022-08-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=2022-08-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json deleted file mode 100644 index 8faa340cd09f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2022-08-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 - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json deleted file mode 100644 index e1aa623c920c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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-07-12T10:44:29.3367225Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-07-12T10:44:29.3367225Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.3367225Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.3367225Z" - } - } - }, - "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-07-12T10:44:29.3367225Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-07-12T10:44:29.3367225Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.3367225Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.3367225Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json deleted file mode 100644 index 375f14417e90..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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/2022-08-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json deleted file mode 100644 index 16eb76190ea4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-get-by-name.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "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-07-12T10:44:29.2267128Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:29.2267128Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.2267128Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.2267128Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index 5e369a11f0b0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2022-08-01T00:00:00.0000000Z and properties/created le 2022-08-01T00:00:10.0000000Z", - "$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": "2022-08-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2022-08-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index a586d1f7c1d1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2022-08-01T00:00:00.0000000Z and properties/lastmodified le 2022-08-01T00:00:10.0000000Z", - "$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": "2022-08-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2022-08-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-08-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-08-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index bfe8159f64da..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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-07-12T10:44:28.9563077Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-07-12T10:44:28.9563077Z", - "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-07-12T10:44:28.9563077Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.9563077Z" - } - }, - { - "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-07-12T10:44:28.9563077Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:28.9563077Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.9563077Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.9563077Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json deleted file mode 100644 index 9748a1c8e47c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-list-all.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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-07-12T10:44:28.1563119Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:28.1563119Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.1563119Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.1563119Z" - } - }, - { - "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-07-12T10:44:28.281304Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-07-12T10:44:28.281304Z", - "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-07-12T10:44:28.281304Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.281304Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json deleted file mode 100644 index 84684d05f9a3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/transforms-update.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-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-07-12T10:44:29.6217348Z", - "description": "Example transform to illustrate update.", - "lastModified": "2021-07-12T10:44:29.6267341Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.6217348Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.6267341Z" - } - } - } - } -} From a9e2a9870906dd5c81ff3e5ec6d9eb3baf59420b Mon Sep 17 00:00:00 2001 From: Stephanie Han Date: Thu, 21 Jul 2022 14:16:22 -0700 Subject: [PATCH 6/7] make changes to 2022-08-01 streamingservice --- .../examples/async-operation-result.json | 22 ++ .../liveevent-operation-location.json | 81 ++++ .../examples/liveoutput-create.json | 23 +- .../examples/liveoutput-list-all.json | 13 +- .../examples/liveoutput-list-by-name.json | 13 +- .../liveoutput-operation-location.json | 44 +++ .../streamingendpoint-operation-location.json | 53 +++ .../stable/2022-08-01/streamingservice.json | 347 ++++++++++++++++++ 8 files changed, 590 insertions(+), 6 deletions(-) create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json new file mode 100644 index 000000000000..37d7a1369e39 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "operationId": "62e4d893-d233-4005-988e-a428d9f77076", + "api-version": "2022-08-01" + }, + "responses": { + "200": { + "body": { + "error": { + "code": "None", + "message": null, + "target": "d7aea790-8acb-40b9-8f9f-21cc37c9e519" + }, + "name": "62e4d893-d233-4005-988e-a428d9f77076", + "status": "InProgress" + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json new file mode 100644 index 000000000000..3119a218f464 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "operationId": "62e4d893-d233-4005-988e-a428d9f77076", + "api-version": "2022-08-01" + }, + "responses": { + "202": {}, + "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": "" + } + }, + "systemData": { + "createdBy": "example@microsoft.com", + "createdByType": "User", + "createdAt": "2018-03-03T02:25:08.3474032Z", + "lastModifiedBy": "example@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-03-03T02:25:08.3474032Z" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json index a8095e023fcc..35daf682629e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json @@ -11,6 +11,7 @@ "description": "test live output 1", "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", "archiveWindowLength": "PT5M", + "rewindWindowLength": "PT4M", "manifestName": "testmanifest", "hls": { "fragmentsPerTsSegment": 5 @@ -36,7 +37,16 @@ "lastModified": "2018-03-03T02:25:09.9431835Z", "hls": { "fragmentsPerTsSegment": 5 - } + }, + "rewindWindowLength": "PT4M" + }, + "systemData": { + "createdBy": "example@microsoft.com", + "createdByType": "User", + "createdAt": "2018-03-03T02:25:09.9431835Z", + "lastModifiedBy": "example@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-03-03T02:25:09.9431835Z" } } }, @@ -57,7 +67,16 @@ "lastModified": "2018-03-03T02:25:09.9431835Z", "hls": { "fragmentsPerTsSegment": 5 - } + }, + "rewindWindowLength": "PT4M" + }, + "systemData": { + "createdBy": "example@microsoft.com", + "createdByType": "User", + "createdAt": "2018-03-03T02:25:09.9431835Z", + "lastModifiedBy": "example@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-03-03T02:25:09.9431835Z" } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json index 4a8d922e6338..4b6de0b82e7b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json @@ -17,7 +17,7 @@ "properties": { "description": null, "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", + "archiveWindowLength": "PT5M", "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", "outputSnapTime": 0, "resourceState": "Running", @@ -26,7 +26,16 @@ "lastModified": "0001-01-01T00:00:00-08:00", "hls": { "fragmentsPerTsSegment": 5 - } + }, + "rewindWindowLength": "PT4M" + }, + "systemData": { + "createdBy": "example@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00-08:00", + "lastModifiedBy": "example@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00-08:00" } } ] diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json index 7f4a8ccd7541..817fe1b4e94e 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json @@ -16,7 +16,7 @@ "properties": { "description": null, "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", + "archiveWindowLength": "PT5M", "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", "outputSnapTime": 0, "resourceState": "Running", @@ -25,7 +25,16 @@ "lastModified": "0001-01-01T00:00:00-08:00", "hls": { "fragmentsPerTsSegment": 5 - } + }, + "rewindWindowLength": "PT4M" + }, + "systemData": { + "createdBy": "example@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00-08:00", + "lastModifiedBy": "example@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00-08:00" } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json new file mode 100644 index 000000000000..0d083cb9b069 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "liveEventName": "myLiveEvent1", + "liveOutputName": "myLiveOutput1", + "operationId": "62e4d893-d233-4005-988e-a428d9f77076", + "api-version": "2022-08-01" + }, + "responses": { + "202": {}, + "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": "PT5M", + "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 + }, + "rewindWindowLength": "PT5M" + }, + "systemData": { + "createdBy": "example@microsoft.com", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00-08:00", + "lastModifiedBy": "example@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00-08:00" + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json new file mode 100644 index 000000000000..cb5424daae8d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", + "resourceGroupName": "mediaresources", + "accountName": "slitestmedia10", + "streamingEndpointName": "myStreamingEndpoint1", + "operationId": "62e4d893-d233-4005-988e-a428d9f77076", + "api-version": "2022-08-01" + }, + "responses": { + "202": {}, + "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" + }, + "systemData": { + "createdBy": "example@microsoft.com", + "createdByType": "User", + "createdAt": "2018-03-03T02:25:09.3500423Z", + "lastModifiedBy": "example@microsoft.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2018-03-03T02:25:09.3500423Z" + }, + "sku": { + "name": "Premium", + "capacity": 1 + } + } + } + } +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json index f66607714725..46eb81547d0c 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json @@ -486,6 +486,104 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEventOperations/{operationId}": { + "get": { + "tags": [ + "LiveEvents" + ], + "summary": "Get operation status.", + "description": "Get a live event operation status.", + "operationId": "LiveEvents_AsyncOperation", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AsyncOperationResult" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the LiveEvent operation status": { + "$ref": "examples/async-operation-result.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/operationLocations/{operationId}": { + "get": { + "tags": [ + "LiveEvents" + ], + "summary": "Get operation status.", + "description": "Get a live event operation status.", + "operationId": "LiveEvents_OperationLocation", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "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." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the LiveEvent operation status": { + "$ref": "examples/liveevent-operation-location.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { "get": { "tags": [ @@ -698,6 +796,107 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveOutputOperations/{operationId}": { + "get": { + "tags": [ + "LiveOutputs" + ], + "summary": "Get operation status.", + "description": "Get a Live Output operation status.", + "operationId": "LiveOutputs_AsyncOperation", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AsyncOperationResult" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the LiveOutput operation status": { + "$ref": "examples/async-operation-result.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}/operationLocations/{operationId}": { + "get": { + "tags": [ + "LiveOutputs" + ], + "summary": "Get operation status.", + "description": "Get a Live Output operation status.", + "operationId": "LiveOutputs_OperationLocation", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/LiveEventName" + }, + { + "$ref": "#/parameters/LiveOutputName" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LiveOutput" + } + }, + "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-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the LiveOutput operation status": { + "$ref": "examples/liveoutput-operation-location.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { "get": { "tags": [ @@ -1156,6 +1355,104 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpointOperations/{operationId}": { + "get": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "Get operation status.", + "description": "Get a streaming endpoint operation status.", + "operationId": "StreamingEndpoints_AsyncOperation", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/AsyncOperationResult" + } + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the streaming endpoint operation status": { + "$ref": "examples/async-operation-result.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/operationLocations/{operationId}": { + "get": { + "tags": [ + "StreamingEndpoints" + ], + "summary": "Get operation status.", + "description": "Get a streaming endpoint operation status.", + "operationId": "StreamingEndpoints_OperationLocation", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/StreamingEndpointName" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "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." + }, + "default": { + "description": "The streaming error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get the streaming endpoint operation status": { + "$ref": "examples/streamingendpoint-operation-location.json" + } + } + } } }, "definitions": { @@ -1190,6 +1487,11 @@ "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." }, + "rewindWindowLength": { + "format": "duration", + "type": "string", + "description": "ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL." + }, "manifestName": { "type": "string", "description": "The manifest file name. If not provided, the service will generate one automatically." @@ -2111,6 +2413,51 @@ } }, "type": "object" + }, + "AsyncOperationResult": { + "properties": { + "error": { + "description": "The error object", + "$ref": "#/definitions/AsyncOperationErrorDetail" + }, + "name": { + "type": "string", + "description": "Operation Id of the async operation." + }, + "status": { + "description": "Operation status of the async operation.", + "type": "string", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "AsyncOperationStatus", + "modelAsString": true + } + } + }, + "description": "The status of an async operation.", + "type": "object" + }, + "AsyncOperationErrorDetail": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "message": { + "type": "string", + "description": "The error message." + }, + "target": { + "type": "string", + "description": "Id of the entity on which the operation is performed." + } + }, + "description": "The error detail of an async operation result.", + "type": "object" } }, "parameters": { From a7d44f1ea0985443414729879ddfffad7579d7ab Mon Sep 17 00:00:00 2001 From: Stephanie Han Date: Tue, 2 Aug 2022 14:23:35 -0700 Subject: [PATCH 7/7] fix comments --- .../2022-08-01/examples/liveevent-update.json | 2 +- .../stable/2022-08-01/streamingservice.json | 20 +------------------ 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json index 5eb9ddf006ee..078de86ce432 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json @@ -121,7 +121,7 @@ "properties": { "description": "test event updated", "resourceState": "Running", - "provisioningState": "InProgress", + "provisioningState": "Succeeded", "created": "0001-01-01T00:00:00Z", "lastModified": "0001-01-01T00:00:00Z", "useStaticHostname": false, diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json index 46eb81547d0c..5269c08d69e4 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/streamingservice.json @@ -2418,7 +2418,7 @@ "properties": { "error": { "description": "The error object", - "$ref": "#/definitions/AsyncOperationErrorDetail" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" }, "name": { "type": "string", @@ -2440,24 +2440,6 @@ }, "description": "The status of an async operation.", "type": "object" - }, - "AsyncOperationErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "The error code." - }, - "message": { - "type": "string", - "description": "The error message." - }, - "target": { - "type": "string", - "description": "Id of the entity on which the operation is performed." - } - }, - "description": "The error detail of an async operation result.", - "type": "object" } }, "parameters": {