Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions lib/services/trafficManagerManagement2/lib/models/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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() {
Expand Down Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
44 changes: 40 additions & 4 deletions lib/services/trafficManagerManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -166,21 +195,24 @@ 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'
* @member {number} [minChildEndpoints] The minimum number of endpoints that
* 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 {
Expand All @@ -193,6 +225,7 @@ export interface Endpoint extends ProxyResource {
endpointMonitorStatus?: string;
minChildEndpoints?: number;
geoMapping?: string[];
subnets?: EndpointPropertiesSubnetsItem[];
customHeaders?: EndpointPropertiesCustomHeadersItem[];
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand All @@ -376,6 +411,7 @@ export interface Profile extends TrackedResource {
monitorConfig?: MonitorConfig;
endpoints?: Endpoint[];
trafficViewEnrollmentStatus?: string;
maxReturn?: number;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions lib/services/trafficManagerManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ 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');
Expand Down
11 changes: 10 additions & 1 deletion lib/services/trafficManagerManagement2/lib/models/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -180,6 +182,13 @@ class Profile extends models['TrackedResource'] {
type: {
name: 'String'
}
},
maxReturn: {
required: false,
serializedName: 'properties.maxReturn',
type: {
name: 'Number'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Loading