Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-arm-resource

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-arm-resource - npm Package Compare versions

Comparing version 2.0.0-preview to 3.0.0-preview

lib/management/managementGroupsClient.d.ts

9

lib/feature/featureClient.d.ts

@@ -11,6 +11,7 @@ /*

import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
declare class FeatureClient {
declare class FeatureClient extends AzureServiceClient {
/**

@@ -36,4 +37,2 @@ * Initializes a new instance of the FeatureClient class.

*
* @param {string} [options.apiVersion] - The API version to use for this operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.

@@ -46,3 +45,3 @@ *

*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

@@ -49,0 +48,0 @@ credentials: ServiceClientCredentials;

@@ -25,32 +25,18 @@ /*

/**
* @class
* Initializes a new instance of the FeatureClient class.
* @constructor
*
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - The ID of the target subscription.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - The API version to use for this operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
/** Class representing a FeatureClient. */
class FeatureClient extends ServiceClient {
/**
* Create a FeatureClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - The ID of the target subscription.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {

@@ -81,5 +67,2 @@ if (credentials === null || credentials === undefined) {

this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
if(options.apiVersion !== null && options.apiVersion !== undefined) {
this.apiVersion = options.apiVersion;
}
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {

@@ -86,0 +69,0 @@ this.acceptLanguage = options.acceptLanguage;

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the FeatureOperationsListResult class.
* @constructor
* List of previewed features.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class FeatureOperationsListResult extends Array {
/**
* Create a FeatureOperationsListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -14,12 +14,11 @@ /*

/**
* @class
* Initializes a new instance of the FeatureProperties class.
* @constructor
* Information about feature.
*
* @member {string} [state] The registration state of the feature for the
* subscription.
*
*/
class FeatureProperties {
/**
* Create a FeatureProperties.
* @member {string} [state] The registration state of the feature for the
* subscription.
*/
constructor() {

@@ -26,0 +25,0 @@ }

@@ -16,20 +16,15 @@ /*

/**
* @class
* Initializes a new instance of the FeatureResult class.
* @constructor
* Previewed feature information.
*
* @member {string} [name] The name of the feature.
*
* @member {object} [properties] Properties of the previewed feature.
*
* @member {string} [properties.state] The registration state of the feature
* for the subscription.
*
* @member {string} [id] The resource ID of the feature.
*
* @member {string} [type] The resource type of the feature.
*
*/
class FeatureResult {
/**
* Create a FeatureResult.
* @member {string} [name] The name of the feature.
* @member {object} [properties] Properties of the previewed feature.
* @member {string} [properties.state] The registration state of the feature
* for the subscription.
* @member {string} [id] The resource ID of the feature.
* @member {string} [type] The resource type of the feature.
*/
constructor() {

@@ -36,0 +31,0 @@ }

@@ -13,2 +13,3 @@ /*

import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';

@@ -27,3 +28,2 @@ export { BaseResource } from 'ms-rest-azure';

* subscription.
*
*/

@@ -41,12 +41,7 @@ export interface FeatureProperties {

* @member {string} [name] The name of the feature.
*
* @member {object} [properties] Properties of the previewed feature.
*
* @member {string} [properties.state] The registration state of the feature
* for the subscription.
*
* @member {string} [id] The resource ID of the feature.
*
* @member {string} [type] The resource type of the feature.
*
*/

@@ -60,18 +55,2 @@ export interface FeatureResult {

/**
* @class
* Initializes a new instance of the FeatureOperationsListResult class.
* @constructor
* List of previewed features.
*
* @member {array} [value] The array of features.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface FeatureOperationsListResult {
value?: FeatureResult[];
nextLink?: string;
}

@@ -84,26 +63,7 @@ /**

*
* @member {array} [value] The array of features.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface FeatureOperationsListResult {
value?: FeatureResult[];
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the FeatureOperationsListResult class.
* @constructor
* List of previewed features.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface FeatureOperationsListResult extends Array<FeatureResult> {
nextLink?: string;
}

@@ -24,2 +24,1 @@ /*

exports.FeatureOperationsListResult = require('./featureOperationsListResult');
exports.FeatureOperationsListResult = require('./featureOperationsListResult');

@@ -78,5 +78,6 @@ /*

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -95,3 +96,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -222,5 +222,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -239,3 +240,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -370,5 +370,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -387,3 +388,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -518,5 +518,6 @@ // Send Request

httpRequest.method = 'POST';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -535,3 +536,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -649,5 +649,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -666,3 +667,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -780,5 +780,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -797,3 +798,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -856,13 +856,8 @@ // Send Request

/**
* @class
* Features
* __NOTE__: An instance of this class is automatically created for an
* instance of the FeatureClient.
* Initializes a new instance of the Features class.
* @constructor
*
* @param {FeatureClient} client Reference to the service client.
*/
/** Class representing a Features. */
class Features {
/**
* Create a Features.
* @param {FeatureClient} client Reference to the service client.
*/
constructor(client) {

@@ -869,0 +864,0 @@ this.client = client;

@@ -11,6 +11,7 @@ /*

import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
declare class ManagementLinkClient {
declare class ManagementLinkClient extends AzureServiceClient {
/**

@@ -36,4 +37,2 @@ * Initializes a new instance of the ManagementLinkClient class.

*
* @param {string} [options.apiVersion] - The API version to use for the operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.

@@ -46,3 +45,3 @@ *

*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

@@ -49,0 +48,0 @@ credentials: ServiceClientCredentials;

@@ -25,32 +25,18 @@ /*

/**
* @class
* Initializes a new instance of the ManagementLinkClient class.
* @constructor
*
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - The ID of the target subscription.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - The API version to use for the operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
/** Class representing a ManagementLinkClient. */
class ManagementLinkClient extends ServiceClient {
/**
* Create a ManagementLinkClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - The ID of the target subscription.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {

@@ -81,5 +67,2 @@ if (credentials === null || credentials === undefined) {

this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
if(options.apiVersion !== null && options.apiVersion !== undefined) {
this.apiVersion = options.apiVersion;
}
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {

@@ -86,0 +69,0 @@ this.acceptLanguage = options.acceptLanguage;

@@ -13,2 +13,3 @@ /*

import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';

@@ -26,3 +27,2 @@ export { BaseResource } from 'ms-rest-azure';

* @member {string} targetId The ID of the target resource.
*
*/

@@ -41,8 +41,5 @@ export interface ResourceLinkFilter {

* the link.
*
* @member {string} targetId The fully qualified ID of the target resource in
* the link.
*
* @member {string} [notes] Notes about the resource link.
*
*/

@@ -62,15 +59,9 @@ export interface ResourceLinkProperties {

* @member {string} [id] The fully qualified ID of the resource link.
*
* @member {string} [name] The name of the resource link.
*
* @member {object} [properties] Properties for resource link.
*
* @member {string} [properties.sourceId] The fully qualified ID of the source
* resource in the link.
*
* @member {string} [properties.targetId] The fully qualified ID of the target
* resource in the link.
*
* @member {string} [properties.notes] Notes about the resource link.
*
*/

@@ -83,18 +74,2 @@ export interface ResourceLink {

/**
* @class
* Initializes a new instance of the ResourceLinkResult class.
* @constructor
* List of resource links.
*
* @member {array} value An array of resource links.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ResourceLinkResult {
value: ResourceLink[];
readonly nextLink?: string;
}

@@ -107,26 +82,7 @@ /**

*
* @member {array} value An array of resource links.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ResourceLinkResult {
value: ResourceLink[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the ResourceLinkResult class.
* @constructor
* List of resource links.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ResourceLinkResult extends Array<ResourceLink> {
readonly nextLink?: string;
}

@@ -25,2 +25,1 @@ /*

exports.ResourceLinkResult = require('./resourceLinkResult');
exports.ResourceLinkResult = require('./resourceLinkResult');

@@ -16,23 +16,17 @@ /*

/**
* @class
* Initializes a new instance of the ResourceLink class.
* @constructor
* The resource link.
*
* @member {string} [id] The fully qualified ID of the resource link.
*
* @member {string} [name] The name of the resource link.
*
* @member {object} [properties] Properties for resource link.
*
* @member {string} [properties.sourceId] The fully qualified ID of the source
* resource in the link.
*
* @member {string} [properties.targetId] The fully qualified ID of the target
* resource in the link.
*
* @member {string} [properties.notes] Notes about the resource link.
*
*/
class ResourceLink {
/**
* Create a ResourceLink.
* @member {string} [id] The fully qualified ID of the resource link.
* @member {string} [name] The name of the resource link.
* @member {object} [properties] Properties for resource link.
* @member {string} [properties.sourceId] The fully qualified ID of the
* source resource in the link.
* @member {string} [properties.targetId] The fully qualified ID of the
* target resource in the link.
* @member {string} [properties.notes] Notes about the resource link.
*/
constructor() {

@@ -39,0 +33,0 @@ }

@@ -14,11 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the ResourceLinkFilter class.
* @constructor
* Resource link filter.
*
* @member {string} targetId The ID of the target resource.
*
*/
class ResourceLinkFilter {
/**
* Create a ResourceLinkFilter.
* @member {string} targetId The ID of the target resource.
*/
constructor() {

@@ -25,0 +24,0 @@ }

@@ -14,17 +14,14 @@ /*

/**
* @class
* Initializes a new instance of the ResourceLinkProperties class.
* @constructor
* The resource link properties.
*
* @member {string} [sourceId] The fully qualified ID of the source resource in
* the link.
*
* @member {string} targetId The fully qualified ID of the target resource in
* the link.
*
* @member {string} [notes] Notes about the resource link.
*
*/
class ResourceLinkProperties {
/**
* Create a ResourceLinkProperties.
* @member {string} [sourceId] The fully qualified ID of the source resource
* in the link.
* @member {string} targetId The fully qualified ID of the target resource in
* the link.
* @member {string} [notes] Notes about the resource link.
*/
constructor() {

@@ -31,0 +28,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the ResourceLinkResult class.
* @constructor
* List of resource links.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class ResourceLinkResult extends Array {
/**
* Create a ResourceLinkResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -11,6 +11,7 @@ /*

import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
declare class ManagementLockClient {
declare class ManagementLockClient extends AzureServiceClient {
/**

@@ -36,4 +37,2 @@ * Initializes a new instance of the ManagementLockClient class.

*
* @param {string} [options.apiVersion] - The API version to use for the operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.

@@ -46,3 +45,3 @@ *

*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

@@ -49,0 +48,0 @@ credentials: ServiceClientCredentials;

@@ -25,32 +25,18 @@ /*

/**
* @class
* Initializes a new instance of the ManagementLockClient class.
* @constructor
*
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - The ID of the target subscription.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - The API version to use for the operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
/** Class representing a ManagementLockClient. */
class ManagementLockClient extends ServiceClient {
/**
* Create a ManagementLockClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - The ID of the target subscription.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {

@@ -81,5 +67,2 @@ if (credentials === null || credentials === undefined) {

this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
if(options.apiVersion !== null && options.apiVersion !== undefined) {
this.apiVersion = options.apiVersion;
}
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {

@@ -86,0 +69,0 @@ this.acceptLanguage = options.acceptLanguage;

@@ -13,2 +13,3 @@ /*

import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';

@@ -26,3 +27,2 @@ export { BaseResource } from 'ms-rest-azure';

* @member {string} [applicationId] The application ID of the lock owner.
*
*/

@@ -45,14 +45,8 @@ export interface ManagementLockOwner {

* 'ReadOnly'
*
* @member {string} [notes] Notes about the lock. Maximum of 512 characters.
*
* @member {array} [owners] The owners of the lock.
*
* @member {string} [id] The resource ID of the lock.
*
* @member {string} [type] The resource type of the lock -
* Microsoft.Authorization/locks.
*
* @member {string} [name] The name of the lock.
*
*/

@@ -68,18 +62,2 @@ export interface ManagementLockObject extends BaseResource {

/**
* @class
* Initializes a new instance of the ManagementLockListResult class.
* @constructor
* The list of locks.
*
* @member {array} [value] The list of locks.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ManagementLockListResult {
value?: ManagementLockObject[];
nextLink?: string;
}

@@ -92,26 +70,7 @@ /**

*
* @member {array} [value] The list of locks.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ManagementLockListResult {
value?: ManagementLockObject[];
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the ManagementLockListResult class.
* @constructor
* The list of locks.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ManagementLockListResult extends Array<ManagementLockObject> {
nextLink?: string;
}

@@ -24,2 +24,1 @@ /*

exports.ManagementLockListResult = require('./managementLockListResult');
exports.ManagementLockListResult = require('./managementLockListResult');

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the ManagementLockListResult class.
* @constructor
* The list of locks.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class ManagementLockListResult extends Array {
/**
* Create a ManagementLockListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -16,27 +16,22 @@ /*

/**
* @class
* Initializes a new instance of the ManagementLockObject class.
* @constructor
* The lock information.
*
* @member {string} level The level of the lock. Possible values are:
* NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users
* are able to read and modify the resources, but not delete. ReadOnly means
* authorized users can only read from a resource, but they can't modify or
* delete it. Possible values include: 'NotSpecified', 'CanNotDelete',
* 'ReadOnly'
*
* @member {string} [notes] Notes about the lock. Maximum of 512 characters.
*
* @member {array} [owners] The owners of the lock.
*
* @member {string} [id] The resource ID of the lock.
*
* @member {string} [type] The resource type of the lock -
* Microsoft.Authorization/locks.
*
* @member {string} [name] The name of the lock.
*
* @extends models['BaseResource']
*/
class ManagementLockObject extends models['BaseResource'] {
/**
* Create a ManagementLockObject.
* @member {string} level The level of the lock. Possible values are:
* NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users
* are able to read and modify the resources, but not delete. ReadOnly means
* authorized users can only read from a resource, but they can't modify or
* delete it. Possible values include: 'NotSpecified', 'CanNotDelete',
* 'ReadOnly'
* @member {string} [notes] Notes about the lock. Maximum of 512 characters.
* @member {array} [owners] The owners of the lock.
* @member {string} [id] The resource ID of the lock.
* @member {string} [type] The resource type of the lock -
* Microsoft.Authorization/locks.
* @member {string} [name] The name of the lock.
*/
constructor() {

@@ -43,0 +38,0 @@ super();

@@ -14,11 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the ManagementLockOwner class.
* @constructor
* Lock owner properties.
*
* @member {string} [applicationId] The application ID of the lock owner.
*
*/
class ManagementLockOwner {
/**
* Create a ManagementLockOwner.
* @member {string} [applicationId] The application ID of the lock owner.
*/
constructor() {

@@ -25,0 +24,0 @@ }

@@ -13,2 +13,3 @@ /*

import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';

@@ -21,34 +22,14 @@ export { BaseResource } from 'ms-rest-azure';

* @class
* Initializes a new instance of the PolicyDefinition class.
* Initializes a new instance of the PolicySku class.
* @constructor
* The policy definition.
* The policy sku.
*
* @member {string} [policyType] The type of policy definition. Possible values
* are NotSpecified, BuiltIn, and Custom. Possible values include:
* 'NotSpecified', 'BuiltIn', 'Custom'
*
* @member {string} [displayName] The display name of the policy definition.
*
* @member {string} [description] The policy definition description.
*
* @member {object} [policyRule] The policy rule.
*
* @member {object} [parameters] Required if a parameter is used in policy
* rule.
*
* @member {string} [id] The ID of the policy definition.
*
* @member {string} [name] The name of the policy definition. If you do not
* specify a value for name, the value is inferred from the name value in the
* request URI.
*
* @member {string} name The name of the policy sku. Possible values are A0 and
* A1.
* @member {string} [tier] The policy sku tier. Possible values are Free and
* Standard.
*/
export interface PolicyDefinition extends BaseResource {
policyType?: string;
displayName?: string;
description?: string;
policyRule?: any;
parameters?: any;
id?: string;
name?: string;
export interface PolicySku {
name: string;
tier?: string;
}

@@ -58,41 +39,23 @@

* @class
* Initializes a new instance of the PolicyDefinitionListResult class.
* @constructor
* List of policy definitions.
*
* @member {array} [value] An array of policy definitions.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface PolicyDefinitionListResult {
value?: PolicyDefinition[];
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the PolicyAssignment class.
* @constructor
* The policy definition.
* The policy assignment.
*
* @member {string} [displayName] The display name of the policy assignment.
*
* @member {string} [policyDefinitionId] The ID of the policy definition.
*
* @member {string} [scope] The scope for the policy assignment.
*
* @member {array} [notScopes] The policy's excluded scopes.
* @member {object} [parameters] Required if a parameter is used in policy
* rule.
*
* @member {string} [description] This message will be part of response in case
* of policy violation.
*
* @member {object} [metadata] The policy assignment metadata.
* @member {string} [id] The ID of the policy assignment.
*
* @member {string} [type] The type of the policy assignment.
*
* @member {string} [name] The name of the policy assignment.
*
* @member {object} [sku] The policy sku.
* @member {string} [sku.name] The name of the policy sku. Possible values are
* A0 and A1.
* @member {string} [sku.tier] The policy sku tier. Possible values are Free
* and Standard.
*/

@@ -103,7 +66,10 @@ export interface PolicyAssignment extends BaseResource {

scope?: string;
notScopes?: string[];
parameters?: any;
description?: string;
id?: string;
type?: string;
name?: string;
metadata?: any;
readonly id?: string;
readonly type?: string;
readonly name?: string;
sku?: PolicySku;
}

@@ -113,15 +79,32 @@

* @class
* Initializes a new instance of the PolicyAssignmentListResult class.
* Initializes a new instance of the ErrorResponse class.
* @constructor
* List of policy assignments.
* Error reponse indicates ARM is not able to process the incoming request. The
* reason is provided in the error message.
*
* @member {array} [value] An array of policy assignments.
* @member {string} [httpStatus] Http status code.
* @member {string} [errorCode] Error code.
* @member {string} [errorMessage] Error message indicating why the operation
* failed.
*/
export interface ErrorResponse {
httpStatus?: string;
errorCode?: string;
errorMessage?: string;
}
/**
* @class
* Initializes a new instance of the PolicyDefinitionReference class.
* @constructor
* The policy definition reference.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
* @member {string} [policyDefinitionId] The ID of the policy definition or
* policy set definition.
* @member {object} [parameters] Required if a parameter is used in policy
* rule.
*/
export interface PolicyAssignmentListResult {
value?: PolicyAssignment[];
nextLink?: string;
export interface PolicyDefinitionReference {
policyDefinitionId?: string;
parameters?: any;
}

@@ -131,15 +114,31 @@

* @class
* Initializes a new instance of the PolicyAssignmentListResult class.
* Initializes a new instance of the PolicySetDefinition class.
* @constructor
* List of policy assignments.
* The policy set definition.
*
* @member {array} [value] An array of policy assignments.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
* @member {string} [policyType] The type of policy definition. Possible values
* are NotSpecified, BuiltIn, and Custom. Possible values include:
* 'NotSpecified', 'BuiltIn', 'Custom'
* @member {string} [displayName] The display name of the policy set
* definition.
* @member {string} [description] The policy set definition description.
* @member {object} [metadata] The policy set definition metadata.
* @member {object} [parameters] The policy set definition parameters that can
* be used in policy definition references.
* @member {array} policyDefinitions An array of policy definition references.
* @member {string} [id] The ID of the policy set definition.
* @member {string} [name] The name of the policy set definition.
* @member {string} [type] The type of the resource
* (Microsoft.Authorization/policySetDefinitions).
*/
export interface PolicyAssignmentListResult {
value?: PolicyAssignment[];
nextLink?: string;
export interface PolicySetDefinition extends BaseResource {
policyType?: string;
displayName?: string;
description?: string;
metadata?: any;
parameters?: any;
policyDefinitions: PolicyDefinitionReference[];
readonly id?: string;
readonly name?: string;
readonly type?: string;
}

@@ -149,15 +148,31 @@

* @class
* Initializes a new instance of the PolicyDefinitionListResult class.
* Initializes a new instance of the PolicyDefinition class.
* @constructor
* List of policy definitions.
* The policy definition.
*
* @member {array} [value] An array of policy definitions.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
* @member {string} [policyType] The type of policy definition. Possible values
* are NotSpecified, BuiltIn, and Custom. Possible values include:
* 'NotSpecified', 'BuiltIn', 'Custom'
* @member {string} [mode] The policy definition mode. Possible values are
* NotSpecified, Indexed, and All. Possible values include: 'NotSpecified',
* 'Indexed', 'All'
* @member {string} [displayName] The display name of the policy definition.
* @member {string} [description] The policy definition description.
* @member {object} [policyRule] The policy rule.
* @member {object} [metadata] The policy definition metadata.
* @member {object} [parameters] Required if a parameter is used in policy
* rule.
* @member {string} [id] The ID of the policy definition.
* @member {string} [name] The name of the policy definition.
*/
export interface PolicyDefinitionListResult {
value?: PolicyDefinition[];
nextLink?: string;
export interface PolicyDefinition extends BaseResource {
policyType?: string;
mode?: string;
displayName?: string;
description?: string;
policyRule?: any;
metadata?: any;
parameters?: any;
readonly id?: string;
readonly name?: string;
}

@@ -174,3 +189,2 @@

* results.
*
*/

@@ -183,2 +197,15 @@ export interface PolicyAssignmentListResult extends Array<PolicyAssignment> {

* @class
* Initializes a new instance of the PolicySetDefinitionListResult class.
* @constructor
* List of policy set definitions.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
export interface PolicySetDefinitionListResult extends Array<PolicySetDefinition> {
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the PolicyDefinitionListResult class.

@@ -190,3 +217,2 @@ * @constructor

* results.
*
*/

@@ -193,0 +219,0 @@ export interface PolicyDefinitionListResult extends Array<PolicyDefinition> {

@@ -21,7 +21,10 @@ /*

exports.CloudError = msRestAzure.CloudError;
exports.PolicySku = require('./policySku');
exports.PolicyAssignment = require('./policyAssignment');
exports.ErrorResponse = require('./errorResponse');
exports.PolicyDefinitionReference = require('./policyDefinitionReference');
exports.PolicySetDefinition = require('./policySetDefinition');
exports.PolicyDefinition = require('./policyDefinition');
exports.PolicyDefinitionListResult = require('./policyDefinitionListResult');
exports.PolicyAssignment = require('./policyAssignment');
exports.PolicyAssignmentListResult = require('./policyAssignmentListResult');
exports.PolicyAssignmentListResult = require('./policyAssignmentListResult');
exports.PolicySetDefinitionListResult = require('./policySetDefinitionListResult');
exports.PolicyDefinitionListResult = require('./policyDefinitionListResult');

@@ -16,27 +16,27 @@ /*

/**
* @class
* Initializes a new instance of the PolicyAssignment class.
* @constructor
* The policy definition.
* The policy assignment.
*
* @member {string} [displayName] The display name of the policy assignment.
*
* @member {string} [policyDefinitionId] The ID of the policy definition.
*
* @member {string} [scope] The scope for the policy assignment.
*
* @member {object} [parameters] Required if a parameter is used in policy
* rule.
*
* @member {string} [description] This message will be part of response in case
* of policy violation.
*
* @member {string} [id] The ID of the policy assignment.
*
* @member {string} [type] The type of the policy assignment.
*
* @member {string} [name] The name of the policy assignment.
*
* @extends models['BaseResource']
*/
class PolicyAssignment extends models['BaseResource'] {
/**
* Create a PolicyAssignment.
* @member {string} [displayName] The display name of the policy assignment.
* @member {string} [policyDefinitionId] The ID of the policy definition.
* @member {string} [scope] The scope for the policy assignment.
* @member {array} [notScopes] The policy's excluded scopes.
* @member {object} [parameters] Required if a parameter is used in policy
* rule.
* @member {string} [description] This message will be part of response in
* case of policy violation.
* @member {object} [metadata] The policy assignment metadata.
* @member {string} [id] The ID of the policy assignment.
* @member {string} [type] The type of the policy assignment.
* @member {string} [name] The name of the policy assignment.
* @member {object} [sku] The policy sku.
* @member {string} [sku.name] The name of the policy sku. Possible values
* are A0 and A1.
* @member {string} [sku.tier] The policy sku tier. Possible values are Free
* and Standard.
*/
constructor() {

@@ -81,2 +81,16 @@ super();

},
notScopes: {
required: false,
serializedName: 'properties.notScopes',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
parameters: {

@@ -96,4 +110,12 @@ required: false,

},
metadata: {
required: false,
serializedName: 'properties.metadata',
type: {
name: 'Object'
}
},
id: {
required: false,
readOnly: true,
serializedName: 'id',

@@ -106,2 +128,3 @@ type: {

required: false,
readOnly: true,
serializedName: 'type',

@@ -114,2 +137,3 @@ type: {

required: false,
readOnly: true,
serializedName: 'name',

@@ -119,2 +143,10 @@ type: {

}
},
sku: {
required: false,
serializedName: 'sku',
type: {
name: 'Composite',
className: 'PolicySku'
}
}

@@ -121,0 +153,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the PolicyAssignmentListResult class.
* @constructor
* List of policy assignments.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class PolicyAssignmentListResult extends Array {
/**
* Create a PolicyAssignmentListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -16,28 +16,24 @@ /*

/**
* @class
* Initializes a new instance of the PolicyDefinition class.
* @constructor
* The policy definition.
*
* @member {string} [policyType] The type of policy definition. Possible values
* are NotSpecified, BuiltIn, and Custom. Possible values include:
* 'NotSpecified', 'BuiltIn', 'Custom'
*
* @member {string} [displayName] The display name of the policy definition.
*
* @member {string} [description] The policy definition description.
*
* @member {object} [policyRule] The policy rule.
*
* @member {object} [parameters] Required if a parameter is used in policy
* rule.
*
* @member {string} [id] The ID of the policy definition.
*
* @member {string} [name] The name of the policy definition. If you do not
* specify a value for name, the value is inferred from the name value in the
* request URI.
*
* @extends models['BaseResource']
*/
class PolicyDefinition extends models['BaseResource'] {
/**
* Create a PolicyDefinition.
* @member {string} [policyType] The type of policy definition. Possible
* values are NotSpecified, BuiltIn, and Custom. Possible values include:
* 'NotSpecified', 'BuiltIn', 'Custom'
* @member {string} [mode] The policy definition mode. Possible values are
* NotSpecified, Indexed, and All. Possible values include: 'NotSpecified',
* 'Indexed', 'All'
* @member {string} [displayName] The display name of the policy definition.
* @member {string} [description] The policy definition description.
* @member {object} [policyRule] The policy rule.
* @member {object} [metadata] The policy definition metadata.
* @member {object} [parameters] Required if a parameter is used in policy
* rule.
* @member {string} [id] The ID of the policy definition.
* @member {string} [name] The name of the policy definition.
*/
constructor() {

@@ -68,2 +64,9 @@ super();

},
mode: {
required: false,
serializedName: 'properties.mode',
type: {
name: 'String'
}
},
displayName: {

@@ -90,2 +93,9 @@ required: false,

},
metadata: {
required: false,
serializedName: 'properties.metadata',
type: {
name: 'Object'
}
},
parameters: {

@@ -100,2 +110,3 @@ required: false,

required: false,
readOnly: true,
serializedName: 'id',

@@ -108,2 +119,3 @@ type: {

required: false,
readOnly: true,
serializedName: 'name',

@@ -110,0 +122,0 @@ type: {

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the PolicyDefinitionListResult class.
* @constructor
* List of policy definitions.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class PolicyDefinitionListResult extends Array {
/**
* Create a PolicyDefinitionListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -18,2 +18,3 @@ /*

exports.PolicyAssignments = require('./policyAssignments');
exports.PolicySetDefinitions = require('./policySetDefinitions');
exports.PolicyDefinitions = require('./policyDefinitions');

@@ -29,2 +29,6 @@ /*

*
* @param {string} [parameters.mode] The policy definition mode. Possible
* values are NotSpecified, Indexed, and All. Possible values include:
* 'NotSpecified', 'Indexed', 'All'
*
* @param {string} [parameters.displayName] The display name of the policy

@@ -37,11 +41,7 @@ * definition.

*
* @param {object} [parameters.metadata] The policy definition metadata.
*
* @param {object} [parameters.parameters] Required if a parameter is used in
* policy rule.
*
* @param {string} [parameters.id] The ID of the policy definition.
*
* @param {string} [parameters.name] The name of the policy definition. If you
* do not specify a value for name, the value is inferred from the name value
* in the request URI.
*
* @param {object} [options] Optional Parameters.

@@ -75,2 +75,3 @@ *

}
let apiVersion = '2016-12-01';
// Validate

@@ -84,5 +85,2 @@ try {

}
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {

@@ -104,3 +102,3 @@ throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');

let queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {

@@ -113,5 +111,6 @@ requestUrl += '?' + queryParameters.join('&');

httpRequest.method = 'PUT';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -130,3 +129,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request

@@ -236,2 +234,3 @@ let requestContent = null;

}
let apiVersion = '2016-12-01';
// Validate

@@ -242,5 +241,2 @@ try {

}
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {

@@ -262,3 +258,3 @@ throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');

let queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {

@@ -271,5 +267,6 @@ requestUrl += '?' + queryParameters.join('&');

httpRequest.method = 'DELETE';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -288,3 +285,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -364,2 +360,3 @@ // Send Request

}
let apiVersion = '2016-12-01';
// Validate

@@ -370,5 +367,2 @@ try {

}
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {

@@ -390,3 +384,3 @@ throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');

let queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {

@@ -399,5 +393,6 @@ requestUrl += '?' + queryParameters.join('&');

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -416,3 +411,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -510,2 +504,3 @@ // Send Request

let filter = (options && options.filter !== undefined) ? options.filter : undefined;
let apiVersion = '2016-12-01';
// Validate

@@ -516,5 +511,2 @@ try {

}
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {

@@ -538,3 +530,3 @@ throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');

}
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
queryParameters.push('api-version=' + encodeURIComponent(apiVersion));
if (queryParameters.length > 0) {

@@ -547,5 +539,6 @@ requestUrl += '?' + queryParameters.join('&');

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -564,3 +557,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -677,5 +669,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -694,3 +687,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -753,13 +745,8 @@ // Send Request

/**
* @class
* PolicyDefinitions
* __NOTE__: An instance of this class is automatically created for an
* instance of the PolicyClient.
* Initializes a new instance of the PolicyDefinitions class.
* @constructor
*
* @param {PolicyClient} client Reference to the service client.
*/
/** Class representing a PolicyDefinitions. */
class PolicyDefinitions {
/**
* Create a PolicyDefinitions.
* @param {PolicyClient} client Reference to the service client.
*/
constructor(client) {

@@ -786,2 +773,6 @@ this.client = client;

*
* @param {string} [parameters.mode] The policy definition mode. Possible
* values are NotSpecified, Indexed, and All. Possible values include:
* 'NotSpecified', 'Indexed', 'All'
*
* @param {string} [parameters.displayName] The display name of the policy

@@ -794,11 +785,7 @@ * definition.

*
* @param {object} [parameters.metadata] The policy definition metadata.
*
* @param {object} [parameters.parameters] Required if a parameter is used in
* policy rule.
*
* @param {string} [parameters.id] The ID of the policy definition.
*
* @param {string} [parameters.name] The name of the policy definition. If you
* do not specify a value for name, the value is inferred from the name value
* in the request URI.
*
* @param {object} [options] Optional Parameters.

@@ -841,2 +828,6 @@ *

*
* @param {string} [parameters.mode] The policy definition mode. Possible
* values are NotSpecified, Indexed, and All. Possible values include:
* 'NotSpecified', 'Indexed', 'All'
*
* @param {string} [parameters.displayName] The display name of the policy

@@ -849,11 +840,7 @@ * definition.

*
* @param {object} [parameters.metadata] The policy definition metadata.
*
* @param {object} [parameters.parameters] Required if a parameter is used in
* policy rule.
*
* @param {string} [parameters.id] The ID of the policy definition.
*
* @param {string} [parameters.name] The name of the policy definition. If you
* do not specify a value for name, the value is inferred from the name value
* in the request URI.
*
* @param {object} [options] Optional Parameters.

@@ -860,0 +847,0 @@ *

@@ -11,6 +11,7 @@ /*

import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
declare class PolicyClient {
declare class PolicyClient extends AzureServiceClient {
/**

@@ -36,4 +37,2 @@ * Initializes a new instance of the PolicyClient class.

*
* @param {string} [options.apiVersion] - The API version to use for the operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.

@@ -46,3 +45,3 @@ *

*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

@@ -53,4 +52,2 @@ credentials: ServiceClientCredentials;

apiVersion: string;
acceptLanguage: string;

@@ -64,2 +61,3 @@

policyAssignments: operations.PolicyAssignments;
policySetDefinitions: operations.PolicySetDefinitions;
policyDefinitions: operations.PolicyDefinitions;

@@ -66,0 +64,0 @@ }

@@ -25,32 +25,18 @@ /*

/**
* @class
* Initializes a new instance of the PolicyClient class.
* @constructor
*
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - The ID of the target subscription.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - The API version to use for the operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
/** Class representing a PolicyClient. */
class PolicyClient extends ServiceClient {
/**
* Create a PolicyClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - The ID of the target subscription.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {

@@ -68,3 +54,2 @@ if (credentials === null || credentials === undefined) {

this.apiVersion = '2016-12-01';
this.acceptLanguage = 'en-US';

@@ -82,5 +67,2 @@ this.longRunningOperationRetryTimeout = 30;

this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
if(options.apiVersion !== null && options.apiVersion !== undefined) {
this.apiVersion = options.apiVersion;
}
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {

@@ -96,2 +78,3 @@ this.acceptLanguage = options.acceptLanguage;

this.policyAssignments = new operations.PolicyAssignments(this);
this.policySetDefinitions = new operations.PolicySetDefinitions(this);
this.policyDefinitions = new operations.PolicyDefinitions(this);

@@ -98,0 +81,0 @@ this.models = models;

@@ -25,5 +25,9 @@ /*

import ManagementGroupsClient = require('./management/managementGroupsClient');
import * as ManagementGroupsModels from './management/models';
export { SubscriptionClient, SubscriptionModels, ResourceManagementClient,
ResourceModels, PolicyClient, PolicyModels, ManagementLockClient, LockModels,
ManagementLinkClient, LinkModels, FeatureClient, FeatureModels };
export { SubscriptionClient, SubscriptionModels, ResourceManagementClient,
ResourceModels, PolicyClient, PolicyModels, ManagementLockClient, LockModels,
ManagementLinkClient, LinkModels, FeatureClient, FeatureModels,
ManagementGroupsClient, ManagementGroupsModels };

@@ -24,2 +24,3 @@ //

exports.ManagementLinkClient = require('./link/managementLinkClient');
exports.ManagementGroupsClient = require('./management/managementGroupsClient');
exports = module.exports;

@@ -14,13 +14,11 @@ /*

/**
* @class
* Initializes a new instance of the AliasPathType class.
* @constructor
* The type of the paths for alias.
*
* @member {string} [path] The path of an alias.
*
* @member {array} [apiVersions] The API versions.
*
*/
class AliasPathType {
/**
* Create a AliasPathType.
* @member {string} [path] The path of an alias.
* @member {array} [apiVersions] The API versions.
*/
constructor() {

@@ -27,0 +25,0 @@ }

@@ -16,13 +16,11 @@ /*

/**
* @class
* Initializes a new instance of the AliasType class.
* @constructor
* The alias type.
*
* @member {string} [name] The alias name.
*
* @member {array} [paths] The paths for an alias.
*
*/
class AliasType {
/**
* Create a AliasType.
* @member {string} [name] The alias name.
* @member {array} [paths] The paths for an alias.
*/
constructor() {

@@ -29,0 +27,0 @@ }

@@ -14,15 +14,12 @@ /*

/**
* @class
* Initializes a new instance of the BasicDependency class.
* @constructor
* Deployment dependency information.
*
* @member {string} [id] The ID of the dependency.
*
* @member {string} [resourceType] The dependency resource type.
*
* @member {string} [resourceName] The dependency resource name.
*
*/
class BasicDependency {
/**
* Create a BasicDependency.
* @member {string} [id] The ID of the dependency.
* @member {string} [resourceType] The dependency resource type.
* @member {string} [resourceName] The dependency resource name.
*/
constructor() {

@@ -29,0 +26,0 @@ }

@@ -14,15 +14,15 @@ /*

/**
* @class
* Initializes a new instance of the DebugSetting class.
* @constructor
* @member {string} [detailLevel] Specifies the type of information to log for
* debugging. The permitted values are none, requestContent, responseContent,
* or both requestContent and responseContent separated by a comma. The default
* is none. When setting this value, carefully consider the type of information
* you are passing in during deployment. By logging information about the
* request or response, you could potentially expose sensitive data that is
* retrieved through the deployment operations.
*
* Class representing a DebugSetting.
*/
class DebugSetting {
/**
* Create a DebugSetting.
* @member {string} [detailLevel] Specifies the type of information to log
* for debugging. The permitted values are none, requestContent,
* responseContent, or both requestContent and responseContent separated by a
* comma. The default is none. When setting this value, carefully consider
* the type of information you are passing in during deployment. By logging
* information about the request or response, you could potentially expose
* sensitive data that is retrieved through the deployment operations.
*/
constructor() {

@@ -29,0 +29,0 @@ }

@@ -16,17 +16,13 @@ /*

/**
* @class
* Initializes a new instance of the Dependency class.
* @constructor
* Deployment dependency information.
*
* @member {array} [dependsOn] The list of dependencies.
*
* @member {string} [id] The ID of the dependency.
*
* @member {string} [resourceType] The dependency resource type.
*
* @member {string} [resourceName] The dependency resource name.
*
*/
class Dependency {
/**
* Create a Dependency.
* @member {array} [dependsOn] The list of dependencies.
* @member {string} [id] The ID of the dependency.
* @member {string} [resourceType] The dependency resource type.
* @member {string} [resourceName] The dependency resource name.
*/
constructor() {

@@ -33,0 +29,0 @@ }

@@ -16,64 +16,52 @@ /*

/**
* @class
* Initializes a new instance of the Deployment class.
* @constructor
* Deployment operation parameters.
*
* @member {object} properties The deployment properties.
*
* @member {object} [properties.template] The template content. You use this
* element when you want to pass the template syntax directly in the request
* rather than link to an existing template. It can be a JObject or well-formed
* JSON string. Use either the templateLink property or the template property,
* but not both.
*
* @member {object} [properties.templateLink] The URI of the template. Use
* either the templateLink property or the template property, but not both.
*
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
*
* @member {string} [properties.templateLink.contentVersion] If included, must
* match the ContentVersion in the template.
*
* @member {object} [properties.parameters] Name and value pairs that define
* the deployment parameters for the template. You use this element when you
* want to provide the parameter values directly in the request rather than
* link to an existing parameter file. Use either the parametersLink property
* or the parameters property, but not both. It can be a JObject or a well
* formed JSON string.
*
* @member {object} [properties.parametersLink] The URI of parameters file. You
* use this element to link to an existing parameters file. Use either the
* parametersLink property or the parameters property, but not both.
*
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
*
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
*
* @member {string} [properties.mode] The mode that is used to deploy
* resources. This value can be either Incremental or Complete. In Incremental
* mode, resources are deployed without deleting existing resources that are
* not included in the template. In Complete mode, resources are deployed and
* existing resources in the resource group that are not included in the
* template are deleted. Be careful when using Complete mode as you may
* unintentionally delete resources. Possible values include: 'Incremental',
* 'Complete'
*
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
*
* @member {string} [properties.debugSetting.detailLevel] Specifies the type of
* information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and responseContent
* separated by a comma. The default is none. When setting this value,
* carefully consider the type of information you are passing in during
* deployment. By logging information about the request or response, you could
* potentially expose sensitive data that is retrieved through the deployment
* operations.
*
*/
class Deployment {
/**
* Create a Deployment.
* @member {object} properties The deployment properties.
* @member {object} [properties.template] The template content. You use this
* element when you want to pass the template syntax directly in the request
* rather than link to an existing template. It can be a JObject or
* well-formed JSON string. Use either the templateLink property or the
* template property, but not both.
* @member {object} [properties.templateLink] The URI of the template. Use
* either the templateLink property or the template property, but not both.
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
* @member {string} [properties.templateLink.contentVersion] If included,
* must match the ContentVersion in the template.
* @member {object} [properties.parameters] Name and value pairs that define
* the deployment parameters for the template. You use this element when you
* want to provide the parameter values directly in the request rather than
* link to an existing parameter file. Use either the parametersLink property
* or the parameters property, but not both. It can be a JObject or a well
* formed JSON string.
* @member {object} [properties.parametersLink] The URI of parameters file.
* You use this element to link to an existing parameters file. Use either
* the parametersLink property or the parameters property, but not both.
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
* @member {string} [properties.mode] The mode that is used to deploy
* resources. This value can be either Incremental or Complete. In
* Incremental mode, resources are deployed without deleting existing
* resources that are not included in the template. In Complete mode,
* resources are deployed and existing resources in the resource group that
* are not included in the template are deleted. Be careful when using
* Complete mode as you may unintentionally delete resources. Possible values
* include: 'Incremental', 'Complete'
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
* @member {string} [properties.debugSetting.detailLevel] Specifies the type
* of information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and
* responseContent separated by a comma. The default is none. When setting
* this value, carefully consider the type of information you are passing in
* during deployment. By logging information about the request or response,
* you could potentially expose sensitive data that is retrieved through the
* deployment operations.
*/
constructor() {

@@ -80,0 +68,0 @@ }

@@ -14,11 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentExportResult class.
* @constructor
* The deployment export result.
*
* @member {object} [template] The template content.
*
*/
class DeploymentExportResult {
/**
* Create a DeploymentExportResult.
* @member {object} [template] The template content.
*/
constructor() {

@@ -25,0 +24,0 @@ }

@@ -16,72 +16,53 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentExtended class.
* @constructor
* Deployment information.
*
* @member {string} [id] The ID of the deployment.
*
* @member {string} name The name of the deployment.
*
* @member {object} [properties] Deployment properties.
*
* @member {string} [properties.provisioningState] The state of the
* provisioning.
*
* @member {string} [properties.correlationId] The correlation ID of the
* deployment.
*
* @member {date} [properties.timestamp] The timestamp of the template
* deployment.
*
* @member {object} [properties.outputs] Key/value pairs that represent
* deploymentoutput.
*
* @member {array} [properties.providers] The list of resource providers needed
* for the deployment.
*
* @member {array} [properties.dependencies] The list of deployment
* dependencies.
*
* @member {object} [properties.template] The template content. Use only one of
* Template or TemplateLink.
*
* @member {object} [properties.templateLink] The URI referencing the template.
* Use only one of Template or TemplateLink.
*
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
*
* @member {string} [properties.templateLink.contentVersion] If included, must
* match the ContentVersion in the template.
*
* @member {object} [properties.parameters] Deployment parameters. Use only one
* of Parameters or ParametersLink.
*
* @member {object} [properties.parametersLink] The URI referencing the
* parameters. Use only one of Parameters or ParametersLink.
*
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
*
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
*
* @member {string} [properties.mode] The deployment mode. Possible values are
* Incremental and Complete. Possible values include: 'Incremental', 'Complete'
*
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
*
* @member {string} [properties.debugSetting.detailLevel] Specifies the type of
* information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and responseContent
* separated by a comma. The default is none. When setting this value,
* carefully consider the type of information you are passing in during
* deployment. By logging information about the request or response, you could
* potentially expose sensitive data that is retrieved through the deployment
* operations.
*
*/
class DeploymentExtended {
/**
* Create a DeploymentExtended.
* @member {string} [id] The ID of the deployment.
* @member {string} name The name of the deployment.
* @member {object} [properties] Deployment properties.
* @member {string} [properties.provisioningState] The state of the
* provisioning.
* @member {string} [properties.correlationId] The correlation ID of the
* deployment.
* @member {date} [properties.timestamp] The timestamp of the template
* deployment.
* @member {object} [properties.outputs] Key/value pairs that represent
* deploymentoutput.
* @member {array} [properties.providers] The list of resource providers
* needed for the deployment.
* @member {array} [properties.dependencies] The list of deployment
* dependencies.
* @member {object} [properties.template] The template content. Use only one
* of Template or TemplateLink.
* @member {object} [properties.templateLink] The URI referencing the
* template. Use only one of Template or TemplateLink.
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
* @member {string} [properties.templateLink.contentVersion] If included,
* must match the ContentVersion in the template.
* @member {object} [properties.parameters] Deployment parameters. Use only
* one of Parameters or ParametersLink.
* @member {object} [properties.parametersLink] The URI referencing the
* parameters. Use only one of Parameters or ParametersLink.
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
* @member {string} [properties.mode] The deployment mode. Possible values
* are Incremental and Complete. Possible values include: 'Incremental',
* 'Complete'
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
* @member {string} [properties.debugSetting.detailLevel] Specifies the type
* of information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and
* responseContent separated by a comma. The default is none. When setting
* this value, carefully consider the type of information you are passing in
* during deployment. By logging information about the request or response,
* you could potentially expose sensitive data that is retrieved through the
* deployment operations.
*/
constructor() {

@@ -88,0 +69,0 @@ }

@@ -14,11 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentExtendedFilter class.
* @constructor
* Deployment filter.
*
* @member {string} [provisioningState] The provisioning state.
*
*/
class DeploymentExtendedFilter {
/**
* Create a DeploymentExtendedFilter.
* @member {string} [provisioningState] The provisioning state.
*/
constructor() {

@@ -25,0 +24,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentListResult class.
* @constructor
* List of deployments.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class DeploymentListResult extends Array {
/**
* Create a DeploymentListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -16,45 +16,29 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentOperation class.
* @constructor
* Deployment operation information.
*
* @member {string} [id] Full deployment operation ID.
*
* @member {string} [operationId] Deployment operation ID.
*
* @member {object} [properties] Deployment properties.
*
* @member {string} [properties.provisioningState] The state of the
* provisioning.
*
* @member {date} [properties.timestamp] The date and time of the operation.
*
* @member {string} [properties.serviceRequestId] Deployment operation service
* request id.
*
* @member {string} [properties.statusCode] Operation status code.
*
* @member {object} [properties.statusMessage] Operation status message.
*
* @member {object} [properties.targetResource] The target resource.
*
* @member {string} [properties.targetResource.id] The ID of the resource.
*
* @member {string} [properties.targetResource.resourceName] The name of the
* resource.
*
* @member {string} [properties.targetResource.resourceType] The type of the
* resource.
*
* @member {object} [properties.request] The HTTP request message.
*
* @member {object} [properties.request.content] HTTP message content.
*
* @member {object} [properties.response] The HTTP response message.
*
* @member {object} [properties.response.content] HTTP message content.
*
*/
class DeploymentOperation {
/**
* Create a DeploymentOperation.
* @member {string} [id] Full deployment operation ID.
* @member {string} [operationId] Deployment operation ID.
* @member {object} [properties] Deployment properties.
* @member {string} [properties.provisioningState] The state of the
* provisioning.
* @member {date} [properties.timestamp] The date and time of the operation.
* @member {string} [properties.serviceRequestId] Deployment operation
* service request id.
* @member {string} [properties.statusCode] Operation status code.
* @member {object} [properties.statusMessage] Operation status message.
* @member {object} [properties.targetResource] The target resource.
* @member {string} [properties.targetResource.id] The ID of the resource.
* @member {string} [properties.targetResource.resourceName] The name of the
* resource.
* @member {string} [properties.targetResource.resourceType] The type of the
* resource.
* @member {object} [properties.request] The HTTP request message.
* @member {object} [properties.request.content] HTTP message content.
* @member {object} [properties.response] The HTTP response message.
* @member {object} [properties.response.content] HTTP message content.
*/
constructor() {

@@ -61,0 +45,0 @@ }

@@ -16,35 +16,23 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentOperationProperties class.
* @constructor
* Deployment operation properties.
*
* @member {string} [provisioningState] The state of the provisioning.
*
* @member {date} [timestamp] The date and time of the operation.
*
* @member {string} [serviceRequestId] Deployment operation service request id.
*
* @member {string} [statusCode] Operation status code.
*
* @member {object} [statusMessage] Operation status message.
*
* @member {object} [targetResource] The target resource.
*
* @member {string} [targetResource.id] The ID of the resource.
*
* @member {string} [targetResource.resourceName] The name of the resource.
*
* @member {string} [targetResource.resourceType] The type of the resource.
*
* @member {object} [request] The HTTP request message.
*
* @member {object} [request.content] HTTP message content.
*
* @member {object} [response] The HTTP response message.
*
* @member {object} [response.content] HTTP message content.
*
*/
class DeploymentOperationProperties {
/**
* Create a DeploymentOperationProperties.
* @member {string} [provisioningState] The state of the provisioning.
* @member {date} [timestamp] The date and time of the operation.
* @member {string} [serviceRequestId] Deployment operation service request
* id.
* @member {string} [statusCode] Operation status code.
* @member {object} [statusMessage] Operation status message.
* @member {object} [targetResource] The target resource.
* @member {string} [targetResource.id] The ID of the resource.
* @member {string} [targetResource.resourceName] The name of the resource.
* @member {string} [targetResource.resourceType] The type of the resource.
* @member {object} [request] The HTTP request message.
* @member {object} [request.content] HTTP message content.
* @member {object} [response] The HTTP response message.
* @member {object} [response.content] HTTP message content.
*/
constructor() {

@@ -51,0 +39,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentOperationsListResult class.
* @constructor
* List of deployment operations.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class DeploymentOperationsListResult extends Array {
/**
* Create a DeploymentOperationsListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -16,58 +16,48 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentProperties class.
* @constructor
* Deployment properties.
*
* @member {object} [template] The template content. You use this element when
* you want to pass the template syntax directly in the request rather than
* link to an existing template. It can be a JObject or well-formed JSON
* string. Use either the templateLink property or the template property, but
* not both.
*
* @member {object} [templateLink] The URI of the template. Use either the
* templateLink property or the template property, but not both.
*
* @member {string} [templateLink.uri] The URI of the template to deploy.
*
* @member {string} [templateLink.contentVersion] If included, must match the
* ContentVersion in the template.
*
* @member {object} [parameters] Name and value pairs that define the
* deployment parameters for the template. You use this element when you want
* to provide the parameter values directly in the request rather than link to
* an existing parameter file. Use either the parametersLink property or the
* parameters property, but not both. It can be a JObject or a well formed JSON
* string.
*
* @member {object} [parametersLink] The URI of parameters file. You use this
* element to link to an existing parameters file. Use either the
* parametersLink property or the parameters property, but not both.
*
* @member {string} [parametersLink.uri] The URI of the parameters file.
*
* @member {string} [parametersLink.contentVersion] If included, must match the
* ContentVersion in the template.
*
* @member {string} mode The mode that is used to deploy resources. This value
* can be either Incremental or Complete. In Incremental mode, resources are
* deployed without deleting existing resources that are not included in the
* template. In Complete mode, resources are deployed and existing resources in
* the resource group that are not included in the template are deleted. Be
* careful when using Complete mode as you may unintentionally delete
* resources. Possible values include: 'Incremental', 'Complete'
*
* @member {object} [debugSetting] The debug setting of the deployment.
*
* @member {string} [debugSetting.detailLevel] Specifies the type of
* information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and responseContent
* separated by a comma. The default is none. When setting this value,
* carefully consider the type of information you are passing in during
* deployment. By logging information about the request or response, you could
* potentially expose sensitive data that is retrieved through the deployment
* operations.
*
*/
class DeploymentProperties {
/**
* Create a DeploymentProperties.
* @member {object} [template] The template content. You use this element
* when you want to pass the template syntax directly in the request rather
* than link to an existing template. It can be a JObject or well-formed JSON
* string. Use either the templateLink property or the template property, but
* not both.
* @member {object} [templateLink] The URI of the template. Use either the
* templateLink property or the template property, but not both.
* @member {string} [templateLink.uri] The URI of the template to deploy.
* @member {string} [templateLink.contentVersion] If included, must match the
* ContentVersion in the template.
* @member {object} [parameters] Name and value pairs that define the
* deployment parameters for the template. You use this element when you want
* to provide the parameter values directly in the request rather than link
* to an existing parameter file. Use either the parametersLink property or
* the parameters property, but not both. It can be a JObject or a well
* formed JSON string.
* @member {object} [parametersLink] The URI of parameters file. You use this
* element to link to an existing parameters file. Use either the
* parametersLink property or the parameters property, but not both.
* @member {string} [parametersLink.uri] The URI of the parameters file.
* @member {string} [parametersLink.contentVersion] If included, must match
* the ContentVersion in the template.
* @member {string} mode The mode that is used to deploy resources. This
* value can be either Incremental or Complete. In Incremental mode,
* resources are deployed without deleting existing resources that are not
* included in the template. In Complete mode, resources are deployed and
* existing resources in the resource group that are not included in the
* template are deleted. Be careful when using Complete mode as you may
* unintentionally delete resources. Possible values include: 'Incremental',
* 'Complete'
* @member {object} [debugSetting] The debug setting of the deployment.
* @member {string} [debugSetting.detailLevel] Specifies the type of
* information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and
* responseContent separated by a comma. The default is none. When setting
* this value, carefully consider the type of information you are passing in
* during deployment. By logging information about the request or response,
* you could potentially expose sensitive data that is retrieved through the
* deployment operations.
*/
constructor() {

@@ -74,0 +64,0 @@ }

@@ -16,58 +16,43 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentPropertiesExtended class.
* @constructor
* Deployment properties with additional details.
*
* @member {string} [provisioningState] The state of the provisioning.
*
* @member {string} [correlationId] The correlation ID of the deployment.
*
* @member {date} [timestamp] The timestamp of the template deployment.
*
* @member {object} [outputs] Key/value pairs that represent deploymentoutput.
*
* @member {array} [providers] The list of resource providers needed for the
* deployment.
*
* @member {array} [dependencies] The list of deployment dependencies.
*
* @member {object} [template] The template content. Use only one of Template
* or TemplateLink.
*
* @member {object} [templateLink] The URI referencing the template. Use only
* one of Template or TemplateLink.
*
* @member {string} [templateLink.uri] The URI of the template to deploy.
*
* @member {string} [templateLink.contentVersion] If included, must match the
* ContentVersion in the template.
*
* @member {object} [parameters] Deployment parameters. Use only one of
* Parameters or ParametersLink.
*
* @member {object} [parametersLink] The URI referencing the parameters. Use
* only one of Parameters or ParametersLink.
*
* @member {string} [parametersLink.uri] The URI of the parameters file.
*
* @member {string} [parametersLink.contentVersion] If included, must match the
* ContentVersion in the template.
*
* @member {string} [mode] The deployment mode. Possible values are Incremental
* and Complete. Possible values include: 'Incremental', 'Complete'
*
* @member {object} [debugSetting] The debug setting of the deployment.
*
* @member {string} [debugSetting.detailLevel] Specifies the type of
* information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and responseContent
* separated by a comma. The default is none. When setting this value,
* carefully consider the type of information you are passing in during
* deployment. By logging information about the request or response, you could
* potentially expose sensitive data that is retrieved through the deployment
* operations.
*
*/
class DeploymentPropertiesExtended {
/**
* Create a DeploymentPropertiesExtended.
* @member {string} [provisioningState] The state of the provisioning.
* @member {string} [correlationId] The correlation ID of the deployment.
* @member {date} [timestamp] The timestamp of the template deployment.
* @member {object} [outputs] Key/value pairs that represent
* deploymentoutput.
* @member {array} [providers] The list of resource providers needed for the
* deployment.
* @member {array} [dependencies] The list of deployment dependencies.
* @member {object} [template] The template content. Use only one of Template
* or TemplateLink.
* @member {object} [templateLink] The URI referencing the template. Use only
* one of Template or TemplateLink.
* @member {string} [templateLink.uri] The URI of the template to deploy.
* @member {string} [templateLink.contentVersion] If included, must match the
* ContentVersion in the template.
* @member {object} [parameters] Deployment parameters. Use only one of
* Parameters or ParametersLink.
* @member {object} [parametersLink] The URI referencing the parameters. Use
* only one of Parameters or ParametersLink.
* @member {string} [parametersLink.uri] The URI of the parameters file.
* @member {string} [parametersLink.contentVersion] If included, must match
* the ContentVersion in the template.
* @member {string} [mode] The deployment mode. Possible values are
* Incremental and Complete. Possible values include: 'Incremental',
* 'Complete'
* @member {object} [debugSetting] The debug setting of the deployment.
* @member {string} [debugSetting.detailLevel] Specifies the type of
* information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and
* responseContent separated by a comma. The default is none. When setting
* this value, carefully consider the type of information you are passing in
* during deployment. By logging information about the request or response,
* you could potentially expose sensitive data that is retrieved through the
* deployment operations.
*/
constructor() {

@@ -74,0 +59,0 @@ }

@@ -16,80 +16,58 @@ /*

/**
* @class
* Initializes a new instance of the DeploymentValidateResult class.
* @constructor
* Information from validate template deployment response.
*
* @member {object} [error] Validation error.
*
* @member {string} [error.code] The error code returned when exporting the
* template.
*
* @member {string} [error.message] The error message describing the export
* error.
*
* @member {string} [error.target] The target of the error.
*
* @member {array} [error.details] Validation error.
*
* @member {object} [properties] The template deployment properties.
*
* @member {string} [properties.provisioningState] The state of the
* provisioning.
*
* @member {string} [properties.correlationId] The correlation ID of the
* deployment.
*
* @member {date} [properties.timestamp] The timestamp of the template
* deployment.
*
* @member {object} [properties.outputs] Key/value pairs that represent
* deploymentoutput.
*
* @member {array} [properties.providers] The list of resource providers needed
* for the deployment.
*
* @member {array} [properties.dependencies] The list of deployment
* dependencies.
*
* @member {object} [properties.template] The template content. Use only one of
* Template or TemplateLink.
*
* @member {object} [properties.templateLink] The URI referencing the template.
* Use only one of Template or TemplateLink.
*
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
*
* @member {string} [properties.templateLink.contentVersion] If included, must
* match the ContentVersion in the template.
*
* @member {object} [properties.parameters] Deployment parameters. Use only one
* of Parameters or ParametersLink.
*
* @member {object} [properties.parametersLink] The URI referencing the
* parameters. Use only one of Parameters or ParametersLink.
*
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
*
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
*
* @member {string} [properties.mode] The deployment mode. Possible values are
* Incremental and Complete. Possible values include: 'Incremental', 'Complete'
*
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
*
* @member {string} [properties.debugSetting.detailLevel] Specifies the type of
* information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and responseContent
* separated by a comma. The default is none. When setting this value,
* carefully consider the type of information you are passing in during
* deployment. By logging information about the request or response, you could
* potentially expose sensitive data that is retrieved through the deployment
* operations.
*
*/
class DeploymentValidateResult {
/**
* Create a DeploymentValidateResult.
* @member {object} [error] Validation error.
* @member {string} [error.code] The error code returned when exporting the
* template.
* @member {string} [error.message] The error message describing the export
* error.
* @member {string} [error.target] The target of the error.
* @member {array} [error.details] Validation error.
* @member {object} [properties] The template deployment properties.
* @member {string} [properties.provisioningState] The state of the
* provisioning.
* @member {string} [properties.correlationId] The correlation ID of the
* deployment.
* @member {date} [properties.timestamp] The timestamp of the template
* deployment.
* @member {object} [properties.outputs] Key/value pairs that represent
* deploymentoutput.
* @member {array} [properties.providers] The list of resource providers
* needed for the deployment.
* @member {array} [properties.dependencies] The list of deployment
* dependencies.
* @member {object} [properties.template] The template content. Use only one
* of Template or TemplateLink.
* @member {object} [properties.templateLink] The URI referencing the
* template. Use only one of Template or TemplateLink.
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
* @member {string} [properties.templateLink.contentVersion] If included,
* must match the ContentVersion in the template.
* @member {object} [properties.parameters] Deployment parameters. Use only
* one of Parameters or ParametersLink.
* @member {object} [properties.parametersLink] The URI referencing the
* parameters. Use only one of Parameters or ParametersLink.
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
* @member {string} [properties.mode] The deployment mode. Possible values
* are Incremental and Complete. Possible values include: 'Incremental',
* 'Complete'
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
* @member {string} [properties.debugSetting.detailLevel] Specifies the type
* of information to log for debugging. The permitted values are none,
* requestContent, responseContent, or both requestContent and
* responseContent separated by a comma. The default is none. When setting
* this value, carefully consider the type of information you are passing in
* during deployment. By logging information about the request or response,
* you could potentially expose sensitive data that is retrieved through the
* deployment operations.
*/
constructor() {

@@ -96,0 +74,0 @@ }

@@ -14,17 +14,15 @@ /*

/**
* @class
* Initializes a new instance of the ExportTemplateRequest class.
* @constructor
* Export resource group template request parameters.
*
* @member {array} [resourcesProperty] The IDs of the resources. The only
* supported string currently is '*' (all resources). Future updates will
* support exporting specific resources.
*
* @member {string} [options] The export template options. Supported values
* include 'IncludeParameterDefaultValue', 'IncludeComments' or
* 'IncludeParameterDefaultValue, IncludeComments
*
*/
class ExportTemplateRequest {
/**
* Create a ExportTemplateRequest.
* @member {array} [resources] The IDs of the resources. The only supported
* string currently is '*' (all resources). Future updates will support
* exporting specific resources.
* @member {string} [options] The export template options. Supported values
* include 'IncludeParameterDefaultValue', 'IncludeComments' or
* 'IncludeParameterDefaultValue, IncludeComments
*/
constructor() {

@@ -47,3 +45,3 @@ }

modelProperties: {
resourcesProperty: {
resources: {
required: false,

@@ -50,0 +48,0 @@ serializedName: 'resources',

@@ -16,49 +16,32 @@ /*

/**
* @class
* Initializes a new instance of the GenericResource class.
* @constructor
* Resource information.
*
* @member {object} [plan] The plan of the resource.
*
* @member {string} [plan.name] The plan ID.
*
* @member {string} [plan.publisher] The publisher ID.
*
* @member {string} [plan.product] The offer ID.
*
* @member {string} [plan.promotionCode] The promotion code.
*
* @member {object} [properties] The resource properties.
*
* @member {string} [kind] The kind of the resource.
*
* @member {string} [managedBy] ID of the resource that manages this resource.
*
* @member {object} [sku] The SKU of the resource.
*
* @member {string} [sku.name] The SKU name.
*
* @member {string} [sku.tier] The SKU tier.
*
* @member {string} [sku.size] The SKU size.
*
* @member {string} [sku.family] The SKU family.
*
* @member {string} [sku.model] The SKU model.
*
* @member {number} [sku.capacity] The SKU capacity.
*
* @member {object} [identity] The identity of the resource.
*
* @member {string} [identity.principalId] The principal ID of resource
* identity.
*
* @member {string} [identity.tenantId] The tenant ID of resource.
*
* @member {string} [identity.type] The identity type. Possible values include:
* 'SystemAssigned'
*
* @extends models['Resource']
*/
class GenericResource extends models['Resource'] {
/**
* Create a GenericResource.
* @member {object} [plan] The plan of the resource.
* @member {string} [plan.name] The plan ID.
* @member {string} [plan.publisher] The publisher ID.
* @member {string} [plan.product] The offer ID.
* @member {string} [plan.promotionCode] The promotion code.
* @member {object} [properties] The resource properties.
* @member {string} [kind] The kind of the resource.
* @member {string} [managedBy] ID of the resource that manages this
* resource.
* @member {object} [sku] The SKU of the resource.
* @member {string} [sku.name] The SKU name.
* @member {string} [sku.tier] The SKU tier.
* @member {string} [sku.size] The SKU size.
* @member {string} [sku.family] The SKU family.
* @member {string} [sku.model] The SKU model.
* @member {number} [sku.capacity] The SKU capacity.
* @member {object} [identity] The identity of the resource.
* @member {string} [identity.principalId] The principal ID of resource
* identity.
* @member {string} [identity.tenantId] The tenant ID of resource.
* @member {string} [identity.type] The identity type. Possible values
* include: 'SystemAssigned'
*/
constructor() {

@@ -65,0 +48,0 @@ super();

@@ -14,15 +14,12 @@ /*

/**
* @class
* Initializes a new instance of the GenericResourceFilter class.
* @constructor
* Resource filter.
*
* @member {string} [resourceType] The resource type.
*
* @member {string} [tagname] The tag name.
*
* @member {string} [tagvalue] The tag value.
*
*/
class GenericResourceFilter {
/**
* Create a GenericResourceFilter.
* @member {string} [resourceType] The resource type.
* @member {string} [tagname] The tag name.
* @member {string} [tagvalue] The tag value.
*/
constructor() {

@@ -29,0 +26,0 @@ }

@@ -14,9 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the HttpMessage class.
* @constructor
* @member {object} [content] HTTP message content.
* HTTP message.
*
*/
class HttpMessage {
/**
* Create a HttpMessage.
* @member {object} [content] HTTP message content.
*/
constructor() {

@@ -23,0 +24,0 @@ }

@@ -14,16 +14,13 @@ /*

/**
* @class
* Initializes a new instance of the Identity class.
* @constructor
* Identity for the resource.
*
* @member {string} [principalId] The principal ID of resource identity.
*
* @member {string} [tenantId] The tenant ID of resource.
*
* @member {string} [type] The identity type. Possible values include:
* 'SystemAssigned'
*
*/
class Identity {
/**
* Create a Identity.
* @member {string} [principalId] The principal ID of resource identity.
* @member {string} [tenantId] The tenant ID of resource.
* @member {string} [type] The identity type. Possible values include:
* 'SystemAssigned'
*/
constructor() {

@@ -30,0 +27,0 @@ }

@@ -13,2 +13,3 @@ /*

import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';

@@ -26,3 +27,2 @@ export { BaseResource } from 'ms-rest-azure';

* @member {string} [provisioningState] The provisioning state.
*
*/

@@ -40,7 +40,4 @@ export interface DeploymentExtendedFilter {

* @member {string} [resourceType] The resource type.
*
* @member {string} [tagname] The tag name.
*
* @member {string} [tagvalue] The tag value.
*
*/

@@ -60,5 +57,3 @@ export interface GenericResourceFilter {

* @member {string} [tagName] The tag name.
*
* @member {string} [tagValue] The tag value.
*
*/

@@ -77,6 +72,4 @@ export interface ResourceGroupFilter {

* @member {string} uri The URI of the template to deploy.
*
* @member {string} [contentVersion] If included, must match the ContentVersion
* in the template.
*
*/

@@ -95,6 +88,4 @@ export interface TemplateLink {

* @member {string} uri The URI of the parameters file.
*
* @member {string} [contentVersion] If included, must match the ContentVersion
* in the template.
*
*/

@@ -117,3 +108,2 @@ export interface ParametersLink {

* retrieved through the deployment operations.
*
*/

@@ -135,11 +125,7 @@ export interface DebugSetting {

* not both.
*
* @member {object} [templateLink] The URI of the template. Use either the
* templateLink property or the template property, but not both.
*
* @member {string} [templateLink.uri] The URI of the template to deploy.
*
* @member {string} [templateLink.contentVersion] If included, must match the
* ContentVersion in the template.
*
* @member {object} [parameters] Name and value pairs that define the

@@ -151,12 +137,8 @@ * deployment parameters for the template. You use this element when you want

* string.
*
* @member {object} [parametersLink] The URI of parameters file. You use this
* element to link to an existing parameters file. Use either the
* parametersLink property or the parameters property, but not both.
*
* @member {string} [parametersLink.uri] The URI of the parameters file.
*
* @member {string} [parametersLink.contentVersion] If included, must match the
* ContentVersion in the template.
*
* @member {string} mode The mode that is used to deploy resources. This value

@@ -169,5 +151,3 @@ * can be either Incremental or Complete. In Incremental mode, resources are

* resources. Possible values include: 'Incremental', 'Complete'
*
* @member {object} [debugSetting] The debug setting of the deployment.
*
* @member {string} [debugSetting.detailLevel] Specifies the type of

@@ -181,3 +161,2 @@ * information to log for debugging. The permitted values are none,

* operations.
*
*/

@@ -200,3 +179,2 @@ export interface DeploymentProperties {

* @member {object} properties The deployment properties.
*
* @member {object} [properties.template] The template content. You use this

@@ -207,12 +185,8 @@ * element when you want to pass the template syntax directly in the request

* but not both.
*
* @member {object} [properties.templateLink] The URI of the template. Use
* either the templateLink property or the template property, but not both.
*
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
*
* @member {string} [properties.templateLink.contentVersion] If included, must
* match the ContentVersion in the template.
*
* @member {object} [properties.parameters] Name and value pairs that define

@@ -224,13 +198,9 @@ * the deployment parameters for the template. You use this element when you

* formed JSON string.
*
* @member {object} [properties.parametersLink] The URI of parameters file. You
* use this element to link to an existing parameters file. Use either the
* parametersLink property or the parameters property, but not both.
*
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
*
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
*
* @member {string} [properties.mode] The mode that is used to deploy

@@ -244,6 +214,4 @@ * resources. This value can be either Incremental or Complete. In Incremental

* 'Complete'
*
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
*
* @member {string} [properties.debugSetting.detailLevel] Specifies the type of

@@ -257,3 +225,2 @@ * information to log for debugging. The permitted values are none,

* operations.
*
*/

@@ -271,3 +238,2 @@ export interface Deployment {

* @member {object} [template] The template content.
*
*/

@@ -282,10 +248,8 @@ export interface DeploymentExportResult {

* @constructor
* The detailed error message of resource management.
*
* @member {string} [code] The error code returned when exporting the template.
*
* @member {string} [message] The error message describing the export error.
*
* @member {string} [target] The target of the error.
*
* @member {array} [details] Validation error.
*
*/

@@ -306,5 +270,3 @@ export interface ResourceManagementErrorWithDetails {

* @member {string} [path] The path of an alias.
*
* @member {array} [apiVersions] The API versions.
*
*/

@@ -323,5 +285,3 @@ export interface AliasPathType {

* @member {string} [name] The alias name.
*
* @member {array} [paths] The paths for an alias.
*
*/

@@ -340,13 +300,8 @@ export interface AliasType {

* @member {string} [resourceType] The resource type.
*
* @member {array} [locations] The collection of locations where this resource
* type can be created.
*
* @member {array} [aliases] The aliases that are supported by this resource
* type.
*
* @member {array} [apiVersions] The API version.
*
* @member {object} [properties] The properties.
*
*/

@@ -368,9 +323,5 @@ export interface ProviderResourceType {

* @member {string} [id] The provider ID.
*
* @member {string} [namespace] The namespace of the resource provider.
*
* @member {string} [registrationState] The registration state of the provider.
*
* @member {array} [resourceTypes] The collection of provider resource types.
*
*/

@@ -391,7 +342,4 @@ export interface Provider {

* @member {string} [id] The ID of the dependency.
*
* @member {string} [resourceType] The dependency resource type.
*
* @member {string} [resourceName] The dependency resource name.
*
*/

@@ -411,9 +359,5 @@ export interface BasicDependency {

* @member {array} [dependsOn] The list of dependencies.
*
* @member {string} [id] The ID of the dependency.
*
* @member {string} [resourceType] The dependency resource type.
*
* @member {string} [resourceName] The dependency resource name.
*
*/

@@ -434,41 +378,25 @@ export interface Dependency {

* @member {string} [provisioningState] The state of the provisioning.
*
* @member {string} [correlationId] The correlation ID of the deployment.
*
* @member {date} [timestamp] The timestamp of the template deployment.
*
* @member {object} [outputs] Key/value pairs that represent deploymentoutput.
*
* @member {array} [providers] The list of resource providers needed for the
* deployment.
*
* @member {array} [dependencies] The list of deployment dependencies.
*
* @member {object} [template] The template content. Use only one of Template
* or TemplateLink.
*
* @member {object} [templateLink] The URI referencing the template. Use only
* one of Template or TemplateLink.
*
* @member {string} [templateLink.uri] The URI of the template to deploy.
*
* @member {string} [templateLink.contentVersion] If included, must match the
* ContentVersion in the template.
*
* @member {object} [parameters] Deployment parameters. Use only one of
* Parameters or ParametersLink.
*
* @member {object} [parametersLink] The URI referencing the parameters. Use
* only one of Parameters or ParametersLink.
*
* @member {string} [parametersLink.uri] The URI of the parameters file.
*
* @member {string} [parametersLink.contentVersion] If included, must match the
* ContentVersion in the template.
*
* @member {string} [mode] The deployment mode. Possible values are Incremental
* and Complete. Possible values include: 'Incremental', 'Complete'
*
* @member {object} [debugSetting] The debug setting of the deployment.
*
* @member {string} [debugSetting.detailLevel] Specifies the type of

@@ -482,3 +410,2 @@ * information to log for debugging. The permitted values are none,

* operations.
*
*/

@@ -507,63 +434,41 @@ export interface DeploymentPropertiesExtended {

* @member {object} [error] Validation error.
*
* @member {string} [error.code] The error code returned when exporting the
* template.
*
* @member {string} [error.message] The error message describing the export
* error.
*
* @member {string} [error.target] The target of the error.
*
* @member {array} [error.details] Validation error.
*
* @member {object} [properties] The template deployment properties.
*
* @member {string} [properties.provisioningState] The state of the
* provisioning.
*
* @member {string} [properties.correlationId] The correlation ID of the
* deployment.
*
* @member {date} [properties.timestamp] The timestamp of the template
* deployment.
*
* @member {object} [properties.outputs] Key/value pairs that represent
* deploymentoutput.
*
* @member {array} [properties.providers] The list of resource providers needed
* for the deployment.
*
* @member {array} [properties.dependencies] The list of deployment
* dependencies.
*
* @member {object} [properties.template] The template content. Use only one of
* Template or TemplateLink.
*
* @member {object} [properties.templateLink] The URI referencing the template.
* Use only one of Template or TemplateLink.
*
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
*
* @member {string} [properties.templateLink.contentVersion] If included, must
* match the ContentVersion in the template.
*
* @member {object} [properties.parameters] Deployment parameters. Use only one
* of Parameters or ParametersLink.
*
* @member {object} [properties.parametersLink] The URI referencing the
* parameters. Use only one of Parameters or ParametersLink.
*
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
*
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
*
* @member {string} [properties.mode] The deployment mode. Possible values are
* Incremental and Complete. Possible values include: 'Incremental', 'Complete'
*
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
*
* @member {string} [properties.debugSetting.detailLevel] Specifies the type of

@@ -577,3 +482,2 @@ * information to log for debugging. The permitted values are none,

* operations.
*
*/

@@ -592,55 +496,36 @@ export interface DeploymentValidateResult {

* @member {string} [id] The ID of the deployment.
*
* @member {string} name The name of the deployment.
*
* @member {object} [properties] Deployment properties.
*
* @member {string} [properties.provisioningState] The state of the
* provisioning.
*
* @member {string} [properties.correlationId] The correlation ID of the
* deployment.
*
* @member {date} [properties.timestamp] The timestamp of the template
* deployment.
*
* @member {object} [properties.outputs] Key/value pairs that represent
* deploymentoutput.
*
* @member {array} [properties.providers] The list of resource providers needed
* for the deployment.
*
* @member {array} [properties.dependencies] The list of deployment
* dependencies.
*
* @member {object} [properties.template] The template content. Use only one of
* Template or TemplateLink.
*
* @member {object} [properties.templateLink] The URI referencing the template.
* Use only one of Template or TemplateLink.
*
* @member {string} [properties.templateLink.uri] The URI of the template to
* deploy.
*
* @member {string} [properties.templateLink.contentVersion] If included, must
* match the ContentVersion in the template.
*
* @member {object} [properties.parameters] Deployment parameters. Use only one
* of Parameters or ParametersLink.
*
* @member {object} [properties.parametersLink] The URI referencing the
* parameters. Use only one of Parameters or ParametersLink.
*
* @member {string} [properties.parametersLink.uri] The URI of the parameters
* file.
*
* @member {string} [properties.parametersLink.contentVersion] If included,
* must match the ContentVersion in the template.
*
* @member {string} [properties.mode] The deployment mode. Possible values are
* Incremental and Complete. Possible values include: 'Incremental', 'Complete'
*
* @member {object} [properties.debugSetting] The debug setting of the
* deployment.
*
* @member {string} [properties.debugSetting.detailLevel] Specifies the type of

@@ -654,3 +539,2 @@ * information to log for debugging. The permitted values are none,

* operations.
*
*/

@@ -665,36 +549,2 @@ export interface DeploymentExtended {

* @class
* Initializes a new instance of the DeploymentListResult class.
* @constructor
* List of deployments.
*
* @member {array} [value] An array of deployments.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface DeploymentListResult {
value?: DeploymentExtended[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the ProviderListResult class.
* @constructor
* List of resource providers.
*
* @member {array} [value] An array of resource providers.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ProviderListResult {
value?: Provider[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the Plan class.

@@ -705,9 +555,5 @@ * @constructor

* @member {string} [name] The plan ID.
*
* @member {string} [publisher] The publisher ID.
*
* @member {string} [product] The offer ID.
*
* @member {string} [promotionCode] The promotion code.
*
*/

@@ -728,13 +574,7 @@ export interface Plan {

* @member {string} [name] The SKU name.
*
* @member {string} [tier] The SKU tier.
*
* @member {string} [size] The SKU size.
*
* @member {string} [family] The SKU family.
*
* @member {string} [model] The SKU model.
*
* @member {number} [capacity] The SKU capacity.
*
*/

@@ -757,8 +597,5 @@ export interface Sku {

* @member {string} [principalId] The principal ID of resource identity.
*
* @member {string} [tenantId] The tenant ID of resource.
*
* @member {string} [type] The identity type. Possible values include:
* 'SystemAssigned'
*
*/

@@ -775,12 +612,9 @@ export interface Identity {

* @constructor
* Resource.
*
* @member {string} [id] Resource ID
*
* @member {string} [name] Resource name
*
* @member {string} [type] Resource type
*
* @member {string} [location] Resource location
*
* @member {object} [tags] Resource tags
*
*/

@@ -802,41 +636,22 @@ export interface Resource extends BaseResource {

* @member {object} [plan] The plan of the resource.
*
* @member {string} [plan.name] The plan ID.
*
* @member {string} [plan.publisher] The publisher ID.
*
* @member {string} [plan.product] The offer ID.
*
* @member {string} [plan.promotionCode] The promotion code.
*
* @member {object} [properties] The resource properties.
*
* @member {string} [kind] The kind of the resource.
*
* @member {string} [managedBy] ID of the resource that manages this resource.
*
* @member {object} [sku] The SKU of the resource.
*
* @member {string} [sku.name] The SKU name.
*
* @member {string} [sku.tier] The SKU tier.
*
* @member {string} [sku.size] The SKU size.
*
* @member {string} [sku.family] The SKU family.
*
* @member {string} [sku.model] The SKU model.
*
* @member {number} [sku.capacity] The SKU capacity.
*
* @member {object} [identity] The identity of the resource.
*
* @member {string} [identity.principalId] The principal ID of resource
* identity.
*
* @member {string} [identity.tenantId] The tenant ID of resource.
*
* @member {string} [identity.type] The identity type. Possible values include:
* 'SystemAssigned'
*
*/

@@ -854,19 +669,2 @@ export interface GenericResource extends Resource {

* @class
* Initializes a new instance of the ResourceListResult class.
* @constructor
* List of resource groups.
*
* @member {array} [value] An array of resources.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ResourceListResult {
value?: GenericResource[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the ResourceGroupProperties class.

@@ -877,3 +675,2 @@ * @constructor

* @member {string} [provisioningState] The provisioning state.
*
*/

@@ -891,18 +688,11 @@ export interface ResourceGroupProperties {

* @member {string} [id] The ID of the resource group.
*
* @member {string} [name] The name of the resource group.
*
* @member {object} [properties]
*
* @member {string} [properties.provisioningState] The provisioning state.
*
* @member {string} location The location of the resource group. It cannot be
* changed after the resource group has been created. It muct be one of the
* supported Azure locations.
*
* @member {string} [managedBy] The ID of the resource that manages this
* resource group.
*
* @member {object} [tags] The tags attached to the resource group.
*
*/

@@ -920,15 +710,18 @@ export interface ResourceGroup {

* @class
* Initializes a new instance of the ResourceGroupListResult class.
* Initializes a new instance of the ResourceGroupPatchable class.
* @constructor
* List of resource groups.
* Resource group information.
*
* @member {array} [value] An array of resource groups.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
* @member {string} [name] The name of the resource group.
* @member {object} [properties]
* @member {string} [properties.provisioningState] The provisioning state.
* @member {string} [managedBy] The ID of the resource that manages this
* resource group.
* @member {object} [tags] The tags attached to the resource group.
*/
export interface ResourceGroupListResult {
value?: ResourceGroup[];
readonly nextLink?: string;
export interface ResourceGroupPatchable {
name?: string;
properties?: ResourceGroupProperties;
managedBy?: string;
tags?: { [propertyName: string]: string };
}

@@ -942,9 +735,7 @@

*
* @member {array} [resourcesProperty] The IDs of the resources.
*
* @member {array} [resources] The IDs of the resources.
* @member {string} [targetResourceGroup] The target resource group.
*
*/
export interface ResourcesMoveInfo {
resourcesProperty?: string[];
resources?: string[];
targetResourceGroup?: string;

@@ -959,13 +750,11 @@ }

*
* @member {array} [resourcesProperty] The IDs of the resources. The only
* supported string currently is '*' (all resources). Future updates will
* support exporting specific resources.
*
* @member {array} [resources] The IDs of the resources. The only supported
* string currently is '*' (all resources). Future updates will support
* exporting specific resources.
* @member {string} [options] The export template options. Supported values
* include 'IncludeParameterDefaultValue', 'IncludeComments' or
* 'IncludeParameterDefaultValue, IncludeComments
*
*/
export interface ExportTemplateRequest {
resourcesProperty?: string[];
resources?: string[];
options?: string;

@@ -981,5 +770,3 @@ }

* @member {string} [type] Type of count.
*
* @member {number} [value] Value of count.
*
*/

@@ -998,11 +785,6 @@ export interface TagCount {

* @member {string} [id] The tag ID.
*
* @member {string} [tagValue] The tag value.
*
* @member {object} [count] The tag value count.
*
* @member {string} [count.type] Type of count.
*
* @member {number} [count.value] Value of count.
*
*/

@@ -1022,15 +804,9 @@ export interface TagValue {

* @member {string} [id] The tag ID.
*
* @member {string} [tagName] The tag name.
*
* @member {object} [count] The total number of resources that use the resource
* tag. When a tag is initially created and has no associated resources, the
* value is 0.
*
* @member {string} [count.type] Type of count.
*
* @member {number} [count.value] Value of count.
*
* @member {array} [values] The list of tag values.
*
*/

@@ -1046,19 +822,2 @@ export interface TagDetails {

* @class
* Initializes a new instance of the TagsListResult class.
* @constructor
* List of subscription tags.
*
* @member {array} [value] An array of tags.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface TagsListResult {
value?: TagDetails[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the TargetResource class.

@@ -1069,7 +828,4 @@ * @constructor

* @member {string} [id] The ID of the resource.
*
* @member {string} [resourceName] The name of the resource.
*
* @member {string} [resourceType] The type of the resource.
*
*/

@@ -1086,4 +842,5 @@ export interface TargetResource {

* @constructor
* HTTP message.
*
* @member {object} [content] HTTP message content.
*
*/

@@ -1101,27 +858,14 @@ export interface HttpMessage {

* @member {string} [provisioningState] The state of the provisioning.
*
* @member {date} [timestamp] The date and time of the operation.
*
* @member {string} [serviceRequestId] Deployment operation service request id.
*
* @member {string} [statusCode] Operation status code.
*
* @member {object} [statusMessage] Operation status message.
*
* @member {object} [targetResource] The target resource.
*
* @member {string} [targetResource.id] The ID of the resource.
*
* @member {string} [targetResource.resourceName] The name of the resource.
*
* @member {string} [targetResource.resourceType] The type of the resource.
*
* @member {object} [request] The HTTP request message.
*
* @member {object} [request.content] HTTP message content.
*
* @member {object} [response] The HTTP response message.
*
* @member {object} [response.content] HTTP message content.
*
*/

@@ -1146,37 +890,21 @@ export interface DeploymentOperationProperties {

* @member {string} [id] Full deployment operation ID.
*
* @member {string} [operationId] Deployment operation ID.
*
* @member {object} [properties] Deployment properties.
*
* @member {string} [properties.provisioningState] The state of the
* provisioning.
*
* @member {date} [properties.timestamp] The date and time of the operation.
*
* @member {string} [properties.serviceRequestId] Deployment operation service
* request id.
*
* @member {string} [properties.statusCode] Operation status code.
*
* @member {object} [properties.statusMessage] Operation status message.
*
* @member {object} [properties.targetResource] The target resource.
*
* @member {string} [properties.targetResource.id] The ID of the resource.
*
* @member {string} [properties.targetResource.resourceName] The name of the
* resource.
*
* @member {string} [properties.targetResource.resourceType] The type of the
* resource.
*
* @member {object} [properties.request] The HTTP request message.
*
* @member {object} [properties.request.content] HTTP message content.
*
* @member {object} [properties.response] The HTTP response message.
*
* @member {object} [properties.response.content] HTTP message content.
*
*/

@@ -1191,19 +919,2 @@ export interface DeploymentOperation {

* @class
* Initializes a new instance of the DeploymentOperationsListResult class.
* @constructor
* List of deployment operations.
*
* @member {array} [value] An array of deployment operations.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface DeploymentOperationsListResult {
value?: DeploymentOperation[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the ResourceProviderOperationDisplayProperties class.

@@ -1214,11 +925,6 @@ * @constructor

* @member {string} [publisher] Operation description.
*
* @member {string} [provider] Operation provider.
*
* @member {string} [resource] Operation resource.
*
* @member {string} [operation] Operation.
*
* @member {string} [description] Operation description.
*
*/

@@ -1237,4 +943,5 @@ export interface ResourceProviderOperationDisplayProperties {

* @constructor
* Sub-resource.
*
* @member {string} [id] Resource ID
*
*/

@@ -1249,16 +956,12 @@ export interface SubResource extends BaseResource {

* @constructor
* Resource group export result.
*
* @member {object} [template] The template content.
*
* @member {object} [error] The error.
*
* @member {string} [error.code] The error code returned when exporting the
* template.
*
* @member {string} [error.message] The error message describing the export
* error.
*
* @member {string} [error.target] The target of the error.
*
* @member {array} [error.details] Validation error.
*
*/

@@ -1270,107 +973,5 @@ export interface ResourceGroupExportResult {

/**
* @class
* Initializes a new instance of the DeploymentListResult class.
* @constructor
* List of deployments.
*
* @member {array} [value] An array of deployments.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface DeploymentListResult {
value?: DeploymentExtended[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the ProviderListResult class.
* @constructor
* List of resource providers.
*
* @member {array} [value] An array of resource providers.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ProviderListResult {
value?: Provider[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the ResourceListResult class.
* @constructor
* List of resource groups.
*
* @member {array} [value] An array of resources.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ResourceListResult {
value?: GenericResource[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the ResourceGroupListResult class.
* @constructor
* List of resource groups.
*
* @member {array} [value] An array of resource groups.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface ResourceGroupListResult {
value?: ResourceGroup[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the TagsListResult class.
* @constructor
* List of subscription tags.
*
* @member {array} [value] An array of tags.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface TagsListResult {
value?: TagDetails[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the DeploymentOperationsListResult class.
* @constructor
* List of deployment operations.
*
* @member {array} [value] An array of deployment operations.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
export interface DeploymentOperationsListResult {
value?: DeploymentOperation[];
readonly nextLink?: string;
}
/**
* @class
* Initializes a new instance of the DeploymentListResult class.

@@ -1382,3 +983,2 @@ * @constructor

* results.
*
*/

@@ -1397,3 +997,2 @@ export interface DeploymentListResult extends Array<DeploymentExtended> {

* results.
*
*/

@@ -1412,3 +1011,2 @@ export interface ProviderListResult extends Array<Provider> {

* results.
*
*/

@@ -1427,3 +1025,2 @@ export interface ResourceListResult extends Array<GenericResource> {

* results.
*
*/

@@ -1442,3 +1039,2 @@ export interface ResourceGroupListResult extends Array<ResourceGroup> {

* results.
*
*/

@@ -1457,3 +1053,2 @@ export interface TagsListResult extends Array<TagDetails> {

* results.
*
*/

@@ -1460,0 +1055,0 @@ export interface DeploymentOperationsListResult extends Array<DeploymentOperation> {

@@ -40,4 +40,2 @@ /*

exports.DeploymentExtended = require('./deploymentExtended');
exports.DeploymentListResult = require('./deploymentListResult');
exports.ProviderListResult = require('./providerListResult');
exports.Plan = require('./plan');

@@ -48,6 +46,5 @@ exports.Sku = require('./sku');

exports.GenericResource = require('./genericResource');
exports.ResourceListResult = require('./resourceListResult');
exports.ResourceGroupProperties = require('./resourceGroupProperties');
exports.ResourceGroup = require('./resourceGroup');
exports.ResourceGroupListResult = require('./resourceGroupListResult');
exports.ResourceGroupPatchable = require('./resourceGroupPatchable');
exports.ResourcesMoveInfo = require('./resourcesMoveInfo');

@@ -58,3 +55,2 @@ exports.ExportTemplateRequest = require('./exportTemplateRequest');

exports.TagDetails = require('./tagDetails');
exports.TagsListResult = require('./tagsListResult');
exports.TargetResource = require('./targetResource');

@@ -64,3 +60,2 @@ exports.HttpMessage = require('./httpMessage');

exports.DeploymentOperation = require('./deploymentOperation');
exports.DeploymentOperationsListResult = require('./deploymentOperationsListResult');
exports.ResourceProviderOperationDisplayProperties = require('./resourceProviderOperationDisplayProperties');

@@ -67,0 +62,0 @@ exports.SubResource = require('./subResource');

@@ -14,14 +14,12 @@ /*

/**
* @class
* Initializes a new instance of the ParametersLink class.
* @constructor
* Entity representing the reference to the deployment paramaters.
*
* @member {string} uri The URI of the parameters file.
*
* @member {string} [contentVersion] If included, must match the ContentVersion
* in the template.
*
*/
class ParametersLink {
/**
* Create a ParametersLink.
* @member {string} uri The URI of the parameters file.
* @member {string} [contentVersion] If included, must match the
* ContentVersion in the template.
*/
constructor() {

@@ -28,0 +26,0 @@ }

@@ -14,17 +14,13 @@ /*

/**
* @class
* Initializes a new instance of the Plan class.
* @constructor
* Plan for the resource.
*
* @member {string} [name] The plan ID.
*
* @member {string} [publisher] The publisher ID.
*
* @member {string} [product] The offer ID.
*
* @member {string} [promotionCode] The promotion code.
*
*/
class Plan {
/**
* Create a Plan.
* @member {string} [name] The plan ID.
* @member {string} [publisher] The publisher ID.
* @member {string} [product] The offer ID.
* @member {string} [promotionCode] The promotion code.
*/
constructor() {

@@ -31,0 +27,0 @@ }

@@ -16,17 +16,14 @@ /*

/**
* @class
* Initializes a new instance of the Provider class.
* @constructor
* Resource provider information.
*
* @member {string} [id] The provider ID.
*
* @member {string} [namespace] The namespace of the resource provider.
*
* @member {string} [registrationState] The registration state of the provider.
*
* @member {array} [resourceTypes] The collection of provider resource types.
*
*/
class Provider {
/**
* Create a Provider.
* @member {string} [id] The provider ID.
* @member {string} [namespace] The namespace of the resource provider.
* @member {string} [registrationState] The registration state of the
* provider.
* @member {array} [resourceTypes] The collection of provider resource types.
*/
constructor() {

@@ -33,0 +30,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the ProviderListResult class.
* @constructor
* List of resource providers.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class ProviderListResult extends Array {
/**
* Create a ProviderListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -16,21 +16,16 @@ /*

/**
* @class
* Initializes a new instance of the ProviderResourceType class.
* @constructor
* Resource type managed by the resource provider.
*
* @member {string} [resourceType] The resource type.
*
* @member {array} [locations] The collection of locations where this resource
* type can be created.
*
* @member {array} [aliases] The aliases that are supported by this resource
* type.
*
* @member {array} [apiVersions] The API version.
*
* @member {object} [properties] The properties.
*
*/
class ProviderResourceType {
/**
* Create a ProviderResourceType.
* @member {string} [resourceType] The resource type.
* @member {array} [locations] The collection of locations where this
* resource type can be created.
* @member {array} [aliases] The aliases that are supported by this resource
* type.
* @member {array} [apiVersions] The API version.
* @member {object} [properties] The properties.
*/
constructor() {

@@ -37,0 +32,0 @@ }

@@ -16,17 +16,15 @@ /*

/**
* @class
* Initializes a new instance of the Resource class.
* @constructor
* @member {string} [id] Resource ID
* Resource.
*
* @member {string} [name] Resource name
*
* @member {string} [type] Resource type
*
* @member {string} [location] Resource location
*
* @member {object} [tags] Resource tags
*
* @extends models['BaseResource']
*/
class Resource extends models['BaseResource'] {
/**
* Create a Resource.
* @member {string} [id] Resource ID
* @member {string} [name] Resource name
* @member {string} [type] Resource type
* @member {string} [location] Resource location
* @member {object} [tags] Resource tags
*/
constructor() {

@@ -33,0 +31,0 @@ super();

@@ -16,26 +16,19 @@ /*

/**
* @class
* Initializes a new instance of the ResourceGroup class.
* @constructor
* Resource group information.
*
* @member {string} [id] The ID of the resource group.
*
* @member {string} [name] The name of the resource group.
*
* @member {object} [properties]
*
* @member {string} [properties.provisioningState] The provisioning state.
*
* @member {string} location The location of the resource group. It cannot be
* changed after the resource group has been created. It muct be one of the
* supported Azure locations.
*
* @member {string} [managedBy] The ID of the resource that manages this
* resource group.
*
* @member {object} [tags] The tags attached to the resource group.
*
*/
class ResourceGroup {
/**
* Create a ResourceGroup.
* @member {string} [id] The ID of the resource group.
* @member {string} [name] The name of the resource group.
* @member {object} [properties]
* @member {string} [properties.provisioningState] The provisioning state.
* @member {string} location The location of the resource group. It cannot be
* changed after the resource group has been created. It muct be one of the
* supported Azure locations.
* @member {string} [managedBy] The ID of the resource that manages this
* resource group.
* @member {object} [tags] The tags attached to the resource group.
*/
constructor() {

@@ -42,0 +35,0 @@ }

@@ -16,21 +16,17 @@ /*

/**
* @class
* Initializes a new instance of the ResourceGroupExportResult class.
* @constructor
* @member {object} [template] The template content.
* Resource group export result.
*
* @member {object} [error] The error.
*
* @member {string} [error.code] The error code returned when exporting the
* template.
*
* @member {string} [error.message] The error message describing the export
* error.
*
* @member {string} [error.target] The target of the error.
*
* @member {array} [error.details] Validation error.
*
*/
class ResourceGroupExportResult {
/**
* Create a ResourceGroupExportResult.
* @member {object} [template] The template content.
* @member {object} [error] The error.
* @member {string} [error.code] The error code returned when exporting the
* template.
* @member {string} [error.message] The error message describing the export
* error.
* @member {string} [error.target] The target of the error.
* @member {array} [error.details] Validation error.
*/
constructor() {

@@ -37,0 +33,0 @@ }

@@ -14,13 +14,11 @@ /*

/**
* @class
* Initializes a new instance of the ResourceGroupFilter class.
* @constructor
* Resource group filter.
*
* @member {string} [tagName] The tag name.
*
* @member {string} [tagValue] The tag value.
*
*/
class ResourceGroupFilter {
/**
* Create a ResourceGroupFilter.
* @member {string} [tagName] The tag name.
* @member {string} [tagValue] The tag value.
*/
constructor() {

@@ -27,0 +25,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the ResourceGroupListResult class.
* @constructor
* List of resource groups.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class ResourceGroupListResult extends Array {
/**
* Create a ResourceGroupListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -14,11 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the ResourceGroupProperties class.
* @constructor
* The resource group properties.
*
* @member {string} [provisioningState] The provisioning state.
*
*/
class ResourceGroupProperties {
/**
* Create a ResourceGroupProperties.
* @member {string} [provisioningState] The provisioning state.
*/
constructor() {

@@ -25,0 +24,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the ResourceListResult class.
* @constructor
* List of resource groups.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class ResourceListResult extends Array {
/**
* Create a ResourceListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -16,15 +16,14 @@ /*

/**
* @class
* Initializes a new instance of the ResourceManagementErrorWithDetails class.
* @constructor
* @member {string} [code] The error code returned when exporting the template.
* The detailed error message of resource management.
*
* @member {string} [message] The error message describing the export error.
*
* @member {string} [target] The target of the error.
*
* @member {array} [details] Validation error.
*
*/
class ResourceManagementErrorWithDetails {
/**
* Create a ResourceManagementErrorWithDetails.
* @member {string} [code] The error code returned when exporting the
* template.
* @member {string} [message] The error message describing the export error.
* @member {string} [target] The target of the error.
* @member {array} [details] Validation error.
*/
constructor() {

@@ -31,0 +30,0 @@ }

@@ -14,19 +14,14 @@ /*

/**
* @class
* Initializes a new instance of the ResourceProviderOperationDisplayProperties class.
* @constructor
* Resource provider operation's display properties.
*
* @member {string} [publisher] Operation description.
*
* @member {string} [provider] Operation provider.
*
* @member {string} [resource] Operation resource.
*
* @member {string} [operation] Operation.
*
* @member {string} [description] Operation description.
*
*/
class ResourceProviderOperationDisplayProperties {
/**
* Create a ResourceProviderOperationDisplayProperties.
* @member {string} [publisher] Operation description.
* @member {string} [provider] Operation provider.
* @member {string} [resource] Operation resource.
* @member {string} [operation] Operation.
* @member {string} [description] Operation description.
*/
constructor() {

@@ -33,0 +28,0 @@ }

@@ -14,13 +14,11 @@ /*

/**
* @class
* Initializes a new instance of the ResourcesMoveInfo class.
* @constructor
* Parameters of move resources.
*
* @member {array} [resourcesProperty] The IDs of the resources.
*
* @member {string} [targetResourceGroup] The target resource group.
*
*/
class ResourcesMoveInfo {
/**
* Create a ResourcesMoveInfo.
* @member {array} [resources] The IDs of the resources.
* @member {string} [targetResourceGroup] The target resource group.
*/
constructor() {

@@ -43,3 +41,3 @@ }

modelProperties: {
resourcesProperty: {
resources: {
required: false,

@@ -46,0 +44,0 @@ serializedName: 'resources',

@@ -14,21 +14,15 @@ /*

/**
* @class
* Initializes a new instance of the Sku class.
* @constructor
* SKU for the resource.
*
* @member {string} [name] The SKU name.
*
* @member {string} [tier] The SKU tier.
*
* @member {string} [size] The SKU size.
*
* @member {string} [family] The SKU family.
*
* @member {string} [model] The SKU model.
*
* @member {number} [capacity] The SKU capacity.
*
*/
class Sku {
/**
* Create a Sku.
* @member {string} [name] The SKU name.
* @member {string} [tier] The SKU tier.
* @member {string} [size] The SKU size.
* @member {string} [family] The SKU family.
* @member {string} [model] The SKU model.
* @member {number} [capacity] The SKU capacity.
*/
constructor() {

@@ -35,0 +29,0 @@ }

@@ -16,9 +16,11 @@ /*

/**
* @class
* Initializes a new instance of the SubResource class.
* @constructor
* @member {string} [id] Resource ID
* Sub-resource.
*
* @extends models['BaseResource']
*/
class SubResource extends models['BaseResource'] {
/**
* Create a SubResource.
* @member {string} [id] Resource ID
*/
constructor() {

@@ -25,0 +27,0 @@ super();

@@ -14,13 +14,11 @@ /*

/**
* @class
* Initializes a new instance of the TagCount class.
* @constructor
* Tag count.
*
* @member {string} [type] Type of count.
*
* @member {number} [value] Value of count.
*
*/
class TagCount {
/**
* Create a TagCount.
* @member {string} [type] Type of count.
* @member {number} [value] Value of count.
*/
constructor() {

@@ -27,0 +25,0 @@ }

@@ -16,23 +16,17 @@ /*

/**
* @class
* Initializes a new instance of the TagDetails class.
* @constructor
* Tag details.
*
* @member {string} [id] The tag ID.
*
* @member {string} [tagName] The tag name.
*
* @member {object} [count] The total number of resources that use the resource
* tag. When a tag is initially created and has no associated resources, the
* value is 0.
*
* @member {string} [count.type] Type of count.
*
* @member {number} [count.value] Value of count.
*
* @member {array} [values] The list of tag values.
*
*/
class TagDetails {
/**
* Create a TagDetails.
* @member {string} [id] The tag ID.
* @member {string} [tagName] The tag name.
* @member {object} [count] The total number of resources that use the
* resource tag. When a tag is initially created and has no associated
* resources, the value is 0.
* @member {string} [count.type] Type of count.
* @member {number} [count.value] Value of count.
* @member {array} [values] The list of tag values.
*/
constructor() {

@@ -39,0 +33,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the TagsListResult class.
* @constructor
* List of subscription tags.
*
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*
*/
class TagsListResult extends Array {
/**
* Create a TagsListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -16,19 +16,14 @@ /*

/**
* @class
* Initializes a new instance of the TagValue class.
* @constructor
* Tag information.
*
* @member {string} [id] The tag ID.
*
* @member {string} [tagValue] The tag value.
*
* @member {object} [count] The tag value count.
*
* @member {string} [count.type] Type of count.
*
* @member {number} [count.value] Value of count.
*
*/
class TagValue {
/**
* Create a TagValue.
* @member {string} [id] The tag ID.
* @member {string} [tagValue] The tag value.
* @member {object} [count] The tag value count.
* @member {string} [count.type] Type of count.
* @member {number} [count.value] Value of count.
*/
constructor() {

@@ -35,0 +30,0 @@ }

@@ -14,15 +14,12 @@ /*

/**
* @class
* Initializes a new instance of the TargetResource class.
* @constructor
* Target resource.
*
* @member {string} [id] The ID of the resource.
*
* @member {string} [resourceName] The name of the resource.
*
* @member {string} [resourceType] The type of the resource.
*
*/
class TargetResource {
/**
* Create a TargetResource.
* @member {string} [id] The ID of the resource.
* @member {string} [resourceName] The name of the resource.
* @member {string} [resourceType] The type of the resource.
*/
constructor() {

@@ -29,0 +26,0 @@ }

@@ -14,14 +14,12 @@ /*

/**
* @class
* Initializes a new instance of the TemplateLink class.
* @constructor
* Entity representing the reference to the template.
*
* @member {string} uri The URI of the template to deploy.
*
* @member {string} [contentVersion] If included, must match the ContentVersion
* in the template.
*
*/
class TemplateLink {
/**
* Create a TemplateLink.
* @member {string} uri The URI of the template to deploy.
* @member {string} [contentVersion] If included, must match the
* ContentVersion in the template.
*/
constructor() {

@@ -28,0 +26,0 @@ }

@@ -123,5 +123,6 @@ /*

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -140,3 +141,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -310,5 +310,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -327,3 +328,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -440,5 +440,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -457,3 +458,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -516,13 +516,8 @@ // Send Request

/**
* @class
* DeploymentOperations
* __NOTE__: An instance of this class is automatically created for an
* instance of the ResourceManagementClient.
* Initializes a new instance of the DeploymentOperations class.
* @constructor
*
* @param {ResourceManagementClient} client Reference to the service client.
*/
/** Class representing a DeploymentOperations. */
class DeploymentOperations {
/**
* Create a DeploymentOperations.
* @param {ResourceManagementClient} client Reference to the service client.
*/
constructor(client) {

@@ -529,0 +524,0 @@ this.client = client;

@@ -19,5 +19,5 @@ /*

exports.Providers = require('./providers');
exports.Resources = require('./resources');
exports.ResourceGroups = require('./resourceGroups');
exports.Resources = require('./resources');
exports.Tags = require('./tags');
exports.DeploymentOperations = require('./deploymentOperations');

@@ -83,5 +83,6 @@ /*

httpRequest.method = 'POST';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -100,3 +101,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -225,5 +225,6 @@ // Send Request

httpRequest.method = 'POST';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -242,3 +243,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -382,5 +382,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -399,3 +400,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -534,5 +534,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -551,3 +552,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -663,5 +663,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -680,3 +681,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -739,13 +739,8 @@ // Send Request

/**
* @class
* Providers
* __NOTE__: An instance of this class is automatically created for an
* instance of the ResourceManagementClient.
* Initializes a new instance of the Providers class.
* @constructor
*
* @param {ResourceManagementClient} client Reference to the service client.
*/
/** Class representing a Providers. */
class Providers {
/**
* Create a Providers.
* @param {ResourceManagementClient} client Reference to the service client.
*/
constructor(client) {

@@ -752,0 +747,0 @@ this.client = client;

@@ -87,5 +87,6 @@ /*

httpRequest.method = 'DELETE';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -104,3 +105,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -217,5 +217,6 @@ // Send Request

httpRequest.method = 'PUT';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -234,3 +235,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -379,5 +379,6 @@ // Send Request

httpRequest.method = 'PUT';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -396,3 +397,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -538,5 +538,6 @@ // Send Request

httpRequest.method = 'DELETE';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -555,3 +556,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -657,5 +657,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -674,3 +675,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -787,5 +787,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -804,3 +805,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -863,13 +863,8 @@ // Send Request

/**
* @class
* Tags
* __NOTE__: An instance of this class is automatically created for an
* instance of the ResourceManagementClient.
* Initializes a new instance of the Tags class.
* @constructor
*
* @param {ResourceManagementClient} client Reference to the service client.
*/
/** Class representing a Tags. */
class Tags {
/**
* Create a Tags.
* @param {ResourceManagementClient} client Reference to the service client.
*/
constructor(client) {

@@ -876,0 +871,0 @@ this.client = client;

@@ -11,6 +11,7 @@ /*

import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
declare class ResourceManagementClient {
declare class ResourceManagementClient extends AzureServiceClient {
/**

@@ -36,4 +37,2 @@ * Initializes a new instance of the ResourceManagementClient class.

*
* @param {string} [options.apiVersion] - The API version to use for this operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.

@@ -46,3 +45,3 @@ *

*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

@@ -64,4 +63,4 @@ credentials: ServiceClientCredentials;

providers: operations.Providers;
resources: operations.Resources;
resourceGroups: operations.ResourceGroups;
resources: operations.Resources;
tags: operations.Tags;

@@ -68,0 +67,0 @@ deploymentOperations: operations.DeploymentOperations;

@@ -25,32 +25,18 @@ /*

/**
* @class
* Initializes a new instance of the ResourceManagementClient class.
* @constructor
*
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - The ID of the target subscription.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - The API version to use for this operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
/** Class representing a ResourceManagementClient. */
class ResourceManagementClient extends ServiceClient {
/**
* Create a ResourceManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - The ID of the target subscription.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {

@@ -68,3 +54,3 @@ if (credentials === null || credentials === undefined) {

this.apiVersion = '2016-09-01';
this.apiVersion = '2017-05-10';
this.acceptLanguage = 'en-US';

@@ -82,5 +68,2 @@ this.longRunningOperationRetryTimeout = 30;

this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
if(options.apiVersion !== null && options.apiVersion !== undefined) {
this.apiVersion = options.apiVersion;
}
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {

@@ -97,4 +80,4 @@ this.acceptLanguage = options.acceptLanguage;

this.providers = new operations.Providers(this);
this.resources = new operations.Resources(this);
this.resourceGroups = new operations.ResourceGroups(this);
this.resources = new operations.Resources(this);
this.tags = new operations.Tags(this);

@@ -101,0 +84,0 @@ this.deploymentOperations = new operations.DeploymentOperations(this);

@@ -13,2 +13,3 @@ /*

import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';

@@ -27,13 +28,7 @@ export { BaseResource } from 'ms-rest-azure';

* /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
*
* @member {string} [subscriptionId] The subscription ID.
*
* @member {string} [name] The location name.
*
* @member {string} [displayName] The display name of the location.
*
* @member {string} [latitude] The latitude of the location.
*
* @member {string} [longitude] The longitude of the location.
*
*/

@@ -51,15 +46,2 @@ export interface Location {

* @class
* Initializes a new instance of the LocationListResult class.
* @constructor
* Location list operation response.
*
* @member {array} [value] An array of locations.
*
*/
export interface LocationListResult {
value?: Location[];
}
/**
* @class
* Initializes a new instance of the SubscriptionPolicies class.

@@ -73,8 +55,5 @@ * @constructor

* has access to Azure public regions.
*
* @member {string} [quotaId] The subscription quota ID.
*
* @member {string} [spendingLimit] The subscription spending limit. Possible
* values include: 'On', 'Off', 'CurrentPeriodOff'
*
*/

@@ -95,15 +74,8 @@ export interface SubscriptionPolicies {

* example, /subscriptions/00000000-0000-0000-0000-000000000000.
*
* @member {string} [subscriptionId] The subscription ID.
*
* @member {string} [tenantId] The tenant ID.
*
* @member {string} [displayName] The subscription display name.
*
* @member {string} [state] The subscription state. Possible values are
* Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include:
* 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
*
* @member {object} [subscriptionPolicies] The subscription policies.
*
* @member {string} [subscriptionPolicies.locationPlacementId] The subscription

@@ -113,12 +85,8 @@ * location placement ID. The ID indicates which regions are visible for a

* Public_2014-09-01 has access to Azure public regions.
*
* @member {string} [subscriptionPolicies.quotaId] The subscription quota ID.
*
* @member {string} [subscriptionPolicies.spendingLimit] The subscription
* spending limit. Possible values include: 'On', 'Off', 'CurrentPeriodOff'
*
* @member {string} [authorizationSource] The authorization source of the
* request. Valid values are one or more combinations of Legacy, RoleBased,
* Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
*
*/

@@ -128,3 +96,2 @@ export interface Subscription {

readonly subscriptionId?: string;
readonly tenantId?: string;
readonly displayName?: string;

@@ -138,18 +105,2 @@ readonly state?: string;

* @class
* Initializes a new instance of the SubscriptionListResult class.
* @constructor
* Subscription list operation response.
*
* @member {array} [value] An array of subscriptions.
*
* @member {string} nextLink The URL to get the next set of results.
*
*/
export interface SubscriptionListResult {
value?: Subscription[];
nextLink: string;
}
/**
* @class
* Initializes a new instance of the TenantIdDescription class.

@@ -161,6 +112,4 @@ * @constructor

* /tenants/00000000-0000-0000-0000-000000000000.
*
* @member {string} [tenantId] The tenant ID. For example,
* 00000000-0000-0000-0000-000000000000.
*
*/

@@ -172,18 +121,2 @@ export interface TenantIdDescription {

/**
* @class
* Initializes a new instance of the TenantListResult class.
* @constructor
* Tenant Ids information.
*
* @member {array} [value] An array of tenants.
*
* @member {string} nextLink The URL to use for getting the next set of
* results.
*
*/
export interface TenantListResult {
value?: TenantIdDescription[];
nextLink: string;
}

@@ -196,50 +129,3 @@ /**

*
* @member {array} [value] An array of locations.
*
*/
export interface LocationListResult {
value?: Location[];
}
/**
* @class
* Initializes a new instance of the SubscriptionListResult class.
* @constructor
* Subscription list operation response.
*
* @member {array} [value] An array of subscriptions.
*
* @member {string} nextLink The URL to get the next set of results.
*
*/
export interface SubscriptionListResult {
value?: Subscription[];
nextLink: string;
}
/**
* @class
* Initializes a new instance of the TenantListResult class.
* @constructor
* Tenant Ids information.
*
* @member {array} [value] An array of tenants.
*
* @member {string} nextLink The URL to use for getting the next set of
* results.
*
*/
export interface TenantListResult {
value?: TenantIdDescription[];
nextLink: string;
}
/**
* @class
* Initializes a new instance of the LocationListResult class.
* @constructor
* Location list operation response.
*
*/
export interface LocationListResult extends Array<Location> {

@@ -255,3 +141,2 @@ }

* @member {string} nextLink The URL to get the next set of results.
*
*/

@@ -270,3 +155,2 @@ export interface SubscriptionListResult extends Array<Subscription> {

* results.
*
*/

@@ -273,0 +157,0 @@ export interface TenantListResult extends Array<TenantIdDescription> {

@@ -22,10 +22,7 @@ /*

exports.Location = require('./location');
exports.LocationListResult = require('./locationListResult');
exports.SubscriptionPolicies = require('./subscriptionPolicies');
exports.Subscription = require('./subscription');
exports.SubscriptionListResult = require('./subscriptionListResult');
exports.TenantIdDescription = require('./tenantIdDescription');
exports.TenantListResult = require('./tenantListResult');
exports.LocationListResult = require('./locationListResult');
exports.SubscriptionListResult = require('./subscriptionListResult');
exports.TenantListResult = require('./tenantListResult');

@@ -14,22 +14,16 @@ /*

/**
* @class
* Initializes a new instance of the Location class.
* @constructor
* Location information.
*
* @member {string} [id] The fully qualified ID of the location. For example,
* /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
*
* @member {string} [subscriptionId] The subscription ID.
*
* @member {string} [name] The location name.
*
* @member {string} [displayName] The display name of the location.
*
* @member {string} [latitude] The latitude of the location.
*
* @member {string} [longitude] The longitude of the location.
*
*/
class Location {
/**
* Create a Location.
* @member {string} [id] The fully qualified ID of the location. For example,
* /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
* @member {string} [subscriptionId] The subscription ID.
* @member {string} [name] The location name.
* @member {string} [displayName] The display name of the location.
* @member {string} [latitude] The latitude of the location.
* @member {string} [longitude] The longitude of the location.
*/
constructor() {

@@ -36,0 +30,0 @@ }

@@ -14,9 +14,8 @@ /*

/**
* @class
* Initializes a new instance of the LocationListResult class.
* @constructor
* Location list operation response.
*
*/
class LocationListResult extends Array {
/**
* Create a LocationListResult.
*/
constructor() {

@@ -23,0 +22,0 @@ super();

@@ -16,38 +16,27 @@ /*

/**
* @class
* Initializes a new instance of the Subscription class.
* @constructor
* Subscription information.
*
* @member {string} [id] The fully qualified ID for the subscription. For
* example, /subscriptions/00000000-0000-0000-0000-000000000000.
*
* @member {string} [subscriptionId] The subscription ID.
*
* @member {string} [tenantId] The tenant ID.
*
* @member {string} [displayName] The subscription display name.
*
* @member {string} [state] The subscription state. Possible values are
* Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include:
* 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
*
* @member {object} [subscriptionPolicies] The subscription policies.
*
* @member {string} [subscriptionPolicies.locationPlacementId] The subscription
* location placement ID. The ID indicates which regions are visible for a
* subscription. For example, a subscription with a location placement Id of
* Public_2014-09-01 has access to Azure public regions.
*
* @member {string} [subscriptionPolicies.quotaId] The subscription quota ID.
*
* @member {string} [subscriptionPolicies.spendingLimit] The subscription
* spending limit. Possible values include: 'On', 'Off', 'CurrentPeriodOff'
*
* @member {string} [authorizationSource] The authorization source of the
* request. Valid values are one or more combinations of Legacy, RoleBased,
* Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
*
*/
class Subscription {
/**
* Create a Subscription.
* @member {string} [id] The fully qualified ID for the subscription. For
* example, /subscriptions/00000000-0000-0000-0000-000000000000.
* @member {string} [subscriptionId] The subscription ID.
* @member {string} [displayName] The subscription display name.
* @member {string} [state] The subscription state. Possible values are
* Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include:
* 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
* @member {object} [subscriptionPolicies] The subscription policies.
* @member {string} [subscriptionPolicies.locationPlacementId] The
* subscription location placement ID. The ID indicates which regions are
* visible for a subscription. For example, a subscription with a location
* placement Id of Public_2014-09-01 has access to Azure public regions.
* @member {string} [subscriptionPolicies.quotaId] The subscription quota ID.
* @member {string} [subscriptionPolicies.spendingLimit] The subscription
* spending limit. Possible values include: 'On', 'Off', 'CurrentPeriodOff'
* @member {string} [authorizationSource] The authorization source of the
* request. Valid values are one or more combinations of Legacy, RoleBased,
* Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
*/
constructor() {

@@ -86,10 +75,2 @@ }

},
tenantId: {
required: false,
readOnly: true,
serializedName: 'tenantId',
type: {
name: 'String'
}
},
displayName: {

@@ -96,0 +77,0 @@ required: false,

@@ -14,11 +14,9 @@ /*

/**
* @class
* Initializes a new instance of the SubscriptionListResult class.
* @constructor
* Subscription list operation response.
*
* @member {string} nextLink The URL to get the next set of results.
*
*/
class SubscriptionListResult extends Array {
/**
* Create a SubscriptionListResult.
* @member {string} nextLink The URL to get the next set of results.
*/
constructor() {

@@ -25,0 +23,0 @@ super();

@@ -14,19 +14,16 @@ /*

/**
* @class
* Initializes a new instance of the SubscriptionPolicies class.
* @constructor
* Subscription policies.
*
* @member {string} [locationPlacementId] The subscription location placement
* ID. The ID indicates which regions are visible for a subscription. For
* example, a subscription with a location placement Id of Public_2014-09-01
* has access to Azure public regions.
*
* @member {string} [quotaId] The subscription quota ID.
*
* @member {string} [spendingLimit] The subscription spending limit. Possible
* values include: 'On', 'Off', 'CurrentPeriodOff'
*
*/
class SubscriptionPolicies {
/**
* Create a SubscriptionPolicies.
* @member {string} [locationPlacementId] The subscription location placement
* ID. The ID indicates which regions are visible for a subscription. For
* example, a subscription with a location placement Id of Public_2014-09-01
* has access to Azure public regions.
* @member {string} [quotaId] The subscription quota ID.
* @member {string} [spendingLimit] The subscription spending limit. Possible
* values include: 'On', 'Off', 'CurrentPeriodOff'
*/
constructor() {

@@ -33,0 +30,0 @@ }

@@ -14,15 +14,13 @@ /*

/**
* @class
* Initializes a new instance of the TenantIdDescription class.
* @constructor
* Tenant Id information.
*
* @member {string} [id] The fully qualified ID of the tenant. For example,
* /tenants/00000000-0000-0000-0000-000000000000.
*
* @member {string} [tenantId] The tenant ID. For example,
* 00000000-0000-0000-0000-000000000000.
*
*/
class TenantIdDescription {
/**
* Create a TenantIdDescription.
* @member {string} [id] The fully qualified ID of the tenant. For example,
* /tenants/00000000-0000-0000-0000-000000000000.
* @member {string} [tenantId] The tenant ID. For example,
* 00000000-0000-0000-0000-000000000000.
*/
constructor() {

@@ -29,0 +27,0 @@ }

@@ -14,12 +14,10 @@ /*

/**
* @class
* Initializes a new instance of the TenantListResult class.
* @constructor
* Tenant Ids information.
*
* @member {string} nextLink The URL to use for getting the next set of
* results.
*
*/
class TenantListResult extends Array {
/**
* Create a TenantListResult.
* @member {string} nextLink The URL to use for getting the next set of
* results.
*/
constructor() {

@@ -26,0 +24,0 @@ super();

@@ -82,5 +82,6 @@ /*

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -99,3 +100,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -219,5 +219,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -236,3 +237,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -351,5 +351,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -368,3 +369,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -481,5 +481,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -498,3 +499,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -557,13 +557,8 @@ // Send Request

/**
* @class
* Subscriptions
* __NOTE__: An instance of this class is automatically created for an
* instance of the SubscriptionClient.
* Initializes a new instance of the Subscriptions class.
* @constructor
*
* @param {SubscriptionClient} client Reference to the service client.
*/
/** Class representing a Subscriptions. */
class Subscriptions {
/**
* Create a Subscriptions.
* @param {SubscriptionClient} client Reference to the service client.
*/
constructor(client) {

@@ -570,0 +565,0 @@ this.client = client;

@@ -72,5 +72,6 @@ /*

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -89,3 +90,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -201,5 +201,6 @@ // Send Request

httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {

@@ -218,3 +219,2 @@ httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();

}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;

@@ -277,13 +277,8 @@ // Send Request

/**
* @class
* Tenants
* __NOTE__: An instance of this class is automatically created for an
* instance of the SubscriptionClient.
* Initializes a new instance of the Tenants class.
* @constructor
*
* @param {SubscriptionClient} client Reference to the service client.
*/
/** Class representing a Tenants. */
class Tenants {
/**
* Create a Tenants.
* @param {SubscriptionClient} client Reference to the service client.
*/
constructor(client) {

@@ -290,0 +285,0 @@ this.client = client;

@@ -11,6 +11,7 @@ /*

import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
declare class SubscriptionClient {
declare class SubscriptionClient extends AzureServiceClient {
/**

@@ -34,4 +35,2 @@ * Initializes a new instance of the SubscriptionClient class.

*
* @param {string} [options.apiVersion] - The API version to use for the operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.

@@ -44,3 +43,3 @@ *

*/
constructor(credentials: ServiceClientCredentials, baseUri?: string, options?: ServiceClientOptions);
constructor(credentials: ServiceClientCredentials, baseUri?: string, options?: AzureServiceClientOptions);

@@ -47,0 +46,0 @@ credentials: ServiceClientCredentials;

@@ -25,30 +25,17 @@ /*

/**
* @class
* Initializes a new instance of the SubscriptionClient class.
* @constructor
*
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - The API version to use for the operation.
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
/** Class representing a SubscriptionClient. */
class SubscriptionClient extends ServiceClient {
/**
* Create a SubscriptionClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, baseUri, options) {

@@ -75,5 +62,2 @@ if (credentials === null || credentials === undefined) {

this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
if(options.apiVersion !== null && options.apiVersion !== undefined) {
this.apiVersion = options.apiVersion;
}
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {

@@ -80,0 +64,0 @@ this.acceptLanguage = options.acceptLanguage;

@@ -9,3 +9,3 @@ {

],
"version": "2.0.0-preview",
"version": "3.0.0-preview",
"description": "Microsoft Azure Resource Management Client Library for node",

@@ -12,0 +12,0 @@ "tags": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc