Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions sdk/mediaservices/arm-mediaservices/lib/azureMediaServices.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
import { AzureMediaServicesContext } from "./azureMediaServicesContext";


class AzureMediaServices extends AzureMediaServicesContext {
// Operation groups
accountFilters: operations.AccountFilters;
operations: operations.Operations;
mediaservices: operations.Mediaservices;
locations: operations.Locations;
assets: operations.Assets;
assetFilters: operations.AssetFilters;
contentKeyPolicies: operations.ContentKeyPolicies;
transforms: operations.Transforms;
jobs: operations.Jobs;
streamingPolicies: operations.StreamingPolicies;
streamingLocators: operations.StreamingLocators;
liveEvents: operations.LiveEvents;
liveOutputs: operations.LiveOutputs;
streamingEndpoints: operations.StreamingEndpoints;

/**
* Initializes a new instance of the AzureMediaServices class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId The unique identifier for a Microsoft Azure subscription.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMediaServicesOptions) {
super(credentials, subscriptionId, options);
this.accountFilters = new operations.AccountFilters(this);
this.operations = new operations.Operations(this);
this.mediaservices = new operations.Mediaservices(this);
this.locations = new operations.Locations(this);
this.assets = new operations.Assets(this);
this.assetFilters = new operations.AssetFilters(this);
this.contentKeyPolicies = new operations.ContentKeyPolicies(this);
this.transforms = new operations.Transforms(this);
this.jobs = new operations.Jobs(this);
this.streamingPolicies = new operations.StreamingPolicies(this);
this.streamingLocators = new operations.StreamingLocators(this);
this.liveEvents = new operations.LiveEvents(this);
this.liveOutputs = new operations.LiveOutputs(this);
this.streamingEndpoints = new operations.StreamingEndpoints(this);
}
}

// Operation Specifications

export {
AzureMediaServices,
AzureMediaServicesContext,
Models as AzureMediaServicesModels,
Mappers as AzureMediaServicesMappers
};
export * from "./operations";
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-mediaservices";
const packageVersion = "6.0.0";

export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the AzureMediaServices class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId The unique identifier for a Microsoft Azure subscription.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMediaServicesOptions) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId == undefined) {
throw new Error('\'subscriptionId\' cannot be null.');
}

if (!options) {
options = {};
}
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2018-07-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
discriminators,
AccountFilterCollection,
AccountFilter,
ProxyResource,
Resource,
BaseResource,
PresentationTimeRange,
FirstQuality,
FilterTrackSelection,
FilterTrackPropertyCondition,
ApiError,
ODataError,
TrackedResource,
MediaService,
StorageAccount,
SubscriptionMediaService,
Asset,
AssetFilter,
ContentKeyPolicy,
ContentKeyPolicyOption,
ContentKeyPolicyConfiguration,
ContentKeyPolicyRestriction,
Transform,
TransformOutput,
Preset,
Job,
JobInput,
JobOutput,
JobError,
JobErrorDetail,
StreamingPolicy,
EnvelopeEncryption,
EnabledProtocols,
TrackSelection,
TrackPropertyCondition,
StreamingPolicyContentKeys,
DefaultKey,
StreamingPolicyContentKey,
CommonEncryptionCenc,
CencDrmConfiguration,
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
CommonEncryptionCbcs,
CbcsDrmConfiguration,
StreamingPolicyFairPlayConfiguration,
NoEncryption,
StreamingLocator,
StreamingLocatorContentKey,
LiveOutput,
Hls,
LiveEvent,
LiveEventInput,
LiveEventInputAccessControl,
IPAccessControl,
IPRange,
LiveEventEndpoint,
LiveEventPreview,
LiveEventPreviewAccessControl,
LiveEventEncoding,
CrossSiteAccessPolicies,
StreamingEndpoint,
StreamingEndpointAccessControl,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
ContentKeyPolicyOpenRestriction,
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyTokenRestriction,
ContentKeyPolicyRestrictionTokenKey,
ContentKeyPolicyTokenClaim,
ContentKeyPolicyClearKeyConfiguration,
ContentKeyPolicyUnknownConfiguration,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyPlayReadyConfiguration,
ContentKeyPolicyPlayReadyLicense,
ContentKeyPolicyPlayReadyPlayRight,
ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction,
ContentKeyPolicyPlayReadyContentKeyLocation,
ContentKeyPolicyFairPlayConfiguration,
FaceDetectorPreset,
AudioAnalyzerPreset,
BuiltInStandardEncoderPreset,
StandardEncoderPreset,
Filters,
Deinterlace,
Rectangle,
Overlay,
Codec,
Format,
VideoAnalyzerPreset,
VideoOverlay,
JobInputClip,
ClipTime,
AbsoluteClipTime,
JobInputs,
JobInputAsset,
JobInputHttp,
JobOutputAsset,
ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader,
ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier,
ContentKeyPolicySymmetricTokenKey,
ContentKeyPolicyRsaTokenKey,
ContentKeyPolicyX509CertificateTokenKey,
Audio,
AacAudio,
AudioOverlay,
CopyVideo,
Video,
Image,
ImageFormat,
JpgFormat,
PngFormat,
CopyAudio,
H264Video,
H264Layer,
VideoLayer,
Layer,
JpgLayer,
JpgImage,
MultiBitrateFormat,
OutputFile,
Mp4Format,
PngLayer,
PngImage,
TransportStreamFormat
} from "../models/mappers";

Loading