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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const packageVersion = "8.1.0";
export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the AzureMediaServices class.
Expand All @@ -36,25 +35,24 @@ export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient {
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2020-05-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) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
discriminators,
AacAudio,
AbsoluteClipTime,
AccessControl,
AccountEncryption,
AccountFilter,
AccountFilterCollection,
Expand Down Expand Up @@ -96,6 +97,7 @@ export {
JpgFormat,
JpgImage,
JpgLayer,
KeyDelivery,
KeyVaultProperties,
Layer,
LiveEvent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
discriminators,
AacAudio,
AbsoluteClipTime,
AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
Expand Down Expand Up @@ -96,6 +97,7 @@ export {
JpgFormat,
JpgImage,
JpgLayer,
KeyDelivery,
KeyVaultProperties,
Layer,
LiveEvent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
discriminators,
AacAudio,
AbsoluteClipTime,
AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
Expand Down Expand Up @@ -99,6 +100,7 @@ export {
JpgFormat,
JpgImage,
JpgLayer,
KeyDelivery,
KeyVaultProperties,
Layer,
ListContainerSasInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
discriminators,
AacAudio,
AbsoluteClipTime,
AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
Expand Down Expand Up @@ -97,6 +98,7 @@ export {
JpgFormat,
JpgImage,
JpgLayer,
KeyDelivery,
KeyVaultProperties,
Layer,
LiveEvent,
Expand Down
128 changes: 108 additions & 20 deletions sdk/mediaservices/arm-mediaservices/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,26 @@ export interface MetricSpecification {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly dimensions?: MetricDimension[];
/**
* Indicates whether regional MDM account is enabled.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly enableRegionalMdmAccount?: boolean;
/**
* The source MDM account.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly sourceMdmAccount?: string;
/**
* The source MDM namespace.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly sourceMdmNamespace?: string;
/**
* The supported time grain types.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly supportedTimeGrainTypes?: string[];
}

/**
Expand Down Expand Up @@ -394,6 +414,14 @@ export interface Operation {
* Operation properties format.
*/
properties?: Properties;
/**
* Whether the operation applies to data-plane.
*/
isDataAction?: boolean;
/**
* Indicates the action type. Possible values include: 'Internal'
*/
actionType?: ActionType;
}

/**
Expand Down Expand Up @@ -480,6 +508,31 @@ export interface AccountEncryption {
keyVaultProperties?: KeyVaultProperties;
}

/**
* An interface representing AccessControl.
*/
export interface AccessControl {
/**
* The behavior for IP access control in Key Delivery. Possible values include: 'Allow', 'Deny'
*/
defaultAction?: DefaultAction;
/**
* 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.
*/
ipAllowList?: string[];
}

/**
* An interface representing KeyDelivery.
*/
export interface KeyDelivery {
/**
* The access control properties for Key Delivery.
*/
accessControl?: AccessControl;
}

/**
* An interface representing MediaServiceIdentity.
*/
Expand Down Expand Up @@ -521,6 +574,10 @@ export interface MediaService extends TrackedResource {
* The account encryption properties.
*/
encryption?: AccountEncryption;
/**
* The Key Delivery properties for Media Services account.
*/
keyDelivery?: KeyDelivery;
/**
* The Managed Identity for the Media Services account.
*/
Expand All @@ -532,6 +589,41 @@ export interface MediaService extends TrackedResource {
readonly systemData?: SystemData;
}

/**
* A Media Services account update.
*/
export interface MediaServiceUpdate {
/**
* Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* The Media Services account ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly mediaServiceId?: string;
/**
* The storage accounts for this resource.
*/
storageAccounts?: StorageAccount[];
/**
* Possible values include: 'System', 'ManagedIdentity'
*/
storageAuthentication?: StorageAuthentication;
/**
* The account encryption properties.
*/
encryption?: AccountEncryption;
/**
* The Key Delivery properties for Media Services account.
*/
keyDelivery?: KeyDelivery;
/**
* The Managed Identity for the Media Services account.
*/
identity?: MediaServiceIdentity;
}

/**
* An interface representing ListEdgePoliciesInput.
*/
Expand Down Expand Up @@ -5017,6 +5109,14 @@ export type MetricUnit = 'Bytes' | 'Count' | 'Milliseconds';
*/
export type MetricAggregationType = 'Average' | 'Count' | 'Total';

/**
* Defines values for ActionType.
* Possible values include: 'Internal'
* @readonly
* @enum {string}
*/
export type ActionType = 'Internal';

/**
* Defines values for StorageAccountType.
* Possible values include: 'Primary', 'Secondary'
Expand All @@ -5041,6 +5141,14 @@ export type StorageAuthentication = 'System' | 'ManagedIdentity';
*/
export type AccountEncryptionKeyType = 'SystemKey' | 'CustomerKey';

/**
* Defines values for DefaultAction.
* Possible values include: 'Allow', 'Deny'
* @readonly
* @enum {string}
*/
export type DefaultAction = 'Allow' | 'Deny';

/**
* Defines values for ManagedIdentityType.
* Possible values include: 'SystemAssigned', 'None'
Expand Down Expand Up @@ -5689,26 +5797,6 @@ export type MediaservicesListBySubscriptionResponse = MediaServiceCollection & {
};
};

/**
* Contains response data for the getBySubscription operation.
*/
export type MediaservicesGetBySubscriptionResponse = MediaService & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: MediaService;
};
};

/**
* Contains response data for the listNext operation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
discriminators,
AacAudio,
AbsoluteClipTime,
AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
Expand Down Expand Up @@ -96,6 +97,7 @@ export {
JpgFormat,
JpgImage,
JpgLayer,
KeyDelivery,
KeyVaultProperties,
Layer,
LiveEvent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
discriminators,
AacAudio,
AbsoluteClipTime,
AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
Expand Down Expand Up @@ -95,6 +96,7 @@ export {
JpgFormat,
JpgImage,
JpgLayer,
KeyDelivery,
KeyVaultProperties,
Layer,
LiveEvent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
discriminators,
AacAudio,
AbsoluteClipTime,
AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
Expand Down Expand Up @@ -95,6 +96,7 @@ export {
JpgFormat,
JpgImage,
JpgLayer,
KeyDelivery,
KeyVaultProperties,
Layer,
LiveEvent,
Expand Down
Loading