diff --git a/lib/services/trafficManagerManagement2/LICENSE.txt b/lib/services/trafficManagerManagement2/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/trafficManagerManagement2/LICENSE.txt +++ b/lib/services/trafficManagerManagement2/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/services/trafficManagerManagement2/README.md b/lib/services/trafficManagerManagement2/README.md index 7c6a9d4cf2..48d90322bd 100644 --- a/lib/services/trafficManagerManagement2/README.md +++ b/lib/services/trafficManagerManagement2/README.md @@ -1,44 +1,44 @@ ---- -uid: azure-arm-trafficmanager -summary: *content - ---- -# Microsoft Azure SDK for Node.js - TrafficManagerManagementClient -This project provides a Node.js package for accessing Azure. Right now it supports: -- **Node.js version 6.x.x or higher** - -## Features - - -## How to Install - -```bash -npm install azure-arm-trafficmanager -``` - -## How to use - -### Authentication, client creation and get endpoints as an example. - -```javascript -const msRestAzure = require("ms-rest-azure"); -const TrafficManagerManagementClient = require("azure-arm-trafficmanager"); -msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new TrafficManagerManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const profileName = "testprofileName"; - const endpointType = "testendpointType"; - const endpointName = "testendpointName"; - return client.endpoints.get(resourceGroupName, profileName, endpointType, endpointName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.log('An error occurred:'); - console.dir(err, {depth: null, colors: true}); -}); - -## Related projects - -- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) +--- +uid: azure-arm-trafficmanager +summary: *content + +--- +# Microsoft Azure SDK for Node.js - TrafficManagerManagementClient +This project provides a Node.js package for accessing Azure. Right now it supports: +- **Node.js version 6.x.x or higher** + +## Features + + +## How to Install + +```bash +npm install azure-arm-trafficmanager +``` + +## How to use + +### Authentication, client creation and get endpoints as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const TrafficManagerManagementClient = require("azure-arm-trafficmanager"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new TrafficManagerManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const profileName = "testprofileName"; + const endpointType = "testendpointType"; + const endpointName = "testendpointName"; + return client.endpoints.get(resourceGroupName, profileName, endpointType, endpointName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.log('An error occurred:'); + console.dir(err, {depth: null, colors: true}); +}); + +## Related projects + +- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/trafficManagerManagement2/lib/models/endpoint.js b/lib/services/trafficManagerManagement2/lib/models/endpoint.js index d2f4703a9b..62eb8a6e18 100644 --- a/lib/services/trafficManagerManagement2/lib/models/endpoint.js +++ b/lib/services/trafficManagerManagement2/lib/models/endpoint.js @@ -22,21 +22,21 @@ class Endpoint extends models['ProxyResource'] { * Create a Endpoint. * @member {string} [targetResourceId] The Azure Resource URI of the of the * endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. - * @member {string} [target] The fully-qualified DNS name of the endpoint. - * Traffic Manager returns this value in DNS responses to direct traffic to - * this endpoint. + * @member {string} [target] The fully-qualified DNS name or IP address of + * the endpoint. Traffic Manager returns this value in DNS responses to + * direct traffic to this endpoint. * @member {string} [endpointStatus] The status of the endpoint. If the * endpoint is Enabled, it is probed for endpoint health and is included in * the traffic routing method. Possible values include: 'Enabled', 'Disabled' * @member {number} [weight] The weight of this endpoint when using the * 'Weighted' traffic routing method. Possible values are from 1 to 1000. * @member {number} [priority] The priority of this endpoint when using the - * ‘Priority’ traffic routing method. Possible values are from 1 to 1000, + * 'Priority' traffic routing method. Possible values are from 1 to 1000, * lower values represent higher priority. This is an optional parameter. If * specified, it must be specified on all endpoints, and no two endpoints can * share the same priority value. * @member {string} [endpointLocation] Specifies the location of the external - * or nested endpoints when using the ‘Performance’ traffic routing method. + * or nested endpoints when using the 'Performance' traffic routing method. * @member {string} [endpointMonitorStatus] The monitoring status of the * endpoint. Possible values include: 'CheckingEndpoint', 'Online', * 'Degraded', 'Disabled', 'Inactive', 'Stopped' @@ -45,9 +45,14 @@ class Endpoint extends models['ProxyResource'] { * be considered available. Only applicable to endpoint of type * 'NestedEndpoints'. * @member {array} [geoMapping] The list of countries/regions mapped to this - * endpoint when using the ‘Geographic’ traffic routing method. Please + * endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of * accepted values. + * @member {array} [subnets] The list of subnets, IP addresses, and/or + * address ranges mapped to this endpoint when using the 'Subnet' traffic + * routing method. An empty list will match all ranges not covered by other + * endpoints. + * @member {array} [customHeaders] List of custom headers. */ constructor() { super(); @@ -160,6 +165,36 @@ class Endpoint extends models['ProxyResource'] { } } } + }, + subnets: { + required: false, + serializedName: 'properties.subnets', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'EndpointPropertiesSubnetsItemElementType', + type: { + name: 'Composite', + className: 'EndpointPropertiesSubnetsItem' + } + } + } + }, + customHeaders: { + required: false, + serializedName: 'properties.customHeaders', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'EndpointPropertiesCustomHeadersItemElementType', + type: { + name: 'Composite', + className: 'EndpointPropertiesCustomHeadersItem' + } + } + } } } } diff --git a/lib/services/trafficManagerManagement2/lib/models/endpointPropertiesCustomHeadersItem.js b/lib/services/trafficManagerManagement2/lib/models/endpointPropertiesCustomHeadersItem.js new file mode 100644 index 0000000000..95fdeeb9f5 --- /dev/null +++ b/lib/services/trafficManagerManagement2/lib/models/endpointPropertiesCustomHeadersItem.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Custom header name and value. + * + */ +class EndpointPropertiesCustomHeadersItem { + /** + * Create a EndpointPropertiesCustomHeadersItem. + * @member {string} [name] Header name. + * @member {string} [value] Header value. + */ + constructor() { + } + + /** + * Defines the metadata of EndpointPropertiesCustomHeadersItem + * + * @returns {object} metadata of EndpointPropertiesCustomHeadersItem + * + */ + mapper() { + return { + required: false, + serializedName: 'EndpointProperties_customHeadersItem', + type: { + name: 'Composite', + className: 'EndpointPropertiesCustomHeadersItem', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + value: { + required: false, + serializedName: 'value', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = EndpointPropertiesCustomHeadersItem; diff --git a/lib/services/trafficManagerManagement2/lib/models/endpointPropertiesSubnetsItem.js b/lib/services/trafficManagerManagement2/lib/models/endpointPropertiesSubnetsItem.js new file mode 100644 index 0000000000..5238cc5570 --- /dev/null +++ b/lib/services/trafficManagerManagement2/lib/models/endpointPropertiesSubnetsItem.js @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Subnet first address, scope, and/or last address. + * + */ +class EndpointPropertiesSubnetsItem { + /** + * Create a EndpointPropertiesSubnetsItem. + * @member {string} [first] First address in the subnet. + * @member {string} [last] Last address in the subnet. + * @member {number} [scope] Block size (number of leading bits in the subnet + * mask). + */ + constructor() { + } + + /** + * Defines the metadata of EndpointPropertiesSubnetsItem + * + * @returns {object} metadata of EndpointPropertiesSubnetsItem + * + */ + mapper() { + return { + required: false, + serializedName: 'EndpointProperties_subnetsItem', + type: { + name: 'Composite', + className: 'EndpointPropertiesSubnetsItem', + modelProperties: { + first: { + required: false, + serializedName: 'first', + type: { + name: 'String' + } + }, + last: { + required: false, + serializedName: 'last', + type: { + name: 'String' + } + }, + scope: { + required: false, + serializedName: 'scope', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = EndpointPropertiesSubnetsItem; diff --git a/lib/services/trafficManagerManagement2/lib/models/index.d.ts b/lib/services/trafficManagerManagement2/lib/models/index.d.ts index 3b7e661131..07a2e0fbf4 100644 --- a/lib/services/trafficManagerManagement2/lib/models/index.d.ts +++ b/lib/services/trafficManagerManagement2/lib/models/index.d.ts @@ -28,6 +28,94 @@ export interface DeleteOperationResult { readonly operationResult?: boolean; } +/** + * @class + * Initializes a new instance of the EndpointPropertiesSubnetsItem class. + * @constructor + * Subnet first address, scope, and/or last address. + * + * @member {string} [first] First address in the subnet. + * @member {string} [last] Last address in the subnet. + * @member {number} [scope] Block size (number of leading bits in the subnet + * mask). + */ +export interface EndpointPropertiesSubnetsItem { + first?: string; + last?: string; + scope?: number; +} + +/** + * @class + * Initializes a new instance of the EndpointPropertiesCustomHeadersItem class. + * @constructor + * Custom header name and value. + * + * @member {string} [name] Header name. + * @member {string} [value] Header value. + */ +export interface EndpointPropertiesCustomHeadersItem { + name?: string; + value?: string; +} + +/** + * @class + * Initializes a new instance of the HeatMapEndpoint class. + * @constructor + * Class which is a sparse representation of a Traffic Manager endpoint. + * + * @member {string} [resourceId] The ARM Resource ID of this Traffic Manager + * endpoint. + * @member {number} [endpointId] A number uniquely identifying this endpoint in + * query experiences. + */ +export interface HeatMapEndpoint { + resourceId?: string; + endpointId?: number; +} + +/** + * @class + * Initializes a new instance of the QueryExperience class. + * @constructor + * Class representing a Traffic Manager HeatMap query experience properties. + * + * @member {number} endpointId The id of the endpoint from the 'endpoints' + * array which these queries were routed to. + * @member {number} queryCount The number of queries originating from this + * location. + * @member {number} [latency] The latency experienced by queries originating + * from this location. + */ +export interface QueryExperience { + endpointId: number; + queryCount: number; + latency?: number; +} + +/** + * @class + * Initializes a new instance of the TrafficFlow class. + * @constructor + * Class representing a Traffic Manager HeatMap traffic flow properties. + * + * @member {string} [sourceIp] The IP address that this query experience + * originated from. + * @member {number} [latitude] The approximate latitude that these queries + * originated from. + * @member {number} [longitude] The approximate longitude that these queries + * originated from. + * @member {array} [queryExperiences] The query experiences produced in this + * HeatMap calculation. + */ +export interface TrafficFlow { + sourceIp?: string; + latitude?: number; + longitude?: number; + queryExperiences?: QueryExperience[]; +} + /** * @class * Initializes a new instance of the Resource class. @@ -57,6 +145,39 @@ export interface Resource extends BaseResource { export interface ProxyResource extends Resource { } +/** + * @class + * Initializes a new instance of the HeatMapModel class. + * @constructor + * Class representing a Traffic Manager HeatMap. + * + * @member {date} [startTime] The beginning of the time window for this + * HeatMap, inclusive. + * @member {date} [endTime] The ending of the time window for this HeatMap, + * exclusive. + * @member {array} [endpoints] The endpoints used in this HeatMap calculation. + * @member {array} [trafficFlows] The traffic flows produced in this HeatMap + * calculation. + */ +export interface HeatMapModel extends ProxyResource { + startTime?: Date; + endTime?: Date; + endpoints?: HeatMapEndpoint[]; + trafficFlows?: TrafficFlow[]; +} + +/** + * @class + * Initializes a new instance of the UserMetricsModel class. + * @constructor + * Class representing Traffic Manager User Metrics. + * + * @member {string} [key] The key returned by the User Metrics operation. + */ +export interface UserMetricsModel extends ProxyResource { + key?: string; +} + /** * @class * Initializes a new instance of the Endpoint class. @@ -65,21 +186,21 @@ export interface ProxyResource extends Resource { * * @member {string} [targetResourceId] The Azure Resource URI of the of the * endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. - * @member {string} [target] The fully-qualified DNS name of the endpoint. - * Traffic Manager returns this value in DNS responses to direct traffic to - * this endpoint. + * @member {string} [target] The fully-qualified DNS name or IP address of the + * endpoint. Traffic Manager returns this value in DNS responses to direct + * traffic to this endpoint. * @member {string} [endpointStatus] The status of the endpoint. If the * endpoint is Enabled, it is probed for endpoint health and is included in the * traffic routing method. Possible values include: 'Enabled', 'Disabled' * @member {number} [weight] The weight of this endpoint when using the * 'Weighted' traffic routing method. Possible values are from 1 to 1000. * @member {number} [priority] The priority of this endpoint when using the - * ‘Priority’ traffic routing method. Possible values are from 1 to 1000, lower + * 'Priority' traffic routing method. Possible values are from 1 to 1000, lower * values represent higher priority. This is an optional parameter. If * specified, it must be specified on all endpoints, and no two endpoints can * share the same priority value. * @member {string} [endpointLocation] Specifies the location of the external - * or nested endpoints when using the ‘Performance’ traffic routing method. + * or nested endpoints when using the 'Performance' traffic routing method. * @member {string} [endpointMonitorStatus] The monitoring status of the * endpoint. Possible values include: 'CheckingEndpoint', 'Online', 'Degraded', * 'Disabled', 'Inactive', 'Stopped' @@ -87,8 +208,12 @@ export interface ProxyResource extends Resource { * must be available in the child profile in order for the parent profile to be * considered available. Only applicable to endpoint of type 'NestedEndpoints'. * @member {array} [geoMapping] The list of countries/regions mapped to this - * endpoint when using the ‘Geographic’ traffic routing method. Please consult + * endpoint when using the 'Geographic' traffic routing method. Please consult * Traffic Manager Geographic documentation for a full list of accepted values. + * @member {array} [subnets] The list of subnets, IP addresses, and/or address + * ranges mapped to this endpoint when using the 'Subnet' traffic routing + * method. An empty list will match all ranges not covered by other endpoints. + * @member {array} [customHeaders] List of custom headers. */ export interface Endpoint extends ProxyResource { targetResourceId?: string; @@ -100,6 +225,8 @@ export interface Endpoint extends ProxyResource { endpointMonitorStatus?: string; minChildEndpoints?: number; geoMapping?: string[]; + subnets?: EndpointPropertiesSubnetsItem[]; + customHeaders?: EndpointPropertiesCustomHeadersItem[]; } /** @@ -139,6 +266,34 @@ export interface DnsConfig { ttl?: number; } +/** + * @class + * Initializes a new instance of the MonitorConfigCustomHeadersItem class. + * @constructor + * Custom header name and value. + * + * @member {string} [name] Header name. + * @member {string} [value] Header value. + */ +export interface MonitorConfigCustomHeadersItem { + name?: string; + value?: string; +} + +/** + * @class + * Initializes a new instance of the MonitorConfigExpectedStatusCodeRangesItem class. + * @constructor + * Min and max value of a status code range. + * + * @member {number} [min] Min status code. + * @member {number} [max] Max status code. + */ +export interface MonitorConfigExpectedStatusCodeRangesItem { + min?: number; + max?: number; +} + /** * @class * Initializes a new instance of the MonitorConfig class. @@ -162,6 +317,9 @@ export interface DnsConfig { * @member {number} [toleratedNumberOfFailures] The number of consecutive * failed health check that Traffic Manager tolerates before declaring an * endpoint in this profile Degraded after the next failed health check. + * @member {array} [customHeaders] List of custom headers. + * @member {array} [expectedStatusCodeRanges] List of expected status code + * ranges. */ export interface MonitorConfig { profileMonitorStatus?: string; @@ -171,6 +329,8 @@ export interface MonitorConfig { intervalInSeconds?: number; timeoutInSeconds?: number; toleratedNumberOfFailures?: number; + customHeaders?: MonitorConfigCustomHeadersItem[]; + expectedStatusCodeRanges?: MonitorConfigExpectedStatusCodeRangesItem[]; } /** @@ -197,7 +357,7 @@ export interface TrackedResource extends Resource { * Possible values include: 'Enabled', 'Disabled' * @member {string} [trafficRoutingMethod] The traffic routing method of the * Traffic Manager profile. Possible values include: 'Performance', 'Priority', - * 'Weighted', 'Geographic' + * 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * @member {object} [dnsConfig] The DNS settings of the Traffic Manager * profile. * @member {string} [dnsConfig.relativeName] The relative DNS name provided by @@ -232,8 +392,17 @@ export interface TrackedResource extends Resource { * consecutive failed health check that Traffic Manager tolerates before * declaring an endpoint in this profile Degraded after the next failed health * check. + * @member {array} [monitorConfig.customHeaders] List of custom headers. + * @member {array} [monitorConfig.expectedStatusCodeRanges] List of expected + * status code ranges. * @member {array} [endpoints] The list of endpoints in the Traffic Manager * profile. + * @member {string} [trafficViewEnrollmentStatus] Indicates whether Traffic + * View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, + * indicates 'Disabled'. Enabling this feature will increase the cost of the + * Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * @member {number} [maxReturn] Maximum number of endpoints to be returned for + * MultiValue routing type. */ export interface Profile extends TrackedResource { profileStatus?: string; @@ -241,6 +410,8 @@ export interface Profile extends TrackedResource { dnsConfig?: DnsConfig; monitorConfig?: MonitorConfig; endpoints?: Endpoint[]; + trafficViewEnrollmentStatus?: string; + maxReturn?: number; } /** @@ -302,96 +473,6 @@ export interface TrafficManagerGeographicHierarchy extends ProxyResource { geographicHierarchy?: Region; } -/** - * @class - * Initializes a new instance of the HeatMapEndpoint class. - * @constructor - * Class which is a sparse representation of a Traffic Manager endpoint. - * - * @member {string} [resourceId] The ARM Resource ID of this Traffic Manager - * endpoint. - * @member {number} [endpointId] A number uniquely identifying this endpoint in - * query experiences. - */ -export interface HeatMapEndpoint { - resourceId?: string; - endpointId?: number; -} - -/** - * @class - * Initializes a new instance of the QueryExperience class. - * @constructor - * Class representing a Traffic Manager HeatMap query experience properties. - * - * @member {number} endpointId The id of the endpoint from the 'endpoints' - * array which these queries were routed to. - * @member {number} queryCount The number of queries originating from this - * location. - * @member {number} [latency] The latency experienced by queries originating - * from this location. - */ -export interface QueryExperience { - endpointId: number; - queryCount: number; - latency?: number; -} - -/** - * @class - * Initializes a new instance of the TrafficFlow class. - * @constructor - * Class representing a Traffic Manager HeatMap traffic flow properties. - * - * @member {string} [sourceIp] The IP address that this query experience - * originated from. - * @member {number} [latitude] The approximate latitude that these queries - * originated from. - * @member {number} [longitude] The approximate longitude that these queries - * originated from. - * @member {array} [queryExperiences] The query experiences produced in this - * HeatMap calculation. - */ -export interface TrafficFlow { - sourceIp?: string; - latitude?: number; - longitude?: number; - queryExperiences?: QueryExperience[]; -} - -/** - * @class - * Initializes a new instance of the HeatMapModel class. - * @constructor - * Class representing a Traffic Manager HeatMap. - * - * @member {date} [startTime] The beginning of the time window for this - * HeatMap, inclusive. - * @member {date} [endTime] The ending of the time window for this HeatMap, - * exclusive. - * @member {array} [endpoints] The endpoints used in this HeatMap calculation. - * @member {array} [trafficFlows] The traffic flows produced in this HeatMap - * calculation. - */ -export interface HeatMapModel extends ProxyResource { - startTime?: Date; - endTime?: Date; - endpoints?: HeatMapEndpoint[]; - trafficFlows?: TrafficFlow[]; -} - -/** - * @class - * Initializes a new instance of the TrafficManagerUserMetricsKeyModel class. - * @constructor - * Class representing a Traffic Manager Real User Metrics key response. - * - * @member {string} [key] The key returned by the Real User Metrics operation. - */ -export interface TrafficManagerUserMetricsKeyModel extends ProxyResource { - key?: string; -} - /** * @class diff --git a/lib/services/trafficManagerManagement2/lib/models/index.js b/lib/services/trafficManagerManagement2/lib/models/index.js index 2c22d444bd..99c349ee2a 100644 --- a/lib/services/trafficManagerManagement2/lib/models/index.js +++ b/lib/services/trafficManagerManagement2/lib/models/index.js @@ -19,20 +19,24 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; exports.DeleteOperationResult = require('./deleteOperationResult'); +exports.EndpointPropertiesSubnetsItem = require('./endpointPropertiesSubnetsItem'); +exports.EndpointPropertiesCustomHeadersItem = require('./endpointPropertiesCustomHeadersItem'); +exports.HeatMapEndpoint = require('./heatMapEndpoint'); +exports.QueryExperience = require('./queryExperience'); +exports.TrafficFlow = require('./trafficFlow'); exports.Resource = require('./resource'); exports.ProxyResource = require('./proxyResource'); +exports.HeatMapModel = require('./heatMapModel'); +exports.UserMetricsModel = require('./userMetricsModel'); exports.Endpoint = require('./endpoint'); exports.CheckTrafficManagerRelativeDnsNameAvailabilityParameters = require('./checkTrafficManagerRelativeDnsNameAvailabilityParameters'); exports.DnsConfig = require('./dnsConfig'); +exports.MonitorConfigCustomHeadersItem = require('./monitorConfigCustomHeadersItem'); +exports.MonitorConfigExpectedStatusCodeRangesItem = require('./monitorConfigExpectedStatusCodeRangesItem'); exports.MonitorConfig = require('./monitorConfig'); exports.TrackedResource = require('./trackedResource'); exports.Profile = require('./profile'); exports.TrafficManagerNameAvailability = require('./trafficManagerNameAvailability'); exports.Region = require('./region'); exports.TrafficManagerGeographicHierarchy = require('./trafficManagerGeographicHierarchy'); -exports.HeatMapEndpoint = require('./heatMapEndpoint'); -exports.QueryExperience = require('./queryExperience'); -exports.TrafficFlow = require('./trafficFlow'); -exports.HeatMapModel = require('./heatMapModel'); -exports.TrafficManagerUserMetricsKeyModel = require('./trafficManagerUserMetricsKeyModel'); exports.ProfileListResult = require('./profileListResult'); diff --git a/lib/services/trafficManagerManagement2/lib/models/monitorConfig.js b/lib/services/trafficManagerManagement2/lib/models/monitorConfig.js index aca63f57f6..108544e40c 100644 --- a/lib/services/trafficManagerManagement2/lib/models/monitorConfig.js +++ b/lib/services/trafficManagerManagement2/lib/models/monitorConfig.js @@ -34,6 +34,9 @@ class MonitorConfig { * @member {number} [toleratedNumberOfFailures] The number of consecutive * failed health check that Traffic Manager tolerates before declaring an * endpoint in this profile Degraded after the next failed health check. + * @member {array} [customHeaders] List of custom headers. + * @member {array} [expectedStatusCodeRanges] List of expected status code + * ranges. */ constructor() { } @@ -100,6 +103,36 @@ class MonitorConfig { type: { name: 'Number' } + }, + customHeaders: { + required: false, + serializedName: 'customHeaders', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'MonitorConfigCustomHeadersItemElementType', + type: { + name: 'Composite', + className: 'MonitorConfigCustomHeadersItem' + } + } + } + }, + expectedStatusCodeRanges: { + required: false, + serializedName: 'expectedStatusCodeRanges', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'MonitorConfigExpectedStatusCodeRangesItemElementType', + type: { + name: 'Composite', + className: 'MonitorConfigExpectedStatusCodeRangesItem' + } + } + } } } } diff --git a/lib/services/trafficManagerManagement2/lib/models/monitorConfigCustomHeadersItem.js b/lib/services/trafficManagerManagement2/lib/models/monitorConfigCustomHeadersItem.js new file mode 100644 index 0000000000..370133e328 --- /dev/null +++ b/lib/services/trafficManagerManagement2/lib/models/monitorConfigCustomHeadersItem.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Custom header name and value. + * + */ +class MonitorConfigCustomHeadersItem { + /** + * Create a MonitorConfigCustomHeadersItem. + * @member {string} [name] Header name. + * @member {string} [value] Header value. + */ + constructor() { + } + + /** + * Defines the metadata of MonitorConfigCustomHeadersItem + * + * @returns {object} metadata of MonitorConfigCustomHeadersItem + * + */ + mapper() { + return { + required: false, + serializedName: 'MonitorConfig_customHeadersItem', + type: { + name: 'Composite', + className: 'MonitorConfigCustomHeadersItem', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + value: { + required: false, + serializedName: 'value', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = MonitorConfigCustomHeadersItem; diff --git a/lib/services/trafficManagerManagement2/lib/models/monitorConfigExpectedStatusCodeRangesItem.js b/lib/services/trafficManagerManagement2/lib/models/monitorConfigExpectedStatusCodeRangesItem.js new file mode 100644 index 0000000000..481d530d96 --- /dev/null +++ b/lib/services/trafficManagerManagement2/lib/models/monitorConfigExpectedStatusCodeRangesItem.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Min and max value of a status code range. + * + */ +class MonitorConfigExpectedStatusCodeRangesItem { + /** + * Create a MonitorConfigExpectedStatusCodeRangesItem. + * @member {number} [min] Min status code. + * @member {number} [max] Max status code. + */ + constructor() { + } + + /** + * Defines the metadata of MonitorConfigExpectedStatusCodeRangesItem + * + * @returns {object} metadata of MonitorConfigExpectedStatusCodeRangesItem + * + */ + mapper() { + return { + required: false, + serializedName: 'MonitorConfig_expectedStatusCodeRangesItem', + type: { + name: 'Composite', + className: 'MonitorConfigExpectedStatusCodeRangesItem', + modelProperties: { + min: { + required: false, + serializedName: 'min', + type: { + name: 'Number' + } + }, + max: { + required: false, + serializedName: 'max', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = MonitorConfigExpectedStatusCodeRangesItem; diff --git a/lib/services/trafficManagerManagement2/lib/models/profile.js b/lib/services/trafficManagerManagement2/lib/models/profile.js index a7b607660a..b4a9f8a08a 100644 --- a/lib/services/trafficManagerManagement2/lib/models/profile.js +++ b/lib/services/trafficManagerManagement2/lib/models/profile.js @@ -24,7 +24,7 @@ class Profile extends models['TrackedResource'] { * profile. Possible values include: 'Enabled', 'Disabled' * @member {string} [trafficRoutingMethod] The traffic routing method of the * Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * @member {object} [dnsConfig] The DNS settings of the Traffic Manager * profile. * @member {string} [dnsConfig.relativeName] The relative DNS name provided @@ -59,8 +59,17 @@ class Profile extends models['TrackedResource'] { * consecutive failed health check that Traffic Manager tolerates before * declaring an endpoint in this profile Degraded after the next failed * health check. + * @member {array} [monitorConfig.customHeaders] List of custom headers. + * @member {array} [monitorConfig.expectedStatusCodeRanges] List of expected + * status code ranges. * @member {array} [endpoints] The list of endpoints in the Traffic Manager * profile. + * @member {string} [trafficViewEnrollmentStatus] Indicates whether Traffic + * View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, + * indicates 'Disabled'. Enabling this feature will increase the cost of the + * Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * @member {number} [maxReturn] Maximum number of endpoints to be returned + * for MultiValue routing type. */ constructor() { super(); @@ -169,6 +178,20 @@ class Profile extends models['TrackedResource'] { } } } + }, + trafficViewEnrollmentStatus: { + required: false, + serializedName: 'properties.trafficViewEnrollmentStatus', + type: { + name: 'String' + } + }, + maxReturn: { + required: false, + serializedName: 'properties.maxReturn', + type: { + name: 'Number' + } } } } diff --git a/lib/services/trafficManagerManagement2/lib/models/region.js b/lib/services/trafficManagerManagement2/lib/models/region.js index bd45962d60..5ecca9dcd8 100644 --- a/lib/services/trafficManagerManagement2/lib/models/region.js +++ b/lib/services/trafficManagerManagement2/lib/models/region.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a region in the Geographic hierarchy used with the * Geographic traffic routing method. diff --git a/lib/services/trafficManagerManagement2/lib/models/trafficFlow.js b/lib/services/trafficManagerManagement2/lib/models/trafficFlow.js index 684813d7a8..1937ae3d7d 100644 --- a/lib/services/trafficManagerManagement2/lib/models/trafficFlow.js +++ b/lib/services/trafficManagerManagement2/lib/models/trafficFlow.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a Traffic Manager HeatMap traffic flow properties. * diff --git a/lib/services/trafficManagerManagement2/lib/models/userMetricsModel.js b/lib/services/trafficManagerManagement2/lib/models/userMetricsModel.js new file mode 100644 index 0000000000..bd80ff39f3 --- /dev/null +++ b/lib/services/trafficManagerManagement2/lib/models/userMetricsModel.js @@ -0,0 +1,80 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * Class representing Traffic Manager User Metrics. + * + * @extends models['ProxyResource'] + */ +class UserMetricsModel extends models['ProxyResource'] { + /** + * Create a UserMetricsModel. + * @member {string} [key] The key returned by the User Metrics operation. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of UserMetricsModel + * + * @returns {object} metadata of UserMetricsModel + * + */ + mapper() { + return { + required: false, + serializedName: 'UserMetricsModel', + type: { + name: 'Composite', + className: 'UserMetricsModel', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + key: { + required: false, + serializedName: 'properties.key', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = UserMetricsModel; diff --git a/lib/services/trafficManagerManagement2/lib/operations/endpoints.js b/lib/services/trafficManagerManagement2/lib/operations/endpoints.js index 2f20a7840f..e83c4c9a85 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/endpoints.js +++ b/lib/services/trafficManagerManagement2/lib/operations/endpoints.js @@ -34,9 +34,9 @@ const WebResource = msRest.WebResource; * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -46,13 +46,13 @@ const WebResource = msRest.WebResource; * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -65,10 +65,17 @@ const WebResource = msRest.WebResource; * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -97,7 +104,6 @@ function _update(resourceGroupName, profileName, endpointType, endpointName, par if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -115,6 +121,9 @@ function _update(resourceGroupName, profileName, endpointType, endpointName, par if (parameters === null || parameters === undefined) { throw new Error('parameters cannot be null or undefined.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -134,7 +143,7 @@ function _update(resourceGroupName, profileName, endpointType, endpointName, par requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -270,7 +279,6 @@ function _get(resourceGroupName, profileName, endpointType, endpointName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -285,6 +293,9 @@ function _get(resourceGroupName, profileName, endpointType, endpointName, option if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') { throw new Error('endpointName cannot be null or undefined and it must be of type string.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -304,7 +315,7 @@ function _get(resourceGroupName, profileName, endpointType, endpointName, option requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -406,9 +417,9 @@ function _get(resourceGroupName, profileName, endpointType, endpointName, option * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -418,13 +429,13 @@ function _get(resourceGroupName, profileName, endpointType, endpointName, option * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -437,10 +448,17 @@ function _get(resourceGroupName, profileName, endpointType, endpointName, option * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -469,7 +487,6 @@ function _createOrUpdate(resourceGroupName, profileName, endpointType, endpointN if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -487,6 +504,9 @@ function _createOrUpdate(resourceGroupName, profileName, endpointType, endpointN if (parameters === null || parameters === undefined) { throw new Error('parameters cannot be null or undefined.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -506,7 +526,7 @@ function _createOrUpdate(resourceGroupName, profileName, endpointType, endpointN requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -661,7 +681,6 @@ function _deleteMethod(resourceGroupName, profileName, endpointType, endpointNam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -676,6 +695,9 @@ function _deleteMethod(resourceGroupName, profileName, endpointType, endpointNam if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') { throw new Error('endpointName cannot be null or undefined and it must be of type string.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -695,7 +717,7 @@ function _deleteMethod(resourceGroupName, profileName, endpointType, endpointNam requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -811,9 +833,9 @@ class Endpoints { * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -823,13 +845,13 @@ class Endpoints { * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -842,10 +864,17 @@ class Endpoints { * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -891,9 +920,9 @@ class Endpoints { * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -903,13 +932,13 @@ class Endpoints { * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -922,10 +951,17 @@ class Endpoints { * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1089,9 +1125,9 @@ class Endpoints { * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -1101,13 +1137,13 @@ class Endpoints { * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -1120,10 +1156,17 @@ class Endpoints { * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1169,9 +1212,9 @@ class Endpoints { * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -1181,13 +1224,13 @@ class Endpoints { * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -1200,10 +1243,17 @@ class Endpoints { * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the diff --git a/lib/services/trafficManagerManagement2/lib/operations/geographicHierarchies.js b/lib/services/trafficManagerManagement2/lib/operations/geographicHierarchies.js index 5823c1fd98..ea21e663f3 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/geographicHierarchies.js +++ b/lib/services/trafficManagerManagement2/lib/operations/geographicHierarchies.js @@ -47,9 +47,11 @@ function _getDefault(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate 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.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -61,7 +63,7 @@ function _getDefault(options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'providers/Microsoft.Network/trafficManagerGeographicHierarchies/default'; let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } diff --git a/lib/services/trafficManagerManagement2/lib/operations/heatMap.js b/lib/services/trafficManagerManagement2/lib/operations/heatMap.js index 11e4c63a4f..d06e562650 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/heatMap.js +++ b/lib/services/trafficManagerManagement2/lib/operations/heatMap.js @@ -59,7 +59,6 @@ function _get(resourceGroupName, profileName, options, callback) { let topLeft = (options && options.topLeft !== undefined) ? options.topLeft : undefined; let botRight = (options && options.botRight !== undefined) ? options.botRight : undefined; let heatMapType = 'default'; - let apiVersion = '2017-09-01-preview'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -105,6 +104,9 @@ function _get(resourceGroupName, profileName, options, callback) { throw new Error('"botRight" should satisfy the constraint - "MinItems": 2'); } } + 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.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -126,7 +128,7 @@ function _get(resourceGroupName, profileName, options, callback) { if (botRight !== null && botRight !== undefined) { queryParameters.push('botRight=' + encodeURIComponent(botRight.join(','))); } - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } diff --git a/lib/services/trafficManagerManagement2/lib/operations/index.d.ts b/lib/services/trafficManagerManagement2/lib/operations/index.d.ts index 92a18a51ab..b22a1e7c84 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/index.d.ts +++ b/lib/services/trafficManagerManagement2/lib/operations/index.d.ts @@ -41,9 +41,9 @@ export interface Endpoints { * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -53,13 +53,13 @@ export interface Endpoints { * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -72,10 +72,17 @@ export interface Endpoints { * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -109,9 +116,9 @@ export interface Endpoints { * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -121,13 +128,13 @@ export interface Endpoints { * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -140,10 +147,17 @@ export interface Endpoints { * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -265,9 +279,9 @@ export interface Endpoints { * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -277,13 +291,13 @@ export interface Endpoints { * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -296,10 +310,17 @@ export interface Endpoints { * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -333,9 +354,9 @@ export interface Endpoints { * @param {string} [parameters.targetResourceId] The Azure Resource URI of the * of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. * - * @param {string} [parameters.target] The fully-qualified DNS name of the - * endpoint. Traffic Manager returns this value in DNS responses to direct - * traffic to this endpoint. + * @param {string} [parameters.target] The fully-qualified DNS name or IP + * address of the endpoint. Traffic Manager returns this value in DNS responses + * to direct traffic to this endpoint. * * @param {string} [parameters.endpointStatus] The status of the endpoint. If * the endpoint is Enabled, it is probed for endpoint health and is included in @@ -345,13 +366,13 @@ export interface Endpoints { * the 'Weighted' traffic routing method. Possible values are from 1 to 1000. * * @param {number} [parameters.priority] The priority of this endpoint when - * using the ‘Priority’ traffic routing method. Possible values are from 1 to + * using the 'Priority' traffic routing method. Possible values are from 1 to * 1000, lower values represent higher priority. This is an optional parameter. * If specified, it must be specified on all endpoints, and no two endpoints * can share the same priority value. * * @param {string} [parameters.endpointLocation] Specifies the location of the - * external or nested endpoints when using the ‘Performance’ traffic routing + * external or nested endpoints when using the 'Performance' traffic routing * method. * * @param {string} [parameters.endpointMonitorStatus] The monitoring status of @@ -364,10 +385,17 @@ export interface Endpoints { * type 'NestedEndpoints'. * * @param {array} [parameters.geoMapping] The list of countries/regions mapped - * to this endpoint when using the ‘Geographic’ traffic routing method. Please + * to this endpoint when using the 'Geographic' traffic routing method. Please * consult Traffic Manager Geographic documentation for a full list of accepted * values. * + * @param {array} [parameters.subnets] The list of subnets, IP addresses, + * and/or address ranges mapped to this endpoint when using the 'Subnet' + * traffic routing method. An empty list will match all ranges not covered by + * other endpoints. + * + * @param {array} [parameters.customHeaders] List of custom headers. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -733,7 +761,7 @@ export interface Profiles { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -778,9 +806,23 @@ export interface Profiles { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -815,7 +857,7 @@ export interface Profiles { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -860,9 +902,23 @@ export interface Profiles { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -979,7 +1035,7 @@ export interface Profiles { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -1024,9 +1080,23 @@ export interface Profiles { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -1061,7 +1131,7 @@ export interface Profiles { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -1106,9 +1176,23 @@ export interface Profiles { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -1310,11 +1394,11 @@ export interface TrafficManagerUserMetricsKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the subscription-level key used for Real User Metrics collection. @@ -1331,7 +1415,7 @@ export interface TrafficManagerUserMetricsKeys { * * {Promise} A promise is returned. * - * @resolve {TrafficManagerUserMetricsKeyModel} - The deserialized result object. + * @resolve {UserMetricsModel} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1339,17 +1423,16 @@ export interface TrafficManagerUserMetricsKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {TrafficManagerUserMetricsKeyModel} [result] - The deserialized result object if an error did not occur. - * See {@link TrafficManagerUserMetricsKeyModel} for more - * information. + * {UserMetricsModel} [result] - The deserialized result object if an error did not occur. + * See {@link UserMetricsModel} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(callback: ServiceCallback): void; - get(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(callback: ServiceCallback): void; + get(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1363,11 +1446,11 @@ export interface TrafficManagerUserMetricsKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create or update a subscription-level key used for Real User Metrics @@ -1385,7 +1468,7 @@ export interface TrafficManagerUserMetricsKeys { * * {Promise} A promise is returned. * - * @resolve {TrafficManagerUserMetricsKeyModel} - The deserialized result object. + * @resolve {UserMetricsModel} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1393,17 +1476,16 @@ export interface TrafficManagerUserMetricsKeys { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {TrafficManagerUserMetricsKeyModel} [result] - The deserialized result object if an error did not occur. - * See {@link TrafficManagerUserMetricsKeyModel} for more - * information. + * {UserMetricsModel} [result] - The deserialized result object if an error did not occur. + * See {@link UserMetricsModel} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(callback: ServiceCallback): void; - createOrUpdate(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(callback: ServiceCallback): void; + createOrUpdate(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/trafficManagerManagement2/lib/operations/profiles.js b/lib/services/trafficManagerManagement2/lib/operations/profiles.js index d80018bc33..5a93ab2254 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/profiles.js +++ b/lib/services/trafficManagerManagement2/lib/operations/profiles.js @@ -53,12 +53,14 @@ function _checkTrafficManagerRelativeDnsNameAvailability(parameters, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (parameters === null || parameters === undefined) { throw new Error('parameters cannot be null or undefined.'); } + 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.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -70,7 +72,7 @@ function _checkTrafficManagerRelativeDnsNameAvailability(parameters, options, ca let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'providers/Microsoft.Network/checkTrafficManagerNameAvailability'; let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -200,12 +202,14 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -222,7 +226,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -335,9 +339,11 @@ function _listBySubscription(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -353,7 +359,7 @@ function _listBySubscription(options, callback) { let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -471,7 +477,6 @@ function _get(resourceGroupName, profileName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -480,6 +485,9 @@ function _get(resourceGroupName, profileName, options, callback) { if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') { throw new Error('profileName cannot be null or undefined and it must be of type string.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -497,7 +505,7 @@ function _get(resourceGroupName, profileName, options, callback) { requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -595,7 +603,7 @@ function _get(resourceGroupName, profileName, options, callback) { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -640,9 +648,23 @@ function _get(resourceGroupName, profileName, options, callback) { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -676,7 +698,6 @@ function _createOrUpdate(resourceGroupName, profileName, parameters, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -688,6 +709,9 @@ function _createOrUpdate(resourceGroupName, profileName, parameters, options, ca if (parameters === null || parameters === undefined) { throw new Error('parameters cannot be null or undefined.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -705,7 +729,7 @@ function _createOrUpdate(resourceGroupName, profileName, parameters, options, ca requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -855,7 +879,6 @@ function _deleteMethod(resourceGroupName, profileName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -864,6 +887,9 @@ function _deleteMethod(resourceGroupName, profileName, options, callback) { if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') { throw new Error('profileName cannot be null or undefined and it must be of type string.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -881,7 +907,7 @@ function _deleteMethod(resourceGroupName, profileName, options, callback) { requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -979,7 +1005,7 @@ function _deleteMethod(resourceGroupName, profileName, options, callback) { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -1024,9 +1050,23 @@ function _deleteMethod(resourceGroupName, profileName, options, callback) { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -1060,7 +1100,6 @@ function _update(resourceGroupName, profileName, parameters, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-05-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1072,6 +1111,9 @@ function _update(resourceGroupName, profileName, parameters, options, callback) if (parameters === null || parameters === undefined) { throw new Error('parameters cannot be null or undefined.'); } + 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -1089,7 +1131,7 @@ function _update(resourceGroupName, profileName, parameters, options, callback) requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -1561,7 +1603,7 @@ class Profiles { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -1606,9 +1648,23 @@ class Profiles { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -1655,7 +1711,7 @@ class Profiles { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -1700,9 +1756,23 @@ class Profiles { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -1861,7 +1931,7 @@ class Profiles { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -1906,9 +1976,23 @@ class Profiles { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource @@ -1955,7 +2039,7 @@ class Profiles { * * @param {string} [parameters.trafficRoutingMethod] The traffic routing method * of the Traffic Manager profile. Possible values include: 'Performance', - * 'Priority', 'Weighted', 'Geographic' + * 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet' * * @param {object} [parameters.dnsConfig] The DNS settings of the Traffic * Manager profile. @@ -2000,9 +2084,23 @@ class Profiles { * before declaring an endpoint in this profile Degraded after the next failed * health check. * + * @param {array} [parameters.monitorConfig.expectedStatusCodeRanges] List of + * expected status code ranges. + * + * @param {array} [parameters.monitorConfig.customHeaders] List of custom + * headers. + * * @param {array} [parameters.endpoints] The list of endpoints in the Traffic * Manager profile. * + * @param {string} [parameters.trafficViewEnrollmentStatus] Indicates whether + * Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. + * Null, indicates 'Disabled'. Enabling this feature will increase the cost of + * the Traffic Manage profile. Possible values include: 'Enabled', 'Disabled' + * + * @param {number} [parameters.maxReturn] Maximum number of endpoints to be + * returned for MultiValue routing type. + * * @param {object} [parameters.tags] Resource tags. * * @param {string} [parameters.location] The Azure Region where the resource diff --git a/lib/services/trafficManagerManagement2/lib/operations/trafficManagerUserMetricsKeys.js b/lib/services/trafficManagerManagement2/lib/operations/trafficManagerUserMetricsKeys.js index 7ef1a2e3d0..dd3c9ad4da 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/trafficManagerUserMetricsKeys.js +++ b/lib/services/trafficManagerManagement2/lib/operations/trafficManagerUserMetricsKeys.js @@ -29,8 +29,7 @@ const WebResource = msRest.WebResource; * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. - * See {@link TrafficManagerUserMetricsKeyModel} for more - * information. + * See {@link UserMetricsModel} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -46,9 +45,11 @@ function _get(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-09-01-preview'; // Validate 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -61,10 +62,10 @@ function _get(options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -131,7 +132,7 @@ function _get(options, callback) { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['TrafficManagerUserMetricsKeyModel']().mapper(); + let resultMapper = new client.models['UserMetricsModel']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -162,8 +163,7 @@ function _get(options, callback) { * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. - * See {@link TrafficManagerUserMetricsKeyModel} for more - * information. + * See {@link UserMetricsModel} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -179,9 +179,11 @@ function _createOrUpdate(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-09-01-preview'; // Validate 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -194,10 +196,10 @@ function _createOrUpdate(options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -264,7 +266,7 @@ function _createOrUpdate(options, callback) { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['TrafficManagerUserMetricsKeyModel']().mapper(); + let resultMapper = new client.models['UserMetricsModel']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -310,9 +312,11 @@ function _deleteMethod(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-09-01-preview'; // Validate 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') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -325,10 +329,10 @@ function _deleteMethod(options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -433,7 +437,7 @@ class TrafficManagerUserMetricsKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -466,7 +470,7 @@ class TrafficManagerUserMetricsKeys { * * {Promise} A promise is returned * - * @resolve {TrafficManagerUserMetricsKeyModel} - The deserialized result object. + * @resolve {UserMetricsModel} - The deserialized result object. * * @reject {Error} - The error object. * @@ -475,8 +479,7 @@ class TrafficManagerUserMetricsKeys { * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. - * See {@link TrafficManagerUserMetricsKeyModel} for more - * information. + * See {@link UserMetricsModel} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * @@ -513,7 +516,7 @@ class TrafficManagerUserMetricsKeys { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -547,7 +550,7 @@ class TrafficManagerUserMetricsKeys { * * {Promise} A promise is returned * - * @resolve {TrafficManagerUserMetricsKeyModel} - The deserialized result object. + * @resolve {UserMetricsModel} - The deserialized result object. * * @reject {Error} - The error object. * @@ -556,8 +559,7 @@ class TrafficManagerUserMetricsKeys { * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. - * See {@link TrafficManagerUserMetricsKeyModel} for more - * information. + * See {@link UserMetricsModel} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * diff --git a/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.d.ts b/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.d.ts index 6c351eed2b..aedac307bf 100644 --- a/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.d.ts +++ b/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.d.ts @@ -34,11 +34,11 @@ export default class TrafficManagerManagementClient extends AzureServiceClient { * * @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 {string} [options.acceptLanguage] - 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 {number} [options.longRunningOperationRetryTimeout] - 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. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); @@ -47,6 +47,8 @@ export default class TrafficManagerManagementClient extends AzureServiceClient { subscriptionId: string; + apiVersion: string; + acceptLanguage: string; longRunningOperationRetryTimeout: number; diff --git a/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.js b/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.js index 7c46c07ee2..e62df1b35b 100644 --- a/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.js +++ b/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.js @@ -34,9 +34,9 @@ class TrafficManagerManagementClient extends ServiceClient { * @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. + * @param {string} [options.acceptLanguage] - The preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. 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) { if (credentials === null || credentials === undefined) { @@ -50,6 +50,7 @@ class TrafficManagerManagementClient extends ServiceClient { super(credentials, options); + this.apiVersion = '2018-04-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; diff --git a/lib/services/trafficManagerManagement2/package-lock.json b/lib/services/trafficManagerManagement2/package-lock.json index f94c71467f..db73c334cf 100644 --- a/lib/services/trafficManagerManagement2/package-lock.json +++ b/lib/services/trafficManagerManagement2/package-lock.json @@ -1,6 +1,6 @@ { "name": "azure-arm-trafficmanager", - "version": "2.0.0-preview", + "version": "4.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -14,7 +14,7 @@ "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz", "integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==", "requires": { - "@types/node": "8.10.2" + "@types/node": "*" } }, "@types/node": { @@ -23,27 +23,27 @@ "integrity": "sha512-A6Uv1anbsCvrRDtaUXS2xZ5tlzD+Kg7yMRlSLFDy3z0r7KlGXDzL14vELXIAgpk2aJbU3XeZZQRcEkLkowT92g==" }, "@types/request": { - "version": "2.47.0", - "resolved": "https://registry.npmjs.org/@types/request/-/request-2.47.0.tgz", - "integrity": "sha512-/KXM5oev+nNCLIgBjkwbk8VqxmzI56woD4VUxn95O+YeQ8hJzcSmIZ1IN3WexiqBb6srzDo2bdMbsXxgXNkz5Q==", + "version": "2.47.1", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.47.1.tgz", + "integrity": "sha512-TV3XLvDjQbIeVxJ1Z3oCTDk/KuYwwcNKVwz2YaT0F5u86Prgc4syDAp6P96rkTQQ4bIdh+VswQIC9zS6NjY7/g==", "requires": { - "@types/caseless": "0.12.1", - "@types/form-data": "2.2.1", - "@types/node": "8.10.2", - "@types/tough-cookie": "2.3.2" + "@types/caseless": "*", + "@types/form-data": "*", + "@types/node": "*", + "@types/tough-cookie": "*" } }, "@types/tough-cookie": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.2.tgz", - "integrity": "sha512-vOVmaruQG5EatOU/jM6yU2uCp3Lz6mK1P5Ztu4iJjfM4SVHU9XYktPUQtKlIXuahqXHdEyUarMrBEwg5Cwu+bA==" + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.3.tgz", + "integrity": "sha512-MDQLxNFRLasqS4UlkWMSACMKeSm1x4Q3TxzUC7KQUsh6RK1ZrQ0VEyE3yzXcBu+K8ejVj4wuX32eUG02yNp+YQ==" }, "@types/uuid": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-3.4.3.tgz", "integrity": "sha512-5fRLCYhLtDb3hMWqQyH10qtF+Ud2JnNCXTCZ+9ktNdCcgslcuXkDTkFcJNk++MT29yDntDnlF1+jD+uVGumsbw==", "requires": { - "@types/node": "8.10.2" + "@types/node": "*" } }, "adal-node": { @@ -51,15 +51,15 @@ "resolved": "https://registry.npmjs.org/adal-node/-/adal-node-0.1.28.tgz", "integrity": "sha1-RoxLs+u9lrEnBmn0ucuk4AZepIU=", "requires": { - "@types/node": "8.10.2", - "async": "2.6.0", - "date-utils": "1.2.21", - "jws": "3.1.4", - "request": "2.85.0", - "underscore": "1.8.3", - "uuid": "3.2.1", - "xmldom": "0.1.27", - "xpath.js": "1.1.0" + "@types/node": "^8.0.47", + "async": ">=0.6.0", + "date-utils": "*", + "jws": "3.x.x", + "request": ">= 2.52.0", + "underscore": ">= 1.3.1", + "uuid": "^3.1.0", + "xmldom": ">= 0.1.x", + "xpath.js": "~1.1.0" } }, "ajv": { @@ -67,10 +67,10 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", "requires": { - "co": "4.6.0", - "fast-deep-equal": "1.1.0", - "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.3.1" + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" } }, "asn1": { @@ -88,7 +88,7 @@ "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", "requires": { - "lodash": "4.17.5" + "lodash": "^4.14.0" } }, "asynckit": { @@ -117,7 +117,7 @@ "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", "optional": true, "requires": { - "tweetnacl": "0.14.5" + "tweetnacl": "^0.14.3" } }, "boom": { @@ -125,7 +125,7 @@ "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", "requires": { - "hoek": "4.2.1" + "hoek": "4.x.x" } }, "buffer-equal-constant-time": { @@ -148,7 +148,7 @@ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", "requires": { - "delayed-stream": "1.0.0" + "delayed-stream": "~1.0.0" } }, "core-util-is": { @@ -161,7 +161,7 @@ "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", "requires": { - "boom": "5.2.0" + "boom": "5.x.x" }, "dependencies": { "boom": { @@ -169,7 +169,7 @@ "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", "requires": { - "hoek": "4.2.1" + "hoek": "4.x.x" } } } @@ -179,7 +179,7 @@ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "date-utils": { @@ -203,7 +203,7 @@ "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", "optional": true, "requires": { - "jsbn": "0.1.1" + "jsbn": "~0.1.0" } }, "ecdsa-sig-formatter": { @@ -211,8 +211,8 @@ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.9.tgz", "integrity": "sha1-S8kmJ07Dtau1AW5+HWCSGsJisqE=", "requires": { - "base64url": "2.0.0", - "safe-buffer": "5.1.1" + "base64url": "^2.0.0", + "safe-buffer": "^5.0.1" } }, "extend": { @@ -245,9 +245,9 @@ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", "requires": { - "asynckit": "0.4.0", + "asynckit": "^0.4.0", "combined-stream": "1.0.6", - "mime-types": "2.1.18" + "mime-types": "^2.1.12" } }, "getpass": { @@ -255,7 +255,7 @@ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "har-schema": { @@ -268,8 +268,8 @@ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", "requires": { - "ajv": "5.5.2", - "har-schema": "2.0.0" + "ajv": "^5.1.0", + "har-schema": "^2.0.0" } }, "hawk": { @@ -277,10 +277,10 @@ "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", "requires": { - "boom": "4.3.1", - "cryptiles": "3.1.2", - "hoek": "4.2.1", - "sntp": "2.1.0" + "boom": "4.x.x", + "cryptiles": "3.x.x", + "hoek": "4.x.x", + "sntp": "2.x.x" } }, "hoek": { @@ -293,9 +293,9 @@ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "requires": { - "assert-plus": "1.0.0", - "jsprim": "1.4.1", - "sshpk": "1.14.1" + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" } }, "is-buffer": { @@ -358,7 +358,7 @@ "base64url": "2.0.0", "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.9", - "safe-buffer": "5.1.1" + "safe-buffer": "^5.0.1" } }, "jws": { @@ -366,9 +366,9 @@ "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.4.tgz", "integrity": "sha1-+ei5M46KhHJ31kRLFGT2GIDgUKI=", "requires": { - "base64url": "2.0.0", - "jwa": "1.1.5", - "safe-buffer": "5.1.1" + "base64url": "^2.0.0", + "jwa": "^1.1.4", + "safe-buffer": "^5.0.1" } }, "lodash": { @@ -386,7 +386,7 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "requires": { - "mime-db": "1.33.0" + "mime-db": "~1.33.0" } }, "moment": { @@ -395,21 +395,110 @@ "integrity": "sha512-1muXCh8jb1N/gHRbn9VDUBr0GYb8A/aVcHlII9QSB68a50spqEVLIGN6KVmCOnSvJrUhC0edGgKU5ofnGXdYdg==" }, "ms-rest": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/ms-rest/-/ms-rest-2.3.2.tgz", - "integrity": "sha512-48K1raGitFMs9lICjdDY1t/mcCClJDeaoAM5EZ7ST3o4pQGcxdKZNaoneKEwN0KfTHXDhAmxJ/B8LCZZ45K9CA==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/ms-rest/-/ms-rest-2.3.6.tgz", + "integrity": "sha512-M+Lx9P7Wy4TeAk7jqPLwGS1QS1gvxF6Xo+OHv5j1g3Kcb44T/GTUuSjxTKarF6aKyeacZH1ZD++Nt7pcql7dDA==", "requires": { - "@types/node": "8.10.2", - "@types/request": "2.47.0", - "@types/uuid": "3.4.3", - "duplexer": "0.1.1", - "is-buffer": "1.1.6", - "is-stream": "1.1.0", - "moment": "2.22.0", - "request": "2.85.0", - "through": "2.3.8", + "duplexer": "^0.1.1", + "is-buffer": "^1.1.6", + "is-stream": "^1.1.0", + "moment": "^2.21.0", + "request": "^2.87.0", + "through": "^2.3.8", "tunnel": "0.0.5", - "uuid": "3.2.1" + "uuid": "^3.2.1" + }, + "dependencies": { + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "har-validator": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.0.tgz", + "integrity": "sha512-+qnmNjI4OfH2ipQ9VQOw23bBd/ibtfbVdK2fYbY4acTDqKTW/YDp9McimZdDbG8iV9fZizUqQMD5xvriB146TA==", + "requires": { + "ajv": "^5.3.0", + "har-schema": "^2.0.0" + } + }, + "mime-db": { + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", + "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==" + }, + "mime-types": { + "version": "2.1.20", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", + "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", + "requires": { + "mime-db": "~1.36.0" + } + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "dependencies": { + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + } + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + } + } } }, "ms-rest-azure": { @@ -417,19 +506,44 @@ "resolved": "https://registry.npmjs.org/ms-rest-azure/-/ms-rest-azure-2.5.5.tgz", "integrity": "sha512-LnP5YlgqvNAOi1x2b4Ru+1ubz/PtYQgNeH74aiolP+Sb5lpOw5ewzbncXae1pR5OWu9NGwxjX59adzSWosqnzw==", "requires": { - "@types/node": "9.6.2", - "@types/uuid": "3.4.3", - "adal-node": "0.1.28", + "@types/node": "^9.4.6", + "@types/uuid": "^3.4.3", + "adal-node": "^0.1.27", "async": "2.6.0", - "moment": "2.22.0", - "ms-rest": "2.3.2", - "uuid": "3.2.1" + "moment": "^2.20.1", + "ms-rest": "^2.3.2", + "uuid": "^3.2.1" }, "dependencies": { "@types/node": { "version": "9.6.2", "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.2.tgz", "integrity": "sha512-UWkRY9X7RQHp5OhhRIIka58/gVVycL1zHZu0OTsT5LI86ABaMOSbUjAl+b0FeDhQcxclrkyft3kW5QWdMRs8wQ==" + }, + "ms-rest": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/ms-rest/-/ms-rest-2.3.2.tgz", + "integrity": "sha512-48K1raGitFMs9lICjdDY1t/mcCClJDeaoAM5EZ7ST3o4pQGcxdKZNaoneKEwN0KfTHXDhAmxJ/B8LCZZ45K9CA==", + "requires": { + "@types/node": "^8.9.4", + "@types/request": "^2.47.0", + "@types/uuid": "^3.4.3", + "duplexer": "^0.1.1", + "is-buffer": "^1.1.6", + "is-stream": "^1.1.0", + "moment": "^2.21.0", + "request": "^2.83.0", + "through": "^2.3.8", + "tunnel": "0.0.5", + "uuid": "^3.2.1" + }, + "dependencies": { + "@types/node": { + "version": "8.10.29", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.29.tgz", + "integrity": "sha512-zbteaWZ2mdduacm0byELwtRyhYE40aK+pAanQk415gr1eRuu67x7QGOLmn8jz5zI8LDK7d0WI/oT6r5Trz4rzQ==" + } + } } } }, @@ -443,6 +557,11 @@ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, + "psl": { + "version": "1.1.29", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", + "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==" + }, "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", @@ -458,28 +577,28 @@ "resolved": "https://registry.npmjs.org/request/-/request-2.85.0.tgz", "integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==", "requires": { - "aws-sign2": "0.7.0", - "aws4": "1.6.0", - "caseless": "0.12.0", - "combined-stream": "1.0.6", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.3.2", - "har-validator": "5.0.3", - "hawk": "6.0.2", - "http-signature": "1.2.0", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.18", - "oauth-sign": "0.8.2", - "performance-now": "2.1.0", - "qs": "6.5.1", - "safe-buffer": "5.1.1", - "stringstream": "0.0.5", - "tough-cookie": "2.3.4", - "tunnel-agent": "0.6.0", - "uuid": "3.2.1" + "aws-sign2": "~0.7.0", + "aws4": "^1.6.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.5", + "extend": "~3.0.1", + "forever-agent": "~0.6.1", + "form-data": "~2.3.1", + "har-validator": "~5.0.3", + "hawk": "~6.0.2", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.17", + "oauth-sign": "~0.8.2", + "performance-now": "^2.1.0", + "qs": "~6.5.1", + "safe-buffer": "^5.1.1", + "stringstream": "~0.0.5", + "tough-cookie": "~2.3.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.1.0" } }, "safe-buffer": { @@ -492,7 +611,7 @@ "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", "requires": { - "hoek": "4.2.1" + "hoek": "4.x.x" } }, "sshpk": { @@ -500,14 +619,14 @@ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "tweetnacl": "~0.14.0" } }, "stringstream": { @@ -525,7 +644,7 @@ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", "requires": { - "punycode": "1.4.1" + "punycode": "^1.4.1" } }, "tunnel": { @@ -538,7 +657,7 @@ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "^5.0.1" } }, "tweetnacl": { @@ -562,9 +681,9 @@ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "requires": { - "assert-plus": "1.0.0", + "assert-plus": "^1.0.0", "core-util-is": "1.0.2", - "extsprintf": "1.3.0" + "extsprintf": "^1.2.0" } }, "xmldom": { diff --git a/lib/services/trafficManagerManagement2/package.json b/lib/services/trafficManagerManagement2/package.json index 581efa4e48..d0d0a75e69 100644 --- a/lib/services/trafficManagerManagement2/package.json +++ b/lib/services/trafficManagerManagement2/package.json @@ -2,9 +2,9 @@ "name": "azure-arm-trafficmanager", "author": "Microsoft Corporation", "description": "TrafficManagerManagementClient Library with typescript type definitions for node", - "version": "3.0.0", + "version": "4.0.0", "dependencies": { - "ms-rest": "^2.3.2", + "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" }, "keywords": [ @@ -14,12 +14,12 @@ "license": "MIT", "main": "./lib/trafficManagerManagementClient.js", "types": "./lib/trafficManagerManagementClient.d.ts", - "homepage": "http://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/trafficManagerManagement2", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } }