Skip to content

Commit a234e09

Browse files
authored
arm-mediaservices-release (Azure#16421)
1 parent f5b1f58 commit a234e09

39 files changed

+1830
-1284
lines changed

sdk/mediaservices/arm-mediaservices/README.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure AzureMediaServices SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMediaServices.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureMediaServices.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-mediaservices @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
41-
#### nodejs - Authentication, client creation, and list accountFilters as an example written in JavaScript.
39+
#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
4240

4341
##### Sample code
4442

@@ -51,9 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5149
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5250
const creds = new DefaultAzureCredential();
5351
const client = new AzureMediaServices(creds, subscriptionId);
54-
const resourceGroupName = "testresourceGroupName";
55-
const accountName = "testaccountName";
56-
client.accountFilters.list(resourceGroupName, accountName).then((result) => {
52+
client.operations.list().then((result) => {
5753
console.log("The result is:");
5854
console.log(result);
5955
}).catch((err) => {
@@ -62,7 +58,7 @@ client.accountFilters.list(resourceGroupName, accountName).then((result) => {
6258
});
6359
```
6460

65-
#### browser - Authentication, client creation, and list accountFilters as an example written in JavaScript.
61+
#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
6662

6763
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
6864
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
@@ -87,12 +83,10 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8783
const credential = new InteractiveBrowserCredential(
8884
{
8985
clientId: "<client id for your Azure AD app>",
90-
tenantId: "<optional tenant for your organization>"
86+
tenant: "<optional tenant for your organization>"
9187
});
9288
const client = new Azure.ArmMediaservices.AzureMediaServices(creds, subscriptionId);
93-
const resourceGroupName = "testresourceGroupName";
94-
const accountName = "testaccountName";
95-
client.accountFilters.list(resourceGroupName, accountName).then((result) => {
89+
client.operations.list().then((result) => {
9690
console.log("The result is:");
9791
console.log(result);
9892
}).catch((err) => {

sdk/mediaservices/arm-mediaservices/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-mediaservices",
33
"author": "Microsoft Corporation",
44
"description": "AzureMediaServices Library with typescript type definitions for node.js and browser.",
5-
"version": "8.2.0",
5+
"version": "9.0.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.1.0",
88
"@azure/ms-rest-js": "^2.2.0",
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mediaservices/arm-mediaservices",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/mediaservices/arm-mediaservices",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import { AzureMediaServicesContext } from "./azureMediaServicesContext";
1717

1818
class AzureMediaServices extends AzureMediaServicesContext {
1919
// Operation groups
20-
accountFilters: operations.AccountFilters;
2120
operations: operations.Operations;
2221
mediaservices: operations.Mediaservices;
2322
privateLinkResources: operations.PrivateLinkResources;
2423
privateEndpointConnections: operations.PrivateEndpointConnections;
2524
locations: operations.Locations;
25+
accountFilters: operations.AccountFilters;
2626
assets: operations.Assets;
2727
assetFilters: operations.AssetFilters;
2828
contentKeyPolicies: operations.ContentKeyPolicies;
@@ -47,12 +47,12 @@ class AzureMediaServices extends AzureMediaServicesContext {
4747
*/
4848
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMediaServicesOptions) {
4949
super(credentials, subscriptionId, options);
50-
this.accountFilters = new operations.AccountFilters(this);
5150
this.operations = new operations.Operations(this);
5251
this.mediaservices = new operations.Mediaservices(this);
5352
this.privateLinkResources = new operations.PrivateLinkResources(this);
5453
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
5554
this.locations = new operations.Locations(this);
55+
this.accountFilters = new operations.AccountFilters(this);
5656
this.assets = new operations.Assets(this);
5757
this.assetFilters = new operations.AssetFilters(this);
5858
this.contentKeyPolicies = new operations.ContentKeyPolicies(this);

sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
import * as Models from "./models";
1111
import * as msRest from "@azure/ms-rest-js";
12-
import { TokenCredential } from "@azure/core-auth";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1414

1515
const packageName = "@azure/arm-mediaservices";
16-
const packageVersion = "8.2.0";
16+
const packageVersion = "9.0.0";
1717

1818
export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient {
1919
credentials: msRest.ServiceClientCredentials | TokenCredential;
@@ -49,7 +49,7 @@ export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient {
4949

5050
super(credentials, options);
5151

52-
this.apiVersion = '2020-05-01';
52+
this.apiVersion = '2021-06-01';
5353
this.acceptLanguage = 'en-US';
5454
this.longRunningOperationRetryTimeout = 30;
5555
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ export {
1010
discriminators,
1111
AacAudio,
1212
AbsoluteClipTime,
13+
AccessControl,
1314
AccountEncryption,
1415
AccountFilter,
1516
AccountFilterCollection,
1617
AkamaiAccessControl,
1718
AkamaiSignatureHeaderAuthenticationKey,
18-
ApiError,
1919
Asset,
2020
AssetFilter,
2121
Audio,
@@ -62,6 +62,9 @@ export {
6262
Deinterlace,
6363
EnabledProtocols,
6464
EnvelopeEncryption,
65+
ErrorAdditionalInfo,
66+
ErrorDetail,
67+
ErrorResponse,
6568
FaceDetectorPreset,
6669
Filters,
6770
FilterTrackPropertyCondition,
@@ -96,6 +99,7 @@ export {
9699
JpgFormat,
97100
JpgImage,
98101
JpgLayer,
102+
KeyDelivery,
99103
KeyVaultProperties,
100104
Layer,
101105
LiveEvent,
@@ -114,21 +118,22 @@ export {
114118
Mp4Format,
115119
MultiBitrateFormat,
116120
NoEncryption,
117-
ODataError,
118121
OutputFile,
119122
Overlay,
120123
PngFormat,
121124
PngImage,
122125
PngLayer,
123126
PresentationTimeRange,
124127
Preset,
128+
PresetConfigurations,
125129
PrivateEndpoint,
126130
PrivateEndpointConnection,
127131
PrivateLinkResource,
128132
PrivateLinkServiceConnectionState,
129133
ProxyResource,
130134
Rectangle,
131135
Resource,
136+
ResourceIdentity,
132137
SelectAudioTrackByAttribute,
133138
SelectAudioTrackById,
134139
SelectVideoTrackByAttribute,
@@ -153,6 +158,7 @@ export {
153158
Transform,
154159
TransformOutput,
155160
TransportStreamFormat,
161+
UserAssignedManagedIdentity,
156162
UtcClipTime,
157163
Video,
158164
VideoAnalyzerPreset,

sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export {
1010
discriminators,
1111
AacAudio,
1212
AbsoluteClipTime,
13+
AccessControl,
1314
AccountEncryption,
1415
AccountFilter,
1516
AkamaiAccessControl,
1617
AkamaiSignatureHeaderAuthenticationKey,
17-
ApiError,
1818
Asset,
1919
AssetFilter,
2020
AssetFilterCollection,
@@ -62,6 +62,9 @@ export {
6262
Deinterlace,
6363
EnabledProtocols,
6464
EnvelopeEncryption,
65+
ErrorAdditionalInfo,
66+
ErrorDetail,
67+
ErrorResponse,
6568
FaceDetectorPreset,
6669
Filters,
6770
FilterTrackPropertyCondition,
@@ -96,6 +99,7 @@ export {
9699
JpgFormat,
97100
JpgImage,
98101
JpgLayer,
102+
KeyDelivery,
99103
KeyVaultProperties,
100104
Layer,
101105
LiveEvent,
@@ -114,21 +118,22 @@ export {
114118
Mp4Format,
115119
MultiBitrateFormat,
116120
NoEncryption,
117-
ODataError,
118121
OutputFile,
119122
Overlay,
120123
PngFormat,
121124
PngImage,
122125
PngLayer,
123126
PresentationTimeRange,
124127
Preset,
128+
PresetConfigurations,
125129
PrivateEndpoint,
126130
PrivateEndpointConnection,
127131
PrivateLinkResource,
128132
PrivateLinkServiceConnectionState,
129133
ProxyResource,
130134
Rectangle,
131135
Resource,
136+
ResourceIdentity,
132137
SelectAudioTrackByAttribute,
133138
SelectAudioTrackById,
134139
SelectVideoTrackByAttribute,
@@ -153,6 +158,7 @@ export {
153158
Transform,
154159
TransformOutput,
155160
TransportStreamFormat,
161+
UserAssignedManagedIdentity,
156162
UtcClipTime,
157163
Video,
158164
VideoAnalyzerPreset,

sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export {
1010
discriminators,
1111
AacAudio,
1212
AbsoluteClipTime,
13+
AccessControl,
1314
AccountEncryption,
1415
AccountFilter,
1516
AkamaiAccessControl,
1617
AkamaiSignatureHeaderAuthenticationKey,
17-
ApiError,
1818
Asset,
1919
AssetCollection,
2020
AssetContainerSas,
@@ -65,6 +65,9 @@ export {
6565
Deinterlace,
6666
EnabledProtocols,
6767
EnvelopeEncryption,
68+
ErrorAdditionalInfo,
69+
ErrorDetail,
70+
ErrorResponse,
6871
FaceDetectorPreset,
6972
Filters,
7073
FilterTrackPropertyCondition,
@@ -99,6 +102,7 @@ export {
99102
JpgFormat,
100103
JpgImage,
101104
JpgLayer,
105+
KeyDelivery,
102106
KeyVaultProperties,
103107
Layer,
104108
ListContainerSasInput,
@@ -119,21 +123,22 @@ export {
119123
Mp4Format,
120124
MultiBitrateFormat,
121125
NoEncryption,
122-
ODataError,
123126
OutputFile,
124127
Overlay,
125128
PngFormat,
126129
PngImage,
127130
PngLayer,
128131
PresentationTimeRange,
129132
Preset,
133+
PresetConfigurations,
130134
PrivateEndpoint,
131135
PrivateEndpointConnection,
132136
PrivateLinkResource,
133137
PrivateLinkServiceConnectionState,
134138
ProxyResource,
135139
Rectangle,
136140
Resource,
141+
ResourceIdentity,
137142
SelectAudioTrackByAttribute,
138143
SelectAudioTrackById,
139144
SelectVideoTrackByAttribute,
@@ -159,6 +164,7 @@ export {
159164
Transform,
160165
TransformOutput,
161166
TransportStreamFormat,
167+
UserAssignedManagedIdentity,
162168
UtcClipTime,
163169
Video,
164170
VideoAnalyzerPreset,

sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export {
1010
discriminators,
1111
AacAudio,
1212
AbsoluteClipTime,
13+
AccessControl,
1314
AccountEncryption,
1415
AccountFilter,
1516
AkamaiAccessControl,
1617
AkamaiSignatureHeaderAuthenticationKey,
17-
ApiError,
1818
Asset,
1919
AssetFilter,
2020
Audio,
@@ -63,6 +63,9 @@ export {
6363
Deinterlace,
6464
EnabledProtocols,
6565
EnvelopeEncryption,
66+
ErrorAdditionalInfo,
67+
ErrorDetail,
68+
ErrorResponse,
6669
FaceDetectorPreset,
6770
Filters,
6871
FilterTrackPropertyCondition,
@@ -97,6 +100,7 @@ export {
97100
JpgFormat,
98101
JpgImage,
99102
JpgLayer,
103+
KeyDelivery,
100104
KeyVaultProperties,
101105
Layer,
102106
LiveEvent,
@@ -115,21 +119,22 @@ export {
115119
Mp4Format,
116120
MultiBitrateFormat,
117121
NoEncryption,
118-
ODataError,
119122
OutputFile,
120123
Overlay,
121124
PngFormat,
122125
PngImage,
123126
PngLayer,
124127
PresentationTimeRange,
125128
Preset,
129+
PresetConfigurations,
126130
PrivateEndpoint,
127131
PrivateEndpointConnection,
128132
PrivateLinkResource,
129133
PrivateLinkServiceConnectionState,
130134
ProxyResource,
131135
Rectangle,
132136
Resource,
137+
ResourceIdentity,
133138
SelectAudioTrackByAttribute,
134139
SelectAudioTrackById,
135140
SelectVideoTrackByAttribute,
@@ -154,6 +159,7 @@ export {
154159
Transform,
155160
TransformOutput,
156161
TransportStreamFormat,
162+
UserAssignedManagedIdentity,
157163
UtcClipTime,
158164
Video,
159165
VideoAnalyzerPreset,

0 commit comments

Comments
 (0)