diff --git a/lib/services/trafficManagerManagement2/lib/models/endpoint.js b/lib/services/trafficManagerManagement2/lib/models/endpoint.js index c9200c93a9..1263b5c67e 100644 --- a/lib/services/trafficManagerManagement2/lib/models/endpoint.js +++ b/lib/services/trafficManagerManagement2/lib/models/endpoint.js @@ -31,12 +31,12 @@ class Endpoint extends models['ProxyResource'] { * @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,13 @@ 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() { @@ -159,6 +163,21 @@ 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', 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 7a474765ef..9e327f8c65 100644 --- a/lib/services/trafficManagerManagement2/lib/models/index.d.ts +++ b/lib/services/trafficManagerManagement2/lib/models/index.d.ts @@ -28,6 +28,23 @@ 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. @@ -149,6 +166,18 @@ export interface HeatMapModel extends ProxyResource { 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. @@ -166,12 +195,12 @@ export interface HeatMapModel extends ProxyResource { * @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' @@ -179,8 +208,11 @@ export interface HeatMapModel extends ProxyResource { * 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 { @@ -193,6 +225,7 @@ export interface Endpoint extends ProxyResource { endpointMonitorStatus?: string; minChildEndpoints?: number; geoMapping?: string[]; + subnets?: EndpointPropertiesSubnetsItem[]; customHeaders?: EndpointPropertiesCustomHeadersItem[]; } @@ -324,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 @@ -368,6 +401,8 @@ export interface TrackedResource extends Resource { * 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; @@ -376,6 +411,7 @@ export interface Profile extends TrackedResource { monitorConfig?: MonitorConfig; endpoints?: Endpoint[]; trafficViewEnrollmentStatus?: string; + maxReturn?: number; } /** diff --git a/lib/services/trafficManagerManagement2/lib/models/index.js b/lib/services/trafficManagerManagement2/lib/models/index.js index 03672ded35..99c349ee2a 100644 --- a/lib/services/trafficManagerManagement2/lib/models/index.js +++ b/lib/services/trafficManagerManagement2/lib/models/index.js @@ -19,6 +19,7 @@ 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'); @@ -26,6 +27,7 @@ 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'); diff --git a/lib/services/trafficManagerManagement2/lib/models/profile.js b/lib/services/trafficManagerManagement2/lib/models/profile.js index b08210d519..6c63901829 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 @@ -68,6 +68,8 @@ class Profile extends models['TrackedResource'] { * 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(); @@ -180,6 +182,13 @@ class Profile extends models['TrackedResource'] { type: { name: 'String' } + }, + maxReturn: { + required: false, + serializedName: 'properties.maxReturn', + type: { + name: 'Number' + } } } } diff --git a/lib/services/trafficManagerManagement2/lib/models/userMetricsModel.js b/lib/services/trafficManagerManagement2/lib/models/userMetricsModel.js new file mode 100644 index 0000000000..842f0d0bd0 --- /dev/null +++ b/lib/services/trafficManagerManagement2/lib/models/userMetricsModel.js @@ -0,0 +1,77 @@ +/* + * 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, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + 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 bea93be0c3..e83c4c9a85 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/endpoints.js +++ b/lib/services/trafficManagerManagement2/lib/operations/endpoints.js @@ -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,15 @@ 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. @@ -424,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 @@ -443,10 +448,15 @@ 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. @@ -835,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 @@ -854,10 +864,15 @@ 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. @@ -917,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 @@ -936,10 +951,15 @@ 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. @@ -1117,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 @@ -1136,10 +1156,15 @@ 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. @@ -1199,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 @@ -1218,10 +1243,15 @@ 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. diff --git a/lib/services/trafficManagerManagement2/lib/operations/index.d.ts b/lib/services/trafficManagerManagement2/lib/operations/index.d.ts index 071ecab4c3..b22a1e7c84 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/index.d.ts +++ b/lib/services/trafficManagerManagement2/lib/operations/index.d.ts @@ -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,15 @@ 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. @@ -123,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 @@ -142,10 +147,15 @@ 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. @@ -281,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 @@ -300,10 +310,15 @@ 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. @@ -351,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 @@ -370,10 +385,15 @@ 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. @@ -741,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. @@ -800,6 +820,9 @@ export interface Profiles { * 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 @@ -834,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. @@ -893,6 +916,9 @@ export interface Profiles { * 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 @@ -1009,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. @@ -1068,6 +1094,9 @@ export interface Profiles { * 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 @@ -1102,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. @@ -1161,6 +1190,9 @@ export interface Profiles { * 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 @@ -1342,3 +1374,167 @@ export interface HeatMap { get(resourceGroupName: string, profileName: string, callback: ServiceCallback): void; get(resourceGroupName: string, profileName: string, options: { topLeft? : number[], botRight? : number[], customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } + +/** + * @class + * TrafficManagerUserMetricsKeys + * __NOTE__: An instance of this class is automatically created for an + * instance of the TrafficManagerManagementClient. + */ +export interface TrafficManagerUserMetricsKeys { + + + /** + * Get the subscription-level key used for Real User Metrics collection. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get the subscription-level key used for Real User Metrics collection. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {UserMetricsModel} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {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; + + + /** + * Create or update a subscription-level key used for Real User Metrics + * collection. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + createOrUpdateWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Create or update a subscription-level key used for Real User Metrics + * collection. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {UserMetricsModel} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {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; + + + /** + * Delete a subscription-level key used for Real User Metrics collection. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + deleteMethodWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Delete a subscription-level key used for Real User Metrics collection. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {DeleteOperationResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {DeleteOperationResult} [result] - The deserialized result object if an error did not occur. + * See {@link DeleteOperationResult} 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. + */ + deleteMethod(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(callback: ServiceCallback): void; + deleteMethod(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} diff --git a/lib/services/trafficManagerManagement2/lib/operations/index.js b/lib/services/trafficManagerManagement2/lib/operations/index.js index 8daf4c04e0..a4e9e39f5d 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/index.js +++ b/lib/services/trafficManagerManagement2/lib/operations/index.js @@ -18,3 +18,4 @@ exports.Endpoints = require('./endpoints'); exports.Profiles = require('./profiles'); exports.GeographicHierarchies = require('./geographicHierarchies'); exports.HeatMap = require('./heatMap'); +exports.TrafficManagerUserMetricsKeys = require('./trafficManagerUserMetricsKeys'); diff --git a/lib/services/trafficManagerManagement2/lib/operations/profiles.js b/lib/services/trafficManagerManagement2/lib/operations/profiles.js index 418c3e33e7..5a93ab2254 100644 --- a/lib/services/trafficManagerManagement2/lib/operations/profiles.js +++ b/lib/services/trafficManagerManagement2/lib/operations/profiles.js @@ -603,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. @@ -662,6 +662,9 @@ function _get(resourceGroupName, profileName, options, callback) { * 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 @@ -1002,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. @@ -1061,6 +1064,9 @@ function _deleteMethod(resourceGroupName, profileName, options, callback) { * 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 @@ -1597,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. @@ -1656,6 +1662,9 @@ class Profiles { * 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 @@ -1702,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. @@ -1761,6 +1770,9 @@ class Profiles { * 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 @@ -1919,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. @@ -1978,6 +1990,9 @@ class Profiles { * 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 @@ -2024,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. @@ -2083,6 +2098,9 @@ class Profiles { * 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..6e4d32fd60 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.'); } @@ -64,7 +65,7 @@ function _get(options, callback) { let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys'; 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.'); } @@ -197,7 +199,7 @@ function _createOrUpdate(options, callback) { let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys'; 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.'); } @@ -328,7 +332,7 @@ function _deleteMethod(options, callback) { let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys'; 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 f1aa6474d8..a847e66c56 100644 --- a/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.d.ts +++ b/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.d.ts @@ -60,6 +60,7 @@ export default class TrafficManagerManagementClient extends AzureServiceClient { profiles: operations.Profiles; geographicHierarchies: operations.GeographicHierarchies; heatMap: operations.HeatMap; + trafficManagerUserMetricsKeys: operations.TrafficManagerUserMetricsKeys; } export { TrafficManagerManagementClient, models as TrafficManagerManagementModels }; diff --git a/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.js b/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.js index d945e91ccb..385fcc2e5f 100644 --- a/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.js +++ b/lib/services/trafficManagerManagement2/lib/trafficManagerManagementClient.js @@ -50,7 +50,7 @@ class TrafficManagerManagementClient extends ServiceClient { super(credentials, options); - this.apiVersion = '2018-03-01'; + this.apiVersion = '2018-04-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; @@ -76,6 +76,7 @@ class TrafficManagerManagementClient extends ServiceClient { this.profiles = new operations.Profiles(this); this.geographicHierarchies = new operations.GeographicHierarchies(this); this.heatMap = new operations.HeatMap(this); + this.trafficManagerUserMetricsKeys = new operations.TrafficManagerUserMetricsKeys(this); this.models = models; msRest.addSerializationMixin(this); }