diff --git a/lib/services/networkManagement2/lib/models/addressSpace.js b/lib/services/networkManagement2/lib/models/addressSpace.js index c3c43aa870..d52191738d 100644 --- a/lib/services/networkManagement2/lib/models/addressSpace.js +++ b/lib/services/networkManagement2/lib/models/addressSpace.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,17 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the AddressSpace class. - * @constructor * AddressSpace contains an array of IP address ranges that can be used by * subnets of the virtual network. * - * @member {array} [addressPrefixes] A list of address blocks reserved for this - * virtual network in CIDR notation. - * */ class AddressSpace { + /** + * Create a AddressSpace. + * @member {array} [addressPrefixes] A list of address blocks reserved for + * this virtual network in CIDR notation. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGateway.js b/lib/services/networkManagement2/lib/models/applicationGateway.js index f72b3e87e6..45d1dd1739 100644 --- a/lib/services/networkManagement2/lib/models/applicationGateway.js +++ b/lib/services/networkManagement2/lib/models/applicationGateway.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,111 +13,83 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGateway class. - * @constructor * Application gateway resource * - * @member {object} [sku] SKU of the application gateway resource. - * - * @member {string} [sku.name] Name of an application gateway SKU. Possible - * values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', - * 'WAF_Medium', 'WAF_Large' - * - * @member {string} [sku.tier] Tier of an application gateway. Possible values - * include: 'Standard', 'WAF' - * - * @member {number} [sku.capacity] Capacity (instance count) of an application - * gateway. - * - * @member {object} [sslPolicy] SSL policy of the application gateway resource. - * - * @member {array} [sslPolicy.disabledSslProtocols] Ssl protocols to be - * disabled on application gateway. - * - * @member {string} [sslPolicy.policyType] Type of Ssl Policy. Possible values - * include: 'Predefined', 'Custom' - * - * @member {string} [sslPolicy.policyName] Name of Ssl predefined policy. - * Possible values include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', - * 'AppGwSslPolicy20170401S' - * - * @member {array} [sslPolicy.cipherSuites] Ssl cipher suites to be enabled in - * the specified order to application gateway. - * - * @member {string} [sslPolicy.minProtocolVersion] Minimum version of Ssl - * protocol to be supported on application gateway. Possible values include: - * 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' - * - * @member {string} [operationalState] Operational state of the application - * gateway resource. Possible values include: 'Stopped', 'Starting', 'Running', - * 'Stopping' - * - * @member {array} [gatewayIPConfigurations] Subnets of application the gateway - * resource. - * - * @member {array} [authenticationCertificates] Authentication certificates of - * the application gateway resource. - * - * @member {array} [sslCertificates] SSL certificates of the application - * gateway resource. - * - * @member {array} [frontendIPConfigurations] Frontend IP addresses of the - * application gateway resource. - * - * @member {array} [frontendPorts] Frontend ports of the application gateway - * resource. - * - * @member {array} [probes] Probes of the application gateway resource. - * - * @member {array} [backendAddressPools] Backend address pool of the - * application gateway resource. - * - * @member {array} [backendHttpSettingsCollection] Backend http settings of the - * application gateway resource. - * - * @member {array} [httpListeners] Http listeners of the application gateway - * resource. - * - * @member {array} [urlPathMaps] URL path map of the application gateway - * resource. - * - * @member {array} [requestRoutingRules] Request routing rules of the - * application gateway resource. - * - * @member {array} [redirectConfigurations] Redirect configurations of the - * application gateway resource. - * - * @member {object} [webApplicationFirewallConfiguration] Web application - * firewall configuration. - * - * @member {boolean} [webApplicationFirewallConfiguration.enabled] Whether the - * web application firewall is enabled or not. - * - * @member {string} [webApplicationFirewallConfiguration.firewallMode] Web - * application firewall mode. Possible values include: 'Detection', - * 'Prevention' - * - * @member {string} [webApplicationFirewallConfiguration.ruleSetType] The type - * of the web application firewall rule set. Possible values are: 'OWASP'. - * - * @member {string} [webApplicationFirewallConfiguration.ruleSetVersion] The - * version of the rule set type. - * - * @member {array} [webApplicationFirewallConfiguration.disabledRuleGroups] The - * disabled rule groups. - * - * @member {string} [resourceGuid] Resource GUID property of the application - * gateway resource. - * - * @member {string} [provisioningState] Provisioning state of the application - * gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['Resource'] */ class ApplicationGateway extends models['Resource'] { + /** + * Create a ApplicationGateway. + * @member {object} [sku] SKU of the application gateway resource. + * @member {string} [sku.name] Name of an application gateway SKU. Possible + * values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', + * 'WAF_Medium', 'WAF_Large' + * @member {string} [sku.tier] Tier of an application gateway. Possible + * values include: 'Standard', 'WAF' + * @member {number} [sku.capacity] Capacity (instance count) of an + * application gateway. + * @member {object} [sslPolicy] SSL policy of the application gateway + * resource. + * @member {array} [sslPolicy.disabledSslProtocols] Ssl protocols to be + * disabled on application gateway. + * @member {string} [sslPolicy.policyType] Type of Ssl Policy. Possible + * values include: 'Predefined', 'Custom' + * @member {string} [sslPolicy.policyName] Name of Ssl predefined policy. + * Possible values include: 'AppGwSslPolicy20150501', + * 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' + * @member {array} [sslPolicy.cipherSuites] Ssl cipher suites to be enabled + * in the specified order to application gateway. + * @member {string} [sslPolicy.minProtocolVersion] Minimum version of Ssl + * protocol to be supported on application gateway. Possible values include: + * 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' + * @member {string} [operationalState] Operational state of the application + * gateway resource. Possible values include: 'Stopped', 'Starting', + * 'Running', 'Stopping' + * @member {array} [gatewayIPConfigurations] Subnets of application the + * gateway resource. + * @member {array} [authenticationCertificates] Authentication certificates + * of the application gateway resource. + * @member {array} [sslCertificates] SSL certificates of the application + * gateway resource. + * @member {array} [frontendIPConfigurations] Frontend IP addresses of the + * application gateway resource. + * @member {array} [frontendPorts] Frontend ports of the application gateway + * resource. + * @member {array} [probes] Probes of the application gateway resource. + * @member {array} [backendAddressPools] Backend address pool of the + * application gateway resource. + * @member {array} [backendHttpSettingsCollection] Backend http settings of + * the application gateway resource. + * @member {array} [httpListeners] Http listeners of the application gateway + * resource. + * @member {array} [urlPathMaps] URL path map of the application gateway + * resource. + * @member {array} [requestRoutingRules] Request routing rules of the + * application gateway resource. + * @member {array} [redirectConfigurations] Redirect configurations of the + * application gateway resource. + * @member {object} [webApplicationFirewallConfiguration] Web application + * firewall configuration. + * @member {boolean} [webApplicationFirewallConfiguration.enabled] Whether + * the web application firewall is enabled or not. + * @member {string} [webApplicationFirewallConfiguration.firewallMode] Web + * application firewall mode. Possible values include: 'Detection', + * 'Prevention' + * @member {string} [webApplicationFirewallConfiguration.ruleSetType] The + * type of the web application firewall rule set. Possible values are: + * 'OWASP'. + * @member {string} [webApplicationFirewallConfiguration.ruleSetVersion] The + * version of the rule set type. + * @member {array} [webApplicationFirewallConfiguration.disabledRuleGroups] + * The disabled rule groups. + * @member {string} [resourceGuid] Resource GUID property of the application + * gateway resource. + * @member {string} [provisioningState] Provisioning state of the application + * gateway resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayAuthenticationCertificate.js b/lib/services/networkManagement2/lib/models/applicationGatewayAuthenticationCertificate.js index c518ae53ef..14cb3e2832 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayAuthenticationCertificate.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayAuthenticationCertificate.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,27 +13,23 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayAuthenticationCertificate class. - * @constructor * Authentication certificates of an application gateway. * - * @member {string} [data] Certificate public data. - * - * @member {string} [provisioningState] Provisioning state of the - * authentication certificate resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayAuthenticationCertificate extends models['SubResource'] { + /** + * Create a ApplicationGatewayAuthenticationCertificate. + * @member {string} [data] Certificate public data. + * @member {string} [provisioningState] Provisioning state of the + * authentication certificate resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayAvailableSslOptions.js b/lib/services/networkManagement2/lib/models/applicationGatewayAvailableSslOptions.js index ba8f21926c..0d2c74fe8d 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayAvailableSslOptions.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayAvailableSslOptions.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,25 +13,23 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayAvailableSslOptions class. - * @constructor * Response for ApplicationGatewayAvailableSslOptions API service call. * - * @member {array} [predefinedPolicies] List of available Ssl predefined - * policy. - * - * @member {string} [defaultPolicy] Name of the Ssl predefined policy applied - * by default to application gateway. Possible values include: - * 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', - * 'AppGwSslPolicy20170401S' - * - * @member {array} [availableCipherSuites] List of available Ssl cipher suites. - * - * @member {array} [availableProtocols] List of available Ssl protocols. - * + * @extends models['Resource'] */ class ApplicationGatewayAvailableSslOptions extends models['Resource'] { + /** + * Create a ApplicationGatewayAvailableSslOptions. + * @member {array} [predefinedPolicies] List of available Ssl predefined + * policy. + * @member {string} [defaultPolicy] Name of the Ssl predefined policy applied + * by default to application gateway. Possible values include: + * 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + * 'AppGwSslPolicy20170401S' + * @member {array} [availableCipherSuites] List of available Ssl cipher + * suites. + * @member {array} [availableProtocols] List of available Ssl protocols. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayAvailableSslPredefinedPolicies.js b/lib/services/networkManagement2/lib/models/applicationGatewayAvailableSslPredefinedPolicies.js index e6f5faf4cc..5b1ac67da0 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayAvailableSslPredefinedPolicies.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayAvailableSslPredefinedPolicies.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewayAvailableSslPredefinedPolicies class. - * @constructor * Response for ApplicationGatewayAvailableSslOptions API service call. - * - * @member {string} [nextLink] URL to get the next set of results. - * */ class ApplicationGatewayAvailableSslPredefinedPolicies extends Array { + /** + * Create a ApplicationGatewayAvailableSslPredefinedPolicies. + * @member {string} [nextLink] URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayAvailableWafRuleSetsResult.js b/lib/services/networkManagement2/lib/models/applicationGatewayAvailableWafRuleSetsResult.js index 4a0f76e470..f9d3324627 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayAvailableWafRuleSetsResult.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayAvailableWafRuleSetsResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,15 +13,14 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayAvailableWafRuleSetsResult class. - * @constructor * Response for ApplicationGatewayAvailableWafRuleSets API service call. * - * @member {array} [value] The list of application gateway rule sets. - * */ class ApplicationGatewayAvailableWafRuleSetsResult { + /** + * Create a ApplicationGatewayAvailableWafRuleSetsResult. + * @member {array} [value] The list of application gateway rule sets. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendAddress.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendAddress.js index 3a6c4a1f97..9efa6a4200 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendAddress.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendAddress.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,17 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendAddress class. - * @constructor * Backend address of an application gateway. * - * @member {string} [fqdn] Fully qualified domain name (FQDN). - * - * @member {string} [ipAddress] IP address - * */ class ApplicationGatewayBackendAddress { + /** + * Create a ApplicationGatewayBackendAddress. + * @member {string} [fqdn] Fully qualified domain name (FQDN). + * @member {string} [ipAddress] IP address + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendAddressPool.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendAddressPool.js index e5cac47b6d..54daf5779f 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendAddressPool.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendAddressPool.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,30 +13,25 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendAddressPool class. - * @constructor * Backend Address Pool of an application gateway. * - * @member {array} [backendIPConfigurations] Collection of references to IPs - * defined in network interfaces. - * - * @member {array} [backendAddresses] Backend addresses - * - * @member {string} [provisioningState] Provisioning state of the backend - * address pool resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Resource that is unique within a resource group. - * This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayBackendAddressPool extends models['SubResource'] { + /** + * Create a ApplicationGatewayBackendAddressPool. + * @member {array} [backendIPConfigurations] Collection of references to IPs + * defined in network interfaces. + * @member {array} [backendAddresses] Backend addresses + * @member {string} [provisioningState] Provisioning state of the backend + * address pool resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Resource that is unique within a resource group. + * This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealth.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealth.js index 303b24ab10..cb06b4e6e1 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealth.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealth.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,15 +13,14 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHealth class. - * @constructor * List of ApplicationGatewayBackendHealthPool resources. * - * @member {array} [backendAddressPools] - * */ class ApplicationGatewayBackendHealth { + /** + * Create a ApplicationGatewayBackendHealth. + * @member {array} [backendAddressPools] + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthHttpSettings.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthHttpSettings.js index 8d2105f3f4..082f243482 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthHttpSettings.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthHttpSettings.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,80 +13,60 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHealthHttpSettings class. - * @constructor * Application gateway BackendHealthHttp settings. * - * @member {object} [backendHttpSettings] Reference of an - * ApplicationGatewayBackendHttpSettings resource. - * - * @member {number} [backendHttpSettings.port] Port - * - * @member {string} [backendHttpSettings.protocol] Protocol. Possible values - * include: 'Http', 'Https' - * - * @member {string} [backendHttpSettings.cookieBasedAffinity] Cookie based - * affinity. Possible values include: 'Enabled', 'Disabled' - * - * @member {number} [backendHttpSettings.requestTimeout] Request timeout in - * seconds. Application Gateway will fail the request if response is not - * received within RequestTimeout. Acceptable values are from 1 second to 86400 - * seconds. - * - * @member {object} [backendHttpSettings.probe] Probe resource of an - * application gateway. - * - * @member {string} [backendHttpSettings.probe.id] Resource ID. - * - * @member {array} [backendHttpSettings.authenticationCertificates] Array of - * references to application gateway authentication certificates. - * - * @member {object} [backendHttpSettings.connectionDraining] Connection - * draining of the backend http settings resource. - * - * @member {boolean} [backendHttpSettings.connectionDraining.enabled] Whether - * connection draining is enabled or not. - * - * @member {number} [backendHttpSettings.connectionDraining.drainTimeoutInSec] - * The number of seconds connection draining is active. Acceptable values are - * from 1 second to 3600 seconds. - * - * @member {string} [backendHttpSettings.hostName] Host header to be sent to - * the backend servers. - * - * @member {boolean} [backendHttpSettings.pickHostNameFromBackendAddress] - * Whether to pick host header should be picked from the host name of the - * backend server. Default value is false. - * - * @member {string} [backendHttpSettings.affinityCookieName] Cookie name to use - * for the affinity cookie. - * - * @member {boolean} [backendHttpSettings.probeEnabled] Whether the probe is - * enabled. Default value is false. - * - * @member {string} [backendHttpSettings.path] Path which should be used as a - * prefix for all HTTP requests. Null means no path will be prefixed. Default - * value is null. - * - * @member {string} [backendHttpSettings.provisioningState] Provisioning state - * of the backend http settings resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [backendHttpSettings.name] Name of the resource that is - * unique within a resource group. This name can be used to access the - * resource. - * - * @member {string} [backendHttpSettings.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {string} [backendHttpSettings.type] Type of the resource. - * - * @member {array} [servers] List of ApplicationGatewayBackendHealthServer - * resources. - * */ class ApplicationGatewayBackendHealthHttpSettings { + /** + * Create a ApplicationGatewayBackendHealthHttpSettings. + * @member {object} [backendHttpSettings] Reference of an + * ApplicationGatewayBackendHttpSettings resource. + * @member {number} [backendHttpSettings.port] Port + * @member {string} [backendHttpSettings.protocol] Protocol. Possible values + * include: 'Http', 'Https' + * @member {string} [backendHttpSettings.cookieBasedAffinity] Cookie based + * affinity. Possible values include: 'Enabled', 'Disabled' + * @member {number} [backendHttpSettings.requestTimeout] Request timeout in + * seconds. Application Gateway will fail the request if response is not + * received within RequestTimeout. Acceptable values are from 1 second to + * 86400 seconds. + * @member {object} [backendHttpSettings.probe] Probe resource of an + * application gateway. + * @member {string} [backendHttpSettings.probe.id] Resource ID. + * @member {array} [backendHttpSettings.authenticationCertificates] Array of + * references to application gateway authentication certificates. + * @member {object} [backendHttpSettings.connectionDraining] Connection + * draining of the backend http settings resource. + * @member {boolean} [backendHttpSettings.connectionDraining.enabled] Whether + * connection draining is enabled or not. + * @member {number} + * [backendHttpSettings.connectionDraining.drainTimeoutInSec] The number of + * seconds connection draining is active. Acceptable values are from 1 second + * to 3600 seconds. + * @member {string} [backendHttpSettings.hostName] Host header to be sent to + * the backend servers. + * @member {boolean} [backendHttpSettings.pickHostNameFromBackendAddress] + * Whether to pick host header should be picked from the host name of the + * backend server. Default value is false. + * @member {string} [backendHttpSettings.affinityCookieName] Cookie name to + * use for the affinity cookie. + * @member {boolean} [backendHttpSettings.probeEnabled] Whether the probe is + * enabled. Default value is false. + * @member {string} [backendHttpSettings.path] Path which should be used as a + * prefix for all HTTP requests. Null means no path will be prefixed. Default + * value is null. + * @member {string} [backendHttpSettings.provisioningState] Provisioning + * state of the backend http settings resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [backendHttpSettings.name] Name of the resource that is + * unique within a resource group. This name can be used to access the + * resource. + * @member {string} [backendHttpSettings.etag] A unique read-only string that + * changes whenever the resource is updated. + * @member {string} [backendHttpSettings.type] Type of the resource. + * @member {array} [servers] List of ApplicationGatewayBackendHealthServer + * resources. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthPool.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthPool.js index 62c7ef7feb..15cdacf101 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthPool.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthPool.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,36 +13,28 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHealthPool class. - * @constructor * Application gateway BackendHealth pool. * - * @member {object} [backendAddressPool] Reference of an - * ApplicationGatewayBackendAddressPool resource. - * - * @member {array} [backendAddressPool.backendIPConfigurations] Collection of - * references to IPs defined in network interfaces. - * - * @member {array} [backendAddressPool.backendAddresses] Backend addresses - * - * @member {string} [backendAddressPool.provisioningState] Provisioning state - * of the backend address pool resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [backendAddressPool.name] Resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [backendAddressPool.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {string} [backendAddressPool.type] Type of the resource. - * - * @member {array} [backendHttpSettingsCollection] List of - * ApplicationGatewayBackendHealthHttpSettings resources. - * */ class ApplicationGatewayBackendHealthPool { + /** + * Create a ApplicationGatewayBackendHealthPool. + * @member {object} [backendAddressPool] Reference of an + * ApplicationGatewayBackendAddressPool resource. + * @member {array} [backendAddressPool.backendIPConfigurations] Collection of + * references to IPs defined in network interfaces. + * @member {array} [backendAddressPool.backendAddresses] Backend addresses + * @member {string} [backendAddressPool.provisioningState] Provisioning state + * of the backend address pool resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [backendAddressPool.name] Resource that is unique within + * a resource group. This name can be used to access the resource. + * @member {string} [backendAddressPool.etag] A unique read-only string that + * changes whenever the resource is updated. + * @member {string} [backendAddressPool.type] Type of the resource. + * @member {array} [backendHttpSettingsCollection] List of + * ApplicationGatewayBackendHealthHttpSettings resources. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthServer.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthServer.js index 2e6e0c8f5b..3d8e4e33a6 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthServer.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthServer.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,282 +13,222 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHealthServer class. - * @constructor * Application gateway backendhealth http settings. * - * @member {string} [address] IP address or FQDN of backend server. - * - * @member {object} [ipConfiguration] Reference of IP configuration of backend - * server. - * - * @member {array} [ipConfiguration.applicationGatewayBackendAddressPools] The - * reference of ApplicationGatewayBackendAddressPool resource. - * - * @member {array} [ipConfiguration.loadBalancerBackendAddressPools] The - * reference of LoadBalancerBackendAddressPool resource. - * - * @member {array} [ipConfiguration.loadBalancerInboundNatRules] A list of - * references of LoadBalancerInboundNatRules. - * - * @member {string} [ipConfiguration.privateIPAddress] - * - * @member {string} [ipConfiguration.privateIPAllocationMethod] Defines how a - * private IP address is assigned. Possible values are: 'Static' and 'Dynamic'. - * Possible values include: 'Static', 'Dynamic' - * - * @member {string} [ipConfiguration.privateIPAddressVersion] Available from - * Api-Version 2016-03-30 onwards, it represents whether the specific - * ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values - * are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' - * - * @member {object} [ipConfiguration.subnet] - * - * @member {string} [ipConfiguration.subnet.addressPrefix] The address prefix - * for the subnet. - * - * @member {object} [ipConfiguration.subnet.networkSecurityGroup] The reference - * of the NetworkSecurityGroup resource. - * - * @member {array} [ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * - * @member {array} - * [ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * - * @member {array} - * [ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] A collection - * of references to network interfaces. - * - * @member {array} [ipConfiguration.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * - * @member {string} [ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * - * @member {string} - * [ipConfiguration.subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [ipConfiguration.subnet.networkSecurityGroup.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {object} [ipConfiguration.subnet.routeTable] The reference of the - * RouteTable resource. - * - * @member {array} [ipConfiguration.subnet.routeTable.routes] Collection of - * routes contained within a route table. - * - * @member {array} [ipConfiguration.subnet.routeTable.subnets] A collection of - * references to subnets. - * - * @member {string} [ipConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [ipConfiguration.subnet.routeTable.etag] Gets a unique - * read-only string that changes whenever the resource is updated. - * - * @member {array} [ipConfiguration.subnet.privateAccessServices] An array of - * private access services values. - * - * @member {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of - * references to the network interface IP configurations using subnet. - * - * @member {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * - * @member {string} [ipConfiguration.subnet.provisioningState] The provisioning - * state of the resource. - * - * @member {string} [ipConfiguration.subnet.name] The name of the resource that - * is unique within a resource group. This name can be used to access the - * resource. - * - * @member {string} [ipConfiguration.subnet.etag] A unique read-only string - * that changes whenever the resource is updated. - * - * @member {boolean} [ipConfiguration.primary] Gets whether this is a primary - * customer address on the network interface. - * - * @member {object} [ipConfiguration.publicIPAddress] - * - * @member {string} [ipConfiguration.publicIPAddress.publicIPAllocationMethod] - * The public IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @member {string} [ipConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * Possible values include: 'IPv4', 'IPv6' - * - * @member {object} [ipConfiguration.publicIPAddress.ipConfiguration] - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] The - * private IP address of the IP configuration. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @member {object} [ipConfiguration.publicIPAddress.ipConfiguration.subnet] - * The reference of the subnet resource. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] The - * address prefix for the subnet. - * - * @member {object} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * - * @member {object} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] The - * reference of the RouteTable resource. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.privateAccessServices] - * An array of private access services values. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * - * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.name] The name of - * the resource that is unique within a resource group. This name can be used - * to access the resource. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {object} - * [ipConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] The - * reference of the public IP resource. - * - * @member {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.provisioningState] Gets the - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [ipConfiguration.publicIPAddress.ipConfiguration.name] The - * name of the resource that is unique within a resource group. This name can - * be used to access the resource. - * - * @member {string} [ipConfiguration.publicIPAddress.ipConfiguration.etag] A - * unique read-only string that changes whenever the resource is updated. - * - * @member {object} [ipConfiguration.publicIPAddress.dnsSettings] The FQDN of - * the DNS record associated with the public IP address. - * - * @member {string} - * [ipConfiguration.publicIPAddress.dnsSettings.domainNameLabel] Gets or sets - * the Domain name label.The concatenation of the domain name label and the - * regionalized DNS zone make up the fully qualified domain name associated - * with the public IP address. If a domain name label is specified, an A DNS - * record is created for the public IP in the Microsoft Azure DNS system. - * - * @member {string} [ipConfiguration.publicIPAddress.dnsSettings.fqdn] Gets the - * FQDN, Fully qualified domain name of the A DNS record associated with the - * public IP. This is the concatenation of the domainNameLabel and the - * regionalized DNS zone. - * - * @member {string} [ipConfiguration.publicIPAddress.dnsSettings.reverseFqdn] - * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name - * that resolves to this public IP address. If the reverseFqdn is specified, - * then a PTR DNS record is created pointing from the IP address in the - * in-addr.arpa domain to the reverse FQDN. - * - * @member {string} [ipConfiguration.publicIPAddress.ipAddress] - * - * @member {number} [ipConfiguration.publicIPAddress.idleTimeoutInMinutes] The - * idle timeout of the public IP address. - * - * @member {string} [ipConfiguration.publicIPAddress.resourceGuid] The resource - * GUID property of the public IP resource. - * - * @member {string} [ipConfiguration.publicIPAddress.provisioningState] The - * provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [ipConfiguration.publicIPAddress.etag] A unique read-only - * string that changes whenever the resource is updated. - * - * @member {string} [ipConfiguration.provisioningState] - * - * @member {string} [ipConfiguration.name] The name of the resource that is - * unique within a resource group. This name can be used to access the - * resource. - * - * @member {string} [ipConfiguration.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {string} [health] Health of backend server. Possible values include: - * 'Unknown', 'Up', 'Down', 'Partial', 'Draining' - * */ class ApplicationGatewayBackendHealthServer { + /** + * Create a ApplicationGatewayBackendHealthServer. + * @member {string} [address] IP address or FQDN of backend server. + * @member {object} [ipConfiguration] Reference of IP configuration of + * backend server. + * @member {array} [ipConfiguration.applicationGatewayBackendAddressPools] + * The reference of ApplicationGatewayBackendAddressPool resource. + * @member {array} [ipConfiguration.loadBalancerBackendAddressPools] The + * reference of LoadBalancerBackendAddressPool resource. + * @member {array} [ipConfiguration.loadBalancerInboundNatRules] A list of + * references of LoadBalancerInboundNatRules. + * @member {string} [ipConfiguration.privateIPAddress] Private IP address of + * the IP configuration. + * @member {string} [ipConfiguration.privateIPAllocationMethod] Defines how a + * private IP address is assigned. Possible values are: 'Static' and + * 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @member {string} [ipConfiguration.privateIPAddressVersion] Available from + * Api-Version 2016-03-30 onwards, it represents whether the specific + * ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible + * values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + * @member {object} [ipConfiguration.subnet] Subnet bound to the IP + * configuration. + * @member {string} [ipConfiguration.subnet.addressPrefix] The address prefix + * for the subnet. + * @member {object} [ipConfiguration.subnet.networkSecurityGroup] The + * reference of the NetworkSecurityGroup resource. + * @member {array} + * [ipConfiguration.subnet.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * @member {array} + * [ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * @member {array} + * [ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] A + * collection of references to network interfaces. + * @member {array} [ipConfiguration.subnet.networkSecurityGroup.subnets] A + * collection of references to subnets. + * @member {string} + * [ipConfiguration.subnet.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * @member {string} + * [ipConfiguration.subnet.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [ipConfiguration.subnet.networkSecurityGroup.etag] A + * unique read-only string that changes whenever the resource is updated. + * @member {object} [ipConfiguration.subnet.routeTable] The reference of the + * RouteTable resource. + * @member {array} [ipConfiguration.subnet.routeTable.routes] Collection of + * routes contained within a route table. + * @member {array} [ipConfiguration.subnet.routeTable.subnets] A collection + * of references to subnets. + * @member {string} [ipConfiguration.subnet.routeTable.provisioningState] The + * provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [ipConfiguration.subnet.routeTable.etag] Gets a unique + * read-only string that changes whenever the resource is updated. + * @member {array} [ipConfiguration.subnet.serviceEndpoints] An array of + * service endpoints. + * @member {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of + * references to the network interface IP configurations using subnet. + * @member {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an + * array of references to the external resources using subnet. + * @member {string} [ipConfiguration.subnet.provisioningState] The + * provisioning state of the resource. + * @member {string} [ipConfiguration.subnet.name] The name of the resource + * that is unique within a resource group. This name can be used to access + * the resource. + * @member {string} [ipConfiguration.subnet.etag] A unique read-only string + * that changes whenever the resource is updated. + * @member {boolean} [ipConfiguration.primary] Gets whether this is a primary + * customer address on the network interface. + * @member {object} [ipConfiguration.publicIPAddress] Public IP address bound + * to the IP configuration. + * @member {object} [ipConfiguration.publicIPAddress.sku] The public IP + * address SKU. + * @member {string} [ipConfiguration.publicIPAddress.sku.name] Name of a + * public IP address SKU. Possible values include: 'Basic', 'Standard' + * @member {string} + * [ipConfiguration.publicIPAddress.publicIPAllocationMethod] The public IP + * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * @member {string} [ipConfiguration.publicIPAddress.publicIPAddressVersion] + * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. + * Possible values include: 'IPv4', 'IPv6' + * @member {object} [ipConfiguration.publicIPAddress.ipConfiguration] The IP + * configuration associated with the public IP address. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] The + * private IP address of the IP configuration. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] + * The private IP allocation method. Possible values are 'Static' and + * 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @member {object} [ipConfiguration.publicIPAddress.ipConfiguration.subnet] + * The reference of the subnet resource. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] The + * address prefix for the subnet. + * @member {object} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] + * The reference of the NetworkSecurityGroup resource. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] + * A collection of security rules of the network security group. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] + * The default security rules of network security group. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] + * A collection of references to network interfaces. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] + * A collection of references to subnets. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] + * The resource GUID property of the network security group resource. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] + * The provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] + * A unique read-only string that changes whenever the resource is updated. + * @member {object} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] The + * reference of the RouteTable resource. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] + * Collection of routes contained within a route table. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] + * A collection of references to subnets. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] + * The provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] + * Gets a unique read-only string that changes whenever the resource is + * updated. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] + * An array of service endpoints. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] + * Gets an array of references to the network interface IP configurations + * using subnet. + * @member {array} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] + * Gets an array of references to the external resources using subnet. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] + * The provisioning state of the resource. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.name] The name of + * the resource that is unique within a resource group. This name can be used + * to access the resource. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.etag] A unique + * read-only string that changes whenever the resource is updated. + * @member {object} + * [ipConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] The + * reference of the public IP resource. + * @member {string} + * [ipConfiguration.publicIPAddress.ipConfiguration.provisioningState] Gets + * the provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [ipConfiguration.publicIPAddress.ipConfiguration.name] + * The name of the resource that is unique within a resource group. This name + * can be used to access the resource. + * @member {string} [ipConfiguration.publicIPAddress.ipConfiguration.etag] A + * unique read-only string that changes whenever the resource is updated. + * @member {object} [ipConfiguration.publicIPAddress.dnsSettings] The FQDN of + * the DNS record associated with the public IP address. + * @member {string} + * [ipConfiguration.publicIPAddress.dnsSettings.domainNameLabel] Gets or sets + * the Domain name label.The concatenation of the domain name label and the + * regionalized DNS zone make up the fully qualified domain name associated + * with the public IP address. If a domain name label is specified, an A DNS + * record is created for the public IP in the Microsoft Azure DNS system. + * @member {string} [ipConfiguration.publicIPAddress.dnsSettings.fqdn] Gets + * the FQDN, Fully qualified domain name of the A DNS record associated with + * the public IP. This is the concatenation of the domainNameLabel and the + * regionalized DNS zone. + * @member {string} [ipConfiguration.publicIPAddress.dnsSettings.reverseFqdn] + * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name + * that resolves to this public IP address. If the reverseFqdn is specified, + * then a PTR DNS record is created pointing from the IP address in the + * in-addr.arpa domain to the reverse FQDN. + * @member {string} [ipConfiguration.publicIPAddress.ipAddress] The IP + * address associated with the public IP address resource. + * @member {number} [ipConfiguration.publicIPAddress.idleTimeoutInMinutes] + * The idle timeout of the public IP address. + * @member {string} [ipConfiguration.publicIPAddress.resourceGuid] The + * resource GUID property of the public IP resource. + * @member {string} [ipConfiguration.publicIPAddress.provisioningState] The + * provisioning state of the PublicIP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [ipConfiguration.publicIPAddress.etag] A unique read-only + * string that changes whenever the resource is updated. + * @member {string} [ipConfiguration.provisioningState] The provisioning + * state of the network interface IP configuration. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [ipConfiguration.name] The name of the resource that is + * unique within a resource group. This name can be used to access the + * resource. + * @member {string} [ipConfiguration.etag] A unique read-only string that + * changes whenever the resource is updated. + * @member {string} [health] Health of backend server. Possible values + * include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHttpSettings.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHttpSettings.js index 677e6f32d6..5d294aaa9c 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHttpSettings.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHttpSettings.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,69 +13,51 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHttpSettings class. - * @constructor * Backend address pool settings of an application gateway. * - * @member {number} [port] Port - * - * @member {string} [protocol] Protocol. Possible values include: 'Http', - * 'Https' - * - * @member {string} [cookieBasedAffinity] Cookie based affinity. Possible - * values include: 'Enabled', 'Disabled' - * - * @member {number} [requestTimeout] Request timeout in seconds. Application - * Gateway will fail the request if response is not received within - * RequestTimeout. Acceptable values are from 1 second to 86400 seconds. - * - * @member {object} [probe] Probe resource of an application gateway. - * - * @member {string} [probe.id] Resource ID. - * - * @member {array} [authenticationCertificates] Array of references to - * application gateway authentication certificates. - * - * @member {object} [connectionDraining] Connection draining of the backend - * http settings resource. - * - * @member {boolean} [connectionDraining.enabled] Whether connection draining - * is enabled or not. - * - * @member {number} [connectionDraining.drainTimeoutInSec] The number of - * seconds connection draining is active. Acceptable values are from 1 second - * to 3600 seconds. - * - * @member {string} [hostName] Host header to be sent to the backend servers. - * - * @member {boolean} [pickHostNameFromBackendAddress] Whether to pick host - * header should be picked from the host name of the backend server. Default - * value is false. - * - * @member {string} [affinityCookieName] Cookie name to use for the affinity - * cookie. - * - * @member {boolean} [probeEnabled] Whether the probe is enabled. Default value - * is false. - * - * @member {string} [path] Path which should be used as a prefix for all HTTP - * requests. Null means no path will be prefixed. Default value is null. - * - * @member {string} [provisioningState] Provisioning state of the backend http - * settings resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayBackendHttpSettings extends models['SubResource'] { + /** + * Create a ApplicationGatewayBackendHttpSettings. + * @member {number} [port] Port + * @member {string} [protocol] Protocol. Possible values include: 'Http', + * 'Https' + * @member {string} [cookieBasedAffinity] Cookie based affinity. Possible + * values include: 'Enabled', 'Disabled' + * @member {number} [requestTimeout] Request timeout in seconds. Application + * Gateway will fail the request if response is not received within + * RequestTimeout. Acceptable values are from 1 second to 86400 seconds. + * @member {object} [probe] Probe resource of an application gateway. + * @member {string} [probe.id] Resource ID. + * @member {array} [authenticationCertificates] Array of references to + * application gateway authentication certificates. + * @member {object} [connectionDraining] Connection draining of the backend + * http settings resource. + * @member {boolean} [connectionDraining.enabled] Whether connection draining + * is enabled or not. + * @member {number} [connectionDraining.drainTimeoutInSec] The number of + * seconds connection draining is active. Acceptable values are from 1 second + * to 3600 seconds. + * @member {string} [hostName] Host header to be sent to the backend servers. + * @member {boolean} [pickHostNameFromBackendAddress] Whether to pick host + * header should be picked from the host name of the backend server. Default + * value is false. + * @member {string} [affinityCookieName] Cookie name to use for the affinity + * cookie. + * @member {boolean} [probeEnabled] Whether the probe is enabled. Default + * value is false. + * @member {string} [path] Path which should be used as a prefix for all HTTP + * requests. Null means no path will be prefixed. Default value is null. + * @member {string} [provisioningState] Provisioning state of the backend + * http settings resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayConnectionDraining.js b/lib/services/networkManagement2/lib/models/applicationGatewayConnectionDraining.js index 888786aff9..657dfbc1ce 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayConnectionDraining.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayConnectionDraining.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,20 +11,18 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewayConnectionDraining class. - * @constructor * Connection draining allows open connections to a backend server to be active * for a specified time after the backend server got removed from the * configuration. * - * @member {boolean} enabled Whether connection draining is enabled or not. - * - * @member {number} drainTimeoutInSec The number of seconds connection draining - * is active. Acceptable values are from 1 second to 3600 seconds. - * */ class ApplicationGatewayConnectionDraining { + /** + * Create a ApplicationGatewayConnectionDraining. + * @member {boolean} enabled Whether connection draining is enabled or not. + * @member {number} drainTimeoutInSec The number of seconds connection + * draining is active. Acceptable values are from 1 second to 3600 seconds. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallDisabledRuleGroup.js b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallDisabledRuleGroup.js index c3b7699d02..fac27dfd71 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallDisabledRuleGroup.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallDisabledRuleGroup.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,19 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallDisabledRuleGroup class. - * @constructor * Allows to disable rules within a rule group or an entire rule group. * - * @member {string} ruleGroupName The name of the rule group that will be - * disabled. - * - * @member {array} [rules] The list of rules that will be disabled. If null, - * all rules of the rule group will be disabled. - * */ class ApplicationGatewayFirewallDisabledRuleGroup { + /** + * Create a ApplicationGatewayFirewallDisabledRuleGroup. + * @member {string} ruleGroupName The name of the rule group that will be + * disabled. + * @member {array} [rules] The list of rules that will be disabled. If null, + * all rules of the rule group will be disabled. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRule.js b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRule.js index ddcf65fa0a..73c4850657 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRule.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,18 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallRule class. - * @constructor * A web application firewall rule. * - * @member {number} ruleId The identifier of the web application firewall rule. - * - * @member {string} [description] The description of the web application - * firewall rule. - * */ class ApplicationGatewayFirewallRule { + /** + * Create a ApplicationGatewayFirewallRule. + * @member {number} ruleId The identifier of the web application firewall + * rule. + * @member {string} [description] The description of the web application + * firewall rule. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRuleGroup.js b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRuleGroup.js index eabc4421d2..c359c16068 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRuleGroup.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRuleGroup.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,21 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallRuleGroup class. - * @constructor * A web application firewall rule group. * - * @member {string} ruleGroupName The name of the web application firewall rule - * group. - * - * @member {string} [description] The description of the web application - * firewall rule group. - * - * @member {array} rules The rules of the web application firewall rule group. - * */ class ApplicationGatewayFirewallRuleGroup { + /** + * Create a ApplicationGatewayFirewallRuleGroup. + * @member {string} ruleGroupName The name of the web application firewall + * rule group. + * @member {string} [description] The description of the web application + * firewall rule group. + * @member {array} rules The rules of the web application firewall rule + * group. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRuleSet.js b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRuleSet.js index 09d59c1d6e..d33762e006 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRuleSet.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallRuleSet.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,25 +13,22 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallRuleSet class. - * @constructor * A web application firewall rule set. * - * @member {string} [provisioningState] The provisioning state of the web - * application firewall rule set. - * - * @member {string} ruleSetType The type of the web application firewall rule - * set. - * - * @member {string} ruleSetVersion The version of the web application firewall - * rule set type. - * - * @member {array} ruleGroups The rule groups of the web application firewall - * rule set. - * + * @extends models['Resource'] */ class ApplicationGatewayFirewallRuleSet extends models['Resource'] { + /** + * Create a ApplicationGatewayFirewallRuleSet. + * @member {string} [provisioningState] The provisioning state of the web + * application firewall rule set. + * @member {string} ruleSetType The type of the web application firewall rule + * set. + * @member {string} ruleSetVersion The version of the web application + * firewall rule set type. + * @member {array} ruleGroups The rule groups of the web application firewall + * rule set. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayFrontendIPConfiguration.js b/lib/services/networkManagement2/lib/models/applicationGatewayFrontendIPConfiguration.js index 2bece9e7ca..36c3964d12 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayFrontendIPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayFrontendIPConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,38 +13,29 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayFrontendIPConfiguration class. - * @constructor * Frontend IP configuration of an application gateway. * - * @member {string} [privateIPAddress] PrivateIPAddress of the network - * interface IP Configuration. - * - * @member {string} [privateIPAllocationMethod] PrivateIP allocation method. - * Possible values include: 'Static', 'Dynamic' - * - * @member {object} [subnet] Reference of the subnet resource. - * - * @member {string} [subnet.id] Resource ID. - * - * @member {object} [publicIPAddress] Reference of the PublicIP resource. - * - * @member {string} [publicIPAddress.id] Resource ID. - * - * @member {string} [provisioningState] Provisioning state of the public IP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayFrontendIPConfiguration extends models['SubResource'] { + /** + * Create a ApplicationGatewayFrontendIPConfiguration. + * @member {string} [privateIPAddress] PrivateIPAddress of the network + * interface IP Configuration. + * @member {string} [privateIPAllocationMethod] PrivateIP allocation method. + * Possible values include: 'Static', 'Dynamic' + * @member {object} [subnet] Reference of the subnet resource. + * @member {string} [subnet.id] Resource ID. + * @member {object} [publicIPAddress] Reference of the PublicIP resource. + * @member {string} [publicIPAddress.id] Resource ID. + * @member {string} [provisioningState] Provisioning state of the public IP + * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayFrontendPort.js b/lib/services/networkManagement2/lib/models/applicationGatewayFrontendPort.js index 50e989c305..1eff4ee554 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayFrontendPort.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayFrontendPort.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,26 +13,22 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayFrontendPort class. - * @constructor * Frontend port of an application gateway. * - * @member {number} [port] Frontend port - * - * @member {string} [provisioningState] Provisioning state of the frontend port - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayFrontendPort extends models['SubResource'] { + /** + * Create a ApplicationGatewayFrontendPort. + * @member {number} [port] Frontend port + * @member {string} [provisioningState] Provisioning state of the frontend + * port resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js b/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js index cdf94ce0b5..edd2db76d3 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,47 +13,36 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayHttpListener class. - * @constructor * Http listener of an application gateway. * - * @member {object} [frontendIPConfiguration] Frontend IP configuration - * resource of an application gateway. - * - * @member {string} [frontendIPConfiguration.id] Resource ID. - * - * @member {object} [frontendPort] Frontend port resource of an application - * gateway. - * - * @member {string} [frontendPort.id] Resource ID. - * - * @member {string} [protocol] Protocol. Possible values include: 'Http', - * 'Https' - * - * @member {string} [hostName] Host name of HTTP listener. - * - * @member {object} [sslCertificate] SSL certificate resource of an application - * gateway. - * - * @member {string} [sslCertificate.id] Resource ID. - * - * @member {boolean} [requireServerNameIndication] Applicable only if protocol - * is https. Enables SNI for multi-hosting. - * - * @member {string} [provisioningState] Provisioning state of the HTTP listener - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayHttpListener extends models['SubResource'] { + /** + * Create a ApplicationGatewayHttpListener. + * @member {object} [frontendIPConfiguration] Frontend IP configuration + * resource of an application gateway. + * @member {string} [frontendIPConfiguration.id] Resource ID. + * @member {object} [frontendPort] Frontend port resource of an application + * gateway. + * @member {string} [frontendPort.id] Resource ID. + * @member {string} [protocol] Protocol. Possible values include: 'Http', + * 'Https' + * @member {string} [hostName] Host name of HTTP listener. + * @member {object} [sslCertificate] SSL certificate resource of an + * application gateway. + * @member {string} [sslCertificate.id] Resource ID. + * @member {boolean} [requireServerNameIndication] Applicable only if + * protocol is https. Enables SNI for multi-hosting. + * @member {string} [provisioningState] Provisioning state of the HTTP + * listener resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayIPConfiguration.js b/lib/services/networkManagement2/lib/models/applicationGatewayIPConfiguration.js index 88be00c2b0..6e170ed225 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayIPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayIPConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,31 +13,26 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayIPConfiguration class. - * @constructor * IP configuration of an application gateway. Currently 1 public and 1 private * IP configuration is allowed. * - * @member {object} [subnet] Reference of the subnet resource. A subnet from - * where application gateway gets its private address. - * - * @member {string} [subnet.id] Resource ID. - * - * @member {string} [provisioningState] Provisioning state of the application - * gateway subnet resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayIPConfiguration extends models['SubResource'] { + /** + * Create a ApplicationGatewayIPConfiguration. + * @member {object} [subnet] Reference of the subnet resource. A subnet from + * where application gateway gets its private address. + * @member {string} [subnet.id] Resource ID. + * @member {string} [provisioningState] Provisioning state of the application + * gateway subnet resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayListResult.js b/lib/services/networkManagement2/lib/models/applicationGatewayListResult.js index 1d945d6479..faba3912d9 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayListResult.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewayListResult class. - * @constructor * Response for ListApplicationGateways API service call. - * - * @member {string} [nextLink] URL to get the next set of results. - * */ class ApplicationGatewayListResult extends Array { + /** + * Create a ApplicationGatewayListResult. + * @member {string} [nextLink] URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayPathRule.js b/lib/services/networkManagement2/lib/models/applicationGatewayPathRule.js index ecfc6ec10d..7f52241d11 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayPathRule.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayPathRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,41 +13,31 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayPathRule class. - * @constructor * Path rule of URL path map of an application gateway. * - * @member {array} [paths] Path rules of URL path map. - * - * @member {object} [backendAddressPool] Backend address pool resource of URL - * path map path rule. - * - * @member {string} [backendAddressPool.id] Resource ID. - * - * @member {object} [backendHttpSettings] Backend http settings resource of URL - * path map path rule. - * - * @member {string} [backendHttpSettings.id] Resource ID. - * - * @member {object} [redirectConfiguration] Redirect configuration resource of - * URL path map path rule. - * - * @member {string} [redirectConfiguration.id] Resource ID. - * - * @member {string} [provisioningState] Path rule of URL path map resource. - * Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayPathRule extends models['SubResource'] { + /** + * Create a ApplicationGatewayPathRule. + * @member {array} [paths] Path rules of URL path map. + * @member {object} [backendAddressPool] Backend address pool resource of URL + * path map path rule. + * @member {string} [backendAddressPool.id] Resource ID. + * @member {object} [backendHttpSettings] Backend http settings resource of + * URL path map path rule. + * @member {string} [backendHttpSettings.id] Resource ID. + * @member {object} [redirectConfiguration] Redirect configuration resource + * of URL path map path rule. + * @member {string} [redirectConfiguration.id] Resource ID. + * @member {string} [provisioningState] Path rule of URL path map resource. + * Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayProbe.js b/lib/services/networkManagement2/lib/models/applicationGatewayProbe.js index 331ab8cbf1..78e535c3b8 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayProbe.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayProbe.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,60 +13,47 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayProbe class. - * @constructor * Probe of the application gateway. * - * @member {string} [protocol] Protocol. Possible values include: 'Http', - * 'Https' - * - * @member {string} [host] Host name to send the probe to. - * - * @member {string} [path] Relative path of probe. Valid path starts from '/'. - * Probe is sent to ://: - * - * @member {number} [interval] The probing interval in seconds. This is the - * time interval between two consecutive probes. Acceptable values are from 1 - * second to 86400 seconds. - * - * @member {number} [timeout] the probe timeout in seconds. Probe marked as - * failed if valid response is not received with this timeout period. - * Acceptable values are from 1 second to 86400 seconds. - * - * @member {number} [unhealthyThreshold] The probe retry count. Backend server - * is marked down after consecutive probe failure count reaches - * UnhealthyThreshold. Acceptable values are from 1 second to 20. - * - * @member {boolean} [pickHostNameFromBackendHttpSettings] Whether the host - * header should be picked from the backend http settings. Default value is - * false. - * - * @member {number} [minServers] Minimum number of servers that are always - * marked healthy. Default value is 0. - * - * @member {object} [match] Criterion for classifying a healthy probe response. - * - * @member {string} [match.body] Body that must be contained in the health - * response. Default value is empty. - * - * @member {array} [match.statusCodes] Allowed ranges of healthy status codes. - * Default range of healthy status codes is 200-399. - * - * @member {string} [provisioningState] Provisioning state of the backend http - * settings resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayProbe extends models['SubResource'] { + /** + * Create a ApplicationGatewayProbe. + * @member {string} [protocol] Protocol. Possible values include: 'Http', + * 'Https' + * @member {string} [host] Host name to send the probe to. + * @member {string} [path] Relative path of probe. Valid path starts from + * '/'. Probe is sent to ://: + * @member {number} [interval] The probing interval in seconds. This is the + * time interval between two consecutive probes. Acceptable values are from 1 + * second to 86400 seconds. + * @member {number} [timeout] the probe timeout in seconds. Probe marked as + * failed if valid response is not received with this timeout period. + * Acceptable values are from 1 second to 86400 seconds. + * @member {number} [unhealthyThreshold] The probe retry count. Backend + * server is marked down after consecutive probe failure count reaches + * UnhealthyThreshold. Acceptable values are from 1 second to 20. + * @member {boolean} [pickHostNameFromBackendHttpSettings] Whether the host + * header should be picked from the backend http settings. Default value is + * false. + * @member {number} [minServers] Minimum number of servers that are always + * marked healthy. Default value is 0. + * @member {object} [match] Criterion for classifying a healthy probe + * response. + * @member {string} [match.body] Body that must be contained in the health + * response. Default value is empty. + * @member {array} [match.statusCodes] Allowed ranges of healthy status + * codes. Default range of healthy status codes is 200-399. + * @member {string} [provisioningState] Provisioning state of the backend + * http settings resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayProbeHealthResponseMatch.js b/lib/services/networkManagement2/lib/models/applicationGatewayProbeHealthResponseMatch.js index 48673084cb..75068ec857 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayProbeHealthResponseMatch.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayProbeHealthResponseMatch.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,19 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewayProbeHealthResponseMatch class. - * @constructor * Application gateway probe health response match * - * @member {string} [body] Body that must be contained in the health response. - * Default value is empty. - * - * @member {array} [statusCodes] Allowed ranges of healthy status codes. - * Default range of healthy status codes is 200-399. - * */ class ApplicationGatewayProbeHealthResponseMatch { + /** + * Create a ApplicationGatewayProbeHealthResponseMatch. + * @member {string} [body] Body that must be contained in the health + * response. Default value is empty. + * @member {array} [statusCodes] Allowed ranges of healthy status codes. + * Default range of healthy status codes is 200-399. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayRedirectConfiguration.js b/lib/services/networkManagement2/lib/models/applicationGatewayRedirectConfiguration.js index 804487f2e5..9e1947b563 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayRedirectConfiguration.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayRedirectConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,45 +13,34 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayRedirectConfiguration class. - * @constructor * Redirect configuration of an application gateway. * - * @member {string} [redirectType] Supported http redirection types - - * Permanent, Temporary, Found, SeeOther. Possible values include: 'Permanent', - * 'Found', 'SeeOther', 'Temporary' - * - * @member {object} [targetListener] Reference to a listener to redirect the - * request to. - * - * @member {string} [targetListener.id] Resource ID. - * - * @member {string} [targetUrl] Url to redirect the request to. - * - * @member {boolean} [includePath] Include path in the redirected url. - * - * @member {boolean} [includeQueryString] Include query string in the - * redirected url. - * - * @member {array} [requestRoutingRules] Request routing specifying redirect - * configuration. - * - * @member {array} [urlPathMaps] Url path maps specifying default redirect - * configuration. - * - * @member {array} [pathRules] Path rules specifying redirect configuration. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayRedirectConfiguration extends models['SubResource'] { + /** + * Create a ApplicationGatewayRedirectConfiguration. + * @member {string} [redirectType] Supported http redirection types - + * Permanent, Temporary, Found, SeeOther. Possible values include: + * 'Permanent', 'Found', 'SeeOther', 'Temporary' + * @member {object} [targetListener] Reference to a listener to redirect the + * request to. + * @member {string} [targetListener.id] Resource ID. + * @member {string} [targetUrl] Url to redirect the request to. + * @member {boolean} [includePath] Include path in the redirected url. + * @member {boolean} [includeQueryString] Include query string in the + * redirected url. + * @member {array} [requestRoutingRules] Request routing specifying redirect + * configuration. + * @member {array} [urlPathMaps] Url path maps specifying default redirect + * configuration. + * @member {array} [pathRules] Path rules specifying redirect configuration. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayRequestRoutingRule.js b/lib/services/networkManagement2/lib/models/applicationGatewayRequestRoutingRule.js index cdcd64a37e..22878d6912 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayRequestRoutingRule.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayRequestRoutingRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,53 +13,39 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayRequestRoutingRule class. - * @constructor * Request routing rule of an application gateway. * - * @member {string} [ruleType] Rule type. Possible values include: 'Basic', - * 'PathBasedRouting' - * - * @member {object} [backendAddressPool] Backend address pool resource of the - * application gateway. - * - * @member {string} [backendAddressPool.id] Resource ID. - * - * @member {object} [backendHttpSettings] Frontend port resource of the - * application gateway. - * - * @member {string} [backendHttpSettings.id] Resource ID. - * - * @member {object} [httpListener] Http listener resource of the application - * gateway. - * - * @member {string} [httpListener.id] Resource ID. - * - * @member {object} [urlPathMap] URL path map resource of the application - * gateway. - * - * @member {string} [urlPathMap.id] Resource ID. - * - * @member {object} [redirectConfiguration] Redirect configuration resource of - * the application gateway. - * - * @member {string} [redirectConfiguration.id] Resource ID. - * - * @member {string} [provisioningState] Provisioning state of the request - * routing rule resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayRequestRoutingRule extends models['SubResource'] { + /** + * Create a ApplicationGatewayRequestRoutingRule. + * @member {string} [ruleType] Rule type. Possible values include: 'Basic', + * 'PathBasedRouting' + * @member {object} [backendAddressPool] Backend address pool resource of the + * application gateway. + * @member {string} [backendAddressPool.id] Resource ID. + * @member {object} [backendHttpSettings] Frontend port resource of the + * application gateway. + * @member {string} [backendHttpSettings.id] Resource ID. + * @member {object} [httpListener] Http listener resource of the application + * gateway. + * @member {string} [httpListener.id] Resource ID. + * @member {object} [urlPathMap] URL path map resource of the application + * gateway. + * @member {string} [urlPathMap.id] Resource ID. + * @member {object} [redirectConfiguration] Redirect configuration resource + * of the application gateway. + * @member {string} [redirectConfiguration.id] Resource ID. + * @member {string} [provisioningState] Provisioning state of the request + * routing rule resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewaySku.js b/lib/services/networkManagement2/lib/models/applicationGatewaySku.js index f8c0c4d698..2bf5af52f6 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewaySku.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewaySku.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,23 +11,20 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewaySku class. - * @constructor * SKU of an application gateway * - * @member {string} [name] Name of an application gateway SKU. Possible values - * include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', - * 'WAF_Medium', 'WAF_Large' - * - * @member {string} [tier] Tier of an application gateway. Possible values - * include: 'Standard', 'WAF' - * - * @member {number} [capacity] Capacity (instance count) of an application - * gateway. - * */ class ApplicationGatewaySku { + /** + * Create a ApplicationGatewaySku. + * @member {string} [name] Name of an application gateway SKU. Possible + * values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', + * 'WAF_Medium', 'WAF_Large' + * @member {string} [tier] Tier of an application gateway. Possible values + * include: 'Standard', 'WAF' + * @member {number} [capacity] Capacity (instance count) of an application + * gateway. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewaySslCertificate.js b/lib/services/networkManagement2/lib/models/applicationGatewaySslCertificate.js index 4f7d7346b6..0c13a53284 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewaySslCertificate.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewaySslCertificate.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,34 +13,28 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewaySslCertificate class. - * @constructor * SSL certificates of an application gateway. * - * @member {string} [data] Base-64 encoded pfx certificate. Only applicable in - * PUT Request. - * - * @member {string} [password] Password for the pfx file specified in data. - * Only applicable in PUT request. - * - * @member {string} [publicCertData] Base-64 encoded Public cert data - * corresponding to pfx specified in data. Only applicable in GET request. - * - * @member {string} [provisioningState] Provisioning state of the SSL - * certificate resource Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewaySslCertificate extends models['SubResource'] { + /** + * Create a ApplicationGatewaySslCertificate. + * @member {string} [data] Base-64 encoded pfx certificate. Only applicable + * in PUT Request. + * @member {string} [password] Password for the pfx file specified in data. + * Only applicable in PUT request. + * @member {string} [publicCertData] Base-64 encoded Public cert data + * corresponding to pfx specified in data. Only applicable in GET request. + * @member {string} [provisioningState] Provisioning state of the SSL + * certificate resource Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewaySslPolicy.js b/lib/services/networkManagement2/lib/models/applicationGatewaySslPolicy.js index 0e154cde02..1d1e7bdd49 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewaySslPolicy.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewaySslPolicy.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,30 +11,25 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ApplicationGatewaySslPolicy class. - * @constructor * Application Gateway Ssl policy. * - * @member {array} [disabledSslProtocols] Ssl protocols to be disabled on - * application gateway. - * - * @member {string} [policyType] Type of Ssl Policy. Possible values include: - * 'Predefined', 'Custom' - * - * @member {string} [policyName] Name of Ssl predefined policy. Possible values - * include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', - * 'AppGwSslPolicy20170401S' - * - * @member {array} [cipherSuites] Ssl cipher suites to be enabled in the - * specified order to application gateway. - * - * @member {string} [minProtocolVersion] Minimum version of Ssl protocol to be - * supported on application gateway. Possible values include: 'TLSv1_0', - * 'TLSv1_1', 'TLSv1_2' - * */ class ApplicationGatewaySslPolicy { + /** + * Create a ApplicationGatewaySslPolicy. + * @member {array} [disabledSslProtocols] Ssl protocols to be disabled on + * application gateway. + * @member {string} [policyType] Type of Ssl Policy. Possible values include: + * 'Predefined', 'Custom' + * @member {string} [policyName] Name of Ssl predefined policy. Possible + * values include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + * 'AppGwSslPolicy20170401S' + * @member {array} [cipherSuites] Ssl cipher suites to be enabled in the + * specified order to application gateway. + * @member {string} [minProtocolVersion] Minimum version of Ssl protocol to + * be supported on application gateway. Possible values include: 'TLSv1_0', + * 'TLSv1_1', 'TLSv1_2' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewaySslPredefinedPolicy.js b/lib/services/networkManagement2/lib/models/applicationGatewaySslPredefinedPolicy.js index 75ef8d54f8..8c522f4c52 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewaySslPredefinedPolicy.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewaySslPredefinedPolicy.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,22 +13,20 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewaySslPredefinedPolicy class. - * @constructor * An Ssl predefined policy * - * @member {string} [name] Name of Ssl predefined policy. - * - * @member {array} [cipherSuites] Ssl cipher suites to be enabled in the - * specified order for application gateway. - * - * @member {string} [minProtocolVersion] Minimum version of Ssl protocol to be - * supported on application gateway. Possible values include: 'TLSv1_0', - * 'TLSv1_1', 'TLSv1_2' - * + * @extends models['SubResource'] */ class ApplicationGatewaySslPredefinedPolicy extends models['SubResource'] { + /** + * Create a ApplicationGatewaySslPredefinedPolicy. + * @member {string} [name] Name of Ssl predefined policy. + * @member {array} [cipherSuites] Ssl cipher suites to be enabled in the + * specified order for application gateway. + * @member {string} [minProtocolVersion] Minimum version of Ssl protocol to + * be supported on application gateway. Possible values include: 'TLSv1_0', + * 'TLSv1_1', 'TLSv1_2' + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayUrlPathMap.js b/lib/services/networkManagement2/lib/models/applicationGatewayUrlPathMap.js index 2636ea9753..c49cf43292 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayUrlPathMap.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayUrlPathMap.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,43 +13,33 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayUrlPathMap class. - * @constructor * UrlPathMaps give a url path to the backend mapping information for * PathBasedRouting. * - * @member {object} [defaultBackendAddressPool] Default backend address pool - * resource of URL path map. - * - * @member {string} [defaultBackendAddressPool.id] Resource ID. - * - * @member {object} [defaultBackendHttpSettings] Default backend http settings - * resource of URL path map. - * - * @member {string} [defaultBackendHttpSettings.id] Resource ID. - * - * @member {object} [defaultRedirectConfiguration] Default redirect - * configuration resource of URL path map. - * - * @member {string} [defaultRedirectConfiguration.id] Resource ID. - * - * @member {array} [pathRules] Path rule of URL path map resource. - * - * @member {string} [provisioningState] Provisioning state of the backend http - * settings resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Type of the resource. - * + * @extends models['SubResource'] */ class ApplicationGatewayUrlPathMap extends models['SubResource'] { + /** + * Create a ApplicationGatewayUrlPathMap. + * @member {object} [defaultBackendAddressPool] Default backend address pool + * resource of URL path map. + * @member {string} [defaultBackendAddressPool.id] Resource ID. + * @member {object} [defaultBackendHttpSettings] Default backend http + * settings resource of URL path map. + * @member {string} [defaultBackendHttpSettings.id] Resource ID. + * @member {object} [defaultRedirectConfiguration] Default redirect + * configuration resource of URL path map. + * @member {string} [defaultRedirectConfiguration.id] Resource ID. + * @member {array} [pathRules] Path rule of URL path map resource. + * @member {string} [provisioningState] Provisioning state of the backend + * http settings resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Type of the resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js b/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js index be8010229b..e5975e174d 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,26 +13,21 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ApplicationGatewayWebApplicationFirewallConfiguration class. - * @constructor * Application gateway web application firewall configuration. * - * @member {boolean} enabled Whether the web application firewall is enabled or - * not. - * - * @member {string} firewallMode Web application firewall mode. Possible values - * include: 'Detection', 'Prevention' - * - * @member {string} ruleSetType The type of the web application firewall rule - * set. Possible values are: 'OWASP'. - * - * @member {string} ruleSetVersion The version of the rule set type. - * - * @member {array} [disabledRuleGroups] The disabled rule groups. - * */ class ApplicationGatewayWebApplicationFirewallConfiguration { + /** + * Create a ApplicationGatewayWebApplicationFirewallConfiguration. + * @member {boolean} enabled Whether the web application firewall is enabled + * or not. + * @member {string} firewallMode Web application firewall mode. Possible + * values include: 'Detection', 'Prevention' + * @member {string} ruleSetType The type of the web application firewall rule + * set. Possible values are: 'OWASP'. + * @member {string} ruleSetVersion The version of the rule set type. + * @member {array} [disabledRuleGroups] The disabled rule groups. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/authorizationListResult.js b/lib/services/networkManagement2/lib/models/authorizationListResult.js index 1b624ba753..187e7c18d8 100644 --- a/lib/services/networkManagement2/lib/models/authorizationListResult.js +++ b/lib/services/networkManagement2/lib/models/authorizationListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the AuthorizationListResult class. - * @constructor * Response for ListAuthorizations API service call retrieves all * authorizations that belongs to an ExpressRouteCircuit. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class AuthorizationListResult extends Array { + /** + * Create a AuthorizationListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/azureAsyncOperationResult.js b/lib/services/networkManagement2/lib/models/azureAsyncOperationResult.js index 455392da71..1552f7dda1 100644 --- a/lib/services/networkManagement2/lib/models/azureAsyncOperationResult.js +++ b/lib/services/networkManagement2/lib/models/azureAsyncOperationResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,9 +13,6 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AzureAsyncOperationResult class. - * @constructor * The response body contains the status of the specified asynchronous * operation, indicating whether it has succeeded, is in progress, or has * failed. Note that this status is distinct from the HTTP status code returned @@ -25,24 +22,20 @@ const models = require('./index'); * includes the HTTP status code for the failed request and error information * regarding the failure. * - * @member {string} [status] Status of the Azure async operation. Possible - * values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values - * include: 'InProgress', 'Succeeded', 'Failed' - * - * @member {object} [error] - * - * @member {string} [error.code] - * - * @member {string} [error.message] - * - * @member {string} [error.target] - * - * @member {array} [error.details] - * - * @member {string} [error.innerError] - * */ class AzureAsyncOperationResult { + /** + * Create a AzureAsyncOperationResult. + * @member {string} [status] Status of the Azure async operation. Possible + * values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values + * include: 'InProgress', 'Succeeded', 'Failed' + * @member {object} [error] + * @member {string} [error.code] + * @member {string} [error.message] + * @member {string} [error.target] + * @member {array} [error.details] + * @member {string} [error.innerError] + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/bGPCommunity.js b/lib/services/networkManagement2/lib/models/bGPCommunity.js index 1f125bf2e7..aba7366bf6 100644 --- a/lib/services/networkManagement2/lib/models/bGPCommunity.js +++ b/lib/services/networkManagement2/lib/models/bGPCommunity.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,31 +11,26 @@ 'use strict'; /** - * @class - * Initializes a new instance of the BGPCommunity class. - * @constructor * Contains bgp community information offered in Service Community resources. * - * @member {string} [serviceSupportedRegion] The region which the service - * support. e.g. For O365, region is Global. - * - * @member {string} [communityName] The name of the bgp community. e.g. Skype. - * - * @member {string} [communityValue] The value of the bgp community. For more - * information: - * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. - * - * @member {array} [communityPrefixes] The prefixes that the bgp community - * contains. - * - * @member {boolean} [isAuthorizedToUse] Customer is authorized to use bgp - * community or not. - * - * @member {string} [serviceGroup] The service group of the bgp community - * contains. - * */ class BGPCommunity { + /** + * Create a BGPCommunity. + * @member {string} [serviceSupportedRegion] The region which the service + * support. e.g. For O365, region is Global. + * @member {string} [communityName] The name of the bgp community. e.g. + * Skype. + * @member {string} [communityValue] The value of the bgp community. For more + * information: + * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. + * @member {array} [communityPrefixes] The prefixes that the bgp community + * contains. + * @member {boolean} [isAuthorizedToUse] Customer is authorized to use bgp + * community or not. + * @member {string} [serviceGroup] The service group of the bgp community + * contains. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/backendAddressPool.js b/lib/services/networkManagement2/lib/models/backendAddressPool.js index 2a8bce2c11..5311a4e163 100644 --- a/lib/services/networkManagement2/lib/models/backendAddressPool.js +++ b/lib/services/networkManagement2/lib/models/backendAddressPool.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,33 +13,27 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the BackendAddressPool class. - * @constructor * Pool of backend IP addresses. * - * @member {array} [backendIPConfigurations] Gets collection of references to - * IP addresses defined in network interfaces. - * - * @member {array} [loadBalancingRules] Gets load balancing rules that use this - * backend address pool. - * - * @member {object} [outboundNatRule] Gets outbound rules that use this backend - * address pool. - * - * @member {string} [outboundNatRule.id] Resource ID. - * - * @member {string} [provisioningState] Get provisioning state of the public IP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class BackendAddressPool extends models['SubResource'] { + /** + * Create a BackendAddressPool. + * @member {array} [backendIPConfigurations] Gets collection of references to + * IP addresses defined in network interfaces. + * @member {array} [loadBalancingRules] Gets load balancing rules that use + * this backend address pool. + * @member {object} [outboundNatRule] Gets outbound rules that use this + * backend address pool. + * @member {string} [outboundNatRule.id] Resource ID. + * @member {string} [provisioningState] Get provisioning state of the public + * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [name] Gets name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/bgpPeerStatus.js b/lib/services/networkManagement2/lib/models/bgpPeerStatus.js index 8d1340ef8c..1bd7bbb91b 100644 --- a/lib/services/networkManagement2/lib/models/bgpPeerStatus.js +++ b/lib/services/networkManagement2/lib/models/bgpPeerStatus.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,31 +11,24 @@ 'use strict'; /** - * @class - * Initializes a new instance of the BgpPeerStatus class. - * @constructor * BGP peer status details * - * @member {string} [localAddress] The virtual network gateway's local address - * - * @member {string} [neighbor] The remote BGP peer - * - * @member {number} [asn] The autonomous system number of the remote BGP peer - * - * @member {string} [state] The BGP peer state. Possible values include: - * 'Unknown', 'Stopped', 'Idle', 'Connecting', 'Connected' - * - * @member {string} [connectedDuration] For how long the peering has been up - * - * @member {number} [routesReceived] The number of routes learned from this - * peer - * - * @member {number} [messagesSent] The number of BGP messages sent - * - * @member {number} [messagesReceived] The number of BGP messages received - * */ class BgpPeerStatus { + /** + * Create a BgpPeerStatus. + * @member {string} [localAddress] The virtual network gateway's local + * address + * @member {string} [neighbor] The remote BGP peer + * @member {number} [asn] The autonomous system number of the remote BGP peer + * @member {string} [state] The BGP peer state. Possible values include: + * 'Unknown', 'Stopped', 'Idle', 'Connecting', 'Connected' + * @member {string} [connectedDuration] For how long the peering has been up + * @member {number} [routesReceived] The number of routes learned from this + * peer + * @member {number} [messagesSent] The number of BGP messages sent + * @member {number} [messagesReceived] The number of BGP messages received + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/bgpPeerStatusListResult.js b/lib/services/networkManagement2/lib/models/bgpPeerStatusListResult.js index 86c6d14a6d..ef14531f3f 100644 --- a/lib/services/networkManagement2/lib/models/bgpPeerStatusListResult.js +++ b/lib/services/networkManagement2/lib/models/bgpPeerStatusListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,15 +13,14 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the BgpPeerStatusListResult class. - * @constructor * Response for list BGP peer status API service call * - * @member {array} [value] List of BGP peers - * */ class BgpPeerStatusListResult { + /** + * Create a BgpPeerStatusListResult. + * @member {array} [value] List of BGP peers + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/bgpServiceCommunity.js b/lib/services/networkManagement2/lib/models/bgpServiceCommunity.js index 31ea917e5c..4a174fe080 100644 --- a/lib/services/networkManagement2/lib/models/bgpServiceCommunity.js +++ b/lib/services/networkManagement2/lib/models/bgpServiceCommunity.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,17 +13,16 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the BgpServiceCommunity class. - * @constructor * Service Community Properties. * - * @member {string} [serviceName] The name of the bgp community. e.g. Skype. - * - * @member {array} [bgpCommunities] Get a list of bgp communities. - * + * @extends models['Resource'] */ class BgpServiceCommunity extends models['Resource'] { + /** + * Create a BgpServiceCommunity. + * @member {string} [serviceName] The name of the bgp community. e.g. Skype. + * @member {array} [bgpCommunities] Get a list of bgp communities. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/bgpServiceCommunityListResult.js b/lib/services/networkManagement2/lib/models/bgpServiceCommunityListResult.js index 9d276d4515..7db298d442 100644 --- a/lib/services/networkManagement2/lib/models/bgpServiceCommunityListResult.js +++ b/lib/services/networkManagement2/lib/models/bgpServiceCommunityListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the BgpServiceCommunityListResult class. - * @constructor * Response for the ListServiceCommunity API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class BgpServiceCommunityListResult extends Array { + /** + * Create a BgpServiceCommunityListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/bgpSettings.js b/lib/services/networkManagement2/lib/models/bgpSettings.js index 298e9dc8fd..dca7b0f07c 100644 --- a/lib/services/networkManagement2/lib/models/bgpSettings.js +++ b/lib/services/networkManagement2/lib/models/bgpSettings.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,21 +11,18 @@ 'use strict'; /** - * @class - * Initializes a new instance of the BgpSettings class. - * @constructor * BGP settings details * - * @member {number} [asn] The BGP speaker's ASN. - * - * @member {string} [bgpPeeringAddress] The BGP peering address and BGP - * identifier of this BGP speaker. - * - * @member {number} [peerWeight] The weight added to routes learned from this - * BGP speaker. - * */ class BgpSettings { + /** + * Create a BgpSettings. + * @member {number} [asn] The BGP speaker's ASN. + * @member {string} [bgpPeeringAddress] The BGP peering address and BGP + * identifier of this BGP speaker. + * @member {number} [peerWeight] The weight added to routes learned from this + * BGP speaker. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/connectionResetSharedKey.js b/lib/services/networkManagement2/lib/models/connectionResetSharedKey.js index 2f522af62b..1e6a955c42 100644 --- a/lib/services/networkManagement2/lib/models/connectionResetSharedKey.js +++ b/lib/services/networkManagement2/lib/models/connectionResetSharedKey.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ConnectionResetSharedKey class. - * @constructor * The virtual network connection reset shared key * - * @member {number} keyLength The virtual network connection reset shared key - * length, should between 1 and 128. - * */ class ConnectionResetSharedKey { + /** + * Create a ConnectionResetSharedKey. + * @member {number} keyLength The virtual network connection reset shared key + * length, should between 1 and 128. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/connectionSharedKey.js b/lib/services/networkManagement2/lib/models/connectionSharedKey.js index e633f6208c..a74b9eeeca 100644 --- a/lib/services/networkManagement2/lib/models/connectionSharedKey.js +++ b/lib/services/networkManagement2/lib/models/connectionSharedKey.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ConnectionSharedKey class. - * @constructor * Response for GetConnectionSharedKey API service call * - * @member {string} value The virtual network connection shared key value. - * */ class ConnectionSharedKey { + /** + * Create a ConnectionSharedKey. + * @member {string} value The virtual network connection shared key value. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/connectivityDestination.js b/lib/services/networkManagement2/lib/models/connectivityDestination.js index 5074cb43ac..e5fa257881 100644 --- a/lib/services/networkManagement2/lib/models/connectivityDestination.js +++ b/lib/services/networkManagement2/lib/models/connectivityDestination.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,21 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ConnectivityDestination class. - * @constructor * Parameters that define destination of connection. * - * @member {string} [resourceId] The ID of the resource to which a connection - * attempt will be made. - * - * @member {string} [address] The IP address or URI the resource to which a - * connection attempt will be made. - * - * @member {number} [port] Port on which check connectivity will be performed. - * */ class ConnectivityDestination { + /** + * Create a ConnectivityDestination. + * @member {string} [resourceId] The ID of the resource to which a connection + * attempt will be made. + * @member {string} [address] The IP address or URI the resource to which a + * connection attempt will be made. + * @member {number} [port] Port on which check connectivity will be + * performed. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/connectivityHop.js b/lib/services/networkManagement2/lib/models/connectivityHop.js index 5f007641d5..dd478e4963 100644 --- a/lib/services/networkManagement2/lib/models/connectivityHop.js +++ b/lib/services/networkManagement2/lib/models/connectivityHop.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,26 +13,20 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ConnectivityHop class. - * @constructor * Information about a hop between the source and the destination. * - * @member {string} [type] The type of the hop. - * - * @member {string} [id] The ID of the hop. - * - * @member {string} [address] The IP address of the hop. - * - * @member {string} [resourceId] The ID of the resource corresponding to this - * hop. - * - * @member {array} [nextHopIds] List of next hop identifiers. - * - * @member {array} [issues] List of issues. - * */ class ConnectivityHop { + /** + * Create a ConnectivityHop. + * @member {string} [type] The type of the hop. + * @member {string} [id] The ID of the hop. + * @member {string} [address] The IP address of the hop. + * @member {string} [resourceId] The ID of the resource corresponding to this + * hop. + * @member {array} [nextHopIds] List of next hop identifiers. + * @member {array} [issues] List of issues. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/connectivityInformation.js b/lib/services/networkManagement2/lib/models/connectivityInformation.js index 14c1cfffa4..4f238a8b0d 100644 --- a/lib/services/networkManagement2/lib/models/connectivityInformation.js +++ b/lib/services/networkManagement2/lib/models/connectivityInformation.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,28 +13,22 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ConnectivityInformation class. - * @constructor * Information on the connectivity status. * - * @member {array} [hops] List of hops between the source and the destination. - * - * @member {string} [connectionStatus] The connection status. Possible values - * include: 'Unknown', 'Connected', 'Disconnected', 'Degraded' - * - * @member {number} [avgLatencyInMs] Average latency in milliseconds. - * - * @member {number} [minLatencyInMs] Minimum latency in milliseconds. - * - * @member {number} [maxLatencyInMs] Maximum latency in milliseconds. - * - * @member {number} [probesSent] Total number of probes sent. - * - * @member {number} [probesFailed] Number of failed probes. - * */ class ConnectivityInformation { + /** + * Create a ConnectivityInformation. + * @member {array} [hops] List of hops between the source and the + * destination. + * @member {string} [connectionStatus] The connection status. Possible values + * include: 'Unknown', 'Connected', 'Disconnected', 'Degraded' + * @member {number} [avgLatencyInMs] Average latency in milliseconds. + * @member {number} [minLatencyInMs] Minimum latency in milliseconds. + * @member {number} [maxLatencyInMs] Maximum latency in milliseconds. + * @member {number} [probesSent] Total number of probes sent. + * @member {number} [probesFailed] Number of failed probes. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/connectivityIssue.js b/lib/services/networkManagement2/lib/models/connectivityIssue.js index 92447f8aea..573c4f2c17 100644 --- a/lib/services/networkManagement2/lib/models/connectivityIssue.js +++ b/lib/services/networkManagement2/lib/models/connectivityIssue.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,26 +11,22 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ConnectivityIssue class. - * @constructor * Information about an issue encountered in the process of checking for * connectivity. * - * @member {string} [origin] The origin of the issue. Possible values include: - * 'Local', 'Inbound', 'Outbound' - * - * @member {string} [severity] The severity of the issue. Possible values - * include: 'Error', 'Warning' - * - * @member {string} [type] The type of issue. Possible values include: - * 'Unknown', 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', - * 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' - * - * @member {array} [context] Provides additional context on the issue. - * */ class ConnectivityIssue { + /** + * Create a ConnectivityIssue. + * @member {string} [origin] The origin of the issue. Possible values + * include: 'Local', 'Inbound', 'Outbound' + * @member {string} [severity] The severity of the issue. Possible values + * include: 'Error', 'Warning' + * @member {string} [type] The type of issue. Possible values include: + * 'Unknown', 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', + * 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' + * @member {array} [context] Provides additional context on the issue. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/connectivityParameters.js b/lib/services/networkManagement2/lib/models/connectivityParameters.js index 9c1f1535a8..28edbba72a 100644 --- a/lib/services/networkManagement2/lib/models/connectivityParameters.js +++ b/lib/services/networkManagement2/lib/models/connectivityParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,32 +13,25 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ConnectivityParameters class. - * @constructor * Parameters that determine how the connectivity check will be performed. * - * @member {object} source - * - * @member {string} [source.resourceId] The ID of the resource from which a - * connectivity check will be initiated. - * - * @member {number} [source.port] The source port from which a connectivity - * check will be performed. - * - * @member {object} destination - * - * @member {string} [destination.resourceId] The ID of the resource to which a - * connection attempt will be made. - * - * @member {string} [destination.address] The IP address or URI the resource to - * which a connection attempt will be made. - * - * @member {number} [destination.port] Port on which check connectivity will be - * performed. - * */ class ConnectivityParameters { + /** + * Create a ConnectivityParameters. + * @member {object} source + * @member {string} [source.resourceId] The ID of the resource from which a + * connectivity check will be initiated. + * @member {number} [source.port] The source port from which a connectivity + * check will be performed. + * @member {object} destination + * @member {string} [destination.resourceId] The ID of the resource to which + * a connection attempt will be made. + * @member {string} [destination.address] The IP address or URI the resource + * to which a connection attempt will be made. + * @member {number} [destination.port] Port on which check connectivity will + * be performed. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/connectivitySource.js b/lib/services/networkManagement2/lib/models/connectivitySource.js index e791247ae6..a27b2ab62e 100644 --- a/lib/services/networkManagement2/lib/models/connectivitySource.js +++ b/lib/services/networkManagement2/lib/models/connectivitySource.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,19 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ConnectivitySource class. - * @constructor * Parameters that define the source of the connection. * - * @member {string} resourceId The ID of the resource from which a connectivity - * check will be initiated. - * - * @member {number} [port] The source port from which a connectivity check will - * be performed. - * */ class ConnectivitySource { + /** + * Create a ConnectivitySource. + * @member {string} resourceId The ID of the resource from which a + * connectivity check will be initiated. + * @member {number} [port] The source port from which a connectivity check + * will be performed. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/dhcpOptions.js b/lib/services/networkManagement2/lib/models/dhcpOptions.js index 717973ca58..a610247325 100644 --- a/lib/services/networkManagement2/lib/models/dhcpOptions.js +++ b/lib/services/networkManagement2/lib/models/dhcpOptions.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,17 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DhcpOptions class. - * @constructor * DhcpOptions contains an array of DNS servers available to VMs deployed in * the virtual network. Standard DHCP option for a subnet overrides VNET DHCP * options. * - * @member {array} [dnsServers] The list of DNS servers IP addresses. - * */ class DhcpOptions { + /** + * Create a DhcpOptions. + * @member {array} [dnsServers] The list of DNS servers IP addresses. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/dnsNameAvailabilityResult.js b/lib/services/networkManagement2/lib/models/dnsNameAvailabilityResult.js index 9241c28c13..4e6553cf7c 100644 --- a/lib/services/networkManagement2/lib/models/dnsNameAvailabilityResult.js +++ b/lib/services/networkManagement2/lib/models/dnsNameAvailabilityResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DnsNameAvailabilityResult class. - * @constructor * Response for the CheckDnsNameAvailability API service call. * - * @member {boolean} [available] Domain availability (True/False). - * */ class DnsNameAvailabilityResult { + /** + * Create a DnsNameAvailabilityResult. + * @member {boolean} [available] Domain availability (True/False). + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroup.js b/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroup.js index 9cf292eba9..67708def1f 100644 --- a/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroup.js +++ b/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroup.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,32 +13,26 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the EffectiveNetworkSecurityGroup class. - * @constructor * Effective network security group. * - * @member {object} [networkSecurityGroup] The ID of network security group - * that is applied. - * - * @member {string} [networkSecurityGroup.id] Resource ID. - * - * @member {object} [association] - * - * @member {object} [association.subnet] The ID of the subnet if assigned. - * - * @member {string} [association.subnet.id] Resource ID. - * - * @member {object} [association.networkInterface] The ID of the network - * interface if assigned. - * - * @member {string} [association.networkInterface.id] Resource ID. - * - * @member {array} [effectiveSecurityRules] A collection of effective security - * rules. - * */ class EffectiveNetworkSecurityGroup { + /** + * Create a EffectiveNetworkSecurityGroup. + * @member {object} [networkSecurityGroup] The ID of network security group + * that is applied. + * @member {string} [networkSecurityGroup.id] Resource ID. + * @member {object} [association] Associated resources. + * @member {object} [association.subnet] The ID of the subnet if assigned. + * @member {string} [association.subnet.id] Resource ID. + * @member {object} [association.networkInterface] The ID of the network + * interface if assigned. + * @member {string} [association.networkInterface.id] Resource ID. + * @member {array} [effectiveSecurityRules] A collection of effective + * security rules. + * @member {object} [tagMap] Mapping of tags to list of IP Addresses included + * within the tag. + */ constructor() { } @@ -86,6 +80,27 @@ class EffectiveNetworkSecurityGroup { } } } + }, + tagMap: { + required: false, + serializedName: 'tagMap', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ArrayElementType', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } } } } diff --git a/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroupAssociation.js b/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroupAssociation.js index bb89d85a8c..cf0fce59e3 100644 --- a/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroupAssociation.js +++ b/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroupAssociation.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,22 +13,18 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the EffectiveNetworkSecurityGroupAssociation class. - * @constructor * The effective network security group association. * - * @member {object} [subnet] The ID of the subnet if assigned. - * - * @member {string} [subnet.id] Resource ID. - * - * @member {object} [networkInterface] The ID of the network interface if - * assigned. - * - * @member {string} [networkInterface.id] Resource ID. - * */ class EffectiveNetworkSecurityGroupAssociation { + /** + * Create a EffectiveNetworkSecurityGroupAssociation. + * @member {object} [subnet] The ID of the subnet if assigned. + * @member {string} [subnet.id] Resource ID. + * @member {object} [networkInterface] The ID of the network interface if + * assigned. + * @member {string} [networkInterface.id] Resource ID. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroupListResult.js b/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroupListResult.js index c0383bb0c6..08511ae7c1 100644 --- a/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroupListResult.js +++ b/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityGroupListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,17 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the EffectiveNetworkSecurityGroupListResult class. - * @constructor * Response for list effective network security groups API service call. * - * @member {array} [value] A list of effective network security groups. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class EffectiveNetworkSecurityGroupListResult { + /** + * Create a EffectiveNetworkSecurityGroupListResult. + * @member {array} [value] A list of effective network security groups. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { } @@ -58,6 +56,7 @@ class EffectiveNetworkSecurityGroupListResult { }, nextLink: { required: false, + readOnly: true, serializedName: 'nextLink', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityRule.js b/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityRule.js index cb01f48485..736aa984d6 100644 --- a/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityRule.js +++ b/lib/services/networkManagement2/lib/models/effectiveNetworkSecurityRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,43 +11,47 @@ 'use strict'; /** - * @class - * Initializes a new instance of the EffectiveNetworkSecurityRule class. - * @constructor * Effective network security rules. * - * @member {string} [name] The name of the security rule specified by the user - * (if created by the user). - * - * @member {string} [protocol] The network protocol this rule applies to. - * Possible values are: 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', - * 'Udp', '*' - * - * @member {string} [sourcePortRange] The source port or range. - * - * @member {string} [destinationPortRange] The destination port or range. - * - * @member {string} [sourceAddressPrefix] The source address prefix. - * - * @member {string} [destinationAddressPrefix] The destination address prefix. - * - * @member {array} [expandedSourceAddressPrefix] The expanded source address - * prefix. - * - * @member {array} [expandedDestinationAddressPrefix] Expanded destination - * address prefix. - * - * @member {string} [access] Whether network traffic is allowed or denied. - * Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', - * 'Deny' - * - * @member {number} [priority] The priority of the rule. - * - * @member {string} [direction] The direction of the rule. Possible values are: - * 'Inbound and Outbound'. Possible values include: 'Inbound', 'Outbound' - * */ class EffectiveNetworkSecurityRule { + /** + * Create a EffectiveNetworkSecurityRule. + * @member {string} [name] The name of the security rule specified by the + * user (if created by the user). + * @member {string} [protocol] The network protocol this rule applies to. + * Possible values are: 'Tcp', 'Udp', and 'All'. Possible values include: + * 'Tcp', 'Udp', 'All' + * @member {string} [sourcePortRange] The source port or range. + * @member {string} [destinationPortRange] The destination port or range. + * @member {array} [sourcePortRanges] The source port ranges. Expected values + * include a single integer between 0 and 65535, a range using '-' as + * seperator (e.g. 100-400), or an asterix (*) + * @member {array} [destinationPortRanges] The destination port ranges. + * Expected values include a single integer between 0 and 65535, a range + * using '-' as seperator (e.g. 100-400), or an asterix (*) + * @member {string} [sourceAddressPrefix] The source address prefix. + * @member {string} [destinationAddressPrefix] The destination address + * prefix. + * @member {array} [sourceAddressPrefixes] The source address prefixes. + * Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, + * AureLoadBalancer, Internet), System Tags, and the asterix (*). + * @member {array} [destinationAddressPrefixes] The destination address + * prefixes. Expected values include CIDR IP ranges, Default Tags + * (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix + * (*). + * @member {array} [expandedSourceAddressPrefix] The expanded source address + * prefix. + * @member {array} [expandedDestinationAddressPrefix] Expanded destination + * address prefix. + * @member {string} [access] Whether network traffic is allowed or denied. + * Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', + * 'Deny' + * @member {number} [priority] The priority of the rule. + * @member {string} [direction] The direction of the rule. Possible values + * are: 'Inbound and Outbound'. Possible values include: 'Inbound', + * 'Outbound' + */ constructor() { } @@ -93,6 +97,34 @@ class EffectiveNetworkSecurityRule { name: 'String' } }, + sourcePortRanges: { + required: false, + serializedName: 'sourcePortRanges', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + destinationPortRanges: { + required: false, + serializedName: 'destinationPortRanges', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, sourceAddressPrefix: { required: false, serializedName: 'sourceAddressPrefix', @@ -107,6 +139,34 @@ class EffectiveNetworkSecurityRule { name: 'String' } }, + sourceAddressPrefixes: { + required: false, + serializedName: 'sourceAddressPrefixes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + destinationAddressPrefixes: { + required: false, + serializedName: 'destinationAddressPrefixes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, expandedSourceAddressPrefix: { required: false, serializedName: 'expandedSourceAddressPrefix', diff --git a/lib/services/networkManagement2/lib/models/effectiveRoute.js b/lib/services/networkManagement2/lib/models/effectiveRoute.js index 48947a8e8d..88fde6a540 100644 --- a/lib/services/networkManagement2/lib/models/effectiveRoute.js +++ b/lib/services/networkManagement2/lib/models/effectiveRoute.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,34 +11,29 @@ 'use strict'; /** - * @class - * Initializes a new instance of the EffectiveRoute class. - * @constructor * Effective Route * - * @member {string} [name] The name of the user defined route. This is - * optional. - * - * @member {string} [source] Who created the route. Possible values are: - * 'Unknown', 'User', 'VirtualNetworkGateway', and 'Default'. Possible values - * include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' - * - * @member {string} [state] The value of effective route. Possible values are: - * 'Active' and 'Invalid'. Possible values include: 'Active', 'Invalid' - * - * @member {array} [addressPrefix] The address prefixes of the effective routes - * in CIDR notation. - * - * @member {array} [nextHopIpAddress] The IP address of the next hop of the - * effective route. - * - * @member {string} [nextHopType] The type of Azure hop the packet should be - * sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', - * 'Internet', 'VirtualAppliance', and 'None'. Possible values include: - * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' - * */ class EffectiveRoute { + /** + * Create a EffectiveRoute. + * @member {string} [name] The name of the user defined route. This is + * optional. + * @member {string} [source] Who created the route. Possible values are: + * 'Unknown', 'User', 'VirtualNetworkGateway', and 'Default'. Possible values + * include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' + * @member {string} [state] The value of effective route. Possible values + * are: 'Active' and 'Invalid'. Possible values include: 'Active', 'Invalid' + * @member {array} [addressPrefix] The address prefixes of the effective + * routes in CIDR notation. + * @member {array} [nextHopIpAddress] The IP address of the next hop of the + * effective route. + * @member {string} [nextHopType] The type of Azure hop the packet should be + * sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', + * 'Internet', 'VirtualAppliance', and 'None'. Possible values include: + * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + * 'None' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/effectiveRouteListResult.js b/lib/services/networkManagement2/lib/models/effectiveRouteListResult.js index 1e4b9ee419..a28ac9989d 100644 --- a/lib/services/networkManagement2/lib/models/effectiveRouteListResult.js +++ b/lib/services/networkManagement2/lib/models/effectiveRouteListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,17 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the EffectiveRouteListResult class. - * @constructor * Response for list effective route API service call. * - * @member {array} [value] A list of effective routes. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class EffectiveRouteListResult { + /** + * Create a EffectiveRouteListResult. + * @member {array} [value] A list of effective routes. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { } @@ -58,6 +56,7 @@ class EffectiveRouteListResult { }, nextLink: { required: false, + readOnly: true, serializedName: 'nextLink', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/privateAccessServiceResult.js b/lib/services/networkManagement2/lib/models/endpointServiceResult.js similarity index 61% rename from lib/services/networkManagement2/lib/models/privateAccessServiceResult.js rename to lib/services/networkManagement2/lib/models/endpointServiceResult.js index e6d349fd5b..eb6b4da846 100644 --- a/lib/services/networkManagement2/lib/models/privateAccessServiceResult.js +++ b/lib/services/networkManagement2/lib/models/endpointServiceResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,34 +13,33 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the PrivateAccessServiceResult class. - * @constructor - * Private access service. - * - * @member {string} [name] Name of the private access value. - * - * @member {string} [type] Type of the private access value. + * Endpoint service. * + * @extends models['SubResource'] */ -class PrivateAccessServiceResult extends models['SubResource'] { +class EndpointServiceResult extends models['SubResource'] { + /** + * Create a EndpointServiceResult. + * @member {string} [name] Name of the endpoint service. + * @member {string} [type] Type of the endpoint service. + */ constructor() { super(); } /** - * Defines the metadata of PrivateAccessServiceResult + * Defines the metadata of EndpointServiceResult * - * @returns {object} metadata of PrivateAccessServiceResult + * @returns {object} metadata of EndpointServiceResult * */ mapper() { return { required: false, - serializedName: 'PrivateAccessServiceResult', + serializedName: 'EndpointServiceResult', type: { name: 'Composite', - className: 'PrivateAccessServiceResult', + className: 'EndpointServiceResult', modelProperties: { id: { required: false, @@ -71,4 +70,4 @@ class PrivateAccessServiceResult extends models['SubResource'] { } } -module.exports = PrivateAccessServiceResult; +module.exports = EndpointServiceResult; diff --git a/lib/services/networkManagement2/lib/models/privateAccessServicesListResult.js b/lib/services/networkManagement2/lib/models/endpointServicesListResult.js similarity index 55% rename from lib/services/networkManagement2/lib/models/privateAccessServicesListResult.js rename to lib/services/networkManagement2/lib/models/endpointServicesListResult.js index 368c8fc46b..4817adf490 100644 --- a/lib/services/networkManagement2/lib/models/privateAccessServicesListResult.js +++ b/lib/services/networkManagement2/lib/models/endpointServicesListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,32 +11,30 @@ 'use strict'; /** - * @class - * Initializes a new instance of the PrivateAccessServicesListResult class. - * @constructor - * Response for the ListAvailablePrivateAccessServices API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * + * Response for the ListAvailableEndpointServices API service call. */ -class PrivateAccessServicesListResult extends Array { +class EndpointServicesListResult extends Array { + /** + * Create a EndpointServicesListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } /** - * Defines the metadata of PrivateAccessServicesListResult + * Defines the metadata of EndpointServicesListResult * - * @returns {object} metadata of PrivateAccessServicesListResult + * @returns {object} metadata of EndpointServicesListResult * */ mapper() { return { required: false, - serializedName: 'PrivateAccessServicesListResult', + serializedName: 'EndpointServicesListResult', type: { name: 'Composite', - className: 'PrivateAccessServicesListResult', + className: 'EndpointServicesListResult', modelProperties: { value: { required: false, @@ -45,10 +43,10 @@ class PrivateAccessServicesListResult extends Array { name: 'Sequence', element: { required: false, - serializedName: 'PrivateAccessServiceResultElementType', + serializedName: 'EndpointServiceResultElementType', type: { name: 'Composite', - className: 'PrivateAccessServiceResult' + className: 'EndpointServiceResult' } } } @@ -66,4 +64,4 @@ class PrivateAccessServicesListResult extends Array { } } -module.exports = PrivateAccessServicesListResult; +module.exports = EndpointServicesListResult; diff --git a/lib/services/networkManagement2/lib/models/errorDetails.js b/lib/services/networkManagement2/lib/models/errorDetails.js index fdca1ca240..fcac88503a 100644 --- a/lib/services/networkManagement2/lib/models/errorDetails.js +++ b/lib/services/networkManagement2/lib/models/errorDetails.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,17 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ErrorDetails class. - * @constructor - * @member {string} [code] - * - * @member {string} [target] - * - * @member {string} [message] - * + * Class representing a ErrorDetails. */ class ErrorDetails { + /** + * Create a ErrorDetails. + * @member {string} [code] + * @member {string} [target] + * @member {string} [message] + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/errorModel.js b/lib/services/networkManagement2/lib/models/errorModel.js index e52871fec2..67d76db59f 100644 --- a/lib/services/networkManagement2/lib/models/errorModel.js +++ b/lib/services/networkManagement2/lib/models/errorModel.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,21 +13,17 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ErrorModel class. - * @constructor - * @member {string} [code] - * - * @member {string} [message] - * - * @member {string} [target] - * - * @member {array} [details] - * - * @member {string} [innerError] - * + * Class representing a ErrorModel. */ class ErrorModel { + /** + * Create a ErrorModel. + * @member {string} [code] + * @member {string} [message] + * @member {string} [target] + * @member {array} [details] + * @member {string} [innerError] + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuit.js b/lib/services/networkManagement2/lib/models/expressRouteCircuit.js index ad76bdabdc..f80a5f3555 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuit.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuit.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,63 +13,47 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ExpressRouteCircuit class. - * @constructor * ExpressRouteCircuit resource * - * @member {object} [sku] The SKU. - * - * @member {string} [sku.name] The name of the SKU. - * - * @member {string} [sku.tier] The tier of the SKU. Possible values are - * 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' - * - * @member {string} [sku.family] The family of the SKU. Possible values are: - * 'UnlimitedData' and 'MeteredData'. Possible values include: 'UnlimitedData', - * 'MeteredData' - * - * @member {boolean} [allowClassicOperations] Allow classic operations - * - * @member {string} [circuitProvisioningState] The CircuitProvisioningState - * state of the resource. - * - * @member {string} [serviceProviderProvisioningState] The - * ServiceProviderProvisioningState state of the resource. Possible values are - * 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. - * Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', - * 'Deprovisioning' - * - * @member {array} [authorizations] The list of authorizations. - * - * @member {array} [peerings] The list of peerings. - * - * @member {string} [serviceKey] The ServiceKey. - * - * @member {string} [serviceProviderNotes] The ServiceProviderNotes. - * - * @member {object} [serviceProviderProperties] The ServiceProviderProperties. - * - * @member {string} [serviceProviderProperties.serviceProviderName] The - * serviceProviderName. - * - * @member {string} [serviceProviderProperties.peeringLocation] The peering - * location. - * - * @member {number} [serviceProviderProperties.bandwidthInMbps] The - * BandwidthInMbps. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [gatewayManagerEtag] The GatewayManager Etag. - * - * @member {string} [etag] Gets a unique read-only string that changes whenever - * the resource is updated. - * + * @extends models['Resource'] */ class ExpressRouteCircuit extends models['Resource'] { + /** + * Create a ExpressRouteCircuit. + * @member {object} [sku] The SKU. + * @member {string} [sku.name] The name of the SKU. + * @member {string} [sku.tier] The tier of the SKU. Possible values are + * 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' + * @member {string} [sku.family] The family of the SKU. Possible values are: + * 'UnlimitedData' and 'MeteredData'. Possible values include: + * 'UnlimitedData', 'MeteredData' + * @member {boolean} [allowClassicOperations] Allow classic operations + * @member {string} [circuitProvisioningState] The CircuitProvisioningState + * state of the resource. + * @member {string} [serviceProviderProvisioningState] The + * ServiceProviderProvisioningState state of the resource. Possible values + * are 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. + * Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', + * 'Deprovisioning' + * @member {array} [authorizations] The list of authorizations. + * @member {array} [peerings] The list of peerings. + * @member {string} [serviceKey] The ServiceKey. + * @member {string} [serviceProviderNotes] The ServiceProviderNotes. + * @member {object} [serviceProviderProperties] The + * ServiceProviderProperties. + * @member {string} [serviceProviderProperties.serviceProviderName] The + * serviceProviderName. + * @member {string} [serviceProviderProperties.peeringLocation] The peering + * location. + * @member {number} [serviceProviderProperties.bandwidthInMbps] The + * BandwidthInMbps. + * @member {string} [provisioningState] Gets the provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [gatewayManagerEtag] The GatewayManager Etag. + * @member {string} [etag] Gets a unique read-only string that changes + * whenever the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitArpTable.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitArpTable.js index 6328d097f4..5eb3544870 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitArpTable.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitArpTable.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,21 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitArpTable class. - * @constructor * The ARP table associated with the ExpressRouteCircuit. * - * @member {number} [age] Age - * - * @member {string} [interfaceProperty] Interface - * - * @member {string} [ipAddress] The IP address. - * - * @member {string} [macAddress] The MAC address. - * */ class ExpressRouteCircuitArpTable { + /** + * Create a ExpressRouteCircuitArpTable. + * @member {number} [age] Age + * @member {string} [interfaceProperty] Interface + * @member {string} [ipAddress] The IP address. + * @member {string} [macAddress] The MAC address. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitAuthorization.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitAuthorization.js index 2fcf9baff9..84385110c0 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitAuthorization.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitAuthorization.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,29 +13,25 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ExpressRouteCircuitAuthorization class. - * @constructor * Authorization in an ExpressRouteCircuit resource. * - * @member {string} [authorizationKey] The authorization key. - * - * @member {string} [authorizationUseStatus] AuthorizationUseStatus. Possible - * values are: 'Available' and 'InUse'. Possible values include: 'Available', - * 'InUse' - * - * @member {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class ExpressRouteCircuitAuthorization extends models['SubResource'] { + /** + * Create a ExpressRouteCircuitAuthorization. + * @member {string} [authorizationKey] The authorization key. + * @member {string} [authorizationUseStatus] AuthorizationUseStatus. Possible + * values are: 'Available' and 'InUse'. Possible values include: 'Available', + * 'InUse' + * @member {string} [provisioningState] Gets the provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Gets name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitListResult.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitListResult.js index a1f25721c6..bc5717df8d 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitListResult.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitListResult class. - * @constructor * Response for ListExpressRouteCircuit API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class ExpressRouteCircuitListResult extends Array { + /** + * Create a ExpressRouteCircuitListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitPeering.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitPeering.js index c59dea1158..bf2fd98924 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitPeering.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitPeering.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,157 +13,111 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ExpressRouteCircuitPeering class. - * @constructor * Peering in an ExpressRouteCircuit resource. * - * @member {string} [peeringType] The PeeringType. Possible values are: - * 'AzurePublicPeering', 'AzurePrivatePeering', and 'MicrosoftPeering'. - * Possible values include: 'AzurePublicPeering', 'AzurePrivatePeering', - * 'MicrosoftPeering' - * - * @member {string} [state] The state of peering. Possible values are: - * 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled' - * - * @member {number} [azureASN] The Azure ASN. - * - * @member {number} [peerASN] The peer ASN. - * - * @member {string} [primaryPeerAddressPrefix] The primary address prefix. - * - * @member {string} [secondaryPeerAddressPrefix] The secondary address prefix. - * - * @member {string} [primaryAzurePort] The primary port. - * - * @member {string} [secondaryAzurePort] The secondary port. - * - * @member {string} [sharedKey] The shared key. - * - * @member {number} [vlanId] The VLAN ID. - * - * @member {object} [microsoftPeeringConfig] The Microsoft peering - * configuration. - * - * @member {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The - * reference of AdvertisedPublicPrefixes. - * - * @member {array} [microsoftPeeringConfig.advertisedCommunities] The - * communities of bgp peering. Spepcified for microsoft peering - * - * @member {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * - * @member {number} [microsoftPeeringConfig.legacyMode] The legacy mode of the - * peering. - * - * @member {number} [microsoftPeeringConfig.customerASN] The CustomerASN of the - * peering. - * - * @member {string} [microsoftPeeringConfig.routingRegistryName] The - * RoutingRegistryName of the configuration. - * - * @member {object} [stats] Gets peering stats. - * - * @member {number} [stats.primarybytesIn] Gets BytesIn of the peering. - * - * @member {number} [stats.primarybytesOut] Gets BytesOut of the peering. - * - * @member {number} [stats.secondarybytesIn] Gets BytesIn of the peering. - * - * @member {number} [stats.secondarybytesOut] Gets BytesOut of the peering. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [gatewayManagerEtag] The GatewayManager Etag. - * - * @member {string} [lastModifiedBy] Gets whether the provider or the customer - * last modified the peering. - * - * @member {object} [routeFilter] The reference of the RouteFilter resource. - * - * @member {array} [routeFilter.rules] Collection of RouteFilterRules contained - * within a route filter. - * - * @member {array} [routeFilter.peerings] A collection of references to express - * route circuit peerings. - * - * @member {string} [routeFilter.provisioningState] The provisioning state of - * the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and - * 'Failed'. - * - * @member {string} [routeFilter.etag] Gets a unique read-only string that - * changes whenever the resource is updated. - * - * @member {object} [ipv6PeeringConfig] The IPv6 peering configuration. - * - * @member {string} [ipv6PeeringConfig.primaryPeerAddressPrefix] The primary - * address prefix. - * - * @member {string} [ipv6PeeringConfig.secondaryPeerAddressPrefix] The - * secondary address prefix. - * - * @member {object} [ipv6PeeringConfig.microsoftPeeringConfig] The Microsoft - * peering configuration. - * - * @member {array} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] The - * reference of AdvertisedPublicPrefixes. - * - * @member {array} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] The - * communities of bgp peering. Spepcified for microsoft peering - * - * @member {string} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * - * @member {number} [ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The - * legacy mode of the peering. - * - * @member {number} [ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The - * CustomerASN of the peering. - * - * @member {string} - * [ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] The - * RoutingRegistryName of the configuration. - * - * @member {object} [ipv6PeeringConfig.routeFilter] The reference of the - * RouteFilter resource. - * - * @member {array} [ipv6PeeringConfig.routeFilter.rules] Collection of - * RouteFilterRules contained within a route filter. - * - * @member {array} [ipv6PeeringConfig.routeFilter.peerings] A collection of - * references to express route circuit peerings. - * - * @member {string} [ipv6PeeringConfig.routeFilter.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', 'Succeeded' and 'Failed'. - * - * @member {string} [ipv6PeeringConfig.routeFilter.etag] Gets a unique - * read-only string that changes whenever the resource is updated. - * - * @member {string} [ipv6PeeringConfig.state] The state of peering. Possible - * values are: 'Disabled' and 'Enabled'. Possible values include: 'Disabled', - * 'Enabled' - * - * @member {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class ExpressRouteCircuitPeering extends models['SubResource'] { + /** + * Create a ExpressRouteCircuitPeering. + * @member {string} [peeringType] The PeeringType. Possible values are: + * 'AzurePublicPeering', 'AzurePrivatePeering', and 'MicrosoftPeering'. + * Possible values include: 'AzurePublicPeering', 'AzurePrivatePeering', + * 'MicrosoftPeering' + * @member {string} [state] The state of peering. Possible values are: + * 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled' + * @member {number} [azureASN] The Azure ASN. + * @member {number} [peerASN] The peer ASN. + * @member {string} [primaryPeerAddressPrefix] The primary address prefix. + * @member {string} [secondaryPeerAddressPrefix] The secondary address + * prefix. + * @member {string} [primaryAzurePort] The primary port. + * @member {string} [secondaryAzurePort] The secondary port. + * @member {string} [sharedKey] The shared key. + * @member {number} [vlanId] The VLAN ID. + * @member {object} [microsoftPeeringConfig] The Microsoft peering + * configuration. + * @member {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The + * reference of AdvertisedPublicPrefixes. + * @member {array} [microsoftPeeringConfig.advertisedCommunities] The + * communities of bgp peering. Spepcified for microsoft peering + * @member {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] + * AdvertisedPublicPrefixState of the Peering resource. Possible values are + * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. + * Possible values include: 'NotConfigured', 'Configuring', 'Configured', + * 'ValidationNeeded' + * @member {number} [microsoftPeeringConfig.legacyMode] The legacy mode of + * the peering. + * @member {number} [microsoftPeeringConfig.customerASN] The CustomerASN of + * the peering. + * @member {string} [microsoftPeeringConfig.routingRegistryName] The + * RoutingRegistryName of the configuration. + * @member {object} [stats] Gets peering stats. + * @member {number} [stats.primarybytesIn] Gets BytesIn of the peering. + * @member {number} [stats.primarybytesOut] Gets BytesOut of the peering. + * @member {number} [stats.secondarybytesIn] Gets BytesIn of the peering. + * @member {number} [stats.secondarybytesOut] Gets BytesOut of the peering. + * @member {string} [provisioningState] Gets the provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [gatewayManagerEtag] The GatewayManager Etag. + * @member {string} [lastModifiedBy] Gets whether the provider or the + * customer last modified the peering. + * @member {object} [routeFilter] The reference of the RouteFilter resource. + * @member {array} [routeFilter.rules] Collection of RouteFilterRules + * contained within a route filter. + * @member {array} [routeFilter.peerings] A collection of references to + * express route circuit peerings. + * @member {string} [routeFilter.provisioningState] The provisioning state of + * the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and + * 'Failed'. + * @member {string} [routeFilter.etag] Gets a unique read-only string that + * changes whenever the resource is updated. + * @member {object} [ipv6PeeringConfig] The IPv6 peering configuration. + * @member {string} [ipv6PeeringConfig.primaryPeerAddressPrefix] The primary + * address prefix. + * @member {string} [ipv6PeeringConfig.secondaryPeerAddressPrefix] The + * secondary address prefix. + * @member {object} [ipv6PeeringConfig.microsoftPeeringConfig] The Microsoft + * peering configuration. + * @member {array} + * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] The + * reference of AdvertisedPublicPrefixes. + * @member {array} + * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] The + * communities of bgp peering. Spepcified for microsoft peering + * @member {string} + * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] + * AdvertisedPublicPrefixState of the Peering resource. Possible values are + * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. + * Possible values include: 'NotConfigured', 'Configuring', 'Configured', + * 'ValidationNeeded' + * @member {number} [ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The + * legacy mode of the peering. + * @member {number} [ipv6PeeringConfig.microsoftPeeringConfig.customerASN] + * The CustomerASN of the peering. + * @member {string} + * [ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] The + * RoutingRegistryName of the configuration. + * @member {object} [ipv6PeeringConfig.routeFilter] The reference of the + * RouteFilter resource. + * @member {array} [ipv6PeeringConfig.routeFilter.rules] Collection of + * RouteFilterRules contained within a route filter. + * @member {array} [ipv6PeeringConfig.routeFilter.peerings] A collection of + * references to express route circuit peerings. + * @member {string} [ipv6PeeringConfig.routeFilter.provisioningState] The + * provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', 'Succeeded' and 'Failed'. + * @member {string} [ipv6PeeringConfig.routeFilter.etag] Gets a unique + * read-only string that changes whenever the resource is updated. + * @member {string} [ipv6PeeringConfig.state] The state of peering. Possible + * values are: 'Disabled' and 'Enabled'. Possible values include: 'Disabled', + * 'Enabled' + * @member {string} [name] Gets name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitPeeringConfig.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitPeeringConfig.js index a3172781c2..79a97c813e 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitPeeringConfig.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitPeeringConfig.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,31 +11,26 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitPeeringConfig class. - * @constructor * Specifies the peering configuration. * - * @member {array} [advertisedPublicPrefixes] The reference of - * AdvertisedPublicPrefixes. - * - * @member {array} [advertisedCommunities] The communities of bgp peering. - * Spepcified for microsoft peering - * - * @member {string} [advertisedPublicPrefixesState] AdvertisedPublicPrefixState - * of the Peering resource. Possible values are 'NotConfigured', 'Configuring', - * 'Configured', and 'ValidationNeeded'. Possible values include: - * 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded' - * - * @member {number} [legacyMode] The legacy mode of the peering. - * - * @member {number} [customerASN] The CustomerASN of the peering. - * - * @member {string} [routingRegistryName] The RoutingRegistryName of the - * configuration. - * */ class ExpressRouteCircuitPeeringConfig { + /** + * Create a ExpressRouteCircuitPeeringConfig. + * @member {array} [advertisedPublicPrefixes] The reference of + * AdvertisedPublicPrefixes. + * @member {array} [advertisedCommunities] The communities of bgp peering. + * Spepcified for microsoft peering + * @member {string} [advertisedPublicPrefixesState] + * AdvertisedPublicPrefixState of the Peering resource. Possible values are + * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. + * Possible values include: 'NotConfigured', 'Configuring', 'Configured', + * 'ValidationNeeded' + * @member {number} [legacyMode] The legacy mode of the peering. + * @member {number} [customerASN] The CustomerASN of the peering. + * @member {string} [routingRegistryName] The RoutingRegistryName of the + * configuration. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitPeeringListResult.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitPeeringListResult.js index 76431e3237..c8c233ee5e 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitPeeringListResult.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitPeeringListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitPeeringListResult class. - * @constructor * Response for ListPeering API service call retrieves all peerings that belong * to an ExpressRouteCircuit. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class ExpressRouteCircuitPeeringListResult extends Array { + /** + * Create a ExpressRouteCircuitPeeringListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitRoutesTable.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitRoutesTable.js index bd7e462398..d3a4e5f351 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitRoutesTable.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitRoutesTable.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,23 +11,18 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitRoutesTable class. - * @constructor * The routes table associated with the ExpressRouteCircuit * - * @member {string} [network] network - * - * @member {string} [nextHop] nextHop - * - * @member {string} [locPrf] locPrf - * - * @member {number} [weight] weight. - * - * @member {string} [path] path - * */ class ExpressRouteCircuitRoutesTable { + /** + * Create a ExpressRouteCircuitRoutesTable. + * @member {string} [network] network + * @member {string} [nextHop] nextHop + * @member {string} [locPrf] locPrf + * @member {number} [weight] weight. + * @member {string} [path] path + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitRoutesTableSummary.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitRoutesTableSummary.js index 5748a47e04..9faca22420 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitRoutesTableSummary.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitRoutesTableSummary.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,26 +11,21 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitRoutesTableSummary class. - * @constructor * The routes table associated with the ExpressRouteCircuit. * - * @member {string} [neighbor] Neighbor - * - * @member {number} [v] BGP version number spoken to the neighbor. - * - * @member {number} [as] Autonomous system number. - * - * @member {string} [upDown] The length of time that the BGP session has been - * in the Established state, or the current status if not in the Established - * state. - * - * @member {string} [statePfxRcd] Current state of the BGP session, and the - * number of prefixes that have been received from a neighbor or peer group. - * */ class ExpressRouteCircuitRoutesTableSummary { + /** + * Create a ExpressRouteCircuitRoutesTableSummary. + * @member {string} [neighbor] Neighbor + * @member {number} [v] BGP version number spoken to the neighbor. + * @member {number} [as] Autonomous system number. + * @member {string} [upDown] The length of time that the BGP session has been + * in the Established state, or the current status if not in the Established + * state. + * @member {string} [statePfxRcd] Current state of the BGP session, and the + * number of prefixes that have been received from a neighbor or peer group. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitServiceProviderProperties.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitServiceProviderProperties.js index cddc28c2fa..66a96d4d72 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitServiceProviderProperties.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitServiceProviderProperties.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,19 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitServiceProviderProperties class. - * @constructor * Contains ServiceProviderProperties in an ExpressRouteCircuit. * - * @member {string} [serviceProviderName] The serviceProviderName. - * - * @member {string} [peeringLocation] The peering location. - * - * @member {number} [bandwidthInMbps] The BandwidthInMbps. - * */ class ExpressRouteCircuitServiceProviderProperties { + /** + * Create a ExpressRouteCircuitServiceProviderProperties. + * @member {string} [serviceProviderName] The serviceProviderName. + * @member {string} [peeringLocation] The peering location. + * @member {number} [bandwidthInMbps] The BandwidthInMbps. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitSku.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitSku.js index d327780063..3fc69adc76 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitSku.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitSku.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,22 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitSku class. - * @constructor * Contains SKU in an ExpressRouteCircuit. * - * @member {string} [name] The name of the SKU. - * - * @member {string} [tier] The tier of the SKU. Possible values are 'Standard' - * and 'Premium'. Possible values include: 'Standard', 'Premium' - * - * @member {string} [family] The family of the SKU. Possible values are: - * 'UnlimitedData' and 'MeteredData'. Possible values include: 'UnlimitedData', - * 'MeteredData' - * */ class ExpressRouteCircuitSku { + /** + * Create a ExpressRouteCircuitSku. + * @member {string} [name] The name of the SKU. + * @member {string} [tier] The tier of the SKU. Possible values are + * 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' + * @member {string} [family] The family of the SKU. Possible values are: + * 'UnlimitedData' and 'MeteredData'. Possible values include: + * 'UnlimitedData', 'MeteredData' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitStats.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitStats.js index 43e13b9821..f2eda96ec4 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitStats.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitStats.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,21 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteCircuitStats class. - * @constructor * Contains stats associated with the peering. * - * @member {number} [primarybytesIn] Gets BytesIn of the peering. - * - * @member {number} [primarybytesOut] Gets BytesOut of the peering. - * - * @member {number} [secondarybytesIn] Gets BytesIn of the peering. - * - * @member {number} [secondarybytesOut] Gets BytesOut of the peering. - * */ class ExpressRouteCircuitStats { + /** + * Create a ExpressRouteCircuitStats. + * @member {number} [primarybytesIn] Gets BytesIn of the peering. + * @member {number} [primarybytesOut] Gets BytesOut of the peering. + * @member {number} [secondarybytesIn] Gets BytesIn of the peering. + * @member {number} [secondarybytesOut] Gets BytesOut of the peering. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitsArpTableListResult.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitsArpTableListResult.js index 3fa245408b..8a4e983b53 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitsArpTableListResult.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitsArpTableListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,17 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ExpressRouteCircuitsArpTableListResult class. - * @constructor * Response for ListArpTable associated with the Express Route Circuits API. * - * @member {array} [value] Gets list of the ARP table. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class ExpressRouteCircuitsArpTableListResult { + /** + * Create a ExpressRouteCircuitsArpTableListResult. + * @member {array} [value] Gets list of the ARP table. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitsRoutesTableListResult.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitsRoutesTableListResult.js index 74e5a5dcfb..5615578ab3 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitsRoutesTableListResult.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitsRoutesTableListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,17 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ExpressRouteCircuitsRoutesTableListResult class. - * @constructor * Response for ListRoutesTable associated with the Express Route Circuits API. * - * @member {array} [value] The list of routes table. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class ExpressRouteCircuitsRoutesTableListResult { + /** + * Create a ExpressRouteCircuitsRoutesTableListResult. + * @member {array} [value] The list of routes table. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitsRoutesTableSummaryListResult.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitsRoutesTableSummaryListResult.js index e8c4715e1a..2f19980efc 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitsRoutesTableSummaryListResult.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitsRoutesTableSummaryListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,17 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ExpressRouteCircuitsRoutesTableSummaryListResult class. - * @constructor * Response for ListRoutesTable associated with the Express Route Circuits API. * - * @member {array} [value] A list of the routes table. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class ExpressRouteCircuitsRoutesTableSummaryListResult { + /** + * Create a ExpressRouteCircuitsRoutesTableSummaryListResult. + * @member {array} [value] A list of the routes table. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteServiceProvider.js b/lib/services/networkManagement2/lib/models/expressRouteServiceProvider.js index 0e8934ac64..43bb5d2474 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteServiceProvider.js +++ b/lib/services/networkManagement2/lib/models/expressRouteServiceProvider.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,20 +13,18 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ExpressRouteServiceProvider class. - * @constructor * A ExpressRouteResourceProvider object. * - * @member {array} [peeringLocations] Get a list of peering locations. - * - * @member {array} [bandwidthsOffered] Gets bandwidths offered. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * resource. - * + * @extends models['Resource'] */ class ExpressRouteServiceProvider extends models['Resource'] { + /** + * Create a ExpressRouteServiceProvider. + * @member {array} [peeringLocations] Get a list of peering locations. + * @member {array} [bandwidthsOffered] Gets bandwidths offered. + * @member {string} [provisioningState] Gets the provisioning state of the + * resource. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/expressRouteServiceProviderBandwidthsOffered.js b/lib/services/networkManagement2/lib/models/expressRouteServiceProviderBandwidthsOffered.js index 62eba05442..5cdb44d2c0 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteServiceProviderBandwidthsOffered.js +++ b/lib/services/networkManagement2/lib/models/expressRouteServiceProviderBandwidthsOffered.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,17 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteServiceProviderBandwidthsOffered class. - * @constructor * Contains bandwidths offered in ExpressRouteServiceProvider resources. * - * @member {string} [offerName] The OfferName. - * - * @member {number} [valueInMbps] The ValueInMbps. - * */ class ExpressRouteServiceProviderBandwidthsOffered { + /** + * Create a ExpressRouteServiceProviderBandwidthsOffered. + * @member {string} [offerName] The OfferName. + * @member {number} [valueInMbps] The ValueInMbps. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/expressRouteServiceProviderListResult.js b/lib/services/networkManagement2/lib/models/expressRouteServiceProviderListResult.js index ba499cd18b..cf04035185 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteServiceProviderListResult.js +++ b/lib/services/networkManagement2/lib/models/expressRouteServiceProviderListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ExpressRouteServiceProviderListResult class. - * @constructor * Response for the ListExpressRouteServiceProvider API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class ExpressRouteServiceProviderListResult extends Array { + /** + * Create a ExpressRouteServiceProviderListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/flowLogInformation.js b/lib/services/networkManagement2/lib/models/flowLogInformation.js index ff09e46a57..9efb176e4e 100644 --- a/lib/services/networkManagement2/lib/models/flowLogInformation.js +++ b/lib/services/networkManagement2/lib/models/flowLogInformation.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,29 +13,23 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the FlowLogInformation class. - * @constructor * Information on the configuration of flow log. * - * @member {string} targetResourceId The ID of the resource to configure for - * flow logging. - * - * @member {string} storageId ID of the storage account which is used to store - * the flow log. - * - * @member {boolean} enabled Flag to enable/disable flow logging. - * - * @member {object} [retentionPolicy] - * - * @member {number} [retentionPolicy.days] Number of days to retain flow log - * records. - * - * @member {boolean} [retentionPolicy.enabled] Flag to enable/disable - * retention. - * */ class FlowLogInformation { + /** + * Create a FlowLogInformation. + * @member {string} targetResourceId The ID of the resource to configure for + * flow logging. + * @member {string} storageId ID of the storage account which is used to + * store the flow log. + * @member {boolean} enabled Flag to enable/disable flow logging. + * @member {object} [retentionPolicy] + * @member {number} [retentionPolicy.days] Number of days to retain flow log + * records. + * @member {boolean} [retentionPolicy.enabled] Flag to enable/disable + * retention. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/flowLogStatusParameters.js b/lib/services/networkManagement2/lib/models/flowLogStatusParameters.js index 41f5022846..0f9221918d 100644 --- a/lib/services/networkManagement2/lib/models/flowLogStatusParameters.js +++ b/lib/services/networkManagement2/lib/models/flowLogStatusParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the FlowLogStatusParameters class. - * @constructor * Parameters that define a resource to query flow log status. * - * @member {string} targetResourceId The target resource where getting the flow - * logging status. - * */ class FlowLogStatusParameters { + /** + * Create a FlowLogStatusParameters. + * @member {string} targetResourceId The target resource where getting the + * flow logging status. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/frontendIPConfiguration.js b/lib/services/networkManagement2/lib/models/frontendIPConfiguration.js index f980d25a24..d205aa4d37 100644 --- a/lib/services/networkManagement2/lib/models/frontendIPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/frontendIPConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,252 +13,191 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the FrontendIPConfiguration class. - * @constructor * Frontend IP address of the load balancer. * - * @member {array} [inboundNatRules] Read only. Inbound rules URIs that use - * this frontend IP. - * - * @member {array} [inboundNatPools] Read only. Inbound pools URIs that use - * this frontend IP. - * - * @member {array} [outboundNatRules] Read only. Outbound rules URIs that use - * this frontend IP. - * - * @member {array} [loadBalancingRules] Gets load balancing rules URIs that use - * this frontend IP. - * - * @member {string} [privateIPAddress] The private IP address of the IP - * configuration. - * - * @member {string} [privateIPAllocationMethod] The Private IP allocation - * method. Possible values are: 'Static' and 'Dynamic'. Possible values - * include: 'Static', 'Dynamic' - * - * @member {object} [subnet] The reference of the subnet resource. - * - * @member {string} [subnet.addressPrefix] The address prefix for the subnet. - * - * @member {object} [subnet.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * - * @member {array} [subnet.networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * - * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * - * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A collection - * of references to network interfaces. - * - * @member {array} [subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * - * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * - * @member {string} [subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * - * @member {object} [subnet.routeTable] The reference of the RouteTable - * resource. - * - * @member {array} [subnet.routeTable.routes] Collection of routes contained - * within a route table. - * - * @member {array} [subnet.routeTable.subnets] A collection of references to - * subnets. - * - * @member {string} [subnet.routeTable.provisioningState] The provisioning - * state of the resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [subnet.routeTable.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * - * @member {array} [subnet.privateAccessServices] An array of private access - * services values. - * - * @member {array} [subnet.ipConfigurations] Gets an array of references to the - * network interface IP configurations using subnet. - * - * @member {array} [subnet.resourceNavigationLinks] Gets an array of references - * to the external resources using subnet. - * - * @member {string} [subnet.provisioningState] The provisioning state of the - * resource. - * - * @member {string} [subnet.name] The name of the resource that is unique - * within a resource group. This name can be used to access the resource. - * - * @member {string} [subnet.etag] A unique read-only string that changes - * whenever the resource is updated. - * - * @member {object} [publicIPAddress] The reference of the Public IP resource. - * - * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * - * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP - * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values - * include: 'IPv4', 'IPv6' - * - * @member {object} [publicIPAddress.ipConfiguration] - * - * @member {string} [publicIPAddress.ipConfiguration.privateIPAddress] The - * private IP address of the IP configuration. - * - * @member {string} [publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @member {object} [publicIPAddress.ipConfiguration.subnet] The reference of - * the subnet resource. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] The - * address prefix for the subnet. - * - * @member {object} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The reference - * of the NetworkSecurityGroup resource. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * - * @member {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * - * @member {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {object} [publicIPAddress.ipConfiguration.subnet.routeTable] The - * reference of the RouteTable resource. - * - * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * - * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * - * @member {string} - * [publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.privateAccessServices] An array of - * private access services values. - * - * @member {array} [publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.name] The name of - * the resource that is unique within a resource group. This name can be used - * to access the resource. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {object} [publicIPAddress.ipConfiguration.publicIPAddress] The - * reference of the public IP resource. - * - * @member {string} [publicIPAddress.ipConfiguration.provisioningState] Gets - * the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [publicIPAddress.ipConfiguration.name] The name of the - * resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @member {string} [publicIPAddress.ipConfiguration.etag] A unique read-only - * string that changes whenever the resource is updated. - * - * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. - * - * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or sets - * the Domain name label.The concatenation of the domain name label and the - * regionalized DNS zone make up the fully qualified domain name associated - * with the public IP address. If a domain name label is specified, an A DNS - * record is created for the public IP in the Microsoft Azure DNS system. - * - * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully - * qualified domain name of the A DNS record associated with the public IP. - * This is the concatenation of the domainNameLabel and the regionalized DNS - * zone. - * - * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets the - * Reverse FQDN. A user-visible, fully qualified domain name that resolves to - * this public IP address. If the reverseFqdn is specified, then a PTR DNS - * record is created pointing from the IP address in the in-addr.arpa domain to - * the reverse FQDN. - * - * @member {string} [publicIPAddress.ipAddress] - * - * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout of - * the public IP address. - * - * @member {string} [publicIPAddress.resourceGuid] The resource GUID property - * of the public IP resource. - * - * @member {string} [publicIPAddress.provisioningState] The provisioning state - * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [publicIPAddress.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class FrontendIPConfiguration extends models['SubResource'] { + /** + * Create a FrontendIPConfiguration. + * @member {array} [inboundNatRules] Read only. Inbound rules URIs that use + * this frontend IP. + * @member {array} [inboundNatPools] Read only. Inbound pools URIs that use + * this frontend IP. + * @member {array} [outboundNatRules] Read only. Outbound rules URIs that use + * this frontend IP. + * @member {array} [loadBalancingRules] Gets load balancing rules URIs that + * use this frontend IP. + * @member {string} [privateIPAddress] The private IP address of the IP + * configuration. + * @member {string} [privateIPAllocationMethod] The Private IP allocation + * method. Possible values are: 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + * @member {object} [subnet] The reference of the subnet resource. + * @member {string} [subnet.addressPrefix] The address prefix for the subnet. + * @member {object} [subnet.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * @member {array} [subnet.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A + * collection of references to network interfaces. + * @member {array} [subnet.networkSecurityGroup.subnets] A collection of + * references to subnets. + * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * @member {string} [subnet.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only + * string that changes whenever the resource is updated. + * @member {object} [subnet.routeTable] The reference of the RouteTable + * resource. + * @member {array} [subnet.routeTable.routes] Collection of routes contained + * within a route table. + * @member {array} [subnet.routeTable.subnets] A collection of references to + * subnets. + * @member {string} [subnet.routeTable.provisioningState] The provisioning + * state of the resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [subnet.routeTable.etag] Gets a unique read-only string + * that changes whenever the resource is updated. + * @member {array} [subnet.serviceEndpoints] An array of service endpoints. + * @member {array} [subnet.ipConfigurations] Gets an array of references to + * the network interface IP configurations using subnet. + * @member {array} [subnet.resourceNavigationLinks] Gets an array of + * references to the external resources using subnet. + * @member {string} [subnet.provisioningState] The provisioning state of the + * resource. + * @member {string} [subnet.name] The name of the resource that is unique + * within a resource group. This name can be used to access the resource. + * @member {string} [subnet.etag] A unique read-only string that changes + * whenever the resource is updated. + * @member {object} [publicIPAddress] The reference of the Public IP + * resource. + * @member {object} [publicIPAddress.sku] The public IP address SKU. + * @member {string} [publicIPAddress.sku.name] Name of a public IP address + * SKU. Possible values include: 'Basic', 'Standard' + * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP + * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP + * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values + * include: 'IPv4', 'IPv6' + * @member {object} [publicIPAddress.ipConfiguration] The IP configuration + * associated with the public IP address. + * @member {string} [publicIPAddress.ipConfiguration.privateIPAddress] The + * private IP address of the IP configuration. + * @member {string} + * [publicIPAddress.ipConfiguration.privateIPAllocationMethod] The private IP + * allocation method. Possible values are 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * @member {object} [publicIPAddress.ipConfiguration.subnet] The reference of + * the subnet resource. + * @member {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] + * The address prefix for the subnet. + * @member {object} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The + * reference of the NetworkSecurityGroup resource. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] + * A collection of security rules of the network security group. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] + * The default security rules of network security group. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] + * A collection of references to network interfaces. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] A + * collection of references to subnets. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] + * The resource GUID property of the network security group resource. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] + * The provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] A + * unique read-only string that changes whenever the resource is updated. + * @member {object} [publicIPAddress.ipConfiguration.subnet.routeTable] The + * reference of the RouteTable resource. + * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.routes] + * Collection of routes contained within a route table. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.routeTable.subnets] A collection + * of references to subnets. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] The + * provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [publicIPAddress.ipConfiguration.subnet.routeTable.etag] + * Gets a unique read-only string that changes whenever the resource is + * updated. + * @member {array} [publicIPAddress.ipConfiguration.subnet.serviceEndpoints] + * An array of service endpoints. + * @member {array} [publicIPAddress.ipConfiguration.subnet.ipConfigurations] + * Gets an array of references to the network interface IP configurations + * using subnet. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an + * array of references to the external resources using subnet. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.provisioningState] The + * provisioning state of the resource. + * @member {string} [publicIPAddress.ipConfiguration.subnet.name] The name of + * the resource that is unique within a resource group. This name can be used + * to access the resource. + * @member {string} [publicIPAddress.ipConfiguration.subnet.etag] A unique + * read-only string that changes whenever the resource is updated. + * @member {object} [publicIPAddress.ipConfiguration.publicIPAddress] The + * reference of the public IP resource. + * @member {string} [publicIPAddress.ipConfiguration.provisioningState] Gets + * the provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [publicIPAddress.ipConfiguration.name] The name of the + * resource that is unique within a resource group. This name can be used to + * access the resource. + * @member {string} [publicIPAddress.ipConfiguration.etag] A unique read-only + * string that changes whenever the resource is updated. + * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record + * associated with the public IP address. + * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or + * sets the Domain name label.The concatenation of the domain name label and + * the regionalized DNS zone make up the fully qualified domain name + * associated with the public IP address. If a domain name label is + * specified, an A DNS record is created for the public IP in the Microsoft + * Azure DNS system. + * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully + * qualified domain name of the A DNS record associated with the public IP. + * This is the concatenation of the domainNameLabel and the regionalized DNS + * zone. + * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets + * the Reverse FQDN. A user-visible, fully qualified domain name that + * resolves to this public IP address. If the reverseFqdn is specified, then + * a PTR DNS record is created pointing from the IP address in the + * in-addr.arpa domain to the reverse FQDN. + * @member {string} [publicIPAddress.ipAddress] The IP address associated + * with the public IP address resource. + * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout + * of the public IP address. + * @member {string} [publicIPAddress.resourceGuid] The resource GUID property + * of the public IP resource. + * @member {string} [publicIPAddress.provisioningState] The provisioning + * state of the PublicIP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [publicIPAddress.etag] A unique read-only string that + * changes whenever the resource is updated. + * @member {string} [provisioningState] Gets the provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/gatewayRoute.js b/lib/services/networkManagement2/lib/models/gatewayRoute.js index 56edd3ab3c..4f2a9526a6 100644 --- a/lib/services/networkManagement2/lib/models/gatewayRoute.js +++ b/lib/services/networkManagement2/lib/models/gatewayRoute.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,27 +11,20 @@ 'use strict'; /** - * @class - * Initializes a new instance of the GatewayRoute class. - * @constructor * Gateway routing details * - * @member {string} [localAddress] The gateway's local address - * - * @member {string} [network] The route's network prefix - * - * @member {string} [nextHop] The route's next hop - * - * @member {string} [sourcePeer] The peer this route was learned from - * - * @member {string} [origin] The source this route was learned from - * - * @member {string} [asPath] The route's AS path sequence - * - * @member {number} [weight] The route's weight - * */ class GatewayRoute { + /** + * Create a GatewayRoute. + * @member {string} [localAddress] The gateway's local address + * @member {string} [network] The route's network prefix + * @member {string} [nextHop] The route's next hop + * @member {string} [sourcePeer] The peer this route was learned from + * @member {string} [origin] The source this route was learned from + * @member {string} [asPath] The route's AS path sequence + * @member {number} [weight] The route's weight + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/gatewayRouteListResult.js b/lib/services/networkManagement2/lib/models/gatewayRouteListResult.js index 2d9a9b5944..55cecfba96 100644 --- a/lib/services/networkManagement2/lib/models/gatewayRouteListResult.js +++ b/lib/services/networkManagement2/lib/models/gatewayRouteListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,15 +13,14 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the GatewayRouteListResult class. - * @constructor * List of virtual network gateway routes * - * @member {array} [value] List of gateway routes - * */ class GatewayRouteListResult { + /** + * Create a GatewayRouteListResult. + * @member {array} [value] List of gateway routes + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/iPAddressAvailabilityResult.js b/lib/services/networkManagement2/lib/models/iPAddressAvailabilityResult.js index 3305697e91..ceedaeb386 100644 --- a/lib/services/networkManagement2/lib/models/iPAddressAvailabilityResult.js +++ b/lib/services/networkManagement2/lib/models/iPAddressAvailabilityResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,18 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the IPAddressAvailabilityResult class. - * @constructor * Response for CheckIPAddressAvailability API service call * - * @member {boolean} [available] Private IP address availability. - * - * @member {array} [availableIPAddresses] Contains other available private IP - * addresses if the asked for address is taken. - * */ class IPAddressAvailabilityResult { + /** + * Create a IPAddressAvailabilityResult. + * @member {boolean} [available] Private IP address availability. + * @member {array} [availableIPAddresses] Contains other available private IP + * addresses if the asked for address is taken. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/iPConfiguration.js b/lib/services/networkManagement2/lib/models/iPConfiguration.js index 75a1573980..6b9dcc3c0c 100644 --- a/lib/services/networkManagement2/lib/models/iPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/iPConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,140 +13,108 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the IPConfiguration class. - * @constructor - * IPConfiguration - * - * @member {string} [privateIPAddress] The private IP address of the IP - * configuration. - * - * @member {string} [privateIPAllocationMethod] The private IP allocation - * method. Possible values are 'Static' and 'Dynamic'. Possible values include: - * 'Static', 'Dynamic' - * - * @member {object} [subnet] The reference of the subnet resource. - * - * @member {string} [subnet.addressPrefix] The address prefix for the subnet. - * - * @member {object} [subnet.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * - * @member {array} [subnet.networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * - * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * - * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A collection - * of references to network interfaces. - * - * @member {array} [subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * - * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * - * @member {string} [subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * - * @member {object} [subnet.routeTable] The reference of the RouteTable - * resource. - * - * @member {array} [subnet.routeTable.routes] Collection of routes contained - * within a route table. - * - * @member {array} [subnet.routeTable.subnets] A collection of references to - * subnets. - * - * @member {string} [subnet.routeTable.provisioningState] The provisioning - * state of the resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [subnet.routeTable.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * - * @member {array} [subnet.privateAccessServices] An array of private access - * services values. - * - * @member {array} [subnet.ipConfigurations] Gets an array of references to the - * network interface IP configurations using subnet. - * - * @member {array} [subnet.resourceNavigationLinks] Gets an array of references - * to the external resources using subnet. - * - * @member {string} [subnet.provisioningState] The provisioning state of the - * resource. - * - * @member {string} [subnet.name] The name of the resource that is unique - * within a resource group. This name can be used to access the resource. - * - * @member {string} [subnet.etag] A unique read-only string that changes - * whenever the resource is updated. - * - * @member {object} [publicIPAddress] The reference of the public IP resource. - * - * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * - * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP - * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values - * include: 'IPv4', 'IPv6' - * - * @member {object} [publicIPAddress.ipConfiguration] - * - * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. - * - * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or sets - * the Domain name label.The concatenation of the domain name label and the - * regionalized DNS zone make up the fully qualified domain name associated - * with the public IP address. If a domain name label is specified, an A DNS - * record is created for the public IP in the Microsoft Azure DNS system. - * - * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully - * qualified domain name of the A DNS record associated with the public IP. - * This is the concatenation of the domainNameLabel and the regionalized DNS - * zone. - * - * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets the - * Reverse FQDN. A user-visible, fully qualified domain name that resolves to - * this public IP address. If the reverseFqdn is specified, then a PTR DNS - * record is created pointing from the IP address in the in-addr.arpa domain to - * the reverse FQDN. - * - * @member {string} [publicIPAddress.ipAddress] - * - * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout of - * the public IP address. - * - * @member {string} [publicIPAddress.resourceGuid] The resource GUID property - * of the public IP resource. - * - * @member {string} [publicIPAddress.provisioningState] The provisioning state - * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [publicIPAddress.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. + * IP configuration * + * @extends models['SubResource'] */ class IPConfiguration extends models['SubResource'] { + /** + * Create a IPConfiguration. + * @member {string} [privateIPAddress] The private IP address of the IP + * configuration. + * @member {string} [privateIPAllocationMethod] The private IP allocation + * method. Possible values are 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + * @member {object} [subnet] The reference of the subnet resource. + * @member {string} [subnet.addressPrefix] The address prefix for the subnet. + * @member {object} [subnet.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * @member {array} [subnet.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A + * collection of references to network interfaces. + * @member {array} [subnet.networkSecurityGroup.subnets] A collection of + * references to subnets. + * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * @member {string} [subnet.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only + * string that changes whenever the resource is updated. + * @member {object} [subnet.routeTable] The reference of the RouteTable + * resource. + * @member {array} [subnet.routeTable.routes] Collection of routes contained + * within a route table. + * @member {array} [subnet.routeTable.subnets] A collection of references to + * subnets. + * @member {string} [subnet.routeTable.provisioningState] The provisioning + * state of the resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [subnet.routeTable.etag] Gets a unique read-only string + * that changes whenever the resource is updated. + * @member {array} [subnet.serviceEndpoints] An array of service endpoints. + * @member {array} [subnet.ipConfigurations] Gets an array of references to + * the network interface IP configurations using subnet. + * @member {array} [subnet.resourceNavigationLinks] Gets an array of + * references to the external resources using subnet. + * @member {string} [subnet.provisioningState] The provisioning state of the + * resource. + * @member {string} [subnet.name] The name of the resource that is unique + * within a resource group. This name can be used to access the resource. + * @member {string} [subnet.etag] A unique read-only string that changes + * whenever the resource is updated. + * @member {object} [publicIPAddress] The reference of the public IP + * resource. + * @member {object} [publicIPAddress.sku] The public IP address SKU. + * @member {string} [publicIPAddress.sku.name] Name of a public IP address + * SKU. Possible values include: 'Basic', 'Standard' + * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP + * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP + * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values + * include: 'IPv4', 'IPv6' + * @member {object} [publicIPAddress.ipConfiguration] The IP configuration + * associated with the public IP address. + * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record + * associated with the public IP address. + * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or + * sets the Domain name label.The concatenation of the domain name label and + * the regionalized DNS zone make up the fully qualified domain name + * associated with the public IP address. If a domain name label is + * specified, an A DNS record is created for the public IP in the Microsoft + * Azure DNS system. + * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully + * qualified domain name of the A DNS record associated with the public IP. + * This is the concatenation of the domainNameLabel and the regionalized DNS + * zone. + * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets + * the Reverse FQDN. A user-visible, fully qualified domain name that + * resolves to this public IP address. If the reverseFqdn is specified, then + * a PTR DNS record is created pointing from the IP address in the + * in-addr.arpa domain to the reverse FQDN. + * @member {string} [publicIPAddress.ipAddress] The IP address associated + * with the public IP address resource. + * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout + * of the public IP address. + * @member {string} [publicIPAddress.resourceGuid] The resource GUID property + * of the public IP resource. + * @member {string} [publicIPAddress.provisioningState] The provisioning + * state of the PublicIP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [publicIPAddress.etag] A unique read-only string that + * changes whenever the resource is updated. + * @member {string} [provisioningState] Gets the provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/inboundNatPool.js b/lib/services/networkManagement2/lib/models/inboundNatPool.js index 81253ea7b0..09669e0ea7 100644 --- a/lib/services/networkManagement2/lib/models/inboundNatPool.js +++ b/lib/services/networkManagement2/lib/models/inboundNatPool.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,43 +13,35 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the InboundNatPool class. - * @constructor * Inbound NAT pool of the load balancer. * - * @member {object} [frontendIPConfiguration] A reference to frontend IP - * addresses. - * - * @member {string} [frontendIPConfiguration.id] Resource ID. - * - * @member {string} protocol The transport protocol for the endpoint. Possible - * values are: 'Udp' or 'Tcp'. Possible values include: 'Udp', 'Tcp' - * - * @member {number} frontendPortRangeStart The first port number in the range - * of external ports that will be used to provide Inbound Nat to NICs - * associated with a load balancer. Acceptable values range between 1 and - * 65534. - * - * @member {number} frontendPortRangeEnd The last port number in the range of - * external ports that will be used to provide Inbound Nat to NICs associated - * with a load balancer. Acceptable values range between 1 and 65535. - * - * @member {number} backendPort The port used for internal connections on the - * endpoint. Acceptable values are between 1 and 65535. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class InboundNatPool extends models['SubResource'] { + /** + * Create a InboundNatPool. + * @member {object} [frontendIPConfiguration] A reference to frontend IP + * addresses. + * @member {string} [frontendIPConfiguration.id] Resource ID. + * @member {string} protocol The transport protocol for the endpoint. + * Possible values are: 'Udp' or 'Tcp'. Possible values include: 'Udp', 'Tcp' + * @member {number} frontendPortRangeStart The first port number in the range + * of external ports that will be used to provide Inbound Nat to NICs + * associated with a load balancer. Acceptable values range between 1 and + * 65534. + * @member {number} frontendPortRangeEnd The last port number in the range of + * external ports that will be used to provide Inbound Nat to NICs associated + * with a load balancer. Acceptable values range between 1 and 65535. + * @member {number} backendPort The port used for internal connections on the + * endpoint. Acceptable values are between 1 and 65535. + * @member {string} [provisioningState] Gets the provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/inboundNatRule.js b/lib/services/networkManagement2/lib/models/inboundNatRule.js index 61eef55f5c..f55de60a7f 100644 --- a/lib/services/networkManagement2/lib/models/inboundNatRule.js +++ b/lib/services/networkManagement2/lib/models/inboundNatRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,325 +13,261 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the InboundNatRule class. - * @constructor * Inbound NAT rule of the load balancer. * - * @member {object} [frontendIPConfiguration] A reference to frontend IP - * addresses. - * - * @member {string} [frontendIPConfiguration.id] Resource ID. - * - * @member {object} [backendIPConfiguration] A reference to a private IP - * address defined on a network interface of a VM. Traffic sent to the frontend - * port of each of the frontend IP configurations is forwarded to the backed - * IP. - * - * @member {array} - * [backendIPConfiguration.applicationGatewayBackendAddressPools] The reference - * of ApplicationGatewayBackendAddressPool resource. - * - * @member {array} [backendIPConfiguration.loadBalancerBackendAddressPools] The - * reference of LoadBalancerBackendAddressPool resource. - * - * @member {array} [backendIPConfiguration.loadBalancerInboundNatRules] A list - * of references of LoadBalancerInboundNatRules. - * - * @member {string} [backendIPConfiguration.privateIPAddress] - * - * @member {string} [backendIPConfiguration.privateIPAllocationMethod] Defines - * how a private IP address is assigned. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @member {string} [backendIPConfiguration.privateIPAddressVersion] Available - * from Api-Version 2016-03-30 onwards, it represents whether the specific - * ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values - * are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' - * - * @member {object} [backendIPConfiguration.subnet] - * - * @member {string} [backendIPConfiguration.subnet.addressPrefix] The address - * prefix for the subnet. - * - * @member {object} [backendIPConfiguration.subnet.networkSecurityGroup] The - * reference of the NetworkSecurityGroup resource. - * - * @member {array} - * [backendIPConfiguration.subnet.networkSecurityGroup.securityRules] A - * collection of security rules of the network security group. - * - * @member {array} - * [backendIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * - * @member {array} - * [backendIPConfiguration.subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * - * @member {array} [backendIPConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * - * @member {string} - * [backendIPConfiguration.subnet.networkSecurityGroup.resourceGuid] The - * resource GUID property of the network security group resource. - * - * @member {string} - * [backendIPConfiguration.subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [backendIPConfiguration.subnet.networkSecurityGroup.etag] A - * unique read-only string that changes whenever the resource is updated. - * - * @member {object} [backendIPConfiguration.subnet.routeTable] The reference of - * the RouteTable resource. - * - * @member {array} [backendIPConfiguration.subnet.routeTable.routes] Collection - * of routes contained within a route table. - * - * @member {array} [backendIPConfiguration.subnet.routeTable.subnets] A - * collection of references to subnets. - * - * @member {string} - * [backendIPConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [backendIPConfiguration.subnet.routeTable.etag] Gets a - * unique read-only string that changes whenever the resource is updated. - * - * @member {array} [backendIPConfiguration.subnet.privateAccessServices] An - * array of private access services values. - * - * @member {array} [backendIPConfiguration.subnet.ipConfigurations] Gets an - * array of references to the network interface IP configurations using subnet. - * - * @member {array} [backendIPConfiguration.subnet.resourceNavigationLinks] Gets - * an array of references to the external resources using subnet. - * - * @member {string} [backendIPConfiguration.subnet.provisioningState] The - * provisioning state of the resource. - * - * @member {string} [backendIPConfiguration.subnet.name] The name of the - * resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @member {string} [backendIPConfiguration.subnet.etag] A unique read-only - * string that changes whenever the resource is updated. - * - * @member {boolean} [backendIPConfiguration.primary] Gets whether this is a - * primary customer address on the network interface. - * - * @member {object} [backendIPConfiguration.publicIPAddress] - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.publicIPAllocationMethod] The public - * IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.publicIPAddressVersion] The public - * IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible values - * include: 'IPv4', 'IPv6' - * - * @member {object} [backendIPConfiguration.publicIPAddress.ipConfiguration] - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] - * The private IP address of the IP configuration. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @member {object} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet] The - * reference of the subnet resource. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * - * @member {object} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * - * @member {object} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.privateAccessServices] - * An array of private access services values. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * - * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.name] The - * name of the resource that is unique within a resource group. This name can - * be used to access the resource. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.etag] A - * unique read-only string that changes whenever the resource is updated. - * - * @member {object} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] The - * reference of the public IP resource. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.name] The name of - * the resource that is unique within a resource group. This name can be used - * to access the resource. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {object} [backendIPConfiguration.publicIPAddress.dnsSettings] The - * FQDN of the DNS record associated with the public IP address. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] Gets or - * sets the Domain name label.The concatenation of the domain name label and - * the regionalized DNS zone make up the fully qualified domain name associated - * with the public IP address. If a domain name label is specified, an A DNS - * record is created for the public IP in the Microsoft Azure DNS system. - * - * @member {string} [backendIPConfiguration.publicIPAddress.dnsSettings.fqdn] - * Gets the FQDN, Fully qualified domain name of the A DNS record associated - * with the public IP. This is the concatenation of the domainNameLabel and the - * regionalized DNS zone. - * - * @member {string} - * [backendIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] Gets or - * Sets the Reverse FQDN. A user-visible, fully qualified domain name that - * resolves to this public IP address. If the reverseFqdn is specified, then a - * PTR DNS record is created pointing from the IP address in the in-addr.arpa - * domain to the reverse FQDN. - * - * @member {string} [backendIPConfiguration.publicIPAddress.ipAddress] - * - * @member {number} - * [backendIPConfiguration.publicIPAddress.idleTimeoutInMinutes] The idle - * timeout of the public IP address. - * - * @member {string} [backendIPConfiguration.publicIPAddress.resourceGuid] The - * resource GUID property of the public IP resource. - * - * @member {string} [backendIPConfiguration.publicIPAddress.provisioningState] - * The provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [backendIPConfiguration.publicIPAddress.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {string} [backendIPConfiguration.provisioningState] - * - * @member {string} [backendIPConfiguration.name] The name of the resource that - * is unique within a resource group. This name can be used to access the - * resource. - * - * @member {string} [backendIPConfiguration.etag] A unique read-only string - * that changes whenever the resource is updated. - * - * @member {string} [protocol] The transport protocol for the endpoint. - * Possible values are: 'Udp' or 'Tcp'. Possible values include: 'Udp', 'Tcp' - * - * @member {number} [frontendPort] The port for the external endpoint. Port - * numbers for each Rule must be unique within the Load Balancer. Acceptable - * values range from 1 to 65534. - * - * @member {number} [backendPort] The port used for the internal endpoint. - * Acceptable values range from 1 to 65535. - * - * @member {number} [idleTimeoutInMinutes] The timeout for the TCP idle - * connection. The value can be set between 4 and 30 minutes. The default value - * is 4 minutes. This element is only used when the protocol is set to TCP. - * - * @member {boolean} [enableFloatingIP] Configures a virtual machine's endpoint - * for the floating IP capability required to configure a SQL AlwaysOn - * Availability Group. This setting is required when using the SQL AlwaysOn - * Availability Groups in SQL server. This setting can't be changed after you - * create the endpoint. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class InboundNatRule extends models['SubResource'] { + /** + * Create a InboundNatRule. + * @member {object} [frontendIPConfiguration] A reference to frontend IP + * addresses. + * @member {string} [frontendIPConfiguration.id] Resource ID. + * @member {object} [backendIPConfiguration] A reference to a private IP + * address defined on a network interface of a VM. Traffic sent to the + * frontend port of each of the frontend IP configurations is forwarded to + * the backend IP. + * @member {array} + * [backendIPConfiguration.applicationGatewayBackendAddressPools] The + * reference of ApplicationGatewayBackendAddressPool resource. + * @member {array} [backendIPConfiguration.loadBalancerBackendAddressPools] + * The reference of LoadBalancerBackendAddressPool resource. + * @member {array} [backendIPConfiguration.loadBalancerInboundNatRules] A + * list of references of LoadBalancerInboundNatRules. + * @member {string} [backendIPConfiguration.privateIPAddress] Private IP + * address of the IP configuration. + * @member {string} [backendIPConfiguration.privateIPAllocationMethod] + * Defines how a private IP address is assigned. Possible values are: + * 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @member {string} [backendIPConfiguration.privateIPAddressVersion] + * Available from Api-Version 2016-03-30 onwards, it represents whether the + * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. + * Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', + * 'IPv6' + * @member {object} [backendIPConfiguration.subnet] Subnet bound to the IP + * configuration. + * @member {string} [backendIPConfiguration.subnet.addressPrefix] The address + * prefix for the subnet. + * @member {object} [backendIPConfiguration.subnet.networkSecurityGroup] The + * reference of the NetworkSecurityGroup resource. + * @member {array} + * [backendIPConfiguration.subnet.networkSecurityGroup.securityRules] A + * collection of security rules of the network security group. + * @member {array} + * [backendIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] + * The default security rules of network security group. + * @member {array} + * [backendIPConfiguration.subnet.networkSecurityGroup.networkInterfaces] A + * collection of references to network interfaces. + * @member {array} + * [backendIPConfiguration.subnet.networkSecurityGroup.subnets] A collection + * of references to subnets. + * @member {string} + * [backendIPConfiguration.subnet.networkSecurityGroup.resourceGuid] The + * resource GUID property of the network security group resource. + * @member {string} + * [backendIPConfiguration.subnet.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [backendIPConfiguration.subnet.networkSecurityGroup.etag] + * A unique read-only string that changes whenever the resource is updated. + * @member {object} [backendIPConfiguration.subnet.routeTable] The reference + * of the RouteTable resource. + * @member {array} [backendIPConfiguration.subnet.routeTable.routes] + * Collection of routes contained within a route table. + * @member {array} [backendIPConfiguration.subnet.routeTable.subnets] A + * collection of references to subnets. + * @member {string} + * [backendIPConfiguration.subnet.routeTable.provisioningState] The + * provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [backendIPConfiguration.subnet.routeTable.etag] Gets a + * unique read-only string that changes whenever the resource is updated. + * @member {array} [backendIPConfiguration.subnet.serviceEndpoints] An array + * of service endpoints. + * @member {array} [backendIPConfiguration.subnet.ipConfigurations] Gets an + * array of references to the network interface IP configurations using + * subnet. + * @member {array} [backendIPConfiguration.subnet.resourceNavigationLinks] + * Gets an array of references to the external resources using subnet. + * @member {string} [backendIPConfiguration.subnet.provisioningState] The + * provisioning state of the resource. + * @member {string} [backendIPConfiguration.subnet.name] The name of the + * resource that is unique within a resource group. This name can be used to + * access the resource. + * @member {string} [backendIPConfiguration.subnet.etag] A unique read-only + * string that changes whenever the resource is updated. + * @member {boolean} [backendIPConfiguration.primary] Gets whether this is a + * primary customer address on the network interface. + * @member {object} [backendIPConfiguration.publicIPAddress] Public IP + * address bound to the IP configuration. + * @member {object} [backendIPConfiguration.publicIPAddress.sku] The public + * IP address SKU. + * @member {string} [backendIPConfiguration.publicIPAddress.sku.name] Name of + * a public IP address SKU. Possible values include: 'Basic', 'Standard' + * @member {string} + * [backendIPConfiguration.publicIPAddress.publicIPAllocationMethod] The + * public IP allocation method. Possible values are: 'Static' and 'Dynamic'. + * Possible values include: 'Static', 'Dynamic' + * @member {string} + * [backendIPConfiguration.publicIPAddress.publicIPAddressVersion] The public + * IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible + * values include: 'IPv4', 'IPv6' + * @member {object} [backendIPConfiguration.publicIPAddress.ipConfiguration] + * The IP configuration associated with the public IP address. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] + * The private IP address of the IP configuration. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] + * The private IP allocation method. Possible values are 'Static' and + * 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @member {object} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet] The + * reference of the subnet resource. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] + * The address prefix for the subnet. + * @member {object} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] + * The reference of the NetworkSecurityGroup resource. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] + * A collection of security rules of the network security group. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] + * The default security rules of network security group. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] + * A collection of references to network interfaces. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] + * A collection of references to subnets. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] + * The resource GUID property of the network security group resource. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] + * The provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] + * A unique read-only string that changes whenever the resource is updated. + * @member {object} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] + * The reference of the RouteTable resource. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] + * Collection of routes contained within a route table. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] + * A collection of references to subnets. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] + * The provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] + * Gets a unique read-only string that changes whenever the resource is + * updated. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] + * An array of service endpoints. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] + * Gets an array of references to the network interface IP configurations + * using subnet. + * @member {array} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] + * Gets an array of references to the external resources using subnet. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] + * The provisioning state of the resource. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.name] The + * name of the resource that is unique within a resource group. This name can + * be used to access the resource. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.etag] A + * unique read-only string that changes whenever the resource is updated. + * @member {object} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] + * The reference of the public IP resource. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.provisioningState] + * Gets the provisioning state of the public IP resource. Possible values + * are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.name] The name of + * the resource that is unique within a resource group. This name can be used + * to access the resource. + * @member {string} + * [backendIPConfiguration.publicIPAddress.ipConfiguration.etag] A unique + * read-only string that changes whenever the resource is updated. + * @member {object} [backendIPConfiguration.publicIPAddress.dnsSettings] The + * FQDN of the DNS record associated with the public IP address. + * @member {string} + * [backendIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] Gets + * or sets the Domain name label.The concatenation of the domain name label + * and the regionalized DNS zone make up the fully qualified domain name + * associated with the public IP address. If a domain name label is + * specified, an A DNS record is created for the public IP in the Microsoft + * Azure DNS system. + * @member {string} [backendIPConfiguration.publicIPAddress.dnsSettings.fqdn] + * Gets the FQDN, Fully qualified domain name of the A DNS record associated + * with the public IP. This is the concatenation of the domainNameLabel and + * the regionalized DNS zone. + * @member {string} + * [backendIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] Gets or + * Sets the Reverse FQDN. A user-visible, fully qualified domain name that + * resolves to this public IP address. If the reverseFqdn is specified, then + * a PTR DNS record is created pointing from the IP address in the + * in-addr.arpa domain to the reverse FQDN. + * @member {string} [backendIPConfiguration.publicIPAddress.ipAddress] The IP + * address associated with the public IP address resource. + * @member {number} + * [backendIPConfiguration.publicIPAddress.idleTimeoutInMinutes] The idle + * timeout of the public IP address. + * @member {string} [backendIPConfiguration.publicIPAddress.resourceGuid] The + * resource GUID property of the public IP resource. + * @member {string} + * [backendIPConfiguration.publicIPAddress.provisioningState] The + * provisioning state of the PublicIP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [backendIPConfiguration.publicIPAddress.etag] A unique + * read-only string that changes whenever the resource is updated. + * @member {string} [backendIPConfiguration.provisioningState] The + * provisioning state of the network interface IP configuration. Possible + * values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [backendIPConfiguration.name] The name of the resource + * that is unique within a resource group. This name can be used to access + * the resource. + * @member {string} [backendIPConfiguration.etag] A unique read-only string + * that changes whenever the resource is updated. + * @member {string} [protocol] The transport protocol for the endpoint. + * Possible values are: 'Udp' or 'Tcp'. Possible values include: 'Udp', 'Tcp' + * @member {number} [frontendPort] The port for the external endpoint. Port + * numbers for each Rule must be unique within the Load Balancer. Acceptable + * values range from 1 to 65534. + * @member {number} [backendPort] The port used for the internal endpoint. + * Acceptable values range from 1 to 65535. + * @member {number} [idleTimeoutInMinutes] The timeout for the TCP idle + * connection. The value can be set between 4 and 30 minutes. The default + * value is 4 minutes. This element is only used when the protocol is set to + * TCP. + * @member {boolean} [enableFloatingIP] Configures a virtual machine's + * endpoint for the floating IP capability required to configure a SQL + * AlwaysOn Availability Group. This setting is required when using the SQL + * AlwaysOn Availability Groups in SQL server. This setting can't be changed + * after you create the endpoint. + * @member {string} [provisioningState] Gets the provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Gets name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/inboundNatRuleListResult.js b/lib/services/networkManagement2/lib/models/inboundNatRuleListResult.js new file mode 100644 index 0000000000..6bc8468b6d --- /dev/null +++ b/lib/services/networkManagement2/lib/models/inboundNatRuleListResult.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * Response for ListInboundNatRule API service call. + */ +class InboundNatRuleListResult extends Array { + /** + * Create a InboundNatRuleListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of InboundNatRuleListResult + * + * @returns {object} metadata of InboundNatRuleListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'InboundNatRuleListResult', + type: { + name: 'Composite', + className: 'InboundNatRuleListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'InboundNatRuleElementType', + type: { + name: 'Composite', + className: 'InboundNatRule' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = InboundNatRuleListResult; diff --git a/lib/services/networkManagement2/lib/models/index.d.ts b/lib/services/networkManagement2/lib/models/index.d.ts index ef811cf264..191fba08a3 100644 --- a/lib/services/networkManagement2/lib/models/index.d.ts +++ b/lib/services/networkManagement2/lib/models/index.d.ts @@ -3,13 +3,14 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { BaseResource } from 'ms-rest-azure'; import { CloudError } from 'ms-rest-azure'; +import * as moment from 'moment'; export { BaseResource } from 'ms-rest-azure'; export { CloudError } from 'ms-rest-azure'; @@ -19,8 +20,9 @@ export { CloudError } from 'ms-rest-azure'; * @class * Initializes a new instance of the SubResource class. * @constructor - * @member {string} [id] Resource ID. + * Reference to another subresource. * + * @member {string} [id] Resource ID. */ export interface SubResource extends BaseResource { id?: string; @@ -34,24 +36,17 @@ export interface SubResource extends BaseResource { * * @member {array} [backendIPConfigurations] Gets collection of references to * IP addresses defined in network interfaces. - * * @member {array} [loadBalancingRules] Gets load balancing rules that use this * backend address pool. - * * @member {object} [outboundNatRule] Gets outbound rules that use this backend * address pool. - * * @member {string} [outboundNatRule.id] Resource ID. - * * @member {string} [provisioningState] Get provisioning state of the public IP * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [name] Gets name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface BackendAddressPool extends SubResource { readonly backendIPConfigurations?: NetworkInterfaceIPConfiguration[]; @@ -70,316 +65,245 @@ export interface BackendAddressPool extends SubResource { * * @member {object} [frontendIPConfiguration] A reference to frontend IP * addresses. - * * @member {string} [frontendIPConfiguration.id] Resource ID. - * * @member {object} [backendIPConfiguration] A reference to a private IP * address defined on a network interface of a VM. Traffic sent to the frontend - * port of each of the frontend IP configurations is forwarded to the backed + * port of each of the frontend IP configurations is forwarded to the backend * IP. - * * @member {array} * [backendIPConfiguration.applicationGatewayBackendAddressPools] The reference * of ApplicationGatewayBackendAddressPool resource. - * * @member {array} [backendIPConfiguration.loadBalancerBackendAddressPools] The * reference of LoadBalancerBackendAddressPool resource. - * * @member {array} [backendIPConfiguration.loadBalancerInboundNatRules] A list * of references of LoadBalancerInboundNatRules. - * - * @member {string} [backendIPConfiguration.privateIPAddress] - * + * @member {string} [backendIPConfiguration.privateIPAddress] Private IP + * address of the IP configuration. * @member {string} [backendIPConfiguration.privateIPAllocationMethod] Defines * how a private IP address is assigned. Possible values are: 'Static' and * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * * @member {string} [backendIPConfiguration.privateIPAddressVersion] Available * from Api-Version 2016-03-30 onwards, it represents whether the specific * ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values * are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' - * - * @member {object} [backendIPConfiguration.subnet] - * + * @member {object} [backendIPConfiguration.subnet] Subnet bound to the IP + * configuration. * @member {string} [backendIPConfiguration.subnet.addressPrefix] The address * prefix for the subnet. - * * @member {object} [backendIPConfiguration.subnet.networkSecurityGroup] The * reference of the NetworkSecurityGroup resource. - * * @member {array} * [backendIPConfiguration.subnet.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. - * * @member {array} * [backendIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. - * * @member {array} * [backendIPConfiguration.subnet.networkSecurityGroup.networkInterfaces] A * collection of references to network interfaces. - * * @member {array} [backendIPConfiguration.subnet.networkSecurityGroup.subnets] * A collection of references to subnets. - * * @member {string} * [backendIPConfiguration.subnet.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. - * * @member {string} * [backendIPConfiguration.subnet.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [backendIPConfiguration.subnet.networkSecurityGroup.etag] A * unique read-only string that changes whenever the resource is updated. - * * @member {object} [backendIPConfiguration.subnet.routeTable] The reference of * the RouteTable resource. - * * @member {array} [backendIPConfiguration.subnet.routeTable.routes] Collection * of routes contained within a route table. - * * @member {array} [backendIPConfiguration.subnet.routeTable.subnets] A * collection of references to subnets. - * * @member {string} * [backendIPConfiguration.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [backendIPConfiguration.subnet.routeTable.etag] Gets a * unique read-only string that changes whenever the resource is updated. - * - * @member {array} [backendIPConfiguration.subnet.privateAccessServices] An - * array of private access services values. - * + * @member {array} [backendIPConfiguration.subnet.serviceEndpoints] An array of + * service endpoints. * @member {array} [backendIPConfiguration.subnet.ipConfigurations] Gets an * array of references to the network interface IP configurations using subnet. - * * @member {array} [backendIPConfiguration.subnet.resourceNavigationLinks] Gets * an array of references to the external resources using subnet. - * * @member {string} [backendIPConfiguration.subnet.provisioningState] The * provisioning state of the resource. - * * @member {string} [backendIPConfiguration.subnet.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. - * * @member {string} [backendIPConfiguration.subnet.etag] A unique read-only * string that changes whenever the resource is updated. - * * @member {boolean} [backendIPConfiguration.primary] Gets whether this is a * primary customer address on the network interface. - * - * @member {object} [backendIPConfiguration.publicIPAddress] - * + * @member {object} [backendIPConfiguration.publicIPAddress] Public IP address + * bound to the IP configuration. + * @member {object} [backendIPConfiguration.publicIPAddress.sku] The public IP + * address SKU. + * @member {string} [backendIPConfiguration.publicIPAddress.sku.name] Name of a + * public IP address SKU. Possible values include: 'Basic', 'Standard' * @member {string} * [backendIPConfiguration.publicIPAddress.publicIPAllocationMethod] The public * IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' - * * @member {string} * [backendIPConfiguration.publicIPAddress.publicIPAddressVersion] The public * IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible values * include: 'IPv4', 'IPv6' - * * @member {object} [backendIPConfiguration.publicIPAddress.ipConfiguration] - * + * The IP configuration associated with the public IP address. * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] * The private IP address of the IP configuration. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] * The private IP allocation method. Possible values are 'Static' and * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * * @member {object} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet] The * reference of the subnet resource. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] * The address prefix for the subnet. - * * @member {object} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. - * * @member {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. - * * @member {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. - * * @member {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] * A collection of references to network interfaces. - * * @member {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] * A collection of references to subnets. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. - * * @member {object} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] * The reference of the RouteTable resource. - * * @member {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. - * * @member {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] * A collection of references to subnets. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. - * * @member {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.privateAccessServices] - * An array of private access services values. - * + * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] + * An array of service endpoints. * @member {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] * Gets an array of references to the network interface IP configurations using * subnet. - * * @member {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] * The provisioning state of the resource. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.name] The * name of the resource that is unique within a resource group. This name can * be used to access the resource. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.etag] A * unique read-only string that changes whenever the resource is updated. - * * @member {object} * [backendIPConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] The * reference of the public IP resource. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.name] The name of * the resource that is unique within a resource group. This name can be used * to access the resource. - * * @member {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.etag] A unique * read-only string that changes whenever the resource is updated. - * * @member {object} [backendIPConfiguration.publicIPAddress.dnsSettings] The * FQDN of the DNS record associated with the public IP address. - * * @member {string} * [backendIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] Gets or * sets the Domain name label.The concatenation of the domain name label and * the regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. - * * @member {string} [backendIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. - * * @member {string} * [backendIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] Gets or * Sets the Reverse FQDN. A user-visible, fully qualified domain name that * resolves to this public IP address. If the reverseFqdn is specified, then a * PTR DNS record is created pointing from the IP address in the in-addr.arpa * domain to the reverse FQDN. - * - * @member {string} [backendIPConfiguration.publicIPAddress.ipAddress] - * + * @member {string} [backendIPConfiguration.publicIPAddress.ipAddress] The IP + * address associated with the public IP address resource. * @member {number} * [backendIPConfiguration.publicIPAddress.idleTimeoutInMinutes] The idle * timeout of the public IP address. - * * @member {string} [backendIPConfiguration.publicIPAddress.resourceGuid] The * resource GUID property of the public IP resource. - * * @member {string} [backendIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [backendIPConfiguration.publicIPAddress.etag] A unique * read-only string that changes whenever the resource is updated. - * - * @member {string} [backendIPConfiguration.provisioningState] - * + * @member {string} [backendIPConfiguration.provisioningState] The provisioning + * state of the network interface IP configuration. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. * @member {string} [backendIPConfiguration.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. - * * @member {string} [backendIPConfiguration.etag] A unique read-only string * that changes whenever the resource is updated. - * * @member {string} [protocol] The transport protocol for the endpoint. * Possible values are: 'Udp' or 'Tcp'. Possible values include: 'Udp', 'Tcp' - * * @member {number} [frontendPort] The port for the external endpoint. Port * numbers for each Rule must be unique within the Load Balancer. Acceptable * values range from 1 to 65534. - * * @member {number} [backendPort] The port used for the internal endpoint. * Acceptable values range from 1 to 65535. - * * @member {number} [idleTimeoutInMinutes] The timeout for the TCP idle * connection. The value can be set between 4 and 30 minutes. The default value * is 4 minutes. This element is only used when the protocol is set to TCP. - * * @member {boolean} [enableFloatingIP] Configures a virtual machine's endpoint * for the floating IP capability required to configure a SQL AlwaysOn * Availability Group. This setting is required when using the SQL AlwaysOn * Availability Groups in SQL server. This setting can't be changed after you * create the endpoint. - * * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Gets name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface InboundNatRule extends SubResource { frontendIPConfiguration?: SubResource; @@ -402,49 +326,42 @@ export interface InboundNatRule extends SubResource { * * @member {string} [description] A description for this rule. Restricted to * 140 chars. - * * @member {string} protocol Network protocol this rule applies to. Possible * values are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', '*' - * * @member {string} [sourcePortRange] The source port or range. Integer or * range between 0 and 65535. Asterix '*' can also be used to match all ports. - * * @member {string} [destinationPortRange] The destination port or range. * Integer or range between 0 and 65535. Asterix '*' can also be used to match * all ports. - * * @member {string} sourceAddressPrefix The CIDR or source IP range. Asterix * '*' can also be used to match all source IPs. Default tags such as * 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If * this is an ingress rule, specifies where network traffic originates from. - * + * @member {array} [sourceAddressPrefixes] The CIDR or source IP ranges. * @member {string} destinationAddressPrefix The destination address prefix. - * CIDR or source IP range. Asterix '*' can also be used to match all source - * IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + * CIDR or destination IP range. Asterix '*' can also be used to match all + * source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and * 'Internet' can also be used. - * + * @member {array} [destinationAddressPrefixes] The destination address + * prefixes. CIDR or destination IP ranges. + * @member {array} [sourcePortRanges] The source port ranges. + * @member {array} [destinationPortRanges] The destination port ranges. * @member {string} access The network traffic is allowed or denied. Possible * values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny' - * * @member {number} [priority] The priority of the rule. The value can be * between 100 and 4096. The priority number must be unique for each rule in * the collection. The lower the priority number, the higher the priority of * the rule. - * * @member {string} direction The direction of the rule. The direction * specifies if rule will be evaluated on incoming or outcoming traffic. * Possible values are: 'Inbound' and 'Outbound'. Possible values include: * 'Inbound', 'Outbound' - * * @member {string} [provisioningState] The provisioning state of the public IP * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface SecurityRule extends SubResource { description?: string; @@ -452,7 +369,11 @@ export interface SecurityRule extends SubResource { sourcePortRange?: string; destinationPortRange?: string; sourceAddressPrefix: string; + sourceAddressPrefixes?: string[]; destinationAddressPrefix: string; + destinationAddressPrefixes?: string[]; + sourcePortRanges?: string[]; + destinationPortRanges?: string[]; access: string; priority?: number; direction: string; @@ -471,23 +392,18 @@ export interface SecurityRule extends SubResource { * 'AzureProvidedDNS' to switch to azure provided DNS resolution. * 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the * only value in dnsServers collection. - * * @member {array} [appliedDnsServers] If the VM that uses this NIC is part of * an Availability Set, then this list will have the union of all DNS servers * from all NICs that are part of the Availability Set. This property is what * is configured on each of those VMs. - * * @member {string} [internalDnsNameLabel] Relative DNS name for this NIC used * for internal communications between VMs in the same virtual network. - * * @member {string} [internalFqdn] Fully qualified DNS name supporting internal * communications between VMs in the same virtual network. - * * @member {string} [internalDomainNameSuffix] Even if internalDnsNameLabel is * not specified, a DNS entry is created for the primary NIC of the VM. This * DNS name can be constructed by concatenating the VM name with the value of * internalDomainNameSuffix. - * */ export interface NetworkInterfaceDnsSettings { dnsServers?: string[]; @@ -501,16 +417,13 @@ export interface NetworkInterfaceDnsSettings { * @class * Initializes a new instance of the Resource class. * @constructor - * @member {string} [id] Resource ID. + * Common resource representation. * + * @member {string} [id] Resource ID. * @member {string} [name] Resource name. - * * @member {string} [type] Resource type. - * * @member {string} [location] Resource location. - * * @member {object} [tags] Resource tags. - * */ export interface Resource extends BaseResource { id?: string; @@ -527,81 +440,57 @@ export interface Resource extends BaseResource { * A network interface in a resource group. * * @member {object} [virtualMachine] The reference of a virtual machine. - * * @member {string} [virtualMachine.id] Resource ID. - * * @member {object} [networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. - * * @member {array} [networkSecurityGroup.securityRules] A collection of * security rules of the network security group. - * * @member {array} [networkSecurityGroup.defaultSecurityRules] The default * security rules of network security group. - * * @member {array} [networkSecurityGroup.networkInterfaces] A collection of * references to network interfaces. - * * @member {array} [networkSecurityGroup.subnets] A collection of references to * subnets. - * * @member {string} [networkSecurityGroup.resourceGuid] The resource GUID * property of the network security group resource. - * * @member {string} [networkSecurityGroup.provisioningState] The provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [networkSecurityGroup.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {array} [ipConfigurations] A list of IPConfigurations of the network * interface. - * * @member {object} [dnsSettings] The DNS settings in network interface. - * * @member {array} [dnsSettings.dnsServers] List of DNS servers IP addresses. * Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. * 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the * only value in dnsServers collection. - * * @member {array} [dnsSettings.appliedDnsServers] If the VM that uses this NIC * is part of an Availability Set, then this list will have the union of all * DNS servers from all NICs that are part of the Availability Set. This * property is what is configured on each of those VMs. - * * @member {string} [dnsSettings.internalDnsNameLabel] Relative DNS name for * this NIC used for internal communications between VMs in the same virtual * network. - * * @member {string} [dnsSettings.internalFqdn] Fully qualified DNS name * supporting internal communications between VMs in the same virtual network. - * * @member {string} [dnsSettings.internalDomainNameSuffix] Even if * internalDnsNameLabel is not specified, a DNS entry is created for the * primary NIC of the VM. This DNS name can be constructed by concatenating the * VM name with the value of internalDomainNameSuffix. - * * @member {string} [macAddress] The MAC address of the network interface. - * * @member {boolean} [primary] Gets whether this is a primary network interface * on a virtual machine. - * * @member {boolean} [enableAcceleratedNetworking] If the network interface is * accelerated networking enabled. - * * @member {boolean} [enableIPForwarding] Indicates whether IP forwarding is * enabled on this network interface. - * * @member {string} [resourceGuid] The resource GUID property of the network * interface resource. - * * @member {string} [provisioningState] The provisioning state of the public IP * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface NetworkInterface extends Resource { virtualMachine?: SubResource; @@ -625,24 +514,17 @@ export interface NetworkInterface extends Resource { * * @member {array} [securityRules] A collection of security rules of the * network security group. - * * @member {array} [defaultSecurityRules] The default security rules of network * security group. - * * @member {array} [networkInterfaces] A collection of references to network * interfaces. - * * @member {array} [subnets] A collection of references to subnets. - * * @member {string} [resourceGuid] The resource GUID property of the network * security group resource. - * * @member {string} [provisioningState] The provisioning state of the public IP * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface NetworkSecurityGroup extends Resource { securityRules?: SecurityRule[]; @@ -662,25 +544,19 @@ export interface NetworkSecurityGroup extends Resource { * * @member {string} [addressPrefix] The destination CIDR to which the route * applies. - * * @member {string} nextHopType The type of Azure hop the packet should be sent * to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', * 'VirtualAppliance', and 'None'. Possible values include: * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' - * * @member {string} [nextHopIpAddress] The IP address packets should be * forwarded to. Next hop values are only allowed in routes where the next hop * type is VirtualAppliance. - * * @member {string} [provisioningState] The provisioning state of the resource. * Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface Route extends SubResource { addressPrefix?: string; @@ -699,15 +575,11 @@ export interface Route extends SubResource { * * @member {array} [routes] Collection of routes contained within a route * table. - * * @member {array} [subnets] A collection of references to subnets. - * * @member {string} [provisioningState] The provisioning state of the resource. * Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [etag] Gets a unique read-only string that changes whenever * the resource is updated. - * */ export interface RouteTable extends Resource { routes?: Route[]; @@ -718,23 +590,33 @@ export interface RouteTable extends Resource { /** * @class - * Initializes a new instance of the PrivateAccessServicePropertiesFormat class. + * Initializes a new instance of the ServiceEndpointPropertiesFormat class. * @constructor - * The private access service properties. - * - * @member {string} [service] The type of the private access. + * The service endpoint properties. * + * @member {string} [service] The type of the endpoint service. * @member {array} [locations] A list of locations. - * * @member {string} [provisioningState] The provisioning state of the resource. - * */ -export interface PrivateAccessServicePropertiesFormat { +export interface ServiceEndpointPropertiesFormat { service?: string; locations?: string[]; provisioningState?: string; } +/** + * @class + * Initializes a new instance of the PublicIPAddressSku class. + * @constructor + * SKU of a public IP address + * + * @member {string} [name] Name of a public IP address SKU. Possible values + * include: 'Basic', 'Standard' + */ +export interface PublicIPAddressSku { + name?: string; +} + /** * @class * Initializes a new instance of the PublicIPAddressDnsSettings class. @@ -746,16 +628,13 @@ export interface PrivateAccessServicePropertiesFormat { * the fully qualified domain name associated with the public IP address. If a * domain name label is specified, an A DNS record is created for the public IP * in the Microsoft Azure DNS system. - * * @member {string} [fqdn] Gets the FQDN, Fully qualified domain name of the A * DNS record associated with the public IP. This is the concatenation of the * domainNameLabel and the regionalized DNS zone. - * * @member {string} [reverseFqdn] Gets or Sets the Reverse FQDN. A * user-visible, fully qualified domain name that resolves to this public IP * address. If the reverseFqdn is specified, then a PTR DNS record is created * pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. - * */ export interface PublicIPAddressDnsSettings { domainNameLabel?: string; @@ -769,140 +648,107 @@ export interface PublicIPAddressDnsSettings { * @constructor * Public IP address resource. * + * @member {object} [sku] The public IP address SKU. + * @member {string} [sku.name] Name of a public IP address SKU. Possible values + * include: 'Basic', 'Standard' * @member {string} [publicIPAllocationMethod] The public IP allocation method. * Possible values are: 'Static' and 'Dynamic'. Possible values include: * 'Static', 'Dynamic' - * * @member {string} [publicIPAddressVersion] The public IP address version. * Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', * 'IPv6' - * - * @member {object} [ipConfiguration] - * + * @member {object} [ipConfiguration] The IP configuration associated with the + * public IP address. * @member {string} [ipConfiguration.privateIPAddress] The private IP address * of the IP configuration. - * * @member {string} [ipConfiguration.privateIPAllocationMethod] The private IP * allocation method. Possible values are 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' - * * @member {object} [ipConfiguration.subnet] The reference of the subnet * resource. - * * @member {string} [ipConfiguration.subnet.addressPrefix] The address prefix * for the subnet. - * * @member {object} [ipConfiguration.subnet.networkSecurityGroup] The reference * of the NetworkSecurityGroup resource. - * * @member {array} [ipConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. - * * @member {array} * [ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. - * * @member {array} * [ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] A collection * of references to network interfaces. - * * @member {array} [ipConfiguration.subnet.networkSecurityGroup.subnets] A * collection of references to subnets. - * * @member {string} [ipConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. - * * @member {string} * [ipConfiguration.subnet.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [ipConfiguration.subnet.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. - * * @member {object} [ipConfiguration.subnet.routeTable] The reference of the * RouteTable resource. - * * @member {array} [ipConfiguration.subnet.routeTable.routes] Collection of * routes contained within a route table. - * * @member {array} [ipConfiguration.subnet.routeTable.subnets] A collection of * references to subnets. - * * @member {string} [ipConfiguration.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [ipConfiguration.subnet.routeTable.etag] Gets a unique * read-only string that changes whenever the resource is updated. - * - * @member {array} [ipConfiguration.subnet.privateAccessServices] An array of - * private access services values. - * + * @member {array} [ipConfiguration.subnet.serviceEndpoints] An array of + * service endpoints. * @member {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of * references to the network interface IP configurations using subnet. - * * @member {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an * array of references to the external resources using subnet. - * * @member {string} [ipConfiguration.subnet.provisioningState] The provisioning * state of the resource. - * * @member {string} [ipConfiguration.subnet.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. - * * @member {string} [ipConfiguration.subnet.etag] A unique read-only string * that changes whenever the resource is updated. - * * @member {object} [ipConfiguration.publicIPAddress] The reference of the * public IP resource. - * * @member {string} [ipConfiguration.provisioningState] Gets the provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [ipConfiguration.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. - * * @member {string} [ipConfiguration.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {object} [dnsSettings] The FQDN of the DNS record associated with * the public IP address. - * * @member {string} [dnsSettings.domainNameLabel] Gets or sets the Domain name * label.The concatenation of the domain name label and the regionalized DNS * zone make up the fully qualified domain name associated with the public IP * address. If a domain name label is specified, an A DNS record is created for * the public IP in the Microsoft Azure DNS system. - * * @member {string} [dnsSettings.fqdn] Gets the FQDN, Fully qualified domain * name of the A DNS record associated with the public IP. This is the * concatenation of the domainNameLabel and the regionalized DNS zone. - * * @member {string} [dnsSettings.reverseFqdn] Gets or Sets the Reverse FQDN. A * user-visible, fully qualified domain name that resolves to this public IP * address. If the reverseFqdn is specified, then a PTR DNS record is created * pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. - * - * @member {string} [ipAddress] - * + * @member {string} [ipAddress] The IP address associated with the public IP + * address resource. * @member {number} [idleTimeoutInMinutes] The idle timeout of the public IP * address. - * * @member {string} [resourceGuid] The resource GUID property of the public IP * resource. - * * @member {string} [provisioningState] The provisioning state of the PublicIP * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface PublicIPAddress extends Resource { + sku?: PublicIPAddressSku; publicIPAllocationMethod?: string; publicIPAddressVersion?: string; readonly ipConfiguration?: IPConfiguration; @@ -918,135 +764,100 @@ export interface PublicIPAddress extends Resource { * @class * Initializes a new instance of the IPConfiguration class. * @constructor - * IPConfiguration + * IP configuration * * @member {string} [privateIPAddress] The private IP address of the IP * configuration. - * * @member {string} [privateIPAllocationMethod] The private IP allocation * method. Possible values are 'Static' and 'Dynamic'. Possible values include: * 'Static', 'Dynamic' - * * @member {object} [subnet] The reference of the subnet resource. - * * @member {string} [subnet.addressPrefix] The address prefix for the subnet. - * * @member {object} [subnet.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. - * * @member {array} [subnet.networkSecurityGroup.securityRules] A collection of * security rules of the network security group. - * * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. - * * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A collection * of references to network interfaces. - * * @member {array} [subnet.networkSecurityGroup.subnets] A collection of * references to subnets. - * * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource * GUID property of the network security group resource. - * * @member {string} [subnet.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only * string that changes whenever the resource is updated. - * * @member {object} [subnet.routeTable] The reference of the RouteTable * resource. - * * @member {array} [subnet.routeTable.routes] Collection of routes contained * within a route table. - * * @member {array} [subnet.routeTable.subnets] A collection of references to * subnets. - * * @member {string} [subnet.routeTable.provisioningState] The provisioning * state of the resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [subnet.routeTable.etag] Gets a unique read-only string * that changes whenever the resource is updated. - * - * @member {array} [subnet.privateAccessServices] An array of private access - * services values. - * + * @member {array} [subnet.serviceEndpoints] An array of service endpoints. * @member {array} [subnet.ipConfigurations] Gets an array of references to the * network interface IP configurations using subnet. - * * @member {array} [subnet.resourceNavigationLinks] Gets an array of references * to the external resources using subnet. - * * @member {string} [subnet.provisioningState] The provisioning state of the * resource. - * * @member {string} [subnet.name] The name of the resource that is unique * within a resource group. This name can be used to access the resource. - * * @member {string} [subnet.etag] A unique read-only string that changes * whenever the resource is updated. - * * @member {object} [publicIPAddress] The reference of the public IP resource. - * + * @member {object} [publicIPAddress.sku] The public IP address SKU. + * @member {string} [publicIPAddress.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' - * * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values * include: 'IPv4', 'IPv6' - * - * @member {object} [publicIPAddress.ipConfiguration] - * + * @member {object} [publicIPAddress.ipConfiguration] The IP configuration + * associated with the public IP address. * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record * associated with the public IP address. - * * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or sets * the Domain name label.The concatenation of the domain name label and the * regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. - * * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully * qualified domain name of the A DNS record associated with the public IP. * This is the concatenation of the domainNameLabel and the regionalized DNS * zone. - * * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets the * Reverse FQDN. A user-visible, fully qualified domain name that resolves to * this public IP address. If the reverseFqdn is specified, then a PTR DNS * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. - * - * @member {string} [publicIPAddress.ipAddress] - * + * @member {string} [publicIPAddress.ipAddress] The IP address associated with + * the public IP address resource. * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout of * the public IP address. - * * @member {string} [publicIPAddress.resourceGuid] The resource GUID property * of the public IP resource. - * * @member {string} [publicIPAddress.provisioningState] The provisioning state * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [publicIPAddress.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface IPConfiguration extends SubResource { privateIPAddress?: string; @@ -1065,18 +876,13 @@ export interface IPConfiguration extends SubResource { * ResourceNavigationLink resource. * * @member {string} [linkedResourceType] Resource type of the linked resource. - * * @member {string} [link] Link to the external resource - * * @member {string} [provisioningState] Provisioning state of the * ResourceNavigationLink resource. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface ResourceNavigationLink extends SubResource { linkedResourceType?: string; @@ -1093,68 +899,47 @@ export interface ResourceNavigationLink extends SubResource { * Subnet in a virtual network resource. * * @member {string} [addressPrefix] The address prefix for the subnet. - * * @member {object} [networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. - * * @member {array} [networkSecurityGroup.securityRules] A collection of * security rules of the network security group. - * * @member {array} [networkSecurityGroup.defaultSecurityRules] The default * security rules of network security group. - * * @member {array} [networkSecurityGroup.networkInterfaces] A collection of * references to network interfaces. - * * @member {array} [networkSecurityGroup.subnets] A collection of references to * subnets. - * * @member {string} [networkSecurityGroup.resourceGuid] The resource GUID * property of the network security group resource. - * * @member {string} [networkSecurityGroup.provisioningState] The provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [networkSecurityGroup.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {object} [routeTable] The reference of the RouteTable resource. - * * @member {array} [routeTable.routes] Collection of routes contained within a * route table. - * * @member {array} [routeTable.subnets] A collection of references to subnets. - * * @member {string} [routeTable.provisioningState] The provisioning state of * the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [routeTable.etag] Gets a unique read-only string that * changes whenever the resource is updated. - * - * @member {array} [privateAccessServices] An array of private access services - * values. - * + * @member {array} [serviceEndpoints] An array of service endpoints. * @member {array} [ipConfigurations] Gets an array of references to the * network interface IP configurations using subnet. - * * @member {array} [resourceNavigationLinks] Gets an array of references to the * external resources using subnet. - * * @member {string} [provisioningState] The provisioning state of the resource. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface Subnet extends SubResource { addressPrefix?: string; networkSecurityGroup?: NetworkSecurityGroup; routeTable?: RouteTable; - privateAccessServices?: PrivateAccessServicePropertiesFormat[]; + serviceEndpoints?: ServiceEndpointPropertiesFormat[]; readonly ipConfigurations?: IPConfiguration[]; resourceNavigationLinks?: ResourceNavigationLink[]; provisioningState?: string; @@ -1170,245 +955,181 @@ export interface Subnet extends SubResource { * * @member {array} [applicationGatewayBackendAddressPools] The reference of * ApplicationGatewayBackendAddressPool resource. - * * @member {array} [loadBalancerBackendAddressPools] The reference of * LoadBalancerBackendAddressPool resource. - * * @member {array} [loadBalancerInboundNatRules] A list of references of * LoadBalancerInboundNatRules. - * - * @member {string} [privateIPAddress] - * + * @member {string} [privateIPAddress] Private IP address of the IP + * configuration. * @member {string} [privateIPAllocationMethod] Defines how a private IP * address is assigned. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' - * * @member {string} [privateIPAddressVersion] Available from Api-Version * 2016-03-30 onwards, it represents whether the specific ipconfiguration is * IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and * 'IPv6'. Possible values include: 'IPv4', 'IPv6' - * - * @member {object} [subnet] - * + * @member {object} [subnet] Subnet bound to the IP configuration. * @member {string} [subnet.addressPrefix] The address prefix for the subnet. - * * @member {object} [subnet.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. - * * @member {array} [subnet.networkSecurityGroup.securityRules] A collection of * security rules of the network security group. - * * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. - * * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A collection * of references to network interfaces. - * * @member {array} [subnet.networkSecurityGroup.subnets] A collection of * references to subnets. - * * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource * GUID property of the network security group resource. - * * @member {string} [subnet.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only * string that changes whenever the resource is updated. - * * @member {object} [subnet.routeTable] The reference of the RouteTable * resource. - * * @member {array} [subnet.routeTable.routes] Collection of routes contained * within a route table. - * * @member {array} [subnet.routeTable.subnets] A collection of references to * subnets. - * * @member {string} [subnet.routeTable.provisioningState] The provisioning * state of the resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [subnet.routeTable.etag] Gets a unique read-only string * that changes whenever the resource is updated. - * - * @member {array} [subnet.privateAccessServices] An array of private access - * services values. - * + * @member {array} [subnet.serviceEndpoints] An array of service endpoints. * @member {array} [subnet.ipConfigurations] Gets an array of references to the * network interface IP configurations using subnet. - * * @member {array} [subnet.resourceNavigationLinks] Gets an array of references * to the external resources using subnet. - * * @member {string} [subnet.provisioningState] The provisioning state of the * resource. - * * @member {string} [subnet.name] The name of the resource that is unique * within a resource group. This name can be used to access the resource. - * * @member {string} [subnet.etag] A unique read-only string that changes * whenever the resource is updated. - * * @member {boolean} [primary] Gets whether this is a primary customer address * on the network interface. - * - * @member {object} [publicIPAddress] - * + * @member {object} [publicIPAddress] Public IP address bound to the IP + * configuration. + * @member {object} [publicIPAddress.sku] The public IP address SKU. + * @member {string} [publicIPAddress.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' - * * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values * include: 'IPv4', 'IPv6' - * - * @member {object} [publicIPAddress.ipConfiguration] - * + * @member {object} [publicIPAddress.ipConfiguration] The IP configuration + * associated with the public IP address. * @member {string} [publicIPAddress.ipConfiguration.privateIPAddress] The * private IP address of the IP configuration. - * * @member {string} [publicIPAddress.ipConfiguration.privateIPAllocationMethod] * The private IP allocation method. Possible values are 'Static' and * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * * @member {object} [publicIPAddress.ipConfiguration.subnet] The reference of * the subnet resource. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] The * address prefix for the subnet. - * * @member {object} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The reference * of the NetworkSecurityGroup resource. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] * A collection of references to network interfaces. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] A * collection of references to subnets. - * * @member {string} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. - * * @member {string} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. - * * @member {object} [publicIPAddress.ipConfiguration.subnet.routeTable] The * reference of the RouteTable resource. - * * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. - * * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.subnets] * A collection of references to subnets. - * * @member {string} * [publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.privateAccessServices] An array of - * private access services values. - * + * @member {array} [publicIPAddress.ipConfiguration.subnet.serviceEndpoints] An + * array of service endpoints. * @member {array} [publicIPAddress.ipConfiguration.subnet.ipConfigurations] * Gets an array of references to the network interface IP configurations using * subnet. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an * array of references to the external resources using subnet. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.provisioningState] * The provisioning state of the resource. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.name] The name of * the resource that is unique within a resource group. This name can be used * to access the resource. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.etag] A unique * read-only string that changes whenever the resource is updated. - * * @member {object} [publicIPAddress.ipConfiguration.publicIPAddress] The * reference of the public IP resource. - * * @member {string} [publicIPAddress.ipConfiguration.provisioningState] Gets * the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [publicIPAddress.ipConfiguration.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. - * * @member {string} [publicIPAddress.ipConfiguration.etag] A unique read-only * string that changes whenever the resource is updated. - * * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record * associated with the public IP address. - * * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or sets * the Domain name label.The concatenation of the domain name label and the * regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. - * * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully * qualified domain name of the A DNS record associated with the public IP. * This is the concatenation of the domainNameLabel and the regionalized DNS * zone. - * * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets the * Reverse FQDN. A user-visible, fully qualified domain name that resolves to * this public IP address. If the reverseFqdn is specified, then a PTR DNS * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. - * - * @member {string} [publicIPAddress.ipAddress] - * + * @member {string} [publicIPAddress.ipAddress] The IP address associated with + * the public IP address resource. * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout of * the public IP address. - * * @member {string} [publicIPAddress.resourceGuid] The resource GUID property * of the public IP resource. - * * @member {string} [publicIPAddress.provisioningState] The provisioning state * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [publicIPAddress.etag] A unique read-only string that * changes whenever the resource is updated. - * - * @member {string} [provisioningState] - * + * @member {string} [provisioningState] The provisioning state of the network + * interface IP configuration. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface NetworkInterfaceIPConfiguration extends SubResource { applicationGatewayBackendAddressPools?: ApplicationGatewayBackendAddressPool[]; @@ -1432,9 +1153,7 @@ export interface NetworkInterfaceIPConfiguration extends SubResource { * Backend address of an application gateway. * * @member {string} [fqdn] Fully qualified domain name (FQDN). - * * @member {string} [ipAddress] IP address - * */ export interface ApplicationGatewayBackendAddress { fqdn?: string; @@ -1449,21 +1168,15 @@ export interface ApplicationGatewayBackendAddress { * * @member {array} [backendIPConfigurations] Collection of references to IPs * defined in network interfaces. - * * @member {array} [backendAddresses] Backend addresses - * * @member {string} [provisioningState] Provisioning state of the backend * address pool resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Resource that is unique within a resource group. * This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayBackendAddressPool extends SubResource { backendIPConfigurations?: NetworkInterfaceIPConfiguration[]; @@ -1483,10 +1196,8 @@ export interface ApplicationGatewayBackendAddressPool extends SubResource { * configuration. * * @member {boolean} enabled Whether connection draining is enabled or not. - * * @member {number} drainTimeoutInSec The number of seconds connection draining * is active. Acceptable values are from 1 second to 3600 seconds. - * */ export interface ApplicationGatewayConnectionDraining { enabled: boolean; @@ -1500,61 +1211,42 @@ export interface ApplicationGatewayConnectionDraining { * Backend address pool settings of an application gateway. * * @member {number} [port] Port - * * @member {string} [protocol] Protocol. Possible values include: 'Http', * 'Https' - * * @member {string} [cookieBasedAffinity] Cookie based affinity. Possible * values include: 'Enabled', 'Disabled' - * * @member {number} [requestTimeout] Request timeout in seconds. Application * Gateway will fail the request if response is not received within * RequestTimeout. Acceptable values are from 1 second to 86400 seconds. - * * @member {object} [probe] Probe resource of an application gateway. - * * @member {string} [probe.id] Resource ID. - * * @member {array} [authenticationCertificates] Array of references to * application gateway authentication certificates. - * * @member {object} [connectionDraining] Connection draining of the backend * http settings resource. - * * @member {boolean} [connectionDraining.enabled] Whether connection draining * is enabled or not. - * * @member {number} [connectionDraining.drainTimeoutInSec] The number of * seconds connection draining is active. Acceptable values are from 1 second * to 3600 seconds. - * * @member {string} [hostName] Host header to be sent to the backend servers. - * * @member {boolean} [pickHostNameFromBackendAddress] Whether to pick host * header should be picked from the host name of the backend server. Default * value is false. - * * @member {string} [affinityCookieName] Cookie name to use for the affinity * cookie. - * * @member {boolean} [probeEnabled] Whether the probe is enabled. Default value * is false. - * * @member {string} [path] Path which should be used as a prefix for all HTTP * requests. Null means no path will be prefixed. Default value is null. - * * @member {string} [provisioningState] Provisioning state of the backend http * settings resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayBackendHttpSettings extends SubResource { port?: number; @@ -1582,274 +1274,211 @@ export interface ApplicationGatewayBackendHttpSettings extends SubResource { * Application gateway backendhealth http settings. * * @member {string} [address] IP address or FQDN of backend server. - * * @member {object} [ipConfiguration] Reference of IP configuration of backend * server. - * * @member {array} [ipConfiguration.applicationGatewayBackendAddressPools] The * reference of ApplicationGatewayBackendAddressPool resource. - * * @member {array} [ipConfiguration.loadBalancerBackendAddressPools] The * reference of LoadBalancerBackendAddressPool resource. - * * @member {array} [ipConfiguration.loadBalancerInboundNatRules] A list of * references of LoadBalancerInboundNatRules. - * - * @member {string} [ipConfiguration.privateIPAddress] - * + * @member {string} [ipConfiguration.privateIPAddress] Private IP address of + * the IP configuration. * @member {string} [ipConfiguration.privateIPAllocationMethod] Defines how a * private IP address is assigned. Possible values are: 'Static' and 'Dynamic'. * Possible values include: 'Static', 'Dynamic' - * * @member {string} [ipConfiguration.privateIPAddressVersion] Available from * Api-Version 2016-03-30 onwards, it represents whether the specific * ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values * are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' - * - * @member {object} [ipConfiguration.subnet] - * + * @member {object} [ipConfiguration.subnet] Subnet bound to the IP + * configuration. * @member {string} [ipConfiguration.subnet.addressPrefix] The address prefix * for the subnet. - * * @member {object} [ipConfiguration.subnet.networkSecurityGroup] The reference * of the NetworkSecurityGroup resource. - * * @member {array} [ipConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. - * * @member {array} * [ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. - * * @member {array} * [ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] A collection * of references to network interfaces. - * * @member {array} [ipConfiguration.subnet.networkSecurityGroup.subnets] A * collection of references to subnets. - * * @member {string} [ipConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. - * * @member {string} * [ipConfiguration.subnet.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [ipConfiguration.subnet.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. - * * @member {object} [ipConfiguration.subnet.routeTable] The reference of the * RouteTable resource. - * * @member {array} [ipConfiguration.subnet.routeTable.routes] Collection of * routes contained within a route table. - * * @member {array} [ipConfiguration.subnet.routeTable.subnets] A collection of * references to subnets. - * * @member {string} [ipConfiguration.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [ipConfiguration.subnet.routeTable.etag] Gets a unique * read-only string that changes whenever the resource is updated. - * - * @member {array} [ipConfiguration.subnet.privateAccessServices] An array of - * private access services values. - * + * @member {array} [ipConfiguration.subnet.serviceEndpoints] An array of + * service endpoints. * @member {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of * references to the network interface IP configurations using subnet. - * * @member {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an * array of references to the external resources using subnet. - * * @member {string} [ipConfiguration.subnet.provisioningState] The provisioning * state of the resource. - * * @member {string} [ipConfiguration.subnet.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. - * * @member {string} [ipConfiguration.subnet.etag] A unique read-only string * that changes whenever the resource is updated. - * * @member {boolean} [ipConfiguration.primary] Gets whether this is a primary * customer address on the network interface. - * - * @member {object} [ipConfiguration.publicIPAddress] - * + * @member {object} [ipConfiguration.publicIPAddress] Public IP address bound + * to the IP configuration. + * @member {object} [ipConfiguration.publicIPAddress.sku] The public IP address + * SKU. + * @member {string} [ipConfiguration.publicIPAddress.sku.name] Name of a public + * IP address SKU. Possible values include: 'Basic', 'Standard' * @member {string} [ipConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP allocation method. Possible values are: 'Static' and * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * * @member {string} [ipConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. * Possible values include: 'IPv4', 'IPv6' - * - * @member {object} [ipConfiguration.publicIPAddress.ipConfiguration] - * + * @member {object} [ipConfiguration.publicIPAddress.ipConfiguration] The IP + * configuration associated with the public IP address. * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] The * private IP address of the IP configuration. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] * The private IP allocation method. Possible values are 'Static' and * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * * @member {object} [ipConfiguration.publicIPAddress.ipConfiguration.subnet] * The reference of the subnet resource. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] The * address prefix for the subnet. - * * @member {object} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. - * * @member {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. - * * @member {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. - * * @member {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] * A collection of references to network interfaces. - * * @member {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] * A collection of references to subnets. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. - * * @member {object} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] The * reference of the RouteTable resource. - * * @member {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. - * * @member {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] * A collection of references to subnets. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. - * * @member {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.privateAccessServices] - * An array of private access services values. - * + * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] An + * array of service endpoints. * @member {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] * Gets an array of references to the network interface IP configurations using * subnet. - * * @member {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] * The provisioning state of the resource. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.name] The name of * the resource that is unique within a resource group. This name can be used * to access the resource. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.etag] A unique * read-only string that changes whenever the resource is updated. - * * @member {object} * [ipConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] The * reference of the public IP resource. - * * @member {string} * [ipConfiguration.publicIPAddress.ipConfiguration.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [ipConfiguration.publicIPAddress.ipConfiguration.name] The * name of the resource that is unique within a resource group. This name can * be used to access the resource. - * * @member {string} [ipConfiguration.publicIPAddress.ipConfiguration.etag] A * unique read-only string that changes whenever the resource is updated. - * * @member {object} [ipConfiguration.publicIPAddress.dnsSettings] The FQDN of * the DNS record associated with the public IP address. - * * @member {string} * [ipConfiguration.publicIPAddress.dnsSettings.domainNameLabel] Gets or sets * the Domain name label.The concatenation of the domain name label and the * regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. - * * @member {string} [ipConfiguration.publicIPAddress.dnsSettings.fqdn] Gets the * FQDN, Fully qualified domain name of the A DNS record associated with the * public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. - * * @member {string} [ipConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. - * - * @member {string} [ipConfiguration.publicIPAddress.ipAddress] - * + * @member {string} [ipConfiguration.publicIPAddress.ipAddress] The IP address + * associated with the public IP address resource. * @member {number} [ipConfiguration.publicIPAddress.idleTimeoutInMinutes] The * idle timeout of the public IP address. - * * @member {string} [ipConfiguration.publicIPAddress.resourceGuid] The resource * GUID property of the public IP resource. - * * @member {string} [ipConfiguration.publicIPAddress.provisioningState] The * provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [ipConfiguration.publicIPAddress.etag] A unique read-only * string that changes whenever the resource is updated. - * - * @member {string} [ipConfiguration.provisioningState] - * + * @member {string} [ipConfiguration.provisioningState] The provisioning state + * of the network interface IP configuration. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. * @member {string} [ipConfiguration.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. - * * @member {string} [ipConfiguration.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {string} [health] Health of backend server. Possible values include: * 'Unknown', 'Up', 'Down', 'Partial', 'Draining' - * */ export interface ApplicationGatewayBackendHealthServer { address?: string; @@ -1865,71 +1494,50 @@ export interface ApplicationGatewayBackendHealthServer { * * @member {object} [backendHttpSettings] Reference of an * ApplicationGatewayBackendHttpSettings resource. - * * @member {number} [backendHttpSettings.port] Port - * * @member {string} [backendHttpSettings.protocol] Protocol. Possible values * include: 'Http', 'Https' - * * @member {string} [backendHttpSettings.cookieBasedAffinity] Cookie based * affinity. Possible values include: 'Enabled', 'Disabled' - * * @member {number} [backendHttpSettings.requestTimeout] Request timeout in * seconds. Application Gateway will fail the request if response is not * received within RequestTimeout. Acceptable values are from 1 second to 86400 * seconds. - * * @member {object} [backendHttpSettings.probe] Probe resource of an * application gateway. - * * @member {string} [backendHttpSettings.probe.id] Resource ID. - * * @member {array} [backendHttpSettings.authenticationCertificates] Array of * references to application gateway authentication certificates. - * * @member {object} [backendHttpSettings.connectionDraining] Connection * draining of the backend http settings resource. - * * @member {boolean} [backendHttpSettings.connectionDraining.enabled] Whether * connection draining is enabled or not. - * * @member {number} [backendHttpSettings.connectionDraining.drainTimeoutInSec] * The number of seconds connection draining is active. Acceptable values are * from 1 second to 3600 seconds. - * * @member {string} [backendHttpSettings.hostName] Host header to be sent to * the backend servers. - * * @member {boolean} [backendHttpSettings.pickHostNameFromBackendAddress] * Whether to pick host header should be picked from the host name of the * backend server. Default value is false. - * * @member {string} [backendHttpSettings.affinityCookieName] Cookie name to use * for the affinity cookie. - * * @member {boolean} [backendHttpSettings.probeEnabled] Whether the probe is * enabled. Default value is false. - * * @member {string} [backendHttpSettings.path] Path which should be used as a * prefix for all HTTP requests. Null means no path will be prefixed. Default * value is null. - * * @member {string} [backendHttpSettings.provisioningState] Provisioning state * of the backend http settings resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [backendHttpSettings.name] Name of the resource that is * unique within a resource group. This name can be used to access the * resource. - * * @member {string} [backendHttpSettings.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {string} [backendHttpSettings.type] Type of the resource. - * * @member {array} [servers] List of ApplicationGatewayBackendHealthServer * resources. - * */ export interface ApplicationGatewayBackendHealthHttpSettings { backendHttpSettings?: ApplicationGatewayBackendHttpSettings; @@ -1944,27 +1552,19 @@ export interface ApplicationGatewayBackendHealthHttpSettings { * * @member {object} [backendAddressPool] Reference of an * ApplicationGatewayBackendAddressPool resource. - * * @member {array} [backendAddressPool.backendIPConfigurations] Collection of * references to IPs defined in network interfaces. - * * @member {array} [backendAddressPool.backendAddresses] Backend addresses - * * @member {string} [backendAddressPool.provisioningState] Provisioning state * of the backend address pool resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [backendAddressPool.name] Resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [backendAddressPool.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {string} [backendAddressPool.type] Type of the resource. - * * @member {array} [backendHttpSettingsCollection] List of * ApplicationGatewayBackendHealthHttpSettings resources. - * */ export interface ApplicationGatewayBackendHealthPool { backendAddressPool?: ApplicationGatewayBackendAddressPool; @@ -1978,7 +1578,6 @@ export interface ApplicationGatewayBackendHealthPool { * List of ApplicationGatewayBackendHealthPool resources. * * @member {array} [backendAddressPools] - * */ export interface ApplicationGatewayBackendHealth { backendAddressPools?: ApplicationGatewayBackendHealthPool[]; @@ -1993,13 +1592,10 @@ export interface ApplicationGatewayBackendHealth { * @member {string} [name] Name of an application gateway SKU. Possible values * include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', * 'WAF_Medium', 'WAF_Large' - * * @member {string} [tier] Tier of an application gateway. Possible values * include: 'Standard', 'WAF' - * * @member {number} [capacity] Capacity (instance count) of an application * gateway. - * */ export interface ApplicationGatewaySku { name?: string; @@ -2015,21 +1611,16 @@ export interface ApplicationGatewaySku { * * @member {array} [disabledSslProtocols] Ssl protocols to be disabled on * application gateway. - * * @member {string} [policyType] Type of Ssl Policy. Possible values include: * 'Predefined', 'Custom' - * * @member {string} [policyName] Name of Ssl predefined policy. Possible values * include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', * 'AppGwSslPolicy20170401S' - * * @member {array} [cipherSuites] Ssl cipher suites to be enabled in the * specified order to application gateway. - * * @member {string} [minProtocolVersion] Minimum version of Ssl protocol to be * supported on application gateway. Possible values include: 'TLSv1_0', * 'TLSv1_1', 'TLSv1_2' - * */ export interface ApplicationGatewaySslPolicy { disabledSslProtocols?: string[]; @@ -2048,21 +1639,15 @@ export interface ApplicationGatewaySslPolicy { * * @member {object} [subnet] Reference of the subnet resource. A subnet from * where application gateway gets its private address. - * * @member {string} [subnet.id] Resource ID. - * * @member {string} [provisioningState] Provisioning state of the application * gateway subnet resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayIPConfiguration extends SubResource { subnet?: SubResource; @@ -2079,19 +1664,14 @@ export interface ApplicationGatewayIPConfiguration extends SubResource { * Authentication certificates of an application gateway. * * @member {string} [data] Certificate public data. - * * @member {string} [provisioningState] Provisioning state of the * authentication certificate resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayAuthenticationCertificate extends SubResource { data?: string; @@ -2109,25 +1689,18 @@ export interface ApplicationGatewayAuthenticationCertificate extends SubResource * * @member {string} [data] Base-64 encoded pfx certificate. Only applicable in * PUT Request. - * * @member {string} [password] Password for the pfx file specified in data. * Only applicable in PUT request. - * * @member {string} [publicCertData] Base-64 encoded Public cert data * corresponding to pfx specified in data. Only applicable in GET request. - * * @member {string} [provisioningState] Provisioning state of the SSL * certificate resource Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewaySslCertificate extends SubResource { data?: string; @@ -2147,29 +1720,19 @@ export interface ApplicationGatewaySslCertificate extends SubResource { * * @member {string} [privateIPAddress] PrivateIPAddress of the network * interface IP Configuration. - * * @member {string} [privateIPAllocationMethod] PrivateIP allocation method. * Possible values include: 'Static', 'Dynamic' - * * @member {object} [subnet] Reference of the subnet resource. - * * @member {string} [subnet.id] Resource ID. - * * @member {object} [publicIPAddress] Reference of the PublicIP resource. - * * @member {string} [publicIPAddress.id] Resource ID. - * * @member {string} [provisioningState] Provisioning state of the public IP * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayFrontendIPConfiguration extends SubResource { privateIPAddress?: string; @@ -2189,18 +1752,13 @@ export interface ApplicationGatewayFrontendIPConfiguration extends SubResource { * Frontend port of an application gateway. * * @member {number} [port] Frontend port - * * @member {string} [provisioningState] Provisioning state of the frontend port * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayFrontendPort extends SubResource { port?: number; @@ -2218,38 +1776,25 @@ export interface ApplicationGatewayFrontendPort extends SubResource { * * @member {object} [frontendIPConfiguration] Frontend IP configuration * resource of an application gateway. - * * @member {string} [frontendIPConfiguration.id] Resource ID. - * * @member {object} [frontendPort] Frontend port resource of an application * gateway. - * * @member {string} [frontendPort.id] Resource ID. - * * @member {string} [protocol] Protocol. Possible values include: 'Http', * 'Https' - * * @member {string} [hostName] Host name of HTTP listener. - * * @member {object} [sslCertificate] SSL certificate resource of an application * gateway. - * * @member {string} [sslCertificate.id] Resource ID. - * * @member {boolean} [requireServerNameIndication] Applicable only if protocol * is https. Enables SNI for multi-hosting. - * * @member {string} [provisioningState] Provisioning state of the HTTP listener * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayHttpListener extends SubResource { frontendIPConfiguration?: SubResource; @@ -2271,33 +1816,22 @@ export interface ApplicationGatewayHttpListener extends SubResource { * Path rule of URL path map of an application gateway. * * @member {array} [paths] Path rules of URL path map. - * * @member {object} [backendAddressPool] Backend address pool resource of URL * path map path rule. - * * @member {string} [backendAddressPool.id] Resource ID. - * * @member {object} [backendHttpSettings] Backend http settings resource of URL * path map path rule. - * * @member {string} [backendHttpSettings.id] Resource ID. - * * @member {object} [redirectConfiguration] Redirect configuration resource of * URL path map path rule. - * * @member {string} [redirectConfiguration.id] Resource ID. - * * @member {string} [provisioningState] Path rule of URL path map resource. * Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayPathRule extends SubResource { paths?: string[]; @@ -2318,10 +1852,8 @@ export interface ApplicationGatewayPathRule extends SubResource { * * @member {string} [body] Body that must be contained in the health response. * Default value is empty. - * * @member {array} [statusCodes] Allowed ranges of healthy status codes. * Default range of healthy status codes is 200-399. - * */ export interface ApplicationGatewayProbeHealthResponseMatch { body?: string; @@ -2336,51 +1868,36 @@ export interface ApplicationGatewayProbeHealthResponseMatch { * * @member {string} [protocol] Protocol. Possible values include: 'Http', * 'Https' - * * @member {string} [host] Host name to send the probe to. - * * @member {string} [path] Relative path of probe. Valid path starts from '/'. * Probe is sent to ://: - * * @member {number} [interval] The probing interval in seconds. This is the * time interval between two consecutive probes. Acceptable values are from 1 * second to 86400 seconds. - * * @member {number} [timeout] the probe timeout in seconds. Probe marked as * failed if valid response is not received with this timeout period. * Acceptable values are from 1 second to 86400 seconds. - * * @member {number} [unhealthyThreshold] The probe retry count. Backend server * is marked down after consecutive probe failure count reaches * UnhealthyThreshold. Acceptable values are from 1 second to 20. - * * @member {boolean} [pickHostNameFromBackendHttpSettings] Whether the host * header should be picked from the backend http settings. Default value is * false. - * * @member {number} [minServers] Minimum number of servers that are always * marked healthy. Default value is 0. - * * @member {object} [match] Criterion for classifying a healthy probe response. - * * @member {string} [match.body] Body that must be contained in the health * response. Default value is empty. - * * @member {array} [match.statusCodes] Allowed ranges of healthy status codes. * Default range of healthy status codes is 200-399. - * * @member {string} [provisioningState] Provisioning state of the backend http * settings resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayProbe extends SubResource { protocol?: string; @@ -2406,44 +1923,29 @@ export interface ApplicationGatewayProbe extends SubResource { * * @member {string} [ruleType] Rule type. Possible values include: 'Basic', * 'PathBasedRouting' - * * @member {object} [backendAddressPool] Backend address pool resource of the * application gateway. - * * @member {string} [backendAddressPool.id] Resource ID. - * * @member {object} [backendHttpSettings] Frontend port resource of the * application gateway. - * * @member {string} [backendHttpSettings.id] Resource ID. - * * @member {object} [httpListener] Http listener resource of the application * gateway. - * * @member {string} [httpListener.id] Resource ID. - * * @member {object} [urlPathMap] URL path map resource of the application * gateway. - * * @member {string} [urlPathMap.id] Resource ID. - * * @member {object} [redirectConfiguration] Redirect configuration resource of * the application gateway. - * * @member {string} [redirectConfiguration.id] Resource ID. - * * @member {string} [provisioningState] Provisioning state of the request * routing rule resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayRequestRoutingRule extends SubResource { ruleType?: string; @@ -2467,35 +1969,23 @@ export interface ApplicationGatewayRequestRoutingRule extends SubResource { * @member {string} [redirectType] Supported http redirection types - * Permanent, Temporary, Found, SeeOther. Possible values include: 'Permanent', * 'Found', 'SeeOther', 'Temporary' - * * @member {object} [targetListener] Reference to a listener to redirect the * request to. - * * @member {string} [targetListener.id] Resource ID. - * * @member {string} [targetUrl] Url to redirect the request to. - * * @member {boolean} [includePath] Include path in the redirected url. - * * @member {boolean} [includeQueryString] Include query string in the * redirected url. - * * @member {array} [requestRoutingRules] Request routing specifying redirect * configuration. - * * @member {array} [urlPathMaps] Url path maps specifying default redirect * configuration. - * * @member {array} [pathRules] Path rules specifying redirect configuration. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayRedirectConfiguration extends SubResource { redirectType?: string; @@ -2520,33 +2010,22 @@ export interface ApplicationGatewayRedirectConfiguration extends SubResource { * * @member {object} [defaultBackendAddressPool] Default backend address pool * resource of URL path map. - * * @member {string} [defaultBackendAddressPool.id] Resource ID. - * * @member {object} [defaultBackendHttpSettings] Default backend http settings * resource of URL path map. - * * @member {string} [defaultBackendHttpSettings.id] Resource ID. - * * @member {object} [defaultRedirectConfiguration] Default redirect * configuration resource of URL path map. - * * @member {string} [defaultRedirectConfiguration.id] Resource ID. - * * @member {array} [pathRules] Path rule of URL path map resource. - * * @member {string} [provisioningState] Provisioning state of the backend http * settings resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Type of the resource. - * */ export interface ApplicationGatewayUrlPathMap extends SubResource { defaultBackendAddressPool?: SubResource; @@ -2567,10 +2046,8 @@ export interface ApplicationGatewayUrlPathMap extends SubResource { * * @member {string} ruleGroupName The name of the rule group that will be * disabled. - * * @member {array} [rules] The list of rules that will be disabled. If null, * all rules of the rule group will be disabled. - * */ export interface ApplicationGatewayFirewallDisabledRuleGroup { ruleGroupName: string; @@ -2585,17 +2062,12 @@ export interface ApplicationGatewayFirewallDisabledRuleGroup { * * @member {boolean} enabled Whether the web application firewall is enabled or * not. - * * @member {string} firewallMode Web application firewall mode. Possible values * include: 'Detection', 'Prevention' - * * @member {string} ruleSetType The type of the web application firewall rule * set. Possible values are: 'OWASP'. - * * @member {string} ruleSetVersion The version of the rule set type. - * * @member {array} [disabledRuleGroups] The disabled rule groups. - * */ export interface ApplicationGatewayWebApplicationFirewallConfiguration { enabled: boolean; @@ -2612,103 +2084,71 @@ export interface ApplicationGatewayWebApplicationFirewallConfiguration { * Application gateway resource * * @member {object} [sku] SKU of the application gateway resource. - * * @member {string} [sku.name] Name of an application gateway SKU. Possible * values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', * 'WAF_Medium', 'WAF_Large' - * * @member {string} [sku.tier] Tier of an application gateway. Possible values * include: 'Standard', 'WAF' - * * @member {number} [sku.capacity] Capacity (instance count) of an application * gateway. - * * @member {object} [sslPolicy] SSL policy of the application gateway resource. - * * @member {array} [sslPolicy.disabledSslProtocols] Ssl protocols to be * disabled on application gateway. - * * @member {string} [sslPolicy.policyType] Type of Ssl Policy. Possible values * include: 'Predefined', 'Custom' - * * @member {string} [sslPolicy.policyName] Name of Ssl predefined policy. * Possible values include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', * 'AppGwSslPolicy20170401S' - * * @member {array} [sslPolicy.cipherSuites] Ssl cipher suites to be enabled in * the specified order to application gateway. - * * @member {string} [sslPolicy.minProtocolVersion] Minimum version of Ssl * protocol to be supported on application gateway. Possible values include: * 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' - * * @member {string} [operationalState] Operational state of the application * gateway resource. Possible values include: 'Stopped', 'Starting', 'Running', * 'Stopping' - * * @member {array} [gatewayIPConfigurations] Subnets of application the gateway * resource. - * * @member {array} [authenticationCertificates] Authentication certificates of * the application gateway resource. - * * @member {array} [sslCertificates] SSL certificates of the application * gateway resource. - * * @member {array} [frontendIPConfigurations] Frontend IP addresses of the * application gateway resource. - * * @member {array} [frontendPorts] Frontend ports of the application gateway * resource. - * * @member {array} [probes] Probes of the application gateway resource. - * * @member {array} [backendAddressPools] Backend address pool of the * application gateway resource. - * * @member {array} [backendHttpSettingsCollection] Backend http settings of the * application gateway resource. - * * @member {array} [httpListeners] Http listeners of the application gateway * resource. - * * @member {array} [urlPathMaps] URL path map of the application gateway * resource. - * * @member {array} [requestRoutingRules] Request routing rules of the * application gateway resource. - * * @member {array} [redirectConfigurations] Redirect configurations of the * application gateway resource. - * * @member {object} [webApplicationFirewallConfiguration] Web application * firewall configuration. - * * @member {boolean} [webApplicationFirewallConfiguration.enabled] Whether the * web application firewall is enabled or not. - * * @member {string} [webApplicationFirewallConfiguration.firewallMode] Web * application firewall mode. Possible values include: 'Detection', * 'Prevention' - * * @member {string} [webApplicationFirewallConfiguration.ruleSetType] The type * of the web application firewall rule set. Possible values are: 'OWASP'. - * * @member {string} [webApplicationFirewallConfiguration.ruleSetVersion] The * version of the rule set type. - * * @member {array} [webApplicationFirewallConfiguration.disabledRuleGroups] The * disabled rule groups. - * * @member {string} [resourceGuid] Resource GUID property of the application * gateway resource. - * * @member {string} [provisioningState] Provisioning state of the application * gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface ApplicationGateway extends Resource { sku?: ApplicationGatewaySku; @@ -2739,9 +2179,7 @@ export interface ApplicationGateway extends Resource { * Response for ListApplicationGateways API service call. * * @member {array} [value] List of an application gateways in a resource group. - * * @member {string} [nextLink] URL to get the next set of results. - * */ export interface ApplicationGatewayListResult { value?: ApplicationGateway[]; @@ -2755,10 +2193,8 @@ export interface ApplicationGatewayListResult { * A web application firewall rule. * * @member {number} ruleId The identifier of the web application firewall rule. - * * @member {string} [description] The description of the web application * firewall rule. - * */ export interface ApplicationGatewayFirewallRule { ruleId: number; @@ -2773,12 +2209,9 @@ export interface ApplicationGatewayFirewallRule { * * @member {string} ruleGroupName The name of the web application firewall rule * group. - * * @member {string} [description] The description of the web application * firewall rule group. - * * @member {array} rules The rules of the web application firewall rule group. - * */ export interface ApplicationGatewayFirewallRuleGroup { ruleGroupName: string; @@ -2794,16 +2227,12 @@ export interface ApplicationGatewayFirewallRuleGroup { * * @member {string} [provisioningState] The provisioning state of the web * application firewall rule set. - * * @member {string} ruleSetType The type of the web application firewall rule * set. - * * @member {string} ruleSetVersion The version of the web application firewall * rule set type. - * * @member {array} ruleGroups The rule groups of the web application firewall * rule set. - * */ export interface ApplicationGatewayFirewallRuleSet extends Resource { provisioningState?: string; @@ -2819,7 +2248,6 @@ export interface ApplicationGatewayFirewallRuleSet extends Resource { * Response for ApplicationGatewayAvailableWafRuleSets API service call. * * @member {array} [value] The list of application gateway rule sets. - * */ export interface ApplicationGatewayAvailableWafRuleSetsResult { value?: ApplicationGatewayFirewallRuleSet[]; @@ -2833,16 +2261,12 @@ export interface ApplicationGatewayAvailableWafRuleSetsResult { * * @member {array} [predefinedPolicies] List of available Ssl predefined * policy. - * * @member {string} [defaultPolicy] Name of the Ssl predefined policy applied * by default to application gateway. Possible values include: * 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', * 'AppGwSslPolicy20170401S' - * * @member {array} [availableCipherSuites] List of available Ssl cipher suites. - * * @member {array} [availableProtocols] List of available Ssl protocols. - * */ export interface ApplicationGatewayAvailableSslOptions extends Resource { predefinedPolicies?: SubResource[]; @@ -2858,14 +2282,11 @@ export interface ApplicationGatewayAvailableSslOptions extends Resource { * An Ssl predefined policy * * @member {string} [name] Name of Ssl predefined policy. - * * @member {array} [cipherSuites] Ssl cipher suites to be enabled in the * specified order for application gateway. - * * @member {string} [minProtocolVersion] Minimum version of Ssl protocol to be * supported on application gateway. Possible values include: 'TLSv1_0', * 'TLSv1_1', 'TLSv1_2' - * */ export interface ApplicationGatewaySslPredefinedPolicy extends SubResource { name?: string; @@ -2880,9 +2301,7 @@ export interface ApplicationGatewaySslPredefinedPolicy extends SubResource { * Response for ApplicationGatewayAvailableSslOptions API service call. * * @member {array} [value] List of available Ssl predefined policy. - * * @member {string} [nextLink] URL to get the next set of results. - * */ export interface ApplicationGatewayAvailableSslPredefinedPolicies { value?: ApplicationGatewaySslPredefinedPolicy[]; @@ -2896,12 +2315,39 @@ export interface ApplicationGatewayAvailableSslPredefinedPolicies { * Response for the CheckDnsNameAvailability API service call. * * @member {boolean} [available] Domain availability (True/False). - * */ export interface DnsNameAvailabilityResult { available?: boolean; } +/** + * @class + * Initializes a new instance of the EndpointServiceResult class. + * @constructor + * Endpoint service. + * + * @member {string} [name] Name of the endpoint service. + * @member {string} [type] Type of the endpoint service. + */ +export interface EndpointServiceResult extends SubResource { + readonly name?: string; + readonly type?: string; +} + +/** + * @class + * Initializes a new instance of the EndpointServicesListResult class. + * @constructor + * Response for the ListAvailableEndpointServices API service call. + * + * @member {array} [value] List of available endpoint services in a region. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface EndpointServicesListResult { + value?: EndpointServiceResult[]; + nextLink?: string; +} + /** * @class * Initializes a new instance of the ExpressRouteCircuitAuthorization class. @@ -2909,21 +2355,16 @@ export interface DnsNameAvailabilityResult { * Authorization in an ExpressRouteCircuit resource. * * @member {string} [authorizationKey] The authorization key. - * * @member {string} [authorizationUseStatus] AuthorizationUseStatus. Possible * values are: 'Available' and 'InUse'. Possible values include: 'Available', * 'InUse' - * * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Gets name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface ExpressRouteCircuitAuthorization extends SubResource { authorizationKey?: string; @@ -2941,9 +2382,7 @@ export interface ExpressRouteCircuitAuthorization extends SubResource { * authorizations that belongs to an ExpressRouteCircuit. * * @member {array} [value] The authorizations in an ExpressRoute Circuit. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface AuthorizationListResult { value?: ExpressRouteCircuitAuthorization[]; @@ -2958,22 +2397,16 @@ export interface AuthorizationListResult { * * @member {array} [advertisedPublicPrefixes] The reference of * AdvertisedPublicPrefixes. - * * @member {array} [advertisedCommunities] The communities of bgp peering. * Spepcified for microsoft peering - * * @member {string} [advertisedPublicPrefixesState] AdvertisedPublicPrefixState * of the Peering resource. Possible values are 'NotConfigured', 'Configuring', * 'Configured', and 'ValidationNeeded'. Possible values include: * 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded' - * * @member {number} [legacyMode] The legacy mode of the peering. - * * @member {number} [customerASN] The CustomerASN of the peering. - * * @member {string} [routingRegistryName] The RoutingRegistryName of the * configuration. - * */ export interface ExpressRouteCircuitPeeringConfig { advertisedPublicPrefixes?: string[]; @@ -2992,29 +2425,22 @@ export interface ExpressRouteCircuitPeeringConfig { * * @member {string} access The access type of the rule. Valid values are: * 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' - * * @member {array} communities The collection for bgp community values to * filter on. e.g. ['12076:5010','12076:5020'] - * * @member {string} [provisioningState] The provisioning state of the resource. * Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [location] Resource location. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {object} [tags] Resource tags. - * */ export interface RouteFilterRule extends SubResource { access: string; communities: string[]; readonly provisioningState?: string; - readonly name?: string; + name?: string; location?: string; readonly etag?: string; tags?: { [propertyName: string]: string }; @@ -3027,13 +2453,9 @@ export interface RouteFilterRule extends SubResource { * Contains stats associated with the peering. * * @member {number} [primarybytesIn] Gets BytesIn of the peering. - * * @member {number} [primarybytesOut] Gets BytesOut of the peering. - * * @member {number} [secondarybytesIn] Gets BytesIn of the peering. - * * @member {number} [secondarybytesOut] Gets BytesOut of the peering. - * */ export interface ExpressRouteCircuitStats { primarybytesIn?: number; @@ -3052,146 +2474,98 @@ export interface ExpressRouteCircuitStats { * 'AzurePublicPeering', 'AzurePrivatePeering', and 'MicrosoftPeering'. * Possible values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' - * * @member {string} [state] The state of peering. Possible values are: * 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled' - * * @member {number} [azureASN] The Azure ASN. - * * @member {number} [peerASN] The peer ASN. - * * @member {string} [primaryPeerAddressPrefix] The primary address prefix. - * * @member {string} [secondaryPeerAddressPrefix] The secondary address prefix. - * * @member {string} [primaryAzurePort] The primary port. - * * @member {string} [secondaryAzurePort] The secondary port. - * * @member {string} [sharedKey] The shared key. - * * @member {number} [vlanId] The VLAN ID. - * * @member {object} [microsoftPeeringConfig] The Microsoft peering * configuration. - * * @member {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The * reference of AdvertisedPublicPrefixes. - * * @member {array} [microsoftPeeringConfig.advertisedCommunities] The * communities of bgp peering. Spepcified for microsoft peering - * * @member {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' - * * @member {number} [microsoftPeeringConfig.legacyMode] The legacy mode of the * peering. - * * @member {number} [microsoftPeeringConfig.customerASN] The CustomerASN of the * peering. - * * @member {string} [microsoftPeeringConfig.routingRegistryName] The * RoutingRegistryName of the configuration. - * * @member {object} [stats] Gets peering stats. - * * @member {number} [stats.primarybytesIn] Gets BytesIn of the peering. - * * @member {number} [stats.primarybytesOut] Gets BytesOut of the peering. - * * @member {number} [stats.secondarybytesIn] Gets BytesIn of the peering. - * * @member {number} [stats.secondarybytesOut] Gets BytesOut of the peering. - * * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [gatewayManagerEtag] The GatewayManager Etag. - * * @member {string} [lastModifiedBy] Gets whether the provider or the customer * last modified the peering. - * * @member {object} [routeFilter] The reference of the RouteFilter resource. - * * @member {array} [routeFilter.rules] Collection of RouteFilterRules contained * within a route filter. - * * @member {array} [routeFilter.peerings] A collection of references to express * route circuit peerings. - * * @member {string} [routeFilter.provisioningState] The provisioning state of * the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and * 'Failed'. - * * @member {string} [routeFilter.etag] Gets a unique read-only string that * changes whenever the resource is updated. - * * @member {object} [ipv6PeeringConfig] The IPv6 peering configuration. - * * @member {string} [ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. - * * @member {string} [ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. - * * @member {object} [ipv6PeeringConfig.microsoftPeeringConfig] The Microsoft * peering configuration. - * * @member {array} * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] The * reference of AdvertisedPublicPrefixes. - * * @member {array} * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] The * communities of bgp peering. Spepcified for microsoft peering - * * @member {string} * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' - * * @member {number} [ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. - * * @member {number} [ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. - * * @member {string} * [ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] The * RoutingRegistryName of the configuration. - * * @member {object} [ipv6PeeringConfig.routeFilter] The reference of the * RouteFilter resource. - * * @member {array} [ipv6PeeringConfig.routeFilter.rules] Collection of * RouteFilterRules contained within a route filter. - * * @member {array} [ipv6PeeringConfig.routeFilter.peerings] A collection of * references to express route circuit peerings. - * * @member {string} [ipv6PeeringConfig.routeFilter.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', 'Succeeded' and 'Failed'. - * * @member {string} [ipv6PeeringConfig.routeFilter.etag] Gets a unique * read-only string that changes whenever the resource is updated. - * * @member {string} [ipv6PeeringConfig.state] The state of peering. Possible * values are: 'Disabled' and 'Enabled'. Possible values include: 'Disabled', * 'Enabled' - * * @member {string} [name] Gets name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface ExpressRouteCircuitPeering extends SubResource { peeringType?: string; @@ -3223,20 +2597,16 @@ export interface ExpressRouteCircuitPeering extends SubResource { * * @member {array} [rules] Collection of RouteFilterRules contained within a * route filter. - * * @member {array} [peerings] A collection of references to express route * circuit peerings. - * * @member {string} [provisioningState] The provisioning state of the resource. * Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. - * * @member {string} [etag] Gets a unique read-only string that changes whenever * the resource is updated. - * */ export interface RouteFilter extends Resource { rules?: RouteFilterRule[]; - readonly peerings?: ExpressRouteCircuitPeering[]; + peerings?: ExpressRouteCircuitPeering[]; readonly provisioningState?: string; readonly etag?: string; } @@ -3248,51 +2618,36 @@ export interface RouteFilter extends Resource { * Contains IPv6 peering config. * * @member {string} [primaryPeerAddressPrefix] The primary address prefix. - * * @member {string} [secondaryPeerAddressPrefix] The secondary address prefix. - * * @member {object} [microsoftPeeringConfig] The Microsoft peering * configuration. - * * @member {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The * reference of AdvertisedPublicPrefixes. - * * @member {array} [microsoftPeeringConfig.advertisedCommunities] The * communities of bgp peering. Spepcified for microsoft peering - * * @member {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' - * * @member {number} [microsoftPeeringConfig.legacyMode] The legacy mode of the * peering. - * * @member {number} [microsoftPeeringConfig.customerASN] The CustomerASN of the * peering. - * * @member {string} [microsoftPeeringConfig.routingRegistryName] The * RoutingRegistryName of the configuration. - * * @member {object} [routeFilter] The reference of the RouteFilter resource. - * * @member {array} [routeFilter.rules] Collection of RouteFilterRules contained * within a route filter. - * * @member {array} [routeFilter.peerings] A collection of references to express * route circuit peerings. - * * @member {string} [routeFilter.provisioningState] The provisioning state of * the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and * 'Failed'. - * * @member {string} [routeFilter.etag] Gets a unique read-only string that * changes whenever the resource is updated. - * * @member {string} [state] The state of peering. Possible values are: * 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled' - * */ export interface Ipv6ExpressRouteCircuitPeeringConfig { primaryPeerAddressPrefix?: string; @@ -3310,9 +2665,7 @@ export interface Ipv6ExpressRouteCircuitPeeringConfig { * to an ExpressRouteCircuit. * * @member {array} [value] The peerings in an express route circuit. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteCircuitPeeringListResult { value?: ExpressRouteCircuitPeering[]; @@ -3326,14 +2679,11 @@ export interface ExpressRouteCircuitPeeringListResult { * Contains SKU in an ExpressRouteCircuit. * * @member {string} [name] The name of the SKU. - * * @member {string} [tier] The tier of the SKU. Possible values are 'Standard' * and 'Premium'. Possible values include: 'Standard', 'Premium' - * * @member {string} [family] The family of the SKU. Possible values are: * 'UnlimitedData' and 'MeteredData'. Possible values include: 'UnlimitedData', * 'MeteredData' - * */ export interface ExpressRouteCircuitSku { name?: string; @@ -3348,11 +2698,8 @@ export interface ExpressRouteCircuitSku { * Contains ServiceProviderProperties in an ExpressRouteCircuit. * * @member {string} [serviceProviderName] The serviceProviderName. - * * @member {string} [peeringLocation] The peering location. - * * @member {number} [bandwidthInMbps] The BandwidthInMbps. - * */ export interface ExpressRouteCircuitServiceProviderProperties { serviceProviderName?: string; @@ -3367,55 +2714,37 @@ export interface ExpressRouteCircuitServiceProviderProperties { * ExpressRouteCircuit resource * * @member {object} [sku] The SKU. - * * @member {string} [sku.name] The name of the SKU. - * * @member {string} [sku.tier] The tier of the SKU. Possible values are * 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' - * * @member {string} [sku.family] The family of the SKU. Possible values are: * 'UnlimitedData' and 'MeteredData'. Possible values include: 'UnlimitedData', * 'MeteredData' - * * @member {boolean} [allowClassicOperations] Allow classic operations - * * @member {string} [circuitProvisioningState] The CircuitProvisioningState * state of the resource. - * * @member {string} [serviceProviderProvisioningState] The * ServiceProviderProvisioningState state of the resource. Possible values are * 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. * Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', * 'Deprovisioning' - * * @member {array} [authorizations] The list of authorizations. - * * @member {array} [peerings] The list of peerings. - * * @member {string} [serviceKey] The ServiceKey. - * * @member {string} [serviceProviderNotes] The ServiceProviderNotes. - * * @member {object} [serviceProviderProperties] The ServiceProviderProperties. - * * @member {string} [serviceProviderProperties.serviceProviderName] The * serviceProviderName. - * * @member {string} [serviceProviderProperties.peeringLocation] The peering * location. - * * @member {number} [serviceProviderProperties.bandwidthInMbps] The * BandwidthInMbps. - * * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [gatewayManagerEtag] The GatewayManager Etag. - * * @member {string} [etag] Gets a unique read-only string that changes whenever * the resource is updated. - * */ export interface ExpressRouteCircuit extends Resource { sku?: ExpressRouteCircuitSku; @@ -3439,13 +2768,9 @@ export interface ExpressRouteCircuit extends Resource { * The ARP table associated with the ExpressRouteCircuit. * * @member {number} [age] Age - * * @member {string} [interfaceProperty] Interface - * * @member {string} [ipAddress] The IP address. - * * @member {string} [macAddress] The MAC address. - * */ export interface ExpressRouteCircuitArpTable { age?: number; @@ -3461,9 +2786,7 @@ export interface ExpressRouteCircuitArpTable { * Response for ListArpTable associated with the Express Route Circuits API. * * @member {array} [value] Gets list of the ARP table. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteCircuitsArpTableListResult { value?: ExpressRouteCircuitArpTable[]; @@ -3477,15 +2800,10 @@ export interface ExpressRouteCircuitsArpTableListResult { * The routes table associated with the ExpressRouteCircuit * * @member {string} [network] network - * * @member {string} [nextHop] nextHop - * * @member {string} [locPrf] locPrf - * * @member {number} [weight] weight. - * * @member {string} [path] path - * */ export interface ExpressRouteCircuitRoutesTable { network?: string; @@ -3502,9 +2820,7 @@ export interface ExpressRouteCircuitRoutesTable { * Response for ListRoutesTable associated with the Express Route Circuits API. * * @member {array} [value] The list of routes table. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteCircuitsRoutesTableListResult { value?: ExpressRouteCircuitRoutesTable[]; @@ -3518,18 +2834,13 @@ export interface ExpressRouteCircuitsRoutesTableListResult { * The routes table associated with the ExpressRouteCircuit. * * @member {string} [neighbor] Neighbor - * * @member {number} [v] BGP version number spoken to the neighbor. - * * @member {number} [as] Autonomous system number. - * * @member {string} [upDown] The length of time that the BGP session has been * in the Established state, or the current status if not in the Established * state. - * * @member {string} [statePfxRcd] Current state of the BGP session, and the * number of prefixes that have been received from a neighbor or peer group. - * */ export interface ExpressRouteCircuitRoutesTableSummary { neighbor?: string; @@ -3546,9 +2857,7 @@ export interface ExpressRouteCircuitRoutesTableSummary { * Response for ListRoutesTable associated with the Express Route Circuits API. * * @member {array} [value] A list of the routes table. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteCircuitsRoutesTableSummaryListResult { value?: ExpressRouteCircuitRoutesTableSummary[]; @@ -3562,9 +2871,7 @@ export interface ExpressRouteCircuitsRoutesTableSummaryListResult { * Response for ListExpressRouteCircuit API service call. * * @member {array} [value] A list of ExpressRouteCircuits in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteCircuitListResult { value?: ExpressRouteCircuit[]; @@ -3578,9 +2885,7 @@ export interface ExpressRouteCircuitListResult { * Contains bandwidths offered in ExpressRouteServiceProvider resources. * * @member {string} [offerName] The OfferName. - * * @member {number} [valueInMbps] The ValueInMbps. - * */ export interface ExpressRouteServiceProviderBandwidthsOffered { offerName?: string; @@ -3594,12 +2899,9 @@ export interface ExpressRouteServiceProviderBandwidthsOffered { * A ExpressRouteResourceProvider object. * * @member {array} [peeringLocations] Get a list of peering locations. - * * @member {array} [bandwidthsOffered] Gets bandwidths offered. - * * @member {string} [provisioningState] Gets the provisioning state of the * resource. - * */ export interface ExpressRouteServiceProvider extends Resource { peeringLocations?: string[]; @@ -3614,15 +2916,26 @@ export interface ExpressRouteServiceProvider extends Resource { * Response for the ListExpressRouteServiceProvider API service call. * * @member {array} [value] A list of ExpressRouteResourceProvider resources. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteServiceProviderListResult { value?: ExpressRouteServiceProvider[]; nextLink?: string; } +/** + * @class + * Initializes a new instance of the LoadBalancerSku class. + * @constructor + * SKU of a load balancer + * + * @member {string} [name] Name of a load balancer SKU. Possible values + * include: 'Basic', 'Standard' + */ +export interface LoadBalancerSku { + name?: string; +} + /** * @class * Initializes a new instance of the FrontendIPConfiguration class. @@ -3631,243 +2944,176 @@ export interface ExpressRouteServiceProviderListResult { * * @member {array} [inboundNatRules] Read only. Inbound rules URIs that use * this frontend IP. - * * @member {array} [inboundNatPools] Read only. Inbound pools URIs that use * this frontend IP. - * * @member {array} [outboundNatRules] Read only. Outbound rules URIs that use * this frontend IP. - * * @member {array} [loadBalancingRules] Gets load balancing rules URIs that use * this frontend IP. - * * @member {string} [privateIPAddress] The private IP address of the IP * configuration. - * * @member {string} [privateIPAllocationMethod] The Private IP allocation * method. Possible values are: 'Static' and 'Dynamic'. Possible values * include: 'Static', 'Dynamic' - * * @member {object} [subnet] The reference of the subnet resource. - * * @member {string} [subnet.addressPrefix] The address prefix for the subnet. - * * @member {object} [subnet.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. - * * @member {array} [subnet.networkSecurityGroup.securityRules] A collection of * security rules of the network security group. - * * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. - * * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A collection * of references to network interfaces. - * * @member {array} [subnet.networkSecurityGroup.subnets] A collection of * references to subnets. - * * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource * GUID property of the network security group resource. - * * @member {string} [subnet.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only * string that changes whenever the resource is updated. - * * @member {object} [subnet.routeTable] The reference of the RouteTable * resource. - * * @member {array} [subnet.routeTable.routes] Collection of routes contained * within a route table. - * * @member {array} [subnet.routeTable.subnets] A collection of references to * subnets. - * * @member {string} [subnet.routeTable.provisioningState] The provisioning * state of the resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [subnet.routeTable.etag] Gets a unique read-only string * that changes whenever the resource is updated. - * - * @member {array} [subnet.privateAccessServices] An array of private access - * services values. - * + * @member {array} [subnet.serviceEndpoints] An array of service endpoints. * @member {array} [subnet.ipConfigurations] Gets an array of references to the * network interface IP configurations using subnet. - * * @member {array} [subnet.resourceNavigationLinks] Gets an array of references * to the external resources using subnet. - * * @member {string} [subnet.provisioningState] The provisioning state of the * resource. - * * @member {string} [subnet.name] The name of the resource that is unique * within a resource group. This name can be used to access the resource. - * * @member {string} [subnet.etag] A unique read-only string that changes * whenever the resource is updated. - * * @member {object} [publicIPAddress] The reference of the Public IP resource. - * + * @member {object} [publicIPAddress.sku] The public IP address SKU. + * @member {string} [publicIPAddress.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' - * * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values * include: 'IPv4', 'IPv6' - * - * @member {object} [publicIPAddress.ipConfiguration] - * + * @member {object} [publicIPAddress.ipConfiguration] The IP configuration + * associated with the public IP address. * @member {string} [publicIPAddress.ipConfiguration.privateIPAddress] The * private IP address of the IP configuration. - * * @member {string} [publicIPAddress.ipConfiguration.privateIPAllocationMethod] * The private IP allocation method. Possible values are 'Static' and * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * * @member {object} [publicIPAddress.ipConfiguration.subnet] The reference of * the subnet resource. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] The * address prefix for the subnet. - * * @member {object} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The reference * of the NetworkSecurityGroup resource. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] * A collection of references to network interfaces. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] A * collection of references to subnets. - * * @member {string} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. - * * @member {string} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. - * * @member {object} [publicIPAddress.ipConfiguration.subnet.routeTable] The * reference of the RouteTable resource. - * * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. - * * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.subnets] * A collection of references to subnets. - * * @member {string} * [publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.privateAccessServices] An array of - * private access services values. - * + * @member {array} [publicIPAddress.ipConfiguration.subnet.serviceEndpoints] An + * array of service endpoints. * @member {array} [publicIPAddress.ipConfiguration.subnet.ipConfigurations] * Gets an array of references to the network interface IP configurations using * subnet. - * * @member {array} * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an * array of references to the external resources using subnet. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.provisioningState] * The provisioning state of the resource. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.name] The name of * the resource that is unique within a resource group. This name can be used * to access the resource. - * * @member {string} [publicIPAddress.ipConfiguration.subnet.etag] A unique * read-only string that changes whenever the resource is updated. - * * @member {object} [publicIPAddress.ipConfiguration.publicIPAddress] The * reference of the public IP resource. - * * @member {string} [publicIPAddress.ipConfiguration.provisioningState] Gets * the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [publicIPAddress.ipConfiguration.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. - * * @member {string} [publicIPAddress.ipConfiguration.etag] A unique read-only * string that changes whenever the resource is updated. - * * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record * associated with the public IP address. - * * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or sets * the Domain name label.The concatenation of the domain name label and the * regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. - * * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully * qualified domain name of the A DNS record associated with the public IP. * This is the concatenation of the domainNameLabel and the regionalized DNS * zone. - * * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets the * Reverse FQDN. A user-visible, fully qualified domain name that resolves to * this public IP address. If the reverseFqdn is specified, then a PTR DNS * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. - * - * @member {string} [publicIPAddress.ipAddress] - * + * @member {string} [publicIPAddress.ipAddress] The IP address associated with + * the public IP address resource. * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout of * the public IP address. - * * @member {string} [publicIPAddress.resourceGuid] The resource GUID property * of the public IP resource. - * * @member {string} [publicIPAddress.provisioningState] The provisioning state * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [publicIPAddress.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface FrontendIPConfiguration extends SubResource { readonly inboundNatRules?: SubResource[]; @@ -3887,57 +3133,45 @@ export interface FrontendIPConfiguration extends SubResource { * @class * Initializes a new instance of the LoadBalancingRule class. * @constructor - * A loag balancing rule for a load balancer. + * A load balancing rule for a load balancer. * * @member {object} [frontendIPConfiguration] A reference to frontend IP * addresses. - * * @member {string} [frontendIPConfiguration.id] Resource ID. - * * @member {object} [backendAddressPool] A reference to a pool of DIPs. Inbound * traffic is randomly load balanced across IPs in the backend IPs. - * * @member {string} [backendAddressPool.id] Resource ID. - * * @member {object} [probe] The reference of the load balancer probe used by * the load balancing rule. - * * @member {string} [probe.id] Resource ID. - * * @member {string} protocol The transport protocol for the external endpoint. * Possible values are 'Udp' or 'Tcp'. Possible values include: 'Udp', 'Tcp' - * * @member {string} [loadDistribution] The load distribution policy for this * rule. Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. * Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' - * * @member {number} frontendPort The port for the external endpoint. Port * numbers for each Rule must be unique within the Load Balancer. Acceptable * values are between 1 and 65534. - * * @member {number} [backendPort] The port used for internal connections on the * endpoint. Acceptable values are between 1 and 65535. - * * @member {number} [idleTimeoutInMinutes] The timeout for the TCP idle * connection. The value can be set between 4 and 30 minutes. The default value * is 4 minutes. This element is only used when the protocol is set to TCP. - * * @member {boolean} [enableFloatingIP] Configures a virtual machine's endpoint * for the floating IP capability required to configure a SQL AlwaysOn * Availability Group. This setting is required when using the SQL AlwaysOn * Availability Groups in SQL server. This setting can't be changed after you * create the endpoint. - * + * @member {boolean} [disableOutboundSnat] Configures SNAT for the VMs in the + * backend pool to use the publicIP address specified in the frontend of the + * load balancing rule. * @member {string} [provisioningState] Gets the provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface LoadBalancingRule extends SubResource { frontendIPConfiguration?: SubResource; @@ -3949,6 +3183,7 @@ export interface LoadBalancingRule extends SubResource { backendPort?: number; idleTimeoutInMinutes?: number; enableFloatingIP?: boolean; + disableOutboundSnat?: boolean; provisioningState?: string; name?: string; etag?: string; @@ -3962,41 +3197,32 @@ export interface LoadBalancingRule extends SubResource { * * @member {array} [loadBalancingRules] The load balancer rules that use this * probe. - * * @member {string} protocol The protocol of the end point. Possible values * are: 'Http' or 'Tcp'. If 'Tcp' is specified, a received ACK is required for * the probe to be successful. If 'Http' is specified, a 200 OK response from * the specifies URI is required for the probe to be successful. Possible * values include: 'Http', 'Tcp' - * * @member {number} port The port for communicating the probe. Possible values * range from 1 to 65535, inclusive. - * * @member {number} [intervalInSeconds] The interval, in seconds, for how * frequently to probe the endpoint for health status. Typically, the interval * is slightly less than half the allocated timeout period (in seconds) which * allows two full probes before taking the instance out of rotation. The * default value is 15, the minimum value is 5. - * * @member {number} [numberOfProbes] The number of probes where if no response, * will result in stopping further traffic from being delivered to the * endpoint. This values allows endpoints to be taken out of rotation faster or * slower than the typical times used in Azure. - * * @member {string} [requestPath] The URI used for requesting health status * from the VM. Path is required if a protocol is set to http. Otherwise, it is * not allowed. There is no default value. - * * @member {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] Gets name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface Probe extends SubResource { readonly loadBalancingRules?: SubResource[]; @@ -4018,34 +3244,25 @@ export interface Probe extends SubResource { * * @member {object} [frontendIPConfiguration] A reference to frontend IP * addresses. - * * @member {string} [frontendIPConfiguration.id] Resource ID. - * * @member {string} protocol The transport protocol for the endpoint. Possible * values are: 'Udp' or 'Tcp'. Possible values include: 'Udp', 'Tcp' - * * @member {number} frontendPortRangeStart The first port number in the range * of external ports that will be used to provide Inbound Nat to NICs * associated with a load balancer. Acceptable values range between 1 and * 65534. - * * @member {number} frontendPortRangeEnd The last port number in the range of * external ports that will be used to provide Inbound Nat to NICs associated * with a load balancer. Acceptable values range between 1 and 65535. - * * @member {number} backendPort The port used for internal connections on the * endpoint. Acceptable values are between 1 and 65535. - * * @member {string} [provisioningState] Gets the provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface InboundNatPool extends SubResource { frontendIPConfiguration?: SubResource; @@ -4066,25 +3283,18 @@ export interface InboundNatPool extends SubResource { * * @member {number} [allocatedOutboundPorts] The number of outbound ports to be * used for NAT. - * * @member {array} [frontendIPConfigurations] The Frontend IP addresses of the * load balancer. - * * @member {object} backendAddressPool A reference to a pool of DIPs. Outbound * traffic is randomly load balanced across IPs in the backend IPs. - * * @member {string} [backendAddressPool.id] Resource ID. - * * @member {string} [provisioningState] Gets the provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface OutboundNatRule extends SubResource { allocatedOutboundPorts?: number; @@ -4101,25 +3311,23 @@ export interface OutboundNatRule extends SubResource { * @constructor * LoadBalancer resource * + * @member {object} [sku] The load balancer SKU. + * @member {string} [sku.name] Name of a load balancer SKU. Possible values + * include: 'Basic', 'Standard' * @member {array} [frontendIPConfigurations] Object representing the frontend * IPs to be used for the load balancer - * * @member {array} [backendAddressPools] Collection of backend address pools * used by a load balancer - * * @member {array} [loadBalancingRules] Object collection representing the load * balancing rules Gets the provisioning - * * @member {array} [probes] Collection of probe objects used in the load * balancer - * * @member {array} [inboundNatRules] Collection of inbound NAT Rules used by a * load balancer. Defining inbound NAT rules on your load balancer is mutually * exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with * individual virtual machines cannot reference an Inbound NAT pool. They have * to reference individual inbound NAT rules. - * * @member {array} [inboundNatPools] Defines an external port range for inbound * NAT to a single backend port on NICs associated with a load balancer. * Inbound NAT rules are created automatically for each NIC associated with the @@ -4128,21 +3336,17 @@ export interface OutboundNatRule extends SubResource { * Nat rules. Inbound NAT pools are referenced from virtual machine scale sets. * NICs that are associated with individual virtual machines cannot reference * an inbound NAT pool. They have to reference individual inbound NAT rules. - * * @member {array} [outboundNatRules] The outbound NAT rules. - * * @member {string} [resourceGuid] The resource GUID property of the load * balancer resource. - * * @member {string} [provisioningState] Gets the provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface LoadBalancer extends Resource { + sku?: LoadBalancerSku; frontendIPConfigurations?: FrontendIPConfiguration[]; backendAddressPools?: BackendAddressPool[]; loadBalancingRules?: LoadBalancingRule[]; @@ -4162,88 +3366,82 @@ export interface LoadBalancer extends Resource { * Response for ListLoadBalancers API service call. * * @member {array} [value] A list of load balancers in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface LoadBalancerListResult { value?: LoadBalancer[]; - nextLink?: string; + readonly nextLink?: string; } /** * @class - * Initializes a new instance of the ErrorDetails class. + * Initializes a new instance of the InboundNatRuleListResult class. * @constructor - * @member {string} [code] - * - * @member {string} [target] - * - * @member {string} [message] + * Response for ListInboundNatRule API service call. * + * @member {array} [value] A list of inbound nat rules in a load balancer. + * @member {string} [nextLink] The URL to get the next set of results. */ -export interface ErrorDetails { - code?: string; - target?: string; - message?: string; +export interface InboundNatRuleListResult { + value?: InboundNatRule[]; + readonly nextLink?: string; } /** * @class - * Initializes a new instance of the ErrorModel class. + * Initializes a new instance of the LoadBalancerBackendAddressPoolListResult class. * @constructor - * @member {string} [code] - * - * @member {string} [message] - * - * @member {string} [target] - * - * @member {array} [details] - * - * @member {string} [innerError] + * Response for ListBackendAddressPool API service call. * + * @member {array} [value] A list of backend address pools in a load balancer. + * @member {string} [nextLink] The URL to get the next set of results. */ -export interface ErrorModel { - code?: string; - message?: string; - target?: string; - details?: ErrorDetails[]; - innerError?: string; +export interface LoadBalancerBackendAddressPoolListResult { + value?: BackendAddressPool[]; + readonly nextLink?: string; } /** * @class - * Initializes a new instance of the AzureAsyncOperationResult class. + * Initializes a new instance of the LoadBalancerFrontendIPConfigurationListResult class. * @constructor - * The response body contains the status of the specified asynchronous - * operation, indicating whether it has succeeded, is in progress, or has - * failed. Note that this status is distinct from the HTTP status code returned - * for the Get Operation Status operation itself. If the asynchronous operation - * succeeded, the response body includes the HTTP status code for the - * successful request. If the asynchronous operation failed, the response body - * includes the HTTP status code for the failed request and error information - * regarding the failure. - * - * @member {string} [status] Status of the Azure async operation. Possible - * values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values - * include: 'InProgress', 'Succeeded', 'Failed' - * - * @member {object} [error] - * - * @member {string} [error.code] - * - * @member {string} [error.message] - * - * @member {string} [error.target] - * - * @member {array} [error.details] - * - * @member {string} [error.innerError] + * Response for ListFrontendIPConfiguration API service call. * + * @member {array} [value] A list of frontend IP configurations in a load + * balancer. + * @member {string} [nextLink] The URL to get the next set of results. */ -export interface AzureAsyncOperationResult { - status?: string; - error?: ErrorModel; +export interface LoadBalancerFrontendIPConfigurationListResult { + value?: FrontendIPConfiguration[]; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerLoadBalancingRuleListResult class. + * @constructor + * Response for ListLoadBalancingRule API service call. + * + * @member {array} [value] A list of load balancing rules in a load balancer. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerLoadBalancingRuleListResult { + value?: LoadBalancingRule[]; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerProbeListResult class. + * @constructor + * Response for ListProbe API service call. + * + * @member {array} [value] A list of probes in a load balancer. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerProbeListResult { + value?: Probe[]; + readonly nextLink?: string; } /** @@ -4253,13 +3451,99 @@ export interface AzureAsyncOperationResult { * Response for the ListNetworkInterface API service call. * * @member {array} [value] A list of network interfaces in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface NetworkInterfaceListResult { value?: NetworkInterface[]; - nextLink?: string; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the ErrorDetails class. + * @constructor + * @member {string} [code] + * @member {string} [target] + * @member {string} [message] + */ +export interface ErrorDetails { + code?: string; + target?: string; + message?: string; +} + +/** + * @class + * Initializes a new instance of the ErrorModel class. + * @constructor + * @member {string} [code] + * @member {string} [message] + * @member {string} [target] + * @member {array} [details] + * @member {string} [innerError] + */ +export interface ErrorModel { + code?: string; + message?: string; + target?: string; + details?: ErrorDetails[]; + innerError?: string; +} + +/** + * @class + * Initializes a new instance of the AzureAsyncOperationResult class. + * @constructor + * The response body contains the status of the specified asynchronous + * operation, indicating whether it has succeeded, is in progress, or has + * failed. Note that this status is distinct from the HTTP status code returned + * for the Get Operation Status operation itself. If the asynchronous operation + * succeeded, the response body includes the HTTP status code for the + * successful request. If the asynchronous operation failed, the response body + * includes the HTTP status code for the failed request and error information + * regarding the failure. + * + * @member {string} [status] Status of the Azure async operation. Possible + * values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values + * include: 'InProgress', 'Succeeded', 'Failed' + * @member {object} [error] + * @member {string} [error.code] + * @member {string} [error.message] + * @member {string} [error.target] + * @member {array} [error.details] + * @member {string} [error.innerError] + */ +export interface AzureAsyncOperationResult { + status?: string; + error?: ErrorModel; +} + +/** + * @class + * Initializes a new instance of the NetworkInterfaceIPConfigurationListResult class. + * @constructor + * Response for list ip configurations API service call. + * + * @member {array} [value] A list of ip configurations. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface NetworkInterfaceIPConfigurationListResult { + value?: NetworkInterfaceIPConfiguration[]; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the NetworkInterfaceLoadBalancerListResult class. + * @constructor + * Response for list ip configurations API service call. + * + * @member {array} [value] A list of load balancers. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface NetworkInterfaceLoadBalancerListResult { + value?: LoadBalancer[]; + readonly nextLink?: string; } /** @@ -4269,14 +3553,10 @@ export interface NetworkInterfaceListResult { * The effective network security group association. * * @member {object} [subnet] The ID of the subnet if assigned. - * * @member {string} [subnet.id] Resource ID. - * * @member {object} [networkInterface] The ID of the network interface if * assigned. - * * @member {string} [networkInterface.id] Resource ID. - * */ export interface EffectiveNetworkSecurityGroupAssociation { subnet?: SubResource; @@ -4291,42 +3571,48 @@ export interface EffectiveNetworkSecurityGroupAssociation { * * @member {string} [name] The name of the security rule specified by the user * (if created by the user). - * * @member {string} [protocol] The network protocol this rule applies to. - * Possible values are: 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', - * 'Udp', '*' - * + * Possible values are: 'Tcp', 'Udp', and 'All'. Possible values include: + * 'Tcp', 'Udp', 'All' * @member {string} [sourcePortRange] The source port or range. - * * @member {string} [destinationPortRange] The destination port or range. - * + * @member {array} [sourcePortRanges] The source port ranges. Expected values + * include a single integer between 0 and 65535, a range using '-' as seperator + * (e.g. 100-400), or an asterix (*) + * @member {array} [destinationPortRanges] The destination port ranges. + * Expected values include a single integer between 0 and 65535, a range using + * '-' as seperator (e.g. 100-400), or an asterix (*) * @member {string} [sourceAddressPrefix] The source address prefix. - * * @member {string} [destinationAddressPrefix] The destination address prefix. - * + * @member {array} [sourceAddressPrefixes] The source address prefixes. + * Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, + * AureLoadBalancer, Internet), System Tags, and the asterix (*). + * @member {array} [destinationAddressPrefixes] The destination address + * prefixes. Expected values include CIDR IP ranges, Default Tags + * (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix + * (*). * @member {array} [expandedSourceAddressPrefix] The expanded source address * prefix. - * * @member {array} [expandedDestinationAddressPrefix] Expanded destination * address prefix. - * * @member {string} [access] Whether network traffic is allowed or denied. * Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', * 'Deny' - * * @member {number} [priority] The priority of the rule. - * * @member {string} [direction] The direction of the rule. Possible values are: * 'Inbound and Outbound'. Possible values include: 'Inbound', 'Outbound' - * */ export interface EffectiveNetworkSecurityRule { name?: string; protocol?: string; sourcePortRange?: string; destinationPortRange?: string; + sourcePortRanges?: string[]; + destinationPortRanges?: string[]; sourceAddressPrefix?: string; destinationAddressPrefix?: string; + sourceAddressPrefixes?: string[]; + destinationAddressPrefixes?: string[]; expandedSourceAddressPrefix?: string[]; expandedDestinationAddressPrefix?: string[]; access?: string; @@ -4342,28 +3628,23 @@ export interface EffectiveNetworkSecurityRule { * * @member {object} [networkSecurityGroup] The ID of network security group * that is applied. - * * @member {string} [networkSecurityGroup.id] Resource ID. - * - * @member {object} [association] - * + * @member {object} [association] Associated resources. * @member {object} [association.subnet] The ID of the subnet if assigned. - * * @member {string} [association.subnet.id] Resource ID. - * * @member {object} [association.networkInterface] The ID of the network * interface if assigned. - * * @member {string} [association.networkInterface.id] Resource ID. - * * @member {array} [effectiveSecurityRules] A collection of effective security * rules. - * + * @member {object} [tagMap] Mapping of tags to list of IP Addresses included + * within the tag. */ export interface EffectiveNetworkSecurityGroup { networkSecurityGroup?: SubResource; association?: EffectiveNetworkSecurityGroupAssociation; effectiveSecurityRules?: EffectiveNetworkSecurityRule[]; + tagMap?: { [propertyName: string]: string[] }; } /** @@ -4373,13 +3654,11 @@ export interface EffectiveNetworkSecurityGroup { * Response for list effective network security groups API service call. * * @member {array} [value] A list of effective network security groups. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface EffectiveNetworkSecurityGroupListResult { value?: EffectiveNetworkSecurityGroup[]; - nextLink?: string; + readonly nextLink?: string; } /** @@ -4390,25 +3669,19 @@ export interface EffectiveNetworkSecurityGroupListResult { * * @member {string} [name] The name of the user defined route. This is * optional. - * * @member {string} [source] Who created the route. Possible values are: * 'Unknown', 'User', 'VirtualNetworkGateway', and 'Default'. Possible values * include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' - * * @member {string} [state] The value of effective route. Possible values are: * 'Active' and 'Invalid'. Possible values include: 'Active', 'Invalid' - * * @member {array} [addressPrefix] The address prefixes of the effective routes * in CIDR notation. - * * @member {array} [nextHopIpAddress] The IP address of the next hop of the * effective route. - * * @member {string} [nextHopType] The type of Azure hop the packet should be * sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', * 'Internet', 'VirtualAppliance', and 'None'. Possible values include: * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' - * */ export interface EffectiveRoute { name?: string; @@ -4426,13 +3699,11 @@ export interface EffectiveRoute { * Response for list effective route API service call. * * @member {array} [value] A list of effective routes. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface EffectiveRouteListResult { value?: EffectiveRoute[]; - nextLink?: string; + readonly nextLink?: string; } /** @@ -4443,9 +3714,7 @@ export interface EffectiveRouteListResult { * that belongs to a network security group. * * @member {array} [value] The security rules in a network security group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface SecurityRuleListResult { value?: SecurityRule[]; @@ -4459,9 +3728,7 @@ export interface SecurityRuleListResult { * Response for ListNetworkSecurityGroups API service call. * * @member {array} [value] A list of NetworkSecurityGroup resources. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface NetworkSecurityGroupListResult { value?: NetworkSecurityGroup[]; @@ -4476,10 +3743,8 @@ export interface NetworkSecurityGroupListResult { * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [provisioningState] The provisioning state of the resource. * Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' - * */ export interface NetworkWatcher extends Resource { etag?: string; @@ -4493,7 +3758,6 @@ export interface NetworkWatcher extends Resource { * List of network watcher resources. * * @member {array} [value] - * */ export interface NetworkWatcherListResult { value?: NetworkWatcher[]; @@ -4507,7 +3771,6 @@ export interface NetworkWatcherListResult { * * @member {string} targetResourceGroupName The name of the target resource * group to perform topology on. - * */ export interface TopologyParameters { targetResourceGroupName: string; @@ -4521,14 +3784,11 @@ export interface TopologyParameters { * * @member {string} [name] The name of the resource that is associated with the * parent resource. - * * @member {string} [resourceId] The ID of the resource that is associated with * the parent resource. - * * @member {string} [associationType] The association type of the child * resource to the parent resource. Possible values include: 'Associated', * 'Contains' - * */ export interface TopologyAssociation { name?: string; @@ -4543,14 +3803,10 @@ export interface TopologyAssociation { * The network resource topology information for the given resource group. * * @member {string} [name] Name of the resource. - * * @member {string} [id] ID of the resource. - * * @member {string} [location] Resource location. - * * @member {array} [associations] Holds the associations the resource has with * other resources in the resource group. - * */ export interface TopologyResource { name?: string; @@ -4566,15 +3822,11 @@ export interface TopologyResource { * Topology of the specified resource group. * * @member {string} [id] GUID representing the operation id. - * * @member {date} [createdDateTime] The datetime when the topology was * initially created for the resource group. - * * @member {date} [lastModified] The datetime when the topology was last * modified. - * * @member {array} [resources] - * */ export interface Topology { readonly id?: string; @@ -4591,31 +3843,23 @@ export interface Topology { * * @member {string} targetResourceId The ID of the target resource to perform * next-hop on. - * * @member {string} direction The direction of the packet represented as a * 5-tuple. Possible values include: 'Inbound', 'Outbound' - * * @member {string} protocol Protocol to be verified on. Possible values * include: 'TCP', 'UDP' - * * @member {string} localPort The local port. Acceptable values are a single * integer in the range (0-65535). Support for * for the source port, which * depends on the direction. - * * @member {string} remotePort The remote port. Acceptable values are a single * integer in the range (0-65535). Support for * for the source port, which * depends on the direction. - * * @member {string} localIPAddress The local IP address. Acceptable values are * valid IPv4 addresses. - * * @member {string} remoteIPAddress The remote IP address. Acceptable values * are valid IPv4 addresses. - * * @member {string} [targetNicResourceId] The NIC ID. (If VM has multiple NICs * and IP forwarding is enabled on any of them, then this parameter must be * specified. Otherwise optional). - * */ export interface VerificationIPFlowParameters { targetResourceId: string; @@ -4636,10 +3880,8 @@ export interface VerificationIPFlowParameters { * * @member {string} [access] Indicates whether the traffic is allowed or * denied. Possible values include: 'Allow', 'Deny' - * * @member {string} [ruleName] Name of the rule. If input is not matched * against any security rule, it is not displayed. - * */ export interface VerificationIPFlowResult { access?: string; @@ -4654,15 +3896,11 @@ export interface VerificationIPFlowResult { * * @member {string} targetResourceId The resource identifier of the target * resource against which the action is to be performed. - * * @member {string} sourceIPAddress The source IP address. - * * @member {string} destinationIPAddress The destination IP address. - * * @member {string} [targetNicResourceId] The NIC ID. (If VM has multiple NICs * and IP forwarding is enabled on any of the nics, then this parameter must be * specified. Otherwise optional). - * */ export interface NextHopParameters { targetResourceId: string; @@ -4680,14 +3918,11 @@ export interface NextHopParameters { * @member {string} [nextHopType] Next hop type. Possible values include: * 'Internet', 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', * 'HyperNetGateway', 'None' - * * @member {string} [nextHopIpAddress] Next hop IP Address - * * @member {string} [routeTableId] The resource identifier for the route table * associated with the route being returned. If the route being returned does * not correspond to any user created routes then this field will be the string * 'System Route'. - * */ export interface NextHopResult { nextHopType?: string; @@ -4702,7 +3937,6 @@ export interface NextHopResult { * Parameters that define the VM to check security groups for. * * @member {string} targetResourceId ID of the target VM. - * */ export interface SecurityGroupViewParameters { targetResourceId: string; @@ -4715,9 +3949,7 @@ export interface SecurityGroupViewParameters { * Network interface and its custom security rules. * * @member {string} [id] Network interface ID. - * * @member {array} [securityRules] Collection of custom security rules. - * */ export interface NetworkInterfaceAssociation { readonly id?: string; @@ -4731,9 +3963,7 @@ export interface NetworkInterfaceAssociation { * Network interface and its custom security rules. * * @member {string} [id] Subnet ID. - * * @member {array} [securityRules] Collection of custom security rules. - * */ export interface SubnetAssociation { readonly id?: string; @@ -4747,25 +3977,17 @@ export interface SubnetAssociation { * All security rules associated with the network interface. * * @member {object} [networkInterfaceAssociation] - * * @member {string} [networkInterfaceAssociation.id] Network interface ID. - * * @member {array} [networkInterfaceAssociation.securityRules] Collection of * custom security rules. - * * @member {object} [subnetAssociation] - * * @member {string} [subnetAssociation.id] Subnet ID. - * * @member {array} [subnetAssociation.securityRules] Collection of custom * security rules. - * * @member {array} [defaultSecurityRules] Collection of default security rules * of the network security group. - * * @member {array} [effectiveSecurityRules] Collection of effective security * rules. - * */ export interface SecurityRuleAssociations { networkInterfaceAssociation?: NetworkInterfaceAssociation; @@ -4781,31 +4003,21 @@ export interface SecurityRuleAssociations { * Network interface and all its associated security rules. * * @member {string} [id] ID of the network interface. - * * @member {object} [securityRuleAssociations] - * * @member {object} [securityRuleAssociations.networkInterfaceAssociation] - * * @member {string} [securityRuleAssociations.networkInterfaceAssociation.id] * Network interface ID. - * * @member {array} * [securityRuleAssociations.networkInterfaceAssociation.securityRules] * Collection of custom security rules. - * * @member {object} [securityRuleAssociations.subnetAssociation] - * * @member {string} [securityRuleAssociations.subnetAssociation.id] Subnet ID. - * * @member {array} [securityRuleAssociations.subnetAssociation.securityRules] * Collection of custom security rules. - * * @member {array} [securityRuleAssociations.defaultSecurityRules] Collection * of default security rules of the network security group. - * * @member {array} [securityRuleAssociations.effectiveSecurityRules] Collection * of effective security rules. - * */ export interface SecurityGroupNetworkInterface { id?: string; @@ -4820,7 +4032,6 @@ export interface SecurityGroupNetworkInterface { * * @member {array} [networkInterfaces] List of network interfaces on the * specified VM. - * */ export interface SecurityGroupViewResult { networkInterfaces?: SecurityGroupNetworkInterface[]; @@ -4834,16 +4045,13 @@ export interface SecurityGroupViewResult { * * @member {string} [storageId] The ID of the storage account to save the * packet capture session. Required if no local file path is provided. - * * @member {string} [storagePath] The URI of the storage path to save the * packet capture. Must be a well-formed URI describing the location to save * the packet capture. - * * @member {string} [filePath] A valid local path on the targeting VM. Must * include the name of the capture file (*.cap). For linux virtual machine it * must start with /var/captures. Required if no storage ID is provided, * otherwise optional. - * */ export interface PacketCaptureStorageLocation { storageId?: string; @@ -4860,29 +4068,24 @@ export interface PacketCaptureStorageLocation { * * @member {string} [protocol] Protocol to be filtered on. Possible values * include: 'TCP', 'UDP', 'Any'. Default value: 'Any' . - * * @member {string} [localIPAddress] Local IP Address to be filtered on. * Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for * range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not * currently supported. Mixing ranges with multiple entries not currently * supported. Default = null. - * * @member {string} [remoteIPAddress] Local IP Address to be filtered on. * Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for * range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not * currently supported. Mixing ranges with multiple entries not currently * supported. Default = null. - * * @member {string} [localPort] Local port to be filtered on. Notation: "80" * for single port entry."80-85" for range. "80;443;" for multiple entries. * Multiple ranges not currently supported. Mixing ranges with multiple entries * not currently supported. Default = null. - * * @member {string} [remotePort] Remote port to be filtered on. Notation: "80" * for single port entry."80-85" for range. "80;443;" for multiple entries. * Multiple ranges not currently supported. Mixing ranges with multiple entries * not currently supported. Default = null. - * */ export interface PacketCaptureFilter { protocol?: string; @@ -4900,33 +4103,24 @@ export interface PacketCaptureFilter { * * @member {string} target The ID of the targeted resource, only VM is * currently supported. - * * @member {number} [bytesToCapturePerPacket] Number of bytes captured per * packet, the remaining bytes are truncated. Default value: 0 . - * * @member {number} [totalBytesPerSession] Maximum size of the capture output. * Default value: 1073741824 . - * * @member {number} [timeLimitInSeconds] Maximum duration of the capture * session in seconds. Default value: 18000 . - * * @member {object} storageLocation - * * @member {string} [storageLocation.storageId] The ID of the storage account * to save the packet capture session. Required if no local file path is * provided. - * * @member {string} [storageLocation.storagePath] The URI of the storage path * to save the packet capture. Must be a well-formed URI describing the * location to save the packet capture. - * * @member {string} [storageLocation.filePath] A valid local path on the * targeting VM. Must include the name of the capture file (*.cap). For linux * virtual machine it must start with /var/captures. Required if no storage ID * is provided, otherwise optional. - * * @member {array} [filters] - * */ export interface PacketCaptureParameters { target: string; @@ -4945,33 +4139,24 @@ export interface PacketCaptureParameters { * * @member {string} target The ID of the targeted resource, only VM is * currently supported. - * * @member {number} [bytesToCapturePerPacket] Number of bytes captured per * packet, the remaining bytes are truncated. Default value: 0 . - * * @member {number} [totalBytesPerSession] Maximum size of the capture output. * Default value: 1073741824 . - * * @member {number} [timeLimitInSeconds] Maximum duration of the capture * session in seconds. Default value: 18000 . - * * @member {object} storageLocation - * * @member {string} [storageLocation.storageId] The ID of the storage account * to save the packet capture session. Required if no local file path is * provided. - * * @member {string} [storageLocation.storagePath] The URI of the storage path * to save the packet capture. Must be a well-formed URI describing the * location to save the packet capture. - * * @member {string} [storageLocation.filePath] A valid local path on the * targeting VM. Must include the name of the capture file (*.cap). For linux * virtual machine it must start with /var/captures. Required if no storage ID * is provided, otherwise optional. - * * @member {array} [filters] - * */ export interface PacketCapture { target: string; @@ -4989,45 +4174,32 @@ export interface PacketCapture { * Information about packet capture session. * * @member {string} [name] Name of the packet capture session. - * * @member {string} [id] ID of the packet capture operation. - * * @member {string} [etag] Default value: 'A unique read-only string that * changes whenever the resource is updated.' . - * * @member {string} target The ID of the targeted resource, only VM is * currently supported. - * * @member {number} [bytesToCapturePerPacket] Number of bytes captured per * packet, the remaining bytes are truncated. Default value: 0 . - * * @member {number} [totalBytesPerSession] Maximum size of the capture output. * Default value: 1073741824 . - * * @member {number} [timeLimitInSeconds] Maximum duration of the capture * session in seconds. Default value: 18000 . - * * @member {object} storageLocation - * * @member {string} [storageLocation.storageId] The ID of the storage account * to save the packet capture session. Required if no local file path is * provided. - * * @member {string} [storageLocation.storagePath] The URI of the storage path * to save the packet capture. Must be a well-formed URI describing the * location to save the packet capture. - * * @member {string} [storageLocation.filePath] A valid local path on the * targeting VM. Must include the name of the capture file (*.cap). For linux * virtual machine it must start with /var/captures. Required if no storage ID * is provided, otherwise optional. - * * @member {array} [filters] - * * @member {string} [provisioningState] The provisioning state of the packet * capture session. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' - * */ export interface PacketCaptureResult { readonly name?: string; @@ -5049,7 +4221,6 @@ export interface PacketCaptureResult { * List of packet capture sessions. * * @member {array} [value] Information about packet capture sessions. - * */ export interface PacketCaptureListResult { value?: PacketCaptureResult[]; @@ -5062,22 +4233,16 @@ export interface PacketCaptureListResult { * Status of packet capture session. * * @member {string} [name] The name of the packet capture resource. - * * @member {string} [id] The ID of the packet capture resource. - * * @member {date} [captureStartTime] The start time of the packet capture * session. - * * @member {string} [packetCaptureStatus] The status of the packet capture * session. Possible values include: 'NotStarted', 'Running', 'Stopped', * 'Error', 'Unknown' - * * @member {string} [stopReason] The reason the current packet capture session * was stopped. - * * @member {array} [packetCaptureError] List of errors of packet capture * session. - * */ export interface PacketCaptureQueryStatusResult { name?: string; @@ -5095,13 +4260,10 @@ export interface PacketCaptureQueryStatusResult { * Parameters that define the resource to troubleshoot. * * @member {string} targetResourceId The target resource to troubleshoot. - * * @member {string} storageId The ID for the storage account to save the * troubleshoot result. - * * @member {string} storagePath The path to the blob to save the troubleshoot * result in. - * */ export interface TroubleshootingParameters { targetResourceId: string; @@ -5117,7 +4279,6 @@ export interface TroubleshootingParameters { * * @member {string} targetResourceId The target resource ID to query the * troubleshooting result. - * */ export interface QueryTroubleshootingParameters { targetResourceId: string; @@ -5130,15 +4291,11 @@ export interface QueryTroubleshootingParameters { * Recommended actions based on discovered issues. * * @member {string} [actionId] ID of the recommended action. - * * @member {string} [actionText] Description of recommended actions. - * * @member {string} [actionUri] The uri linking to a documentation for the * recommended troubleshooting actions. - * * @member {string} [actionUriText] The information from the URI for the * recommended troubleshooting actions. - * */ export interface TroubleshootingRecommendedActions { actionId?: string; @@ -5154,15 +4311,10 @@ export interface TroubleshootingRecommendedActions { * Information gained from troubleshooting of specified resource. * * @member {string} [id] The id of the get troubleshoot operation. - * * @member {string} [reasonType] Reason type of failure. - * * @member {string} [summary] A summary of troubleshooting. - * * @member {string} [detail] Details on troubleshooting results. - * * @member {array} [recommendedActions] List of recommended actions. - * */ export interface TroubleshootingDetails { id?: string; @@ -5179,13 +4331,9 @@ export interface TroubleshootingDetails { * Troubleshooting information gained from specified resource. * * @member {date} [startTime] The start time of the troubleshooting. - * * @member {date} [endTime] The end time of the troubleshooting. - * * @member {string} [code] The result code of the troubleshooting. - * * @member {array} [results] Information from troubleshooting. - * */ export interface TroubleshootingResult { startTime?: Date; @@ -5202,10 +4350,8 @@ export interface TroubleshootingResult { * * @member {number} [days] Number of days to retain flow log records. Default * value: 0 . - * * @member {boolean} [enabled] Flag to enable/disable retention. Default value: * false . - * */ export interface RetentionPolicyParameters { days?: number; @@ -5220,7 +4366,6 @@ export interface RetentionPolicyParameters { * * @member {string} targetResourceId The target resource where getting the flow * logging status. - * */ export interface FlowLogStatusParameters { targetResourceId: string; @@ -5234,20 +4379,14 @@ export interface FlowLogStatusParameters { * * @member {string} targetResourceId The ID of the resource to configure for * flow logging. - * * @member {string} storageId ID of the storage account which is used to store * the flow log. - * * @member {boolean} enabled Flag to enable/disable flow logging. - * * @member {object} [retentionPolicy] - * * @member {number} [retentionPolicy.days] Number of days to retain flow log * records. - * * @member {boolean} [retentionPolicy.enabled] Flag to enable/disable * retention. - * */ export interface FlowLogInformation { targetResourceId: string; @@ -5264,10 +4403,8 @@ export interface FlowLogInformation { * * @member {string} resourceId The ID of the resource from which a connectivity * check will be initiated. - * * @member {number} [port] The source port from which a connectivity check will * be performed. - * */ export interface ConnectivitySource { resourceId: string; @@ -5282,12 +4419,9 @@ export interface ConnectivitySource { * * @member {string} [resourceId] The ID of the resource to which a connection * attempt will be made. - * * @member {string} [address] The IP address or URI the resource to which a * connection attempt will be made. - * * @member {number} [port] Port on which check connectivity will be performed. - * */ export interface ConnectivityDestination { resourceId?: string; @@ -5302,24 +4436,17 @@ export interface ConnectivityDestination { * Parameters that determine how the connectivity check will be performed. * * @member {object} source - * * @member {string} [source.resourceId] The ID of the resource from which a * connectivity check will be initiated. - * * @member {number} [source.port] The source port from which a connectivity * check will be performed. - * * @member {object} destination - * * @member {string} [destination.resourceId] The ID of the resource to which a * connection attempt will be made. - * * @member {string} [destination.address] The IP address or URI the resource to * which a connection attempt will be made. - * * @member {number} [destination.port] Port on which check connectivity will be * performed. - * */ export interface ConnectivityParameters { source: ConnectivitySource; @@ -5335,16 +4462,12 @@ export interface ConnectivityParameters { * * @member {string} [origin] The origin of the issue. Possible values include: * 'Local', 'Inbound', 'Outbound' - * * @member {string} [severity] The severity of the issue. Possible values * include: 'Error', 'Warning' - * * @member {string} [type] The type of issue. Possible values include: * 'Unknown', 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', * 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' - * * @member {array} [context] Provides additional context on the issue. - * */ export interface ConnectivityIssue { readonly origin?: string; @@ -5360,18 +4483,12 @@ export interface ConnectivityIssue { * Information about a hop between the source and the destination. * * @member {string} [type] The type of the hop. - * * @member {string} [id] The ID of the hop. - * * @member {string} [address] The IP address of the hop. - * * @member {string} [resourceId] The ID of the resource corresponding to this * hop. - * * @member {array} [nextHopIds] List of next hop identifiers. - * * @member {array} [issues] List of issues. - * */ export interface ConnectivityHop { readonly type?: string; @@ -5389,20 +4506,13 @@ export interface ConnectivityHop { * Information on the connectivity status. * * @member {array} [hops] List of hops between the source and the destination. - * * @member {string} [connectionStatus] The connection status. Possible values * include: 'Unknown', 'Connected', 'Disconnected', 'Degraded' - * * @member {number} [avgLatencyInMs] Average latency in milliseconds. - * * @member {number} [minLatencyInMs] Minimum latency in milliseconds. - * * @member {number} [maxLatencyInMs] Maximum latency in milliseconds. - * * @member {number} [probesSent] Total number of probes sent. - * * @member {number} [probesFailed] Number of failed probes. - * */ export interface ConnectivityInformation { readonly hops?: ConnectivityHop[]; @@ -5422,9 +4532,7 @@ export interface ConnectivityInformation { * * @member {array} [value] A list of public IP addresses that exists in a * resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface PublicIPAddressListResult { value?: PublicIPAddress[]; @@ -5439,21 +4547,15 @@ export interface PublicIPAddressListResult { * * @member {string} access The access type of the rule. Valid values are: * 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' - * * @member {array} communities The collection for bgp community values to * filter on. e.g. ['12076:5010','12076:5020'] - * * @member {string} [provisioningState] The provisioning state of the resource. * Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {object} [tags] Resource tags. - * */ export interface PatchRouteFilterRule extends SubResource { access: string; @@ -5472,27 +4574,20 @@ export interface PatchRouteFilterRule extends SubResource { * * @member {array} [rules] Collection of RouteFilterRules contained within a * route filter. - * * @member {array} [peerings] A collection of references to express route * circuit peerings. - * * @member {string} [provisioningState] The provisioning state of the resource. * Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * * @member {string} [type] Resource type. - * * @member {object} [tags] Resource tags. - * */ export interface PatchRouteFilter extends SubResource { rules?: RouteFilterRule[]; - readonly peerings?: ExpressRouteCircuitPeering[]; + peerings?: ExpressRouteCircuitPeering[]; readonly provisioningState?: string; readonly name?: string; readonly etag?: string; @@ -5507,9 +4602,7 @@ export interface PatchRouteFilter extends SubResource { * Response for the ListRouteFilters API service call. * * @member {array} [value] Gets a list of route filters in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteFilterListResult { value?: RouteFilter[]; @@ -5523,9 +4616,7 @@ export interface RouteFilterListResult { * Response for the ListRouteFilterRules API service call * * @member {array} [value] Gets a list of RouteFilterRules in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteFilterRuleListResult { value?: RouteFilterRule[]; @@ -5539,9 +4630,7 @@ export interface RouteFilterRuleListResult { * Response for the ListRouteTable API service call. * * @member {array} [value] Gets a list of route tables in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteTableListResult { value?: RouteTable[]; @@ -5555,9 +4644,7 @@ export interface RouteTableListResult { * Response for the ListRoute API service call * * @member {array} [value] Gets a list of routes in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteListResult { value?: Route[]; @@ -5572,22 +4659,16 @@ export interface RouteListResult { * * @member {string} [serviceSupportedRegion] The region which the service * support. e.g. For O365, region is Global. - * * @member {string} [communityName] The name of the bgp community. e.g. Skype. - * * @member {string} [communityValue] The value of the bgp community. For more * information: * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. - * * @member {array} [communityPrefixes] The prefixes that the bgp community * contains. - * * @member {boolean} [isAuthorizedToUse] Customer is authorized to use bgp * community or not. - * * @member {string} [serviceGroup] The service group of the bgp community * contains. - * */ export interface BGPCommunity { serviceSupportedRegion?: string; @@ -5605,9 +4686,7 @@ export interface BGPCommunity { * Service Community Properties. * * @member {string} [serviceName] The name of the bgp community. e.g. Skype. - * * @member {array} [bgpCommunities] Get a list of bgp communities. - * */ export interface BgpServiceCommunity extends Resource { serviceName?: string; @@ -5621,9 +4700,7 @@ export interface BgpServiceCommunity extends Resource { * Response for the ListServiceCommunity API service call. * * @member {array} [value] A list of service community resources. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface BgpServiceCommunityListResult { value?: BgpServiceCommunity[]; @@ -5637,10 +4714,8 @@ export interface BgpServiceCommunityListResult { * The usage names. * * @member {string} [value] A string describing the resource name. - * * @member {string} [localizedValue] A localized string describing the resource * name. - * */ export interface UsageName { value?: string; @@ -5654,16 +4729,11 @@ export interface UsageName { * Describes network resource usage. * * @member {number} currentValue The current value of the usage. - * * @member {number} limit The limit of usage. - * * @member {object} name The name of the type of usage. - * * @member {string} [name.value] A string describing the resource name. - * * @member {string} [name.localizedValue] A localized string describing the * resource name. - * */ export interface Usage { currentValue: number; @@ -5678,9 +4748,7 @@ export interface Usage { * The list usages operation response. * * @member {array} [value] The list network resource usages. - * * @member {string} [nextLink] URL to get the next set of results. - * */ export interface UsagesListResult { value?: Usage[]; @@ -5696,36 +4764,26 @@ export interface UsagesListResult { * @member {boolean} [allowVirtualNetworkAccess] Whether the VMs in the linked * virtual network space would be able to access all the VMs in local Virtual * network space. - * * @member {boolean} [allowForwardedTraffic] Whether the forwarded traffic from * the VMs in the remote virtual network will be allowed/disallowed. - * * @member {boolean} [allowGatewayTransit] If gateway links can be used in * remote virtual networking to link to this virtual network. - * * @member {boolean} [useRemoteGateways] If remote gateways can be used on this * virtual network. If the flag is set to true, and allowGatewayTransit on * remote peering is also true, virtual network will use gateways of remote * virtual network for transit. Only one peering can have this flag set to * true. This flag cannot be set if virtual network already has a gateway. - * * @member {object} [remoteVirtualNetwork] The reference of the remote virtual * network. - * * @member {string} [remoteVirtualNetwork.id] Resource ID. - * * @member {string} [peeringState] The status of the virtual network peering. * Possible values are 'Initiated', 'Connected', and 'Disconnected'. Possible * values include: 'Initiated', 'Connected', 'Disconnected' - * * @member {string} [provisioningState] The provisioning state of the resource. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface VirtualNetworkPeering extends SubResource { allowVirtualNetworkAccess?: boolean; @@ -5747,9 +4805,7 @@ export interface VirtualNetworkPeering extends SubResource { * to a virtual network * * @member {array} [value] The subnets in a virtual network. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface SubnetListResult { value?: Subnet[]; @@ -5764,9 +4820,7 @@ export interface SubnetListResult { * to a virtual network. * * @member {array} [value] The peerings in a virtual network. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkPeeringListResult { value?: VirtualNetworkPeering[]; @@ -5782,7 +4836,6 @@ export interface VirtualNetworkPeeringListResult { * * @member {array} [addressPrefixes] A list of address blocks reserved for this * virtual network in CIDR notation. - * */ export interface AddressSpace { addressPrefixes?: string[]; @@ -5797,7 +4850,6 @@ export interface AddressSpace { * options. * * @member {array} [dnsServers] The list of DNS servers IP addresses. - * */ export interface DhcpOptions { dnsServers?: string[]; @@ -5811,30 +4863,21 @@ export interface DhcpOptions { * * @member {object} [addressSpace] The AddressSpace that contains an array of * IP address ranges that can be used by subnets. - * * @member {array} [addressSpace.addressPrefixes] A list of address blocks * reserved for this virtual network in CIDR notation. - * * @member {object} [dhcpOptions] The dhcpOptions that contains an array of DNS * servers available to VMs deployed in the virtual network. - * * @member {array} [dhcpOptions.dnsServers] The list of DNS servers IP * addresses. - * * @member {array} [subnets] A list of subnets in a Virtual Network. - * * @member {array} [virtualNetworkPeerings] A list of peerings in a Virtual * Network. - * * @member {string} [resourceGuid] The resourceGuid property of the Virtual * Network resource. - * * @member {string} [provisioningState] The provisioning state of the PublicIP * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [etag] Gets a unique read-only string that changes whenever * the resource is updated. - * */ export interface VirtualNetwork extends Resource { addressSpace?: AddressSpace; @@ -5854,9 +4897,7 @@ export interface VirtualNetwork extends Resource { * * @member {array} [value] Gets a list of VirtualNetwork resources in a * resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkListResult { value?: VirtualNetwork[]; @@ -5870,10 +4911,8 @@ export interface VirtualNetworkListResult { * Response for CheckIPAddressAvailability API service call * * @member {boolean} [available] Private IP address availability. - * * @member {array} [availableIPAddresses] Contains other available private IP * addresses if the asked for address is taken. - * */ export interface IPAddressAvailabilityResult { available?: boolean; @@ -5887,9 +4926,7 @@ export interface IPAddressAvailabilityResult { * Usage strings container. * * @member {string} [localizedValue] Localized subnet size and usage string. - * * @member {string} [value] Subnet size and usage string. - * */ export interface VirtualNetworkUsageName { readonly localizedValue?: string; @@ -5904,21 +4941,14 @@ export interface VirtualNetworkUsageName { * * @member {number} [currentValue] Indicates number of IPs used from the * Subnet. - * * @member {string} [id] Subnet identifier. - * * @member {number} [limit] Indicates the size of the subnet. - * * @member {object} [name] The name containing common and localized value for * usage. - * * @member {string} [name.localizedValue] Localized subnet size and usage * string. - * * @member {string} [name.value] Subnet size and usage string. - * * @member {string} [unit] Usage units. Returns 'Count' - * */ export interface VirtualNetworkUsage { readonly currentValue?: number; @@ -5935,9 +4965,7 @@ export interface VirtualNetworkUsage { * Response for the virtual networks GetUsage API service call. * * @member {array} [value] VirtualNetwork usage stats. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkListUsageResult { readonly value?: VirtualNetworkUsage[]; @@ -5953,24 +4981,16 @@ export interface VirtualNetworkListUsageResult { * @member {string} [privateIPAllocationMethod] The private IP allocation * method. Possible values are: 'Static' and 'Dynamic'. Possible values * include: 'Static', 'Dynamic' - * * @member {object} [subnet] The reference of the subnet resource. - * * @member {string} [subnet.id] Resource ID. - * * @member {object} [publicIPAddress] The reference of the public IP resource. - * * @member {string} [publicIPAddress.id] Resource ID. - * * @member {string} [provisioningState] The provisioning state of the public IP * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface VirtualNetworkGatewayIPConfiguration extends SubResource { privateIPAllocationMethod?: string; @@ -5990,13 +5010,10 @@ export interface VirtualNetworkGatewayIPConfiguration extends SubResource { * @member {string} [name] Gateway SKU name. Possible values include: 'Basic', * 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', * 'VpnGw3' - * * @member {string} [tier] Gateway SKU tier. Possible values include: 'Basic', * 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', * 'VpnGw3' - * * @member {number} [capacity] The capacity. - * */ export interface VirtualNetworkGatewaySku { name?: string; @@ -6011,17 +5028,13 @@ export interface VirtualNetworkGatewaySku { * VPN client root certificate of virtual network gateway * * @member {string} publicCertData The certificate public data. - * * @member {string} [provisioningState] The provisioning state of the VPN * client root certificate resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface VpnClientRootCertificate extends SubResource { publicCertData: string; @@ -6037,17 +5050,13 @@ export interface VpnClientRootCertificate extends SubResource { * VPN client revoked certificate of virtual network gateway. * * @member {string} [thumbprint] The revoked VPN client certificate thumbprint. - * * @member {string} [provisioningState] The provisioning state of the VPN * client revoked certificate resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [name] The name of the resource that is unique within a * resource group. This name can be used to access the resource. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface VpnClientRevokedCertificate extends SubResource { thumbprint?: string; @@ -6064,25 +5073,26 @@ export interface VpnClientRevokedCertificate extends SubResource { * * @member {object} [vpnClientAddressPool] The reference of the address space * resource which represents Address space for P2S VpnClient. - * * @member {array} [vpnClientAddressPool.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. - * * @member {array} [vpnClientRootCertificates] VpnClientRootCertificate for * virtual network gateway. - * * @member {array} [vpnClientRevokedCertificates] VpnClientRevokedCertificate * for Virtual network gateway. - * * @member {array} [vpnClientProtocols] VpnClientProtocols for Virtual network * gateway. - * + * @member {string} [radiusServerAddress] The radius server address property of + * the VirtualNetworkGateway resource for vpn client connection. + * @member {string} [radiusServerSecret] The radius secret property of the + * VirtualNetworkGateway resource for vpn client connection. */ export interface VpnClientConfiguration { vpnClientAddressPool?: AddressSpace; vpnClientRootCertificates?: VpnClientRootCertificate[]; vpnClientRevokedCertificates?: VpnClientRevokedCertificate[]; vpnClientProtocols?: string[]; + radiusServerAddress?: string; + radiusServerSecret?: string; } /** @@ -6092,13 +5102,10 @@ export interface VpnClientConfiguration { * BGP settings details * * @member {number} [asn] The BGP speaker's ASN. - * * @member {string} [bgpPeeringAddress] The BGP peering address and BGP * identifier of this BGP speaker. - * * @member {number} [peerWeight] The weight added to routes learned from this * BGP speaker. - * */ export interface BgpSettings { asn?: number; @@ -6113,23 +5120,15 @@ export interface BgpSettings { * BGP peer status details * * @member {string} [localAddress] The virtual network gateway's local address - * * @member {string} [neighbor] The remote BGP peer - * * @member {number} [asn] The autonomous system number of the remote BGP peer - * * @member {string} [state] The BGP peer state. Possible values include: * 'Unknown', 'Stopped', 'Idle', 'Connecting', 'Connected' - * * @member {string} [connectedDuration] For how long the peering has been up - * * @member {number} [routesReceived] The number of routes learned from this * peer - * * @member {number} [messagesSent] The number of BGP messages sent - * * @member {number} [messagesReceived] The number of BGP messages received - * */ export interface BgpPeerStatus { readonly localAddress?: string; @@ -6149,19 +5148,12 @@ export interface BgpPeerStatus { * Gateway routing details * * @member {string} [localAddress] The gateway's local address - * * @member {string} [network] The route's network prefix - * * @member {string} [nextHop] The route's next hop - * * @member {string} [sourcePeer] The peer this route was learned from - * * @member {string} [origin] The source this route was learned from - * * @member {string} [asPath] The route's AS path sequence - * * @member {number} [weight] The route's weight - * */ export interface GatewayRoute { readonly localAddress?: string; @@ -6181,88 +5173,64 @@ export interface GatewayRoute { * * @member {array} [ipConfigurations] IP configurations for virtual network * gateway. - * * @member {string} [gatewayType] The type of this virtual network gateway. * Possible values are: 'Vpn' and 'ExpressRoute'. Possible values include: * 'Vpn', 'ExpressRoute' - * * @member {string} [vpnType] The type of this virtual network gateway. * Possible values are: 'PolicyBased' and 'RouteBased'. Possible values * include: 'PolicyBased', 'RouteBased' - * * @member {boolean} [enableBgp] Whether BGP is enabled for this virtual * network gateway or not. - * * @member {boolean} [activeActive] ActiveActive flag - * * @member {object} [gatewayDefaultSite] The reference of the * LocalNetworkGateway resource which represents local network site having * default routes. Assign Null value in case of removing existing default site * setting. - * * @member {string} [gatewayDefaultSite.id] Resource ID. - * * @member {object} [sku] The reference of the VirtualNetworkGatewaySku * resource which represents the SKU selected for Virtual network gateway. - * * @member {string} [sku.name] Gateway SKU name. Possible values include: * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', * 'VpnGw2', 'VpnGw3' - * * @member {string} [sku.tier] Gateway SKU tier. Possible values include: * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', * 'VpnGw2', 'VpnGw3' - * * @member {number} [sku.capacity] The capacity. - * * @member {object} [vpnClientConfiguration] The reference of the * VpnClientConfiguration resource which represents the P2S VpnClient * configurations. - * * @member {object} [vpnClientConfiguration.vpnClientAddressPool] The reference * of the address space resource which represents Address space for P2S * VpnClient. - * * @member {array} * [vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] A list of * address blocks reserved for this virtual network in CIDR notation. - * * @member {array} [vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. - * * @member {array} [vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. - * * @member {array} [vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. - * + * @member {string} [vpnClientConfiguration.radiusServerAddress] The radius + * server address property of the VirtualNetworkGateway resource for vpn client + * connection. + * @member {string} [vpnClientConfiguration.radiusServerSecret] The radius + * secret property of the VirtualNetworkGateway resource for vpn client + * connection. * @member {object} [bgpSettings] Virtual network gateway's BGP speaker * settings. - * * @member {number} [bgpSettings.asn] The BGP speaker's ASN. - * * @member {string} [bgpSettings.bgpPeeringAddress] The BGP peering address and * BGP identifier of this BGP speaker. - * * @member {number} [bgpSettings.peerWeight] The weight added to routes learned * from this BGP speaker. - * - * @member {string} [radiusServer] The radius server address property of the - * VirtualNetworkGateway resource for vpn client connection. - * - * @member {string} [radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @member {string} [resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. - * * @member {string} [provisioningState] The provisioning state of the * VirtualNetworkGateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. - * * @member {string} [etag] Gets a unique read-only string that changes whenever * the resource is updated. - * */ export interface VirtualNetworkGateway extends Resource { ipConfigurations?: VirtualNetworkGatewayIPConfiguration[]; @@ -6274,8 +5242,6 @@ export interface VirtualNetworkGateway extends Resource { sku?: VirtualNetworkGatewaySku; vpnClientConfiguration?: VpnClientConfiguration; bgpSettings?: BgpSettings; - radiusServer?: string; - radiusSecret?: string; resourceGuid?: string; readonly provisioningState?: string; etag?: string; @@ -6290,20 +5256,16 @@ export interface VirtualNetworkGateway extends Resource { * @member {string} [processorArchitecture] VPN client Processor Architecture. * Possible values are: 'AMD64' and 'X86'. Possible values include: 'Amd64', * 'X86' - * * @member {string} [authenticationMethod] VPN client Authentication Method. * Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: * 'EAPTLS', 'EAPMSCHAPv2' - * * @member {string} [radiusServerAuthCertificate] The public certificate data * for the radius server authentication certificate as a Base-64 encoded * string. Required only if external radius authentication has been configured * with EAPTLS authentication. - * * @member {array} [clientRootCertificates] A list of client root certificates * public certificate data encoded as Base-64 strings. Optional parameter for * external radius based authentication with EAPTLS. - * */ export interface VpnClientParameters { processorArchitecture?: string; @@ -6320,13 +5282,11 @@ export interface VpnClientParameters { * * @member {array} [value] Gets a list of VirtualNetworkGateway resources that * exists in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkGatewayListResult { value?: VirtualNetworkGateway[]; - nextLink?: string; + readonly nextLink?: string; } /** @@ -6336,7 +5296,6 @@ export interface VirtualNetworkGatewayListResult { * Response for list BGP peer status API service call * * @member {array} [value] List of BGP peers - * */ export interface BgpPeerStatusListResult { value?: BgpPeerStatus[]; @@ -6349,7 +5308,6 @@ export interface BgpPeerStatusListResult { * List of virtual network gateway routes * * @member {array} [value] List of gateway routes - * */ export interface GatewayRouteListResult { value?: GatewayRoute[]; @@ -6362,20 +5320,15 @@ export interface GatewayRouteListResult { * VirtualNetworkGatewayConnection properties * * @member {string} [tunnel] Tunnel name. - * * @member {string} [connectionStatus] Virtual network Gateway connection * status. Possible values include: 'Unknown', 'Connecting', 'Connected', * 'NotConnected' - * * @member {number} [ingressBytesTransferred] The Ingress Bytes Transferred in * this connection - * * @member {number} [egressBytesTransferred] The Egress Bytes Transferred in * this connection - * * @member {string} [lastConnectionEstablishedUtcTime] The time at which * connection was established in Utc format. - * */ export interface TunnelConnectionHealth { readonly tunnel?: string; @@ -6393,32 +5346,22 @@ export interface TunnelConnectionHealth { * * @member {object} [localNetworkAddressSpace] Local network site address * space. - * * @member {array} [localNetworkAddressSpace.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. - * * @member {string} [gatewayIpAddress] IP address of local network gateway. - * * @member {object} [bgpSettings] Local network gateway's BGP speaker settings. - * * @member {number} [bgpSettings.asn] The BGP speaker's ASN. - * * @member {string} [bgpSettings.bgpPeeringAddress] The BGP peering address and * BGP identifier of this BGP speaker. - * * @member {number} [bgpSettings.peerWeight] The weight added to routes learned * from this BGP speaker. - * * @member {string} [resourceGuid] The resource GUID property of the * LocalNetworkGateway resource. - * * @member {string} [provisioningState] The provisioning state of the * LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. - * * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. - * */ export interface LocalNetworkGateway extends Resource { localNetworkAddressSpace?: AddressSpace; @@ -6438,33 +5381,25 @@ export interface LocalNetworkGateway extends Resource { * @member {number} saLifeTimeSeconds The IPSec Security Association (also * called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN * tunnel. - * * @member {number} saDataSizeKilobytes The IPSec Security Association (also * called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN * tunnel. - * * @member {string} ipsecEncryption The IPSec encryption algorithm (IKE phase * 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', * 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' - * * @member {string} ipsecIntegrity The IPSec integrity algorithm (IKE phase 1). * Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', * 'GCMAES256' - * * @member {string} ikeEncryption The IKE encryption algorithm (IKE phase 2). * Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256' - * * @member {string} ikeIntegrity The IKE integrity algorithm (IKE phase 2). * Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384' - * * @member {string} dhGroup The DH Groups used in IKE Phase 1 for initial SA. * Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', * 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' - * * @member {string} pfsGroup The DH Groups used in IKE Phase 2 for new child * SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', * 'ECP384', 'PFS24' - * */ export interface IpsecPolicy { saLifeTimeSeconds: number; @@ -6484,271 +5419,199 @@ export interface IpsecPolicy { * A common class for general resource information * * @member {string} [authorizationKey] The authorizationKey. - * - * @member {object} virtualNetworkGateway1 - * + * @member {object} virtualNetworkGateway1 The reference to virtual network + * gateway resource. * @member {array} [virtualNetworkGateway1.ipConfigurations] IP configurations * for virtual network gateway. - * * @member {string} [virtualNetworkGateway1.gatewayType] The type of this * virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. * Possible values include: 'Vpn', 'ExpressRoute' - * * @member {string} [virtualNetworkGateway1.vpnType] The type of this virtual * network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. * Possible values include: 'PolicyBased', 'RouteBased' - * * @member {boolean} [virtualNetworkGateway1.enableBgp] Whether BGP is enabled * for this virtual network gateway or not. - * * @member {boolean} [virtualNetworkGateway1.activeActive] ActiveActive flag - * * @member {object} [virtualNetworkGateway1.gatewayDefaultSite] The reference * of the LocalNetworkGateway resource which represents local network site * having default routes. Assign Null value in case of removing existing * default site setting. - * * @member {string} [virtualNetworkGateway1.gatewayDefaultSite.id] Resource ID. - * * @member {object} [virtualNetworkGateway1.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. - * * @member {string} [virtualNetworkGateway1.sku.name] Gateway SKU name. * Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' - * * @member {string} [virtualNetworkGateway1.sku.tier] Gateway SKU tier. * Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' - * * @member {number} [virtualNetworkGateway1.sku.capacity] The capacity. - * * @member {object} [virtualNetworkGateway1.vpnClientConfiguration] The * reference of the VpnClientConfiguration resource which represents the P2S * VpnClient configurations. - * * @member {object} * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientAddressPool] The * reference of the address space resource which represents Address space for * P2S VpnClient. - * * @member {array} * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] * A list of address blocks reserved for this virtual network in CIDR notation. - * * @member {array} * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. - * * @member {array} * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. - * * @member {array} * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. - * + * @member {string} + * [virtualNetworkGateway1.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * @member {string} + * [virtualNetworkGateway1.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. * @member {object} [virtualNetworkGateway1.bgpSettings] Virtual network * gateway's BGP speaker settings. - * * @member {number} [virtualNetworkGateway1.bgpSettings.asn] The BGP speaker's * ASN. - * * @member {string} [virtualNetworkGateway1.bgpSettings.bgpPeeringAddress] The * BGP peering address and BGP identifier of this BGP speaker. - * * @member {number} [virtualNetworkGateway1.bgpSettings.peerWeight] The weight * added to routes learned from this BGP speaker. - * - * @member {string} [virtualNetworkGateway1.radiusServer] The radius server - * address property of the VirtualNetworkGateway resource for vpn client - * connection. - * - * @member {string} [virtualNetworkGateway1.radiusSecret] The radius secret - * property of the VirtualNetworkGateway resource for vpn client connection. - * * @member {string} [virtualNetworkGateway1.resourceGuid] The resource GUID * property of the VirtualNetworkGateway resource. - * * @member {string} [virtualNetworkGateway1.provisioningState] The provisioning * state of the VirtualNetworkGateway resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [virtualNetworkGateway1.etag] Gets a unique read-only * string that changes whenever the resource is updated. - * - * @member {object} [virtualNetworkGateway2] - * + * @member {object} [virtualNetworkGateway2] The reference to virtual network + * gateway resource. * @member {array} [virtualNetworkGateway2.ipConfigurations] IP configurations * for virtual network gateway. - * * @member {string} [virtualNetworkGateway2.gatewayType] The type of this * virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. * Possible values include: 'Vpn', 'ExpressRoute' - * * @member {string} [virtualNetworkGateway2.vpnType] The type of this virtual * network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. * Possible values include: 'PolicyBased', 'RouteBased' - * * @member {boolean} [virtualNetworkGateway2.enableBgp] Whether BGP is enabled * for this virtual network gateway or not. - * * @member {boolean} [virtualNetworkGateway2.activeActive] ActiveActive flag - * * @member {object} [virtualNetworkGateway2.gatewayDefaultSite] The reference * of the LocalNetworkGateway resource which represents local network site * having default routes. Assign Null value in case of removing existing * default site setting. - * * @member {string} [virtualNetworkGateway2.gatewayDefaultSite.id] Resource ID. - * * @member {object} [virtualNetworkGateway2.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. - * * @member {string} [virtualNetworkGateway2.sku.name] Gateway SKU name. * Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' - * * @member {string} [virtualNetworkGateway2.sku.tier] Gateway SKU tier. * Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' - * * @member {number} [virtualNetworkGateway2.sku.capacity] The capacity. - * * @member {object} [virtualNetworkGateway2.vpnClientConfiguration] The * reference of the VpnClientConfiguration resource which represents the P2S * VpnClient configurations. - * * @member {object} * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] The * reference of the address space resource which represents Address space for * P2S VpnClient. - * * @member {array} * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] * A list of address blocks reserved for this virtual network in CIDR notation. - * * @member {array} * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. - * * @member {array} * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. - * * @member {array} * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. - * + * @member {string} + * [virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * @member {string} + * [virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. * @member {object} [virtualNetworkGateway2.bgpSettings] Virtual network * gateway's BGP speaker settings. - * * @member {number} [virtualNetworkGateway2.bgpSettings.asn] The BGP speaker's * ASN. - * * @member {string} [virtualNetworkGateway2.bgpSettings.bgpPeeringAddress] The * BGP peering address and BGP identifier of this BGP speaker. - * * @member {number} [virtualNetworkGateway2.bgpSettings.peerWeight] The weight * added to routes learned from this BGP speaker. - * - * @member {string} [virtualNetworkGateway2.radiusServer] The radius server - * address property of the VirtualNetworkGateway resource for vpn client - * connection. - * - * @member {string} [virtualNetworkGateway2.radiusSecret] The radius secret - * property of the VirtualNetworkGateway resource for vpn client connection. - * * @member {string} [virtualNetworkGateway2.resourceGuid] The resource GUID * property of the VirtualNetworkGateway resource. - * * @member {string} [virtualNetworkGateway2.provisioningState] The provisioning * state of the VirtualNetworkGateway resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. - * * @member {string} [virtualNetworkGateway2.etag] Gets a unique read-only * string that changes whenever the resource is updated. - * - * @member {object} [localNetworkGateway2] - * + * @member {object} [localNetworkGateway2] The reference to local network + * gateway resource. * @member {object} [localNetworkGateway2.localNetworkAddressSpace] Local * network site address space. - * * @member {array} * [localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A list of * address blocks reserved for this virtual network in CIDR notation. - * * @member {string} [localNetworkGateway2.gatewayIpAddress] IP address of local * network gateway. - * * @member {object} [localNetworkGateway2.bgpSettings] Local network gateway's * BGP speaker settings. - * * @member {number} [localNetworkGateway2.bgpSettings.asn] The BGP speaker's * ASN. - * * @member {string} [localNetworkGateway2.bgpSettings.bgpPeeringAddress] The * BGP peering address and BGP identifier of this BGP speaker. - * * @member {number} [localNetworkGateway2.bgpSettings.peerWeight] The weight * added to routes learned from this BGP speaker. - * * @member {string} [localNetworkGateway2.resourceGuid] The resource GUID * property of the LocalNetworkGateway resource. - * * @member {string} [localNetworkGateway2.provisioningState] The provisioning * state of the LocalNetworkGateway resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [localNetworkGateway2.etag] A unique read-only string that * changes whenever the resource is updated. - * * @member {string} connectionType Gateway connection type. Possible values * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' - * * @member {number} [routingWeight] The routing weight. - * * @member {string} [sharedKey] The IPSec shared key. - * * @member {string} [connectionStatus] Virtual network Gateway connection * status. Possible values are 'Unknown', 'Connecting', 'Connected' and * 'NotConnected'. Possible values include: 'Unknown', 'Connecting', * 'Connected', 'NotConnected' - * * @member {array} [tunnelConnectionStatus] Collection of all tunnels' * connection health status. - * * @member {number} [egressBytesTransferred] The egress bytes transferred in * this connection. - * * @member {number} [ingressBytesTransferred] The ingress bytes transferred in * this connection. - * * @member {object} [peer] The reference to peerings resource. - * * @member {string} [peer.id] Resource ID. - * * @member {boolean} [enableBgp] EnableBgp flag - * * @member {boolean} [usePolicyBasedTrafficSelectors] Enable policy-based * traffic selectors. - * * @member {array} [ipsecPolicies] The IPSec Policies to be considered by this * connection. - * * @member {string} [resourceGuid] The resource GUID property of the * VirtualNetworkGatewayConnection resource. - * * @member {string} [provisioningState] The provisioning state of the * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * * @member {string} [etag] Gets a unique read-only string that changes whenever * the resource is updated. - * */ export interface VirtualNetworkGatewayConnection extends Resource { authorizationKey?: string; @@ -6779,13 +5642,11 @@ export interface VirtualNetworkGatewayConnection extends Resource { * * @member {array} [value] Gets a list of VirtualNetworkGatewayConnection * resources that exists in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkGatewayConnectionListResult { value?: VirtualNetworkGatewayConnection[]; - nextLink?: string; + readonly nextLink?: string; } /** @@ -6796,7 +5657,6 @@ export interface VirtualNetworkGatewayConnectionListResult { * * @member {number} keyLength The virtual network connection reset shared key * length, should between 1 and 128. - * */ export interface ConnectionResetSharedKey { keyLength: number; @@ -6809,7 +5669,6 @@ export interface ConnectionResetSharedKey { * Response for GetConnectionSharedKey API service call * * @member {string} value The virtual network connection shared key value. - * */ export interface ConnectionSharedKey { value: string; @@ -6823,46 +5682,109 @@ export interface ConnectionSharedKey { * * @member {array} [value] A list of local network gateways that exists in a * resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface LocalNetworkGatewayListResult { value?: LocalNetworkGateway[]; - nextLink?: string; + readonly nextLink?: string; } /** * @class - * Initializes a new instance of the PrivateAccessServiceResult class. + * Initializes a new instance of the VirtualNetworkConnectionGatewayReference class. * @constructor - * Private access service. - * - * @member {string} [name] Name of the private access value. - * - * @member {string} [type] Type of the private access value. + * A reference to VirtualNetworkGateway or LocalNetworkGateway resource. * + * @member {string} id The ID of VirtualNetworkGateway or LocalNetworkGateway + * resource. */ -export interface PrivateAccessServiceResult extends SubResource { - readonly name?: string; - readonly type?: string; +export interface VirtualNetworkConnectionGatewayReference { + id: string; } /** * @class - * Initializes a new instance of the PrivateAccessServicesListResult class. + * Initializes a new instance of the VirtualNetworkGatewayConnectionListEntity class. * @constructor - * Response for the ListAvailablePrivateAccessServices API service call. + * A common class for general resource information * - * @member {array} [value] List of available private access service values in a - * region. + * @member {string} [authorizationKey] The authorizationKey. + * @member {object} virtualNetworkGateway1 The reference to virtual network + * gateway resource. + * @member {string} [virtualNetworkGateway1.id] The ID of VirtualNetworkGateway + * or LocalNetworkGateway resource. + * @member {object} [virtualNetworkGateway2] The reference to virtual network + * gateway resource. + * @member {string} [virtualNetworkGateway2.id] The ID of VirtualNetworkGateway + * or LocalNetworkGateway resource. + * @member {object} [localNetworkGateway2] The reference to local network + * gateway resource. + * @member {string} [localNetworkGateway2.id] The ID of VirtualNetworkGateway + * or LocalNetworkGateway resource. + * @member {string} connectionType Gateway connection type. Possible values + * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + * @member {number} [routingWeight] The routing weight. + * @member {string} [sharedKey] The IPSec shared key. + * @member {string} [connectionStatus] Virtual network Gateway connection + * status. Possible values are 'Unknown', 'Connecting', 'Connected' and + * 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + * 'Connected', 'NotConnected' + * @member {array} [tunnelConnectionStatus] Collection of all tunnels' + * connection health status. + * @member {number} [egressBytesTransferred] The egress bytes transferred in + * this connection. + * @member {number} [ingressBytesTransferred] The ingress bytes transferred in + * this connection. + * @member {object} [peer] The reference to peerings resource. + * @member {string} [peer.id] Resource ID. + * @member {boolean} [enableBgp] EnableBgp flag + * @member {boolean} [usePolicyBasedTrafficSelectors] Enable policy-based + * traffic selectors. + * @member {array} [ipsecPolicies] The IPSec Policies to be considered by this + * connection. + * @member {string} [resourceGuid] The resource GUID property of the + * VirtualNetworkGatewayConnection resource. + * @member {string} [provisioningState] The provisioning state of the + * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [etag] Gets a unique read-only string that changes whenever + * the resource is updated. + */ +export interface VirtualNetworkGatewayConnectionListEntity extends Resource { + authorizationKey?: string; + virtualNetworkGateway1: VirtualNetworkConnectionGatewayReference; + virtualNetworkGateway2?: VirtualNetworkConnectionGatewayReference; + localNetworkGateway2?: VirtualNetworkConnectionGatewayReference; + connectionType: string; + routingWeight?: number; + sharedKey?: string; + readonly connectionStatus?: string; + readonly tunnelConnectionStatus?: TunnelConnectionHealth[]; + readonly egressBytesTransferred?: number; + readonly ingressBytesTransferred?: number; + peer?: SubResource; + enableBgp?: boolean; + usePolicyBasedTrafficSelectors?: boolean; + ipsecPolicies?: IpsecPolicy[]; + resourceGuid?: string; + readonly provisioningState?: string; + etag?: string; +} + +/** + * @class + * Initializes a new instance of the VirtualNetworkGatewayListConnectionsResult class. + * @constructor + * Response for the VirtualNetworkGatewayListConnections API service call * + * @member {array} [value] Gets a list of VirtualNetworkGatewayConnection + * resources that exists in a resource group. * @member {string} [nextLink] The URL to get the next set of results. - * */ -export interface PrivateAccessServicesListResult { - value?: PrivateAccessServiceResult[]; - nextLink?: string; +export interface VirtualNetworkGatewayListConnectionsResult { + value?: VirtualNetworkGatewayConnectionListEntity[]; + readonly nextLink?: string; } /** @@ -6872,9 +5794,7 @@ export interface PrivateAccessServicesListResult { * Response for ListApplicationGateways API service call. * * @member {array} [value] List of an application gateways in a resource group. - * * @member {string} [nextLink] URL to get the next set of results. - * */ export interface ApplicationGatewayListResult { value?: ApplicationGateway[]; @@ -6888,15 +5808,27 @@ export interface ApplicationGatewayListResult { * Response for ApplicationGatewayAvailableSslOptions API service call. * * @member {array} [value] List of available Ssl predefined policy. - * * @member {string} [nextLink] URL to get the next set of results. - * */ export interface ApplicationGatewayAvailableSslPredefinedPolicies { value?: ApplicationGatewaySslPredefinedPolicy[]; nextLink?: string; } +/** + * @class + * Initializes a new instance of the EndpointServicesListResult class. + * @constructor + * Response for the ListAvailableEndpointServices API service call. + * + * @member {array} [value] List of available endpoint services in a region. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface EndpointServicesListResult { + value?: EndpointServiceResult[]; + nextLink?: string; +} + /** * @class * Initializes a new instance of the AuthorizationListResult class. @@ -6905,9 +5837,7 @@ export interface ApplicationGatewayAvailableSslPredefinedPolicies { * authorizations that belongs to an ExpressRouteCircuit. * * @member {array} [value] The authorizations in an ExpressRoute Circuit. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface AuthorizationListResult { value?: ExpressRouteCircuitAuthorization[]; @@ -6922,9 +5852,7 @@ export interface AuthorizationListResult { * to an ExpressRouteCircuit. * * @member {array} [value] The peerings in an express route circuit. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteCircuitPeeringListResult { value?: ExpressRouteCircuitPeering[]; @@ -6938,9 +5866,7 @@ export interface ExpressRouteCircuitPeeringListResult { * Response for ListExpressRouteCircuit API service call. * * @member {array} [value] A list of ExpressRouteCircuits in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteCircuitListResult { value?: ExpressRouteCircuit[]; @@ -6954,9 +5880,7 @@ export interface ExpressRouteCircuitListResult { * Response for the ListExpressRouteServiceProvider API service call. * * @member {array} [value] A list of ExpressRouteResourceProvider resources. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface ExpressRouteServiceProviderListResult { value?: ExpressRouteServiceProvider[]; @@ -6970,13 +5894,68 @@ export interface ExpressRouteServiceProviderListResult { * Response for ListLoadBalancers API service call. * * @member {array} [value] A list of load balancers in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface LoadBalancerListResult { value?: LoadBalancer[]; - nextLink?: string; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerBackendAddressPoolListResult class. + * @constructor + * Response for ListBackendAddressPool API service call. + * + * @member {array} [value] A list of backend address pools in a load balancer. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerBackendAddressPoolListResult { + value?: BackendAddressPool[]; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerFrontendIPConfigurationListResult class. + * @constructor + * Response for ListFrontendIPConfiguration API service call. + * + * @member {array} [value] A list of frontend IP configurations in a load + * balancer. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerFrontendIPConfigurationListResult { + value?: FrontendIPConfiguration[]; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the InboundNatRuleListResult class. + * @constructor + * Response for ListInboundNatRule API service call. + * + * @member {array} [value] A list of inbound nat rules in a load balancer. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface InboundNatRuleListResult { + value?: InboundNatRule[]; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerLoadBalancingRuleListResult class. + * @constructor + * Response for ListLoadBalancingRule API service call. + * + * @member {array} [value] A list of load balancing rules in a load balancer. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerLoadBalancingRuleListResult { + value?: LoadBalancingRule[]; + readonly nextLink?: string; } /** @@ -6986,13 +5965,53 @@ export interface LoadBalancerListResult { * Response for the ListNetworkInterface API service call. * * @member {array} [value] A list of network interfaces in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface NetworkInterfaceListResult { value?: NetworkInterface[]; - nextLink?: string; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerProbeListResult class. + * @constructor + * Response for ListProbe API service call. + * + * @member {array} [value] A list of probes in a load balancer. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerProbeListResult { + value?: Probe[]; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the NetworkInterfaceIPConfigurationListResult class. + * @constructor + * Response for list ip configurations API service call. + * + * @member {array} [value] A list of ip configurations. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface NetworkInterfaceIPConfigurationListResult { + value?: NetworkInterfaceIPConfiguration[]; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the NetworkInterfaceLoadBalancerListResult class. + * @constructor + * Response for list ip configurations API service call. + * + * @member {array} [value] A list of load balancers. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface NetworkInterfaceLoadBalancerListResult { + value?: LoadBalancer[]; + readonly nextLink?: string; } /** @@ -7002,9 +6021,7 @@ export interface NetworkInterfaceListResult { * Response for ListNetworkSecurityGroups API service call. * * @member {array} [value] A list of NetworkSecurityGroup resources. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface NetworkSecurityGroupListResult { value?: NetworkSecurityGroup[]; @@ -7019,9 +6036,7 @@ export interface NetworkSecurityGroupListResult { * that belongs to a network security group. * * @member {array} [value] The security rules in a network security group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface SecurityRuleListResult { value?: SecurityRule[]; @@ -7035,7 +6050,6 @@ export interface SecurityRuleListResult { * List of network watcher resources. * * @member {array} [value] - * */ export interface NetworkWatcherListResult { value?: NetworkWatcher[]; @@ -7048,7 +6062,6 @@ export interface NetworkWatcherListResult { * List of packet capture sessions. * * @member {array} [value] Information about packet capture sessions. - * */ export interface PacketCaptureListResult { value?: PacketCaptureResult[]; @@ -7062,9 +6075,7 @@ export interface PacketCaptureListResult { * * @member {array} [value] A list of public IP addresses that exists in a * resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface PublicIPAddressListResult { value?: PublicIPAddress[]; @@ -7078,9 +6089,7 @@ export interface PublicIPAddressListResult { * Response for the ListRouteFilters API service call. * * @member {array} [value] Gets a list of route filters in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteFilterListResult { value?: RouteFilter[]; @@ -7094,9 +6103,7 @@ export interface RouteFilterListResult { * Response for the ListRouteFilterRules API service call * * @member {array} [value] Gets a list of RouteFilterRules in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteFilterRuleListResult { value?: RouteFilterRule[]; @@ -7110,9 +6117,7 @@ export interface RouteFilterRuleListResult { * Response for the ListRouteTable API service call. * * @member {array} [value] Gets a list of route tables in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteTableListResult { value?: RouteTable[]; @@ -7126,9 +6131,7 @@ export interface RouteTableListResult { * Response for the ListRoute API service call * * @member {array} [value] Gets a list of routes in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteListResult { value?: Route[]; @@ -7142,9 +6145,7 @@ export interface RouteListResult { * Response for the ListServiceCommunity API service call. * * @member {array} [value] A list of service community resources. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface BgpServiceCommunityListResult { value?: BgpServiceCommunity[]; @@ -7158,9 +6159,7 @@ export interface BgpServiceCommunityListResult { * The list usages operation response. * * @member {array} [value] The list network resource usages. - * * @member {string} [nextLink] URL to get the next set of results. - * */ export interface UsagesListResult { value?: Usage[]; @@ -7175,9 +6174,7 @@ export interface UsagesListResult { * * @member {array} [value] Gets a list of VirtualNetwork resources in a * resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkListResult { value?: VirtualNetwork[]; @@ -7191,9 +6188,7 @@ export interface VirtualNetworkListResult { * Response for the virtual networks GetUsage API service call. * * @member {array} [value] VirtualNetwork usage stats. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkListUsageResult { readonly value?: VirtualNetworkUsage[]; @@ -7208,9 +6203,7 @@ export interface VirtualNetworkListUsageResult { * to a virtual network * * @member {array} [value] The subnets in a virtual network. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface SubnetListResult { value?: Subnet[]; @@ -7225,9 +6218,7 @@ export interface SubnetListResult { * to a virtual network. * * @member {array} [value] The peerings in a virtual network. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkPeeringListResult { value?: VirtualNetworkPeering[]; @@ -7242,13 +6233,26 @@ export interface VirtualNetworkPeeringListResult { * * @member {array} [value] Gets a list of VirtualNetworkGateway resources that * exists in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkGatewayListResult { value?: VirtualNetworkGateway[]; - nextLink?: string; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the VirtualNetworkGatewayListConnectionsResult class. + * @constructor + * Response for the VirtualNetworkGatewayListConnections API service call + * + * @member {array} [value] Gets a list of VirtualNetworkGatewayConnection + * resources that exists in a resource group. + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface VirtualNetworkGatewayListConnectionsResult { + value?: VirtualNetworkGatewayConnectionListEntity[]; + readonly nextLink?: string; } /** @@ -7259,13 +6263,11 @@ export interface VirtualNetworkGatewayListResult { * * @member {array} [value] Gets a list of VirtualNetworkGatewayConnection * resources that exists in a resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkGatewayConnectionListResult { value?: VirtualNetworkGatewayConnection[]; - nextLink?: string; + readonly nextLink?: string; } /** @@ -7276,30 +6278,11 @@ export interface VirtualNetworkGatewayConnectionListResult { * * @member {array} [value] A list of local network gateways that exists in a * resource group. - * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface LocalNetworkGatewayListResult { value?: LocalNetworkGateway[]; - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the PrivateAccessServicesListResult class. - * @constructor - * Response for the ListAvailablePrivateAccessServices API service call. - * - * @member {array} [value] List of available private access service values in a - * region. - * - * @member {string} [nextLink] The URL to get the next set of results. - * - */ -export interface PrivateAccessServicesListResult { - value?: PrivateAccessServiceResult[]; - nextLink?: string; + readonly nextLink?: string; } @@ -7310,7 +6293,6 @@ export interface PrivateAccessServicesListResult { * Response for ListApplicationGateways API service call. * * @member {string} [nextLink] URL to get the next set of results. - * */ export interface ApplicationGatewayListResult extends Array { nextLink?: string; @@ -7323,12 +6305,23 @@ export interface ApplicationGatewayListResult extends Array * Response for ApplicationGatewayAvailableSslOptions API service call. * * @member {string} [nextLink] URL to get the next set of results. - * */ export interface ApplicationGatewayAvailableSslPredefinedPolicies extends Array { nextLink?: string; } +/** + * @class + * Initializes a new instance of the EndpointServicesListResult class. + * @constructor + * Response for the ListAvailableEndpointServices API service call. + * + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface EndpointServicesListResult extends Array { + nextLink?: string; +} + /** * @class * Initializes a new instance of the AuthorizationListResult class. @@ -7337,7 +6330,6 @@ export interface ApplicationGatewayAvailableSslPredefinedPolicies extends Array< * authorizations that belongs to an ExpressRouteCircuit. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface AuthorizationListResult extends Array { nextLink?: string; @@ -7351,7 +6343,6 @@ export interface AuthorizationListResult extends Array { nextLink?: string; @@ -7364,7 +6355,6 @@ export interface ExpressRouteCircuitPeeringListResult extends Array { nextLink?: string; @@ -7377,7 +6367,6 @@ export interface ExpressRouteCircuitListResult extends Array { nextLink?: string; @@ -7390,10 +6379,57 @@ export interface ExpressRouteServiceProviderListResult extends Array { - nextLink?: string; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerBackendAddressPoolListResult class. + * @constructor + * Response for ListBackendAddressPool API service call. + * + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerBackendAddressPoolListResult extends Array { + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerFrontendIPConfigurationListResult class. + * @constructor + * Response for ListFrontendIPConfiguration API service call. + * + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerFrontendIPConfigurationListResult extends Array { + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the InboundNatRuleListResult class. + * @constructor + * Response for ListInboundNatRule API service call. + * + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface InboundNatRuleListResult extends Array { + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerLoadBalancingRuleListResult class. + * @constructor + * Response for ListLoadBalancingRule API service call. + * + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerLoadBalancingRuleListResult extends Array { + readonly nextLink?: string; } /** @@ -7403,10 +6439,45 @@ export interface LoadBalancerListResult extends Array { * Response for the ListNetworkInterface API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface NetworkInterfaceListResult extends Array { - nextLink?: string; + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the LoadBalancerProbeListResult class. + * @constructor + * Response for ListProbe API service call. + * + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface LoadBalancerProbeListResult extends Array { + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the NetworkInterfaceIPConfigurationListResult class. + * @constructor + * Response for list ip configurations API service call. + * + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface NetworkInterfaceIPConfigurationListResult extends Array { + readonly nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the NetworkInterfaceLoadBalancerListResult class. + * @constructor + * Response for list ip configurations API service call. + * + * @member {string} [nextLink] The URL to get the next set of results. + */ +export interface NetworkInterfaceLoadBalancerListResult extends Array { + readonly nextLink?: string; } /** @@ -7416,7 +6487,6 @@ export interface NetworkInterfaceListResult extends Array { * Response for ListNetworkSecurityGroups API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface NetworkSecurityGroupListResult extends Array { nextLink?: string; @@ -7430,7 +6500,6 @@ export interface NetworkSecurityGroupListResult extends Array { nextLink?: string; @@ -7463,7 +6532,6 @@ export interface PacketCaptureListResult extends Array { * Response for ListPublicIpAddresses API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface PublicIPAddressListResult extends Array { nextLink?: string; @@ -7476,7 +6544,6 @@ export interface PublicIPAddressListResult extends Array { * Response for the ListRouteFilters API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteFilterListResult extends Array { nextLink?: string; @@ -7489,7 +6556,6 @@ export interface RouteFilterListResult extends Array { * Response for the ListRouteFilterRules API service call * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteFilterRuleListResult extends Array { nextLink?: string; @@ -7502,7 +6568,6 @@ export interface RouteFilterRuleListResult extends Array { * Response for the ListRouteTable API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteTableListResult extends Array { nextLink?: string; @@ -7515,7 +6580,6 @@ export interface RouteTableListResult extends Array { * Response for the ListRoute API service call * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface RouteListResult extends Array { nextLink?: string; @@ -7528,7 +6592,6 @@ export interface RouteListResult extends Array { * Response for the ListServiceCommunity API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface BgpServiceCommunityListResult extends Array { nextLink?: string; @@ -7541,7 +6604,6 @@ export interface BgpServiceCommunityListResult extends Array { nextLink?: string; @@ -7554,7 +6616,6 @@ export interface UsagesListResult extends Array { * Response for the ListVirtualNetworks API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkListResult extends Array { nextLink?: string; @@ -7567,7 +6628,6 @@ export interface VirtualNetworkListResult extends Array { * Response for the virtual networks GetUsage API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkListUsageResult extends Array { nextLink?: string; @@ -7581,7 +6641,6 @@ export interface VirtualNetworkListUsageResult extends Array { nextLink?: string; @@ -7595,7 +6654,6 @@ export interface SubnetListResult extends Array { * to a virtual network. * * @member {string} [nextLink] The URL to get the next set of results. - * */ export interface VirtualNetworkPeeringListResult extends Array { nextLink?: string; @@ -7608,47 +6666,43 @@ export interface VirtualNetworkPeeringListResult extends Array { - nextLink?: string; + readonly nextLink?: string; } /** * @class - * Initializes a new instance of the VirtualNetworkGatewayConnectionListResult class. + * Initializes a new instance of the VirtualNetworkGatewayListConnectionsResult class. * @constructor - * Response for the ListVirtualNetworkGatewayConnections API service call + * Response for the VirtualNetworkGatewayListConnections API service call * * @member {string} [nextLink] The URL to get the next set of results. - * */ -export interface VirtualNetworkGatewayConnectionListResult extends Array { - nextLink?: string; +export interface VirtualNetworkGatewayListConnectionsResult extends Array { + readonly nextLink?: string; } /** * @class - * Initializes a new instance of the LocalNetworkGatewayListResult class. + * Initializes a new instance of the VirtualNetworkGatewayConnectionListResult class. * @constructor - * Response for ListLocalNetworkGateways API service call. + * Response for the ListVirtualNetworkGatewayConnections API service call * * @member {string} [nextLink] The URL to get the next set of results. - * */ -export interface LocalNetworkGatewayListResult extends Array { - nextLink?: string; +export interface VirtualNetworkGatewayConnectionListResult extends Array { + readonly nextLink?: string; } /** * @class - * Initializes a new instance of the PrivateAccessServicesListResult class. + * Initializes a new instance of the LocalNetworkGatewayListResult class. * @constructor - * Response for the ListAvailablePrivateAccessServices API service call. + * Response for ListLocalNetworkGateways API service call. * * @member {string} [nextLink] The URL to get the next set of results. - * */ -export interface PrivateAccessServicesListResult extends Array { - nextLink?: string; +export interface LocalNetworkGatewayListResult extends Array { + readonly nextLink?: string; } diff --git a/lib/services/networkManagement2/lib/models/index.js b/lib/services/networkManagement2/lib/models/index.js index 53433132cc..4e186d9f39 100644 --- a/lib/services/networkManagement2/lib/models/index.js +++ b/lib/services/networkManagement2/lib/models/index.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -28,7 +28,8 @@ exports.NetworkInterface = require('./networkInterface'); exports.NetworkSecurityGroup = require('./networkSecurityGroup'); exports.Route = require('./route'); exports.RouteTable = require('./routeTable'); -exports.PrivateAccessServicePropertiesFormat = require('./privateAccessServicePropertiesFormat'); +exports.ServiceEndpointPropertiesFormat = require('./serviceEndpointPropertiesFormat'); +exports.PublicIPAddressSku = require('./publicIPAddressSku'); exports.PublicIPAddressDnsSettings = require('./publicIPAddressDnsSettings'); exports.PublicIPAddress = require('./publicIPAddress'); exports.IPConfiguration = require('./iPConfiguration'); @@ -69,6 +70,8 @@ exports.ApplicationGatewayAvailableSslOptions = require('./applicationGatewayAva exports.ApplicationGatewaySslPredefinedPolicy = require('./applicationGatewaySslPredefinedPolicy'); exports.ApplicationGatewayAvailableSslPredefinedPolicies = require('./applicationGatewayAvailableSslPredefinedPolicies'); exports.DnsNameAvailabilityResult = require('./dnsNameAvailabilityResult'); +exports.EndpointServiceResult = require('./endpointServiceResult'); +exports.EndpointServicesListResult = require('./endpointServicesListResult'); exports.ExpressRouteCircuitAuthorization = require('./expressRouteCircuitAuthorization'); exports.AuthorizationListResult = require('./authorizationListResult'); exports.ExpressRouteCircuitPeeringConfig = require('./expressRouteCircuitPeeringConfig'); @@ -91,6 +94,7 @@ exports.ExpressRouteCircuitListResult = require('./expressRouteCircuitListResult exports.ExpressRouteServiceProviderBandwidthsOffered = require('./expressRouteServiceProviderBandwidthsOffered'); exports.ExpressRouteServiceProvider = require('./expressRouteServiceProvider'); exports.ExpressRouteServiceProviderListResult = require('./expressRouteServiceProviderListResult'); +exports.LoadBalancerSku = require('./loadBalancerSku'); exports.FrontendIPConfiguration = require('./frontendIPConfiguration'); exports.LoadBalancingRule = require('./loadBalancingRule'); exports.Probe = require('./probe'); @@ -98,10 +102,17 @@ exports.InboundNatPool = require('./inboundNatPool'); exports.OutboundNatRule = require('./outboundNatRule'); exports.LoadBalancer = require('./loadBalancer'); exports.LoadBalancerListResult = require('./loadBalancerListResult'); +exports.InboundNatRuleListResult = require('./inboundNatRuleListResult'); +exports.LoadBalancerBackendAddressPoolListResult = require('./loadBalancerBackendAddressPoolListResult'); +exports.LoadBalancerFrontendIPConfigurationListResult = require('./loadBalancerFrontendIPConfigurationListResult'); +exports.LoadBalancerLoadBalancingRuleListResult = require('./loadBalancerLoadBalancingRuleListResult'); +exports.LoadBalancerProbeListResult = require('./loadBalancerProbeListResult'); +exports.NetworkInterfaceListResult = require('./networkInterfaceListResult'); exports.ErrorDetails = require('./errorDetails'); exports.ErrorModel = require('./errorModel'); exports.AzureAsyncOperationResult = require('./azureAsyncOperationResult'); -exports.NetworkInterfaceListResult = require('./networkInterfaceListResult'); +exports.NetworkInterfaceIPConfigurationListResult = require('./networkInterfaceIPConfigurationListResult'); +exports.NetworkInterfaceLoadBalancerListResult = require('./networkInterfaceLoadBalancerListResult'); exports.EffectiveNetworkSecurityGroupAssociation = require('./effectiveNetworkSecurityGroupAssociation'); exports.EffectiveNetworkSecurityRule = require('./effectiveNetworkSecurityRule'); exports.EffectiveNetworkSecurityGroup = require('./effectiveNetworkSecurityGroup'); @@ -192,16 +203,25 @@ exports.VirtualNetworkGatewayConnectionListResult = require('./virtualNetworkGat exports.ConnectionResetSharedKey = require('./connectionResetSharedKey'); exports.ConnectionSharedKey = require('./connectionSharedKey'); exports.LocalNetworkGatewayListResult = require('./localNetworkGatewayListResult'); -exports.PrivateAccessServiceResult = require('./privateAccessServiceResult'); -exports.PrivateAccessServicesListResult = require('./privateAccessServicesListResult'); +exports.VirtualNetworkConnectionGatewayReference = require('./virtualNetworkConnectionGatewayReference'); +exports.VirtualNetworkGatewayConnectionListEntity = require('./virtualNetworkGatewayConnectionListEntity'); +exports.VirtualNetworkGatewayListConnectionsResult = require('./virtualNetworkGatewayListConnectionsResult'); exports.ApplicationGatewayListResult = require('./applicationGatewayListResult'); exports.ApplicationGatewayAvailableSslPredefinedPolicies = require('./applicationGatewayAvailableSslPredefinedPolicies'); +exports.EndpointServicesListResult = require('./endpointServicesListResult'); exports.AuthorizationListResult = require('./authorizationListResult'); exports.ExpressRouteCircuitPeeringListResult = require('./expressRouteCircuitPeeringListResult'); exports.ExpressRouteCircuitListResult = require('./expressRouteCircuitListResult'); exports.ExpressRouteServiceProviderListResult = require('./expressRouteServiceProviderListResult'); exports.LoadBalancerListResult = require('./loadBalancerListResult'); +exports.LoadBalancerBackendAddressPoolListResult = require('./loadBalancerBackendAddressPoolListResult'); +exports.LoadBalancerFrontendIPConfigurationListResult = require('./loadBalancerFrontendIPConfigurationListResult'); +exports.InboundNatRuleListResult = require('./inboundNatRuleListResult'); +exports.LoadBalancerLoadBalancingRuleListResult = require('./loadBalancerLoadBalancingRuleListResult'); exports.NetworkInterfaceListResult = require('./networkInterfaceListResult'); +exports.LoadBalancerProbeListResult = require('./loadBalancerProbeListResult'); +exports.NetworkInterfaceIPConfigurationListResult = require('./networkInterfaceIPConfigurationListResult'); +exports.NetworkInterfaceLoadBalancerListResult = require('./networkInterfaceLoadBalancerListResult'); exports.NetworkSecurityGroupListResult = require('./networkSecurityGroupListResult'); exports.SecurityRuleListResult = require('./securityRuleListResult'); exports.NetworkWatcherListResult = require('./networkWatcherListResult'); @@ -218,6 +238,6 @@ exports.VirtualNetworkListUsageResult = require('./virtualNetworkListUsageResult exports.SubnetListResult = require('./subnetListResult'); exports.VirtualNetworkPeeringListResult = require('./virtualNetworkPeeringListResult'); exports.VirtualNetworkGatewayListResult = require('./virtualNetworkGatewayListResult'); +exports.VirtualNetworkGatewayListConnectionsResult = require('./virtualNetworkGatewayListConnectionsResult'); exports.VirtualNetworkGatewayConnectionListResult = require('./virtualNetworkGatewayConnectionListResult'); exports.LocalNetworkGatewayListResult = require('./localNetworkGatewayListResult'); -exports.PrivateAccessServicesListResult = require('./privateAccessServicesListResult'); diff --git a/lib/services/networkManagement2/lib/models/ipsecPolicy.js b/lib/services/networkManagement2/lib/models/ipsecPolicy.js index 3fd957464e..e760342aa7 100644 --- a/lib/services/networkManagement2/lib/models/ipsecPolicy.js +++ b/lib/services/networkManagement2/lib/models/ipsecPolicy.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,43 +11,35 @@ 'use strict'; /** - * @class - * Initializes a new instance of the IpsecPolicy class. - * @constructor * An IPSec Policy configuration for a virtual network gateway connection * - * @member {number} saLifeTimeSeconds The IPSec Security Association (also - * called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN - * tunnel. - * - * @member {number} saDataSizeKilobytes The IPSec Security Association (also - * called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN - * tunnel. - * - * @member {string} ipsecEncryption The IPSec encryption algorithm (IKE phase - * 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', - * 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' - * - * @member {string} ipsecIntegrity The IPSec integrity algorithm (IKE phase 1). - * Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', - * 'GCMAES256' - * - * @member {string} ikeEncryption The IKE encryption algorithm (IKE phase 2). - * Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256' - * - * @member {string} ikeIntegrity The IKE integrity algorithm (IKE phase 2). - * Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384' - * - * @member {string} dhGroup The DH Groups used in IKE Phase 1 for initial SA. - * Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', - * 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' - * - * @member {string} pfsGroup The DH Groups used in IKE Phase 2 for new child - * SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', - * 'ECP384', 'PFS24' - * */ class IpsecPolicy { + /** + * Create a IpsecPolicy. + * @member {number} saLifeTimeSeconds The IPSec Security Association (also + * called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site + * VPN tunnel. + * @member {number} saDataSizeKilobytes The IPSec Security Association (also + * called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN + * tunnel. + * @member {string} ipsecEncryption The IPSec encryption algorithm (IKE phase + * 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', + * 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + * @member {string} ipsecIntegrity The IPSec integrity algorithm (IKE phase + * 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', + * 'GCMAES192', 'GCMAES256' + * @member {string} ikeEncryption The IKE encryption algorithm (IKE phase 2). + * Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256' + * @member {string} ikeIntegrity The IKE integrity algorithm (IKE phase 2). + * Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384' + * @member {string} dhGroup The DH Groups used in IKE Phase 1 for initial SA. + * Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', + * 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + * @member {string} pfsGroup The DH Groups used in IKE Phase 2 for new child + * SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', + * 'ECP384', 'PFS24' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/ipv6ExpressRouteCircuitPeeringConfig.js b/lib/services/networkManagement2/lib/models/ipv6ExpressRouteCircuitPeeringConfig.js index 8a5eebc1b9..c171731b9d 100644 --- a/lib/services/networkManagement2/lib/models/ipv6ExpressRouteCircuitPeeringConfig.js +++ b/lib/services/networkManagement2/lib/models/ipv6ExpressRouteCircuitPeeringConfig.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,59 +13,45 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Ipv6ExpressRouteCircuitPeeringConfig class. - * @constructor * Contains IPv6 peering config. * - * @member {string} [primaryPeerAddressPrefix] The primary address prefix. - * - * @member {string} [secondaryPeerAddressPrefix] The secondary address prefix. - * - * @member {object} [microsoftPeeringConfig] The Microsoft peering - * configuration. - * - * @member {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The - * reference of AdvertisedPublicPrefixes. - * - * @member {array} [microsoftPeeringConfig.advertisedCommunities] The - * communities of bgp peering. Spepcified for microsoft peering - * - * @member {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * - * @member {number} [microsoftPeeringConfig.legacyMode] The legacy mode of the - * peering. - * - * @member {number} [microsoftPeeringConfig.customerASN] The CustomerASN of the - * peering. - * - * @member {string} [microsoftPeeringConfig.routingRegistryName] The - * RoutingRegistryName of the configuration. - * - * @member {object} [routeFilter] The reference of the RouteFilter resource. - * - * @member {array} [routeFilter.rules] Collection of RouteFilterRules contained - * within a route filter. - * - * @member {array} [routeFilter.peerings] A collection of references to express - * route circuit peerings. - * - * @member {string} [routeFilter.provisioningState] The provisioning state of - * the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and - * 'Failed'. - * - * @member {string} [routeFilter.etag] Gets a unique read-only string that - * changes whenever the resource is updated. - * - * @member {string} [state] The state of peering. Possible values are: - * 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled' - * */ class Ipv6ExpressRouteCircuitPeeringConfig { + /** + * Create a Ipv6ExpressRouteCircuitPeeringConfig. + * @member {string} [primaryPeerAddressPrefix] The primary address prefix. + * @member {string} [secondaryPeerAddressPrefix] The secondary address + * prefix. + * @member {object} [microsoftPeeringConfig] The Microsoft peering + * configuration. + * @member {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The + * reference of AdvertisedPublicPrefixes. + * @member {array} [microsoftPeeringConfig.advertisedCommunities] The + * communities of bgp peering. Spepcified for microsoft peering + * @member {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] + * AdvertisedPublicPrefixState of the Peering resource. Possible values are + * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. + * Possible values include: 'NotConfigured', 'Configuring', 'Configured', + * 'ValidationNeeded' + * @member {number} [microsoftPeeringConfig.legacyMode] The legacy mode of + * the peering. + * @member {number} [microsoftPeeringConfig.customerASN] The CustomerASN of + * the peering. + * @member {string} [microsoftPeeringConfig.routingRegistryName] The + * RoutingRegistryName of the configuration. + * @member {object} [routeFilter] The reference of the RouteFilter resource. + * @member {array} [routeFilter.rules] Collection of RouteFilterRules + * contained within a route filter. + * @member {array} [routeFilter.peerings] A collection of references to + * express route circuit peerings. + * @member {string} [routeFilter.provisioningState] The provisioning state of + * the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and + * 'Failed'. + * @member {string} [routeFilter.etag] Gets a unique read-only string that + * changes whenever the resource is updated. + * @member {string} [state] The state of peering. Possible values are: + * 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/loadBalancer.js b/lib/services/networkManagement2/lib/models/loadBalancer.js index dfebd631f2..a0e73dfe7b 100644 --- a/lib/services/networkManagement2/lib/models/loadBalancer.js +++ b/lib/services/networkManagement2/lib/models/loadBalancer.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,53 +13,48 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the LoadBalancer class. - * @constructor * LoadBalancer resource * - * @member {array} [frontendIPConfigurations] Object representing the frontend - * IPs to be used for the load balancer - * - * @member {array} [backendAddressPools] Collection of backend address pools - * used by a load balancer - * - * @member {array} [loadBalancingRules] Object collection representing the load - * balancing rules Gets the provisioning - * - * @member {array} [probes] Collection of probe objects used in the load - * balancer - * - * @member {array} [inboundNatRules] Collection of inbound NAT Rules used by a - * load balancer. Defining inbound NAT rules on your load balancer is mutually - * exclusive with defining an inbound NAT pool. Inbound NAT pools are - * referenced from virtual machine scale sets. NICs that are associated with - * individual virtual machines cannot reference an Inbound NAT pool. They have - * to reference individual inbound NAT rules. - * - * @member {array} [inboundNatPools] Defines an external port range for inbound - * NAT to a single backend port on NICs associated with a load balancer. - * Inbound NAT rules are created automatically for each NIC associated with the - * Load Balancer using an external port from this range. Defining an Inbound - * NAT pool on your Load Balancer is mutually exclusive with defining inbound - * Nat rules. Inbound NAT pools are referenced from virtual machine scale sets. - * NICs that are associated with individual virtual machines cannot reference - * an inbound NAT pool. They have to reference individual inbound NAT rules. - * - * @member {array} [outboundNatRules] The outbound NAT rules. - * - * @member {string} [resourceGuid] The resource GUID property of the load - * balancer resource. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['Resource'] */ class LoadBalancer extends models['Resource'] { + /** + * Create a LoadBalancer. + * @member {object} [sku] The load balancer SKU. + * @member {string} [sku.name] Name of a load balancer SKU. Possible values + * include: 'Basic', 'Standard' + * @member {array} [frontendIPConfigurations] Object representing the + * frontend IPs to be used for the load balancer + * @member {array} [backendAddressPools] Collection of backend address pools + * used by a load balancer + * @member {array} [loadBalancingRules] Object collection representing the + * load balancing rules Gets the provisioning + * @member {array} [probes] Collection of probe objects used in the load + * balancer + * @member {array} [inboundNatRules] Collection of inbound NAT Rules used by + * a load balancer. Defining inbound NAT rules on your load balancer is + * mutually exclusive with defining an inbound NAT pool. Inbound NAT pools + * are referenced from virtual machine scale sets. NICs that are associated + * with individual virtual machines cannot reference an Inbound NAT pool. + * They have to reference individual inbound NAT rules. + * @member {array} [inboundNatPools] Defines an external port range for + * inbound NAT to a single backend port on NICs associated with a load + * balancer. Inbound NAT rules are created automatically for each NIC + * associated with the Load Balancer using an external port from this range. + * Defining an Inbound NAT pool on your Load Balancer is mutually exclusive + * with defining inbound Nat rules. Inbound NAT pools are referenced from + * virtual machine scale sets. NICs that are associated with individual + * virtual machines cannot reference an inbound NAT pool. They have to + * reference individual inbound NAT rules. + * @member {array} [outboundNatRules] The outbound NAT rules. + * @member {string} [resourceGuid] The resource GUID property of the load + * balancer resource. + * @member {string} [provisioningState] Gets the provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } @@ -122,6 +117,14 @@ class LoadBalancer extends models['Resource'] { } } }, + sku: { + required: false, + serializedName: 'sku', + type: { + name: 'Composite', + className: 'LoadBalancerSku' + } + }, frontendIPConfigurations: { required: false, serializedName: 'properties.frontendIPConfigurations', diff --git a/lib/services/networkManagement2/lib/models/loadBalancerBackendAddressPoolListResult.js b/lib/services/networkManagement2/lib/models/loadBalancerBackendAddressPoolListResult.js new file mode 100644 index 0000000000..0950d568de --- /dev/null +++ b/lib/services/networkManagement2/lib/models/loadBalancerBackendAddressPoolListResult.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * Response for ListBackendAddressPool API service call. + */ +class LoadBalancerBackendAddressPoolListResult extends Array { + /** + * Create a LoadBalancerBackendAddressPoolListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LoadBalancerBackendAddressPoolListResult + * + * @returns {object} metadata of LoadBalancerBackendAddressPoolListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'LoadBalancerBackendAddressPoolListResult', + type: { + name: 'Composite', + className: 'LoadBalancerBackendAddressPoolListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'BackendAddressPoolElementType', + type: { + name: 'Composite', + className: 'BackendAddressPool' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LoadBalancerBackendAddressPoolListResult; diff --git a/lib/services/networkManagement2/lib/models/loadBalancerFrontendIPConfigurationListResult.js b/lib/services/networkManagement2/lib/models/loadBalancerFrontendIPConfigurationListResult.js new file mode 100644 index 0000000000..f7833aa361 --- /dev/null +++ b/lib/services/networkManagement2/lib/models/loadBalancerFrontendIPConfigurationListResult.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * Response for ListFrontendIPConfiguration API service call. + */ +class LoadBalancerFrontendIPConfigurationListResult extends Array { + /** + * Create a LoadBalancerFrontendIPConfigurationListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LoadBalancerFrontendIPConfigurationListResult + * + * @returns {object} metadata of LoadBalancerFrontendIPConfigurationListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'LoadBalancerFrontendIPConfigurationListResult', + type: { + name: 'Composite', + className: 'LoadBalancerFrontendIPConfigurationListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'FrontendIPConfigurationElementType', + type: { + name: 'Composite', + className: 'FrontendIPConfiguration' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LoadBalancerFrontendIPConfigurationListResult; diff --git a/lib/services/networkManagement2/lib/models/loadBalancerListResult.js b/lib/services/networkManagement2/lib/models/loadBalancerListResult.js index d754bdfa4a..23583728e8 100644 --- a/lib/services/networkManagement2/lib/models/loadBalancerListResult.js +++ b/lib/services/networkManagement2/lib/models/loadBalancerListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the LoadBalancerListResult class. - * @constructor * Response for ListLoadBalancers API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class LoadBalancerListResult extends Array { + /** + * Create a LoadBalancerListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } @@ -55,6 +53,7 @@ class LoadBalancerListResult extends Array { }, nextLink: { required: false, + readOnly: true, serializedName: 'nextLink', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/loadBalancerLoadBalancingRuleListResult.js b/lib/services/networkManagement2/lib/models/loadBalancerLoadBalancingRuleListResult.js new file mode 100644 index 0000000000..d2d4db85ca --- /dev/null +++ b/lib/services/networkManagement2/lib/models/loadBalancerLoadBalancingRuleListResult.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * Response for ListLoadBalancingRule API service call. + */ +class LoadBalancerLoadBalancingRuleListResult extends Array { + /** + * Create a LoadBalancerLoadBalancingRuleListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LoadBalancerLoadBalancingRuleListResult + * + * @returns {object} metadata of LoadBalancerLoadBalancingRuleListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'LoadBalancerLoadBalancingRuleListResult', + type: { + name: 'Composite', + className: 'LoadBalancerLoadBalancingRuleListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LoadBalancingRuleElementType', + type: { + name: 'Composite', + className: 'LoadBalancingRule' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LoadBalancerLoadBalancingRuleListResult; diff --git a/lib/services/networkManagement2/lib/models/loadBalancerProbeListResult.js b/lib/services/networkManagement2/lib/models/loadBalancerProbeListResult.js new file mode 100644 index 0000000000..c56bf7bd1b --- /dev/null +++ b/lib/services/networkManagement2/lib/models/loadBalancerProbeListResult.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * Response for ListProbe API service call. + */ +class LoadBalancerProbeListResult extends Array { + /** + * Create a LoadBalancerProbeListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of LoadBalancerProbeListResult + * + * @returns {object} metadata of LoadBalancerProbeListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'LoadBalancerProbeListResult', + type: { + name: 'Composite', + className: 'LoadBalancerProbeListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ProbeElementType', + type: { + name: 'Composite', + className: 'Probe' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LoadBalancerProbeListResult; diff --git a/lib/services/networkManagement2/lib/models/loadBalancerSku.js b/lib/services/networkManagement2/lib/models/loadBalancerSku.js new file mode 100644 index 0000000000..b0779d1650 --- /dev/null +++ b/lib/services/networkManagement2/lib/models/loadBalancerSku.js @@ -0,0 +1,53 @@ +/* + * 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'; + +/** + * SKU of a load balancer + * + */ +class LoadBalancerSku { + /** + * Create a LoadBalancerSku. + * @member {string} [name] Name of a load balancer SKU. Possible values + * include: 'Basic', 'Standard' + */ + constructor() { + } + + /** + * Defines the metadata of LoadBalancerSku + * + * @returns {object} metadata of LoadBalancerSku + * + */ + mapper() { + return { + required: false, + serializedName: 'LoadBalancerSku', + type: { + name: 'Composite', + className: 'LoadBalancerSku', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = LoadBalancerSku; diff --git a/lib/services/networkManagement2/lib/models/loadBalancingRule.js b/lib/services/networkManagement2/lib/models/loadBalancingRule.js index 3950287434..c8935c4f39 100644 --- a/lib/services/networkManagement2/lib/models/loadBalancingRule.js +++ b/lib/services/networkManagement2/lib/models/loadBalancingRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,62 +13,53 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the LoadBalancingRule class. - * @constructor - * A loag balancing rule for a load balancer. - * - * @member {object} [frontendIPConfiguration] A reference to frontend IP - * addresses. - * - * @member {string} [frontendIPConfiguration.id] Resource ID. - * - * @member {object} [backendAddressPool] A reference to a pool of DIPs. Inbound - * traffic is randomly load balanced across IPs in the backend IPs. - * - * @member {string} [backendAddressPool.id] Resource ID. - * - * @member {object} [probe] The reference of the load balancer probe used by - * the load balancing rule. - * - * @member {string} [probe.id] Resource ID. - * - * @member {string} protocol The transport protocol for the external endpoint. - * Possible values are 'Udp' or 'Tcp'. Possible values include: 'Udp', 'Tcp' - * - * @member {string} [loadDistribution] The load distribution policy for this - * rule. Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. - * Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' - * - * @member {number} frontendPort The port for the external endpoint. Port - * numbers for each Rule must be unique within the Load Balancer. Acceptable - * values are between 1 and 65534. - * - * @member {number} [backendPort] The port used for internal connections on the - * endpoint. Acceptable values are between 1 and 65535. - * - * @member {number} [idleTimeoutInMinutes] The timeout for the TCP idle - * connection. The value can be set between 4 and 30 minutes. The default value - * is 4 minutes. This element is only used when the protocol is set to TCP. - * - * @member {boolean} [enableFloatingIP] Configures a virtual machine's endpoint - * for the floating IP capability required to configure a SQL AlwaysOn - * Availability Group. This setting is required when using the SQL AlwaysOn - * Availability Groups in SQL server. This setting can't be changed after you - * create the endpoint. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. + * A load balancing rule for a load balancer. * + * @extends models['SubResource'] */ class LoadBalancingRule extends models['SubResource'] { + /** + * Create a LoadBalancingRule. + * @member {object} [frontendIPConfiguration] A reference to frontend IP + * addresses. + * @member {string} [frontendIPConfiguration.id] Resource ID. + * @member {object} [backendAddressPool] A reference to a pool of DIPs. + * Inbound traffic is randomly load balanced across IPs in the backend IPs. + * @member {string} [backendAddressPool.id] Resource ID. + * @member {object} [probe] The reference of the load balancer probe used by + * the load balancing rule. + * @member {string} [probe.id] Resource ID. + * @member {string} protocol The transport protocol for the external + * endpoint. Possible values are 'Udp' or 'Tcp'. Possible values include: + * 'Udp', 'Tcp' + * @member {string} [loadDistribution] The load distribution policy for this + * rule. Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. + * Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' + * @member {number} frontendPort The port for the external endpoint. Port + * numbers for each Rule must be unique within the Load Balancer. Acceptable + * values are between 1 and 65534. + * @member {number} [backendPort] The port used for internal connections on + * the endpoint. Acceptable values are between 1 and 65535. + * @member {number} [idleTimeoutInMinutes] The timeout for the TCP idle + * connection. The value can be set between 4 and 30 minutes. The default + * value is 4 minutes. This element is only used when the protocol is set to + * TCP. + * @member {boolean} [enableFloatingIP] Configures a virtual machine's + * endpoint for the floating IP capability required to configure a SQL + * AlwaysOn Availability Group. This setting is required when using the SQL + * AlwaysOn Availability Groups in SQL server. This setting can't be changed + * after you create the endpoint. + * @member {boolean} [disableOutboundSnat] Configures SNAT for the VMs in the + * backend pool to use the publicIP address specified in the frontend of the + * load balancing rule. + * @member {string} [provisioningState] Gets the provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } @@ -160,6 +151,13 @@ class LoadBalancingRule extends models['SubResource'] { name: 'Boolean' } }, + disableOutboundSnat: { + required: false, + serializedName: 'properties.disableOutboundSnat', + type: { + name: 'Boolean' + } + }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/localNetworkGateway.js b/lib/services/networkManagement2/lib/models/localNetworkGateway.js index 8a27d4da55..2ec08f4459 100644 --- a/lib/services/networkManagement2/lib/models/localNetworkGateway.js +++ b/lib/services/networkManagement2/lib/models/localNetworkGateway.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,41 +13,33 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the LocalNetworkGateway class. - * @constructor * A common class for general resource information * - * @member {object} [localNetworkAddressSpace] Local network site address - * space. - * - * @member {array} [localNetworkAddressSpace.addressPrefixes] A list of address - * blocks reserved for this virtual network in CIDR notation. - * - * @member {string} [gatewayIpAddress] IP address of local network gateway. - * - * @member {object} [bgpSettings] Local network gateway's BGP speaker settings. - * - * @member {number} [bgpSettings.asn] The BGP speaker's ASN. - * - * @member {string} [bgpSettings.bgpPeeringAddress] The BGP peering address and - * BGP identifier of this BGP speaker. - * - * @member {number} [bgpSettings.peerWeight] The weight added to routes learned - * from this BGP speaker. - * - * @member {string} [resourceGuid] The resource GUID property of the - * LocalNetworkGateway resource. - * - * @member {string} [provisioningState] The provisioning state of the - * LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['Resource'] */ class LocalNetworkGateway extends models['Resource'] { + /** + * Create a LocalNetworkGateway. + * @member {object} [localNetworkAddressSpace] Local network site address + * space. + * @member {array} [localNetworkAddressSpace.addressPrefixes] A list of + * address blocks reserved for this virtual network in CIDR notation. + * @member {string} [gatewayIpAddress] IP address of local network gateway. + * @member {object} [bgpSettings] Local network gateway's BGP speaker + * settings. + * @member {number} [bgpSettings.asn] The BGP speaker's ASN. + * @member {string} [bgpSettings.bgpPeeringAddress] The BGP peering address + * and BGP identifier of this BGP speaker. + * @member {number} [bgpSettings.peerWeight] The weight added to routes + * learned from this BGP speaker. + * @member {string} [resourceGuid] The resource GUID property of the + * LocalNetworkGateway resource. + * @member {string} [provisioningState] The provisioning state of the + * LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/localNetworkGatewayListResult.js b/lib/services/networkManagement2/lib/models/localNetworkGatewayListResult.js index 5a92a9c3d6..83f2432d5d 100644 --- a/lib/services/networkManagement2/lib/models/localNetworkGatewayListResult.js +++ b/lib/services/networkManagement2/lib/models/localNetworkGatewayListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the LocalNetworkGatewayListResult class. - * @constructor * Response for ListLocalNetworkGateways API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class LocalNetworkGatewayListResult extends Array { + /** + * Create a LocalNetworkGatewayListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } @@ -55,6 +53,7 @@ class LocalNetworkGatewayListResult extends Array { }, nextLink: { required: false, + readOnly: true, serializedName: 'nextLink', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/networkInterface.js b/lib/services/networkManagement2/lib/models/networkInterface.js index 457327db3b..aab3f7b4db 100644 --- a/lib/services/networkManagement2/lib/models/networkInterface.js +++ b/lib/services/networkManagement2/lib/models/networkInterface.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,89 +13,67 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the NetworkInterface class. - * @constructor * A network interface in a resource group. * - * @member {object} [virtualMachine] The reference of a virtual machine. - * - * @member {string} [virtualMachine.id] Resource ID. - * - * @member {object} [networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * - * @member {array} [networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * - * @member {array} [networkSecurityGroup.defaultSecurityRules] The default - * security rules of network security group. - * - * @member {array} [networkSecurityGroup.networkInterfaces] A collection of - * references to network interfaces. - * - * @member {array} [networkSecurityGroup.subnets] A collection of references to - * subnets. - * - * @member {string} [networkSecurityGroup.resourceGuid] The resource GUID - * property of the network security group resource. - * - * @member {string} [networkSecurityGroup.provisioningState] The provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [networkSecurityGroup.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {array} [ipConfigurations] A list of IPConfigurations of the network - * interface. - * - * @member {object} [dnsSettings] The DNS settings in network interface. - * - * @member {array} [dnsSettings.dnsServers] List of DNS servers IP addresses. - * Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. - * 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the - * only value in dnsServers collection. - * - * @member {array} [dnsSettings.appliedDnsServers] If the VM that uses this NIC - * is part of an Availability Set, then this list will have the union of all - * DNS servers from all NICs that are part of the Availability Set. This - * property is what is configured on each of those VMs. - * - * @member {string} [dnsSettings.internalDnsNameLabel] Relative DNS name for - * this NIC used for internal communications between VMs in the same virtual - * network. - * - * @member {string} [dnsSettings.internalFqdn] Fully qualified DNS name - * supporting internal communications between VMs in the same virtual network. - * - * @member {string} [dnsSettings.internalDomainNameSuffix] Even if - * internalDnsNameLabel is not specified, a DNS entry is created for the - * primary NIC of the VM. This DNS name can be constructed by concatenating the - * VM name with the value of internalDomainNameSuffix. - * - * @member {string} [macAddress] The MAC address of the network interface. - * - * @member {boolean} [primary] Gets whether this is a primary network interface - * on a virtual machine. - * - * @member {boolean} [enableAcceleratedNetworking] If the network interface is - * accelerated networking enabled. - * - * @member {boolean} [enableIPForwarding] Indicates whether IP forwarding is - * enabled on this network interface. - * - * @member {string} [resourceGuid] The resource GUID property of the network - * interface resource. - * - * @member {string} [provisioningState] The provisioning state of the public IP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['Resource'] */ class NetworkInterface extends models['Resource'] { + /** + * Create a NetworkInterface. + * @member {object} [virtualMachine] The reference of a virtual machine. + * @member {string} [virtualMachine.id] Resource ID. + * @member {object} [networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * @member {array} [networkSecurityGroup.securityRules] A collection of + * security rules of the network security group. + * @member {array} [networkSecurityGroup.defaultSecurityRules] The default + * security rules of network security group. + * @member {array} [networkSecurityGroup.networkInterfaces] A collection of + * references to network interfaces. + * @member {array} [networkSecurityGroup.subnets] A collection of references + * to subnets. + * @member {string} [networkSecurityGroup.resourceGuid] The resource GUID + * property of the network security group resource. + * @member {string} [networkSecurityGroup.provisioningState] The provisioning + * state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [networkSecurityGroup.etag] A unique read-only string + * that changes whenever the resource is updated. + * @member {array} [ipConfigurations] A list of IPConfigurations of the + * network interface. + * @member {object} [dnsSettings] The DNS settings in network interface. + * @member {array} [dnsSettings.dnsServers] List of DNS servers IP addresses. + * Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. + * 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the + * only value in dnsServers collection. + * @member {array} [dnsSettings.appliedDnsServers] If the VM that uses this + * NIC is part of an Availability Set, then this list will have the union of + * all DNS servers from all NICs that are part of the Availability Set. This + * property is what is configured on each of those VMs. + * @member {string} [dnsSettings.internalDnsNameLabel] Relative DNS name for + * this NIC used for internal communications between VMs in the same virtual + * network. + * @member {string} [dnsSettings.internalFqdn] Fully qualified DNS name + * supporting internal communications between VMs in the same virtual + * network. + * @member {string} [dnsSettings.internalDomainNameSuffix] Even if + * internalDnsNameLabel is not specified, a DNS entry is created for the + * primary NIC of the VM. This DNS name can be constructed by concatenating + * the VM name with the value of internalDomainNameSuffix. + * @member {string} [macAddress] The MAC address of the network interface. + * @member {boolean} [primary] Gets whether this is a primary network + * interface on a virtual machine. + * @member {boolean} [enableAcceleratedNetworking] If the network interface + * is accelerated networking enabled. + * @member {boolean} [enableIPForwarding] Indicates whether IP forwarding is + * enabled on this network interface. + * @member {string} [resourceGuid] The resource GUID property of the network + * interface resource. + * @member {string} [provisioningState] The provisioning state of the public + * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/networkInterfaceAssociation.js b/lib/services/networkManagement2/lib/models/networkInterfaceAssociation.js index fef53e9bcd..a867b7457c 100644 --- a/lib/services/networkManagement2/lib/models/networkInterfaceAssociation.js +++ b/lib/services/networkManagement2/lib/models/networkInterfaceAssociation.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,17 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the NetworkInterfaceAssociation class. - * @constructor * Network interface and its custom security rules. * - * @member {string} [id] Network interface ID. - * - * @member {array} [securityRules] Collection of custom security rules. - * */ class NetworkInterfaceAssociation { + /** + * Create a NetworkInterfaceAssociation. + * @member {string} [id] Network interface ID. + * @member {array} [securityRules] Collection of custom security rules. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/networkInterfaceDnsSettings.js b/lib/services/networkManagement2/lib/models/networkInterfaceDnsSettings.js index 1cea6b3132..eb3373a032 100644 --- a/lib/services/networkManagement2/lib/models/networkInterfaceDnsSettings.js +++ b/lib/services/networkManagement2/lib/models/networkInterfaceDnsSettings.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,34 +11,29 @@ 'use strict'; /** - * @class - * Initializes a new instance of the NetworkInterfaceDnsSettings class. - * @constructor * DNS settings of a network interface. * - * @member {array} [dnsServers] List of DNS servers IP addresses. Use - * 'AzureProvidedDNS' to switch to azure provided DNS resolution. - * 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the - * only value in dnsServers collection. - * - * @member {array} [appliedDnsServers] If the VM that uses this NIC is part of - * an Availability Set, then this list will have the union of all DNS servers - * from all NICs that are part of the Availability Set. This property is what - * is configured on each of those VMs. - * - * @member {string} [internalDnsNameLabel] Relative DNS name for this NIC used - * for internal communications between VMs in the same virtual network. - * - * @member {string} [internalFqdn] Fully qualified DNS name supporting internal - * communications between VMs in the same virtual network. - * - * @member {string} [internalDomainNameSuffix] Even if internalDnsNameLabel is - * not specified, a DNS entry is created for the primary NIC of the VM. This - * DNS name can be constructed by concatenating the VM name with the value of - * internalDomainNameSuffix. - * */ class NetworkInterfaceDnsSettings { + /** + * Create a NetworkInterfaceDnsSettings. + * @member {array} [dnsServers] List of DNS servers IP addresses. Use + * 'AzureProvidedDNS' to switch to azure provided DNS resolution. + * 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the + * only value in dnsServers collection. + * @member {array} [appliedDnsServers] If the VM that uses this NIC is part + * of an Availability Set, then this list will have the union of all DNS + * servers from all NICs that are part of the Availability Set. This property + * is what is configured on each of those VMs. + * @member {string} [internalDnsNameLabel] Relative DNS name for this NIC + * used for internal communications between VMs in the same virtual network. + * @member {string} [internalFqdn] Fully qualified DNS name supporting + * internal communications between VMs in the same virtual network. + * @member {string} [internalDomainNameSuffix] Even if internalDnsNameLabel + * is not specified, a DNS entry is created for the primary NIC of the VM. + * This DNS name can be constructed by concatenating the VM name with the + * value of internalDomainNameSuffix. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/networkInterfaceIPConfiguration.js b/lib/services/networkManagement2/lib/models/networkInterfaceIPConfiguration.js index c9765cb9bd..fb2c9f3e70 100644 --- a/lib/services/networkManagement2/lib/models/networkInterfaceIPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/networkInterfaceIPConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,254 +13,195 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the NetworkInterfaceIPConfiguration class. - * @constructor * IPConfiguration in a network interface. * - * @member {array} [applicationGatewayBackendAddressPools] The reference of - * ApplicationGatewayBackendAddressPool resource. - * - * @member {array} [loadBalancerBackendAddressPools] The reference of - * LoadBalancerBackendAddressPool resource. - * - * @member {array} [loadBalancerInboundNatRules] A list of references of - * LoadBalancerInboundNatRules. - * - * @member {string} [privateIPAddress] - * - * @member {string} [privateIPAllocationMethod] Defines how a private IP - * address is assigned. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * - * @member {string} [privateIPAddressVersion] Available from Api-Version - * 2016-03-30 onwards, it represents whether the specific ipconfiguration is - * IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and - * 'IPv6'. Possible values include: 'IPv4', 'IPv6' - * - * @member {object} [subnet] - * - * @member {string} [subnet.addressPrefix] The address prefix for the subnet. - * - * @member {object} [subnet.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * - * @member {array} [subnet.networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * - * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * - * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A collection - * of references to network interfaces. - * - * @member {array} [subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * - * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * - * @member {string} [subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * - * @member {object} [subnet.routeTable] The reference of the RouteTable - * resource. - * - * @member {array} [subnet.routeTable.routes] Collection of routes contained - * within a route table. - * - * @member {array} [subnet.routeTable.subnets] A collection of references to - * subnets. - * - * @member {string} [subnet.routeTable.provisioningState] The provisioning - * state of the resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [subnet.routeTable.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * - * @member {array} [subnet.privateAccessServices] An array of private access - * services values. - * - * @member {array} [subnet.ipConfigurations] Gets an array of references to the - * network interface IP configurations using subnet. - * - * @member {array} [subnet.resourceNavigationLinks] Gets an array of references - * to the external resources using subnet. - * - * @member {string} [subnet.provisioningState] The provisioning state of the - * resource. - * - * @member {string} [subnet.name] The name of the resource that is unique - * within a resource group. This name can be used to access the resource. - * - * @member {string} [subnet.etag] A unique read-only string that changes - * whenever the resource is updated. - * - * @member {boolean} [primary] Gets whether this is a primary customer address - * on the network interface. - * - * @member {object} [publicIPAddress] - * - * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * - * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP - * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values - * include: 'IPv4', 'IPv6' - * - * @member {object} [publicIPAddress.ipConfiguration] - * - * @member {string} [publicIPAddress.ipConfiguration.privateIPAddress] The - * private IP address of the IP configuration. - * - * @member {string} [publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @member {object} [publicIPAddress.ipConfiguration.subnet] The reference of - * the subnet resource. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] The - * address prefix for the subnet. - * - * @member {object} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The reference - * of the NetworkSecurityGroup resource. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * - * @member {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * - * @member {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {object} [publicIPAddress.ipConfiguration.subnet.routeTable] The - * reference of the RouteTable resource. - * - * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * - * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * - * @member {string} - * [publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.privateAccessServices] An array of - * private access services values. - * - * @member {array} [publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * - * @member {array} - * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.name] The name of - * the resource that is unique within a resource group. This name can be used - * to access the resource. - * - * @member {string} [publicIPAddress.ipConfiguration.subnet.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {object} [publicIPAddress.ipConfiguration.publicIPAddress] The - * reference of the public IP resource. - * - * @member {string} [publicIPAddress.ipConfiguration.provisioningState] Gets - * the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [publicIPAddress.ipConfiguration.name] The name of the - * resource that is unique within a resource group. This name can be used to - * access the resource. - * - * @member {string} [publicIPAddress.ipConfiguration.etag] A unique read-only - * string that changes whenever the resource is updated. - * - * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. - * - * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or sets - * the Domain name label.The concatenation of the domain name label and the - * regionalized DNS zone make up the fully qualified domain name associated - * with the public IP address. If a domain name label is specified, an A DNS - * record is created for the public IP in the Microsoft Azure DNS system. - * - * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully - * qualified domain name of the A DNS record associated with the public IP. - * This is the concatenation of the domainNameLabel and the regionalized DNS - * zone. - * - * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets the - * Reverse FQDN. A user-visible, fully qualified domain name that resolves to - * this public IP address. If the reverseFqdn is specified, then a PTR DNS - * record is created pointing from the IP address in the in-addr.arpa domain to - * the reverse FQDN. - * - * @member {string} [publicIPAddress.ipAddress] - * - * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout of - * the public IP address. - * - * @member {string} [publicIPAddress.resourceGuid] The resource GUID property - * of the public IP resource. - * - * @member {string} [publicIPAddress.provisioningState] The provisioning state - * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [publicIPAddress.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {string} [provisioningState] - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class NetworkInterfaceIPConfiguration extends models['SubResource'] { + /** + * Create a NetworkInterfaceIPConfiguration. + * @member {array} [applicationGatewayBackendAddressPools] The reference of + * ApplicationGatewayBackendAddressPool resource. + * @member {array} [loadBalancerBackendAddressPools] The reference of + * LoadBalancerBackendAddressPool resource. + * @member {array} [loadBalancerInboundNatRules] A list of references of + * LoadBalancerInboundNatRules. + * @member {string} [privateIPAddress] Private IP address of the IP + * configuration. + * @member {string} [privateIPAllocationMethod] Defines how a private IP + * address is assigned. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * @member {string} [privateIPAddressVersion] Available from Api-Version + * 2016-03-30 onwards, it represents whether the specific ipconfiguration is + * IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and + * 'IPv6'. Possible values include: 'IPv4', 'IPv6' + * @member {object} [subnet] Subnet bound to the IP configuration. + * @member {string} [subnet.addressPrefix] The address prefix for the subnet. + * @member {object} [subnet.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * @member {array} [subnet.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * @member {array} [subnet.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * @member {array} [subnet.networkSecurityGroup.networkInterfaces] A + * collection of references to network interfaces. + * @member {array} [subnet.networkSecurityGroup.subnets] A collection of + * references to subnets. + * @member {string} [subnet.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * @member {string} [subnet.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [subnet.networkSecurityGroup.etag] A unique read-only + * string that changes whenever the resource is updated. + * @member {object} [subnet.routeTable] The reference of the RouteTable + * resource. + * @member {array} [subnet.routeTable.routes] Collection of routes contained + * within a route table. + * @member {array} [subnet.routeTable.subnets] A collection of references to + * subnets. + * @member {string} [subnet.routeTable.provisioningState] The provisioning + * state of the resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [subnet.routeTable.etag] Gets a unique read-only string + * that changes whenever the resource is updated. + * @member {array} [subnet.serviceEndpoints] An array of service endpoints. + * @member {array} [subnet.ipConfigurations] Gets an array of references to + * the network interface IP configurations using subnet. + * @member {array} [subnet.resourceNavigationLinks] Gets an array of + * references to the external resources using subnet. + * @member {string} [subnet.provisioningState] The provisioning state of the + * resource. + * @member {string} [subnet.name] The name of the resource that is unique + * within a resource group. This name can be used to access the resource. + * @member {string} [subnet.etag] A unique read-only string that changes + * whenever the resource is updated. + * @member {boolean} [primary] Gets whether this is a primary customer + * address on the network interface. + * @member {object} [publicIPAddress] Public IP address bound to the IP + * configuration. + * @member {object} [publicIPAddress.sku] The public IP address SKU. + * @member {string} [publicIPAddress.sku.name] Name of a public IP address + * SKU. Possible values include: 'Basic', 'Standard' + * @member {string} [publicIPAddress.publicIPAllocationMethod] The public IP + * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * @member {string} [publicIPAddress.publicIPAddressVersion] The public IP + * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values + * include: 'IPv4', 'IPv6' + * @member {object} [publicIPAddress.ipConfiguration] The IP configuration + * associated with the public IP address. + * @member {string} [publicIPAddress.ipConfiguration.privateIPAddress] The + * private IP address of the IP configuration. + * @member {string} + * [publicIPAddress.ipConfiguration.privateIPAllocationMethod] The private IP + * allocation method. Possible values are 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * @member {object} [publicIPAddress.ipConfiguration.subnet] The reference of + * the subnet resource. + * @member {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] + * The address prefix for the subnet. + * @member {object} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The + * reference of the NetworkSecurityGroup resource. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] + * A collection of security rules of the network security group. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] + * The default security rules of network security group. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] + * A collection of references to network interfaces. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] A + * collection of references to subnets. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] + * The resource GUID property of the network security group resource. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] + * The provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] A + * unique read-only string that changes whenever the resource is updated. + * @member {object} [publicIPAddress.ipConfiguration.subnet.routeTable] The + * reference of the RouteTable resource. + * @member {array} [publicIPAddress.ipConfiguration.subnet.routeTable.routes] + * Collection of routes contained within a route table. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.routeTable.subnets] A collection + * of references to subnets. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] The + * provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [publicIPAddress.ipConfiguration.subnet.routeTable.etag] + * Gets a unique read-only string that changes whenever the resource is + * updated. + * @member {array} [publicIPAddress.ipConfiguration.subnet.serviceEndpoints] + * An array of service endpoints. + * @member {array} [publicIPAddress.ipConfiguration.subnet.ipConfigurations] + * Gets an array of references to the network interface IP configurations + * using subnet. + * @member {array} + * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an + * array of references to the external resources using subnet. + * @member {string} + * [publicIPAddress.ipConfiguration.subnet.provisioningState] The + * provisioning state of the resource. + * @member {string} [publicIPAddress.ipConfiguration.subnet.name] The name of + * the resource that is unique within a resource group. This name can be used + * to access the resource. + * @member {string} [publicIPAddress.ipConfiguration.subnet.etag] A unique + * read-only string that changes whenever the resource is updated. + * @member {object} [publicIPAddress.ipConfiguration.publicIPAddress] The + * reference of the public IP resource. + * @member {string} [publicIPAddress.ipConfiguration.provisioningState] Gets + * the provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [publicIPAddress.ipConfiguration.name] The name of the + * resource that is unique within a resource group. This name can be used to + * access the resource. + * @member {string} [publicIPAddress.ipConfiguration.etag] A unique read-only + * string that changes whenever the resource is updated. + * @member {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record + * associated with the public IP address. + * @member {string} [publicIPAddress.dnsSettings.domainNameLabel] Gets or + * sets the Domain name label.The concatenation of the domain name label and + * the regionalized DNS zone make up the fully qualified domain name + * associated with the public IP address. If a domain name label is + * specified, an A DNS record is created for the public IP in the Microsoft + * Azure DNS system. + * @member {string} [publicIPAddress.dnsSettings.fqdn] Gets the FQDN, Fully + * qualified domain name of the A DNS record associated with the public IP. + * This is the concatenation of the domainNameLabel and the regionalized DNS + * zone. + * @member {string} [publicIPAddress.dnsSettings.reverseFqdn] Gets or Sets + * the Reverse FQDN. A user-visible, fully qualified domain name that + * resolves to this public IP address. If the reverseFqdn is specified, then + * a PTR DNS record is created pointing from the IP address in the + * in-addr.arpa domain to the reverse FQDN. + * @member {string} [publicIPAddress.ipAddress] The IP address associated + * with the public IP address resource. + * @member {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout + * of the public IP address. + * @member {string} [publicIPAddress.resourceGuid] The resource GUID property + * of the public IP resource. + * @member {string} [publicIPAddress.provisioningState] The provisioning + * state of the PublicIP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [publicIPAddress.etag] A unique read-only string that + * changes whenever the resource is updated. + * @member {string} [provisioningState] The provisioning state of the network + * interface IP configuration. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/networkInterfaceIPConfigurationListResult.js b/lib/services/networkManagement2/lib/models/networkInterfaceIPConfigurationListResult.js new file mode 100644 index 0000000000..af962fd6bc --- /dev/null +++ b/lib/services/networkManagement2/lib/models/networkInterfaceIPConfigurationListResult.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * Response for list ip configurations API service call. + */ +class NetworkInterfaceIPConfigurationListResult extends Array { + /** + * Create a NetworkInterfaceIPConfigurationListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetworkInterfaceIPConfigurationListResult + * + * @returns {object} metadata of NetworkInterfaceIPConfigurationListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'NetworkInterfaceIPConfigurationListResult', + type: { + name: 'Composite', + className: 'NetworkInterfaceIPConfigurationListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NetworkInterfaceIPConfigurationElementType', + type: { + name: 'Composite', + className: 'NetworkInterfaceIPConfiguration' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = NetworkInterfaceIPConfigurationListResult; diff --git a/lib/services/networkManagement2/lib/models/networkInterfaceListResult.js b/lib/services/networkManagement2/lib/models/networkInterfaceListResult.js index 629fa57e5b..125b569ac8 100644 --- a/lib/services/networkManagement2/lib/models/networkInterfaceListResult.js +++ b/lib/services/networkManagement2/lib/models/networkInterfaceListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the NetworkInterfaceListResult class. - * @constructor * Response for the ListNetworkInterface API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class NetworkInterfaceListResult extends Array { + /** + * Create a NetworkInterfaceListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } @@ -55,6 +53,7 @@ class NetworkInterfaceListResult extends Array { }, nextLink: { required: false, + readOnly: true, serializedName: 'nextLink', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/networkInterfaceLoadBalancerListResult.js b/lib/services/networkManagement2/lib/models/networkInterfaceLoadBalancerListResult.js new file mode 100644 index 0000000000..c4ff846d5c --- /dev/null +++ b/lib/services/networkManagement2/lib/models/networkInterfaceLoadBalancerListResult.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * Response for list ip configurations API service call. + */ +class NetworkInterfaceLoadBalancerListResult extends Array { + /** + * Create a NetworkInterfaceLoadBalancerListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetworkInterfaceLoadBalancerListResult + * + * @returns {object} metadata of NetworkInterfaceLoadBalancerListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'NetworkInterfaceLoadBalancerListResult', + type: { + name: 'Composite', + className: 'NetworkInterfaceLoadBalancerListResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'LoadBalancerElementType', + type: { + name: 'Composite', + className: 'LoadBalancer' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = NetworkInterfaceLoadBalancerListResult; diff --git a/lib/services/networkManagement2/lib/models/networkSecurityGroup.js b/lib/services/networkManagement2/lib/models/networkSecurityGroup.js index bf6c810383..9a486a39ab 100644 --- a/lib/services/networkManagement2/lib/models/networkSecurityGroup.js +++ b/lib/services/networkManagement2/lib/models/networkSecurityGroup.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,33 +13,27 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the NetworkSecurityGroup class. - * @constructor * NetworkSecurityGroup resource. * - * @member {array} [securityRules] A collection of security rules of the - * network security group. - * - * @member {array} [defaultSecurityRules] The default security rules of network - * security group. - * - * @member {array} [networkInterfaces] A collection of references to network - * interfaces. - * - * @member {array} [subnets] A collection of references to subnets. - * - * @member {string} [resourceGuid] The resource GUID property of the network - * security group resource. - * - * @member {string} [provisioningState] The provisioning state of the public IP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['Resource'] */ class NetworkSecurityGroup extends models['Resource'] { + /** + * Create a NetworkSecurityGroup. + * @member {array} [securityRules] A collection of security rules of the + * network security group. + * @member {array} [defaultSecurityRules] The default security rules of + * network security group. + * @member {array} [networkInterfaces] A collection of references to network + * interfaces. + * @member {array} [subnets] A collection of references to subnets. + * @member {string} [resourceGuid] The resource GUID property of the network + * security group resource. + * @member {string} [provisioningState] The provisioning state of the public + * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/networkSecurityGroupListResult.js b/lib/services/networkManagement2/lib/models/networkSecurityGroupListResult.js index 3125d4ce07..abf75b6d9d 100644 --- a/lib/services/networkManagement2/lib/models/networkSecurityGroupListResult.js +++ b/lib/services/networkManagement2/lib/models/networkSecurityGroupListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the NetworkSecurityGroupListResult class. - * @constructor * Response for ListNetworkSecurityGroups API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class NetworkSecurityGroupListResult extends Array { + /** + * Create a NetworkSecurityGroupListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/networkWatcher.js b/lib/services/networkManagement2/lib/models/networkWatcher.js index 19b5d2f99b..2d392cef39 100644 --- a/lib/services/networkManagement2/lib/models/networkWatcher.js +++ b/lib/services/networkManagement2/lib/models/networkWatcher.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,19 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the NetworkWatcher class. - * @constructor * Network watcher in a resource group. * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' - * + * @extends models['Resource'] */ class NetworkWatcher extends models['Resource'] { + /** + * Create a NetworkWatcher. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [provisioningState] The provisioning state of the + * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', + * 'Failed' + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/networkWatcherListResult.js b/lib/services/networkManagement2/lib/models/networkWatcherListResult.js index 1f53ca6f9e..61b6321fc3 100644 --- a/lib/services/networkManagement2/lib/models/networkWatcherListResult.js +++ b/lib/services/networkManagement2/lib/models/networkWatcherListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the NetworkWatcherListResult class. - * @constructor * List of network watcher resources. - * */ class NetworkWatcherListResult extends Array { + /** + * Create a NetworkWatcherListResult. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/nextHopParameters.js b/lib/services/networkManagement2/lib/models/nextHopParameters.js index 5674f7165b..490154bbbb 100644 --- a/lib/services/networkManagement2/lib/models/nextHopParameters.js +++ b/lib/services/networkManagement2/lib/models/nextHopParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,24 +11,20 @@ 'use strict'; /** - * @class - * Initializes a new instance of the NextHopParameters class. - * @constructor * Parameters that define the source and destination endpoint. * - * @member {string} targetResourceId The resource identifier of the target - * resource against which the action is to be performed. - * - * @member {string} sourceIPAddress The source IP address. - * - * @member {string} destinationIPAddress The destination IP address. - * - * @member {string} [targetNicResourceId] The NIC ID. (If VM has multiple NICs - * and IP forwarding is enabled on any of the nics, then this parameter must be - * specified. Otherwise optional). - * */ class NextHopParameters { + /** + * Create a NextHopParameters. + * @member {string} targetResourceId The resource identifier of the target + * resource against which the action is to be performed. + * @member {string} sourceIPAddress The source IP address. + * @member {string} destinationIPAddress The destination IP address. + * @member {string} [targetNicResourceId] The NIC ID. (If VM has multiple + * NICs and IP forwarding is enabled on any of the nics, then this parameter + * must be specified. Otherwise optional). + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/nextHopResult.js b/lib/services/networkManagement2/lib/models/nextHopResult.js index 49a5df0d64..e6717174e8 100644 --- a/lib/services/networkManagement2/lib/models/nextHopResult.js +++ b/lib/services/networkManagement2/lib/models/nextHopResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,24 +11,21 @@ 'use strict'; /** - * @class - * Initializes a new instance of the NextHopResult class. - * @constructor * The information about next hop from the specified VM. * - * @member {string} [nextHopType] Next hop type. Possible values include: - * 'Internet', 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', - * 'HyperNetGateway', 'None' - * - * @member {string} [nextHopIpAddress] Next hop IP Address - * - * @member {string} [routeTableId] The resource identifier for the route table - * associated with the route being returned. If the route being returned does - * not correspond to any user created routes then this field will be the string - * 'System Route'. - * */ class NextHopResult { + /** + * Create a NextHopResult. + * @member {string} [nextHopType] Next hop type. Possible values include: + * 'Internet', 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', + * 'HyperNetGateway', 'None' + * @member {string} [nextHopIpAddress] Next hop IP Address + * @member {string} [routeTableId] The resource identifier for the route + * table associated with the route being returned. If the route being + * returned does not correspond to any user created routes then this field + * will be the string 'System Route'. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/outboundNatRule.js b/lib/services/networkManagement2/lib/models/outboundNatRule.js index e86ff53cbf..33e85d3a09 100644 --- a/lib/services/networkManagement2/lib/models/outboundNatRule.js +++ b/lib/services/networkManagement2/lib/models/outboundNatRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,34 +13,28 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the OutboundNatRule class. - * @constructor * Outbound NAT pool of the load balancer. * - * @member {number} [allocatedOutboundPorts] The number of outbound ports to be - * used for NAT. - * - * @member {array} [frontendIPConfigurations] The Frontend IP addresses of the - * load balancer. - * - * @member {object} backendAddressPool A reference to a pool of DIPs. Outbound - * traffic is randomly load balanced across IPs in the backend IPs. - * - * @member {string} [backendAddressPool.id] Resource ID. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class OutboundNatRule extends models['SubResource'] { + /** + * Create a OutboundNatRule. + * @member {number} [allocatedOutboundPorts] The number of outbound ports to + * be used for NAT. + * @member {array} [frontendIPConfigurations] The Frontend IP addresses of + * the load balancer. + * @member {object} backendAddressPool A reference to a pool of DIPs. + * Outbound traffic is randomly load balanced across IPs in the backend IPs. + * @member {string} [backendAddressPool.id] Resource ID. + * @member {string} [provisioningState] Gets the provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/packetCapture.js b/lib/services/networkManagement2/lib/models/packetCapture.js index 5e9dadd551..3723749592 100644 --- a/lib/services/networkManagement2/lib/models/packetCapture.js +++ b/lib/services/networkManagement2/lib/models/packetCapture.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,42 +13,33 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the PacketCapture class. - * @constructor * Parameters that define the create packet capture operation. * - * @member {string} target The ID of the targeted resource, only VM is - * currently supported. - * - * @member {number} [bytesToCapturePerPacket] Number of bytes captured per - * packet, the remaining bytes are truncated. Default value: 0 . - * - * @member {number} [totalBytesPerSession] Maximum size of the capture output. - * Default value: 1073741824 . - * - * @member {number} [timeLimitInSeconds] Maximum duration of the capture - * session in seconds. Default value: 18000 . - * - * @member {object} storageLocation - * - * @member {string} [storageLocation.storageId] The ID of the storage account - * to save the packet capture session. Required if no local file path is - * provided. - * - * @member {string} [storageLocation.storagePath] The URI of the storage path - * to save the packet capture. Must be a well-formed URI describing the - * location to save the packet capture. - * - * @member {string} [storageLocation.filePath] A valid local path on the - * targeting VM. Must include the name of the capture file (*.cap). For linux - * virtual machine it must start with /var/captures. Required if no storage ID - * is provided, otherwise optional. - * - * @member {array} [filters] - * */ class PacketCapture { + /** + * Create a PacketCapture. + * @member {string} target The ID of the targeted resource, only VM is + * currently supported. + * @member {number} [bytesToCapturePerPacket] Number of bytes captured per + * packet, the remaining bytes are truncated. Default value: 0 . + * @member {number} [totalBytesPerSession] Maximum size of the capture + * output. Default value: 1073741824 . + * @member {number} [timeLimitInSeconds] Maximum duration of the capture + * session in seconds. Default value: 18000 . + * @member {object} storageLocation + * @member {string} [storageLocation.storageId] The ID of the storage account + * to save the packet capture session. Required if no local file path is + * provided. + * @member {string} [storageLocation.storagePath] The URI of the storage path + * to save the packet capture. Must be a well-formed URI describing the + * location to save the packet capture. + * @member {string} [storageLocation.filePath] A valid local path on the + * targeting VM. Must include the name of the capture file (*.cap). For linux + * virtual machine it must start with /var/captures. Required if no storage + * ID is provided, otherwise optional. + * @member {array} [filters] + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/packetCaptureFilter.js b/lib/services/networkManagement2/lib/models/packetCaptureFilter.js index bf1b0f7d46..fd13922bb6 100644 --- a/lib/services/networkManagement2/lib/models/packetCaptureFilter.js +++ b/lib/services/networkManagement2/lib/models/packetCaptureFilter.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,39 +11,34 @@ 'use strict'; /** - * @class - * Initializes a new instance of the PacketCaptureFilter class. - * @constructor * Filter that is applied to packet capture request. Multiple filters can be * applied. * - * @member {string} [protocol] Protocol to be filtered on. Possible values - * include: 'TCP', 'UDP', 'Any'. Default value: 'Any' . - * - * @member {string} [localIPAddress] Local IP Address to be filtered on. - * Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for - * range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not - * currently supported. Mixing ranges with multiple entries not currently - * supported. Default = null. - * - * @member {string} [remoteIPAddress] Local IP Address to be filtered on. - * Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for - * range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not - * currently supported. Mixing ranges with multiple entries not currently - * supported. Default = null. - * - * @member {string} [localPort] Local port to be filtered on. Notation: "80" - * for single port entry."80-85" for range. "80;443;" for multiple entries. - * Multiple ranges not currently supported. Mixing ranges with multiple entries - * not currently supported. Default = null. - * - * @member {string} [remotePort] Remote port to be filtered on. Notation: "80" - * for single port entry."80-85" for range. "80;443;" for multiple entries. - * Multiple ranges not currently supported. Mixing ranges with multiple entries - * not currently supported. Default = null. - * */ class PacketCaptureFilter { + /** + * Create a PacketCaptureFilter. + * @member {string} [protocol] Protocol to be filtered on. Possible values + * include: 'TCP', 'UDP', 'Any'. Default value: 'Any' . + * @member {string} [localIPAddress] Local IP Address to be filtered on. + * Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" + * for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges + * not currently supported. Mixing ranges with multiple entries not currently + * supported. Default = null. + * @member {string} [remoteIPAddress] Local IP Address to be filtered on. + * Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" + * for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges + * not currently supported. Mixing ranges with multiple entries not currently + * supported. Default = null. + * @member {string} [localPort] Local port to be filtered on. Notation: "80" + * for single port entry."80-85" for range. "80;443;" for multiple entries. + * Multiple ranges not currently supported. Mixing ranges with multiple + * entries not currently supported. Default = null. + * @member {string} [remotePort] Remote port to be filtered on. Notation: + * "80" for single port entry."80-85" for range. "80;443;" for multiple + * entries. Multiple ranges not currently supported. Mixing ranges with + * multiple entries not currently supported. Default = null. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/packetCaptureListResult.js b/lib/services/networkManagement2/lib/models/packetCaptureListResult.js index ba85ff4f3c..83e0404f31 100644 --- a/lib/services/networkManagement2/lib/models/packetCaptureListResult.js +++ b/lib/services/networkManagement2/lib/models/packetCaptureListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the PacketCaptureListResult class. - * @constructor * List of packet capture sessions. - * */ class PacketCaptureListResult extends Array { + /** + * Create a PacketCaptureListResult. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/packetCaptureParameters.js b/lib/services/networkManagement2/lib/models/packetCaptureParameters.js index cb31390354..01c24e2b0f 100644 --- a/lib/services/networkManagement2/lib/models/packetCaptureParameters.js +++ b/lib/services/networkManagement2/lib/models/packetCaptureParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,42 +13,33 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the PacketCaptureParameters class. - * @constructor * Parameters that define the create packet capture operation. * - * @member {string} target The ID of the targeted resource, only VM is - * currently supported. - * - * @member {number} [bytesToCapturePerPacket] Number of bytes captured per - * packet, the remaining bytes are truncated. Default value: 0 . - * - * @member {number} [totalBytesPerSession] Maximum size of the capture output. - * Default value: 1073741824 . - * - * @member {number} [timeLimitInSeconds] Maximum duration of the capture - * session in seconds. Default value: 18000 . - * - * @member {object} storageLocation - * - * @member {string} [storageLocation.storageId] The ID of the storage account - * to save the packet capture session. Required if no local file path is - * provided. - * - * @member {string} [storageLocation.storagePath] The URI of the storage path - * to save the packet capture. Must be a well-formed URI describing the - * location to save the packet capture. - * - * @member {string} [storageLocation.filePath] A valid local path on the - * targeting VM. Must include the name of the capture file (*.cap). For linux - * virtual machine it must start with /var/captures. Required if no storage ID - * is provided, otherwise optional. - * - * @member {array} [filters] - * */ class PacketCaptureParameters { + /** + * Create a PacketCaptureParameters. + * @member {string} target The ID of the targeted resource, only VM is + * currently supported. + * @member {number} [bytesToCapturePerPacket] Number of bytes captured per + * packet, the remaining bytes are truncated. Default value: 0 . + * @member {number} [totalBytesPerSession] Maximum size of the capture + * output. Default value: 1073741824 . + * @member {number} [timeLimitInSeconds] Maximum duration of the capture + * session in seconds. Default value: 18000 . + * @member {object} storageLocation + * @member {string} [storageLocation.storageId] The ID of the storage account + * to save the packet capture session. Required if no local file path is + * provided. + * @member {string} [storageLocation.storagePath] The URI of the storage path + * to save the packet capture. Must be a well-formed URI describing the + * location to save the packet capture. + * @member {string} [storageLocation.filePath] A valid local path on the + * targeting VM. Must include the name of the capture file (*.cap). For linux + * virtual machine it must start with /var/captures. Required if no storage + * ID is provided, otherwise optional. + * @member {array} [filters] + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/packetCaptureQueryStatusResult.js b/lib/services/networkManagement2/lib/models/packetCaptureQueryStatusResult.js index 9c242f320e..e504224120 100644 --- a/lib/services/networkManagement2/lib/models/packetCaptureQueryStatusResult.js +++ b/lib/services/networkManagement2/lib/models/packetCaptureQueryStatusResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,30 +11,24 @@ 'use strict'; /** - * @class - * Initializes a new instance of the PacketCaptureQueryStatusResult class. - * @constructor * Status of packet capture session. * - * @member {string} [name] The name of the packet capture resource. - * - * @member {string} [id] The ID of the packet capture resource. - * - * @member {date} [captureStartTime] The start time of the packet capture - * session. - * - * @member {string} [packetCaptureStatus] The status of the packet capture - * session. Possible values include: 'NotStarted', 'Running', 'Stopped', - * 'Error', 'Unknown' - * - * @member {string} [stopReason] The reason the current packet capture session - * was stopped. - * - * @member {array} [packetCaptureError] List of errors of packet capture - * session. - * */ class PacketCaptureQueryStatusResult { + /** + * Create a PacketCaptureQueryStatusResult. + * @member {string} [name] The name of the packet capture resource. + * @member {string} [id] The ID of the packet capture resource. + * @member {date} [captureStartTime] The start time of the packet capture + * session. + * @member {string} [packetCaptureStatus] The status of the packet capture + * session. Possible values include: 'NotStarted', 'Running', 'Stopped', + * 'Error', 'Unknown' + * @member {string} [stopReason] The reason the current packet capture + * session was stopped. + * @member {array} [packetCaptureError] List of errors of packet capture + * session. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/packetCaptureResult.js b/lib/services/networkManagement2/lib/models/packetCaptureResult.js index afdc4da8e1..a4ecc1549f 100644 --- a/lib/services/networkManagement2/lib/models/packetCaptureResult.js +++ b/lib/services/networkManagement2/lib/models/packetCaptureResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,53 +13,40 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the PacketCaptureResult class. - * @constructor * Information about packet capture session. * - * @member {string} [name] Name of the packet capture session. - * - * @member {string} [id] ID of the packet capture operation. - * - * @member {string} [etag] Default value: 'A unique read-only string that - * changes whenever the resource is updated.' . - * - * @member {string} target The ID of the targeted resource, only VM is - * currently supported. - * - * @member {number} [bytesToCapturePerPacket] Number of bytes captured per - * packet, the remaining bytes are truncated. Default value: 0 . - * - * @member {number} [totalBytesPerSession] Maximum size of the capture output. - * Default value: 1073741824 . - * - * @member {number} [timeLimitInSeconds] Maximum duration of the capture - * session in seconds. Default value: 18000 . - * - * @member {object} storageLocation - * - * @member {string} [storageLocation.storageId] The ID of the storage account - * to save the packet capture session. Required if no local file path is - * provided. - * - * @member {string} [storageLocation.storagePath] The URI of the storage path - * to save the packet capture. Must be a well-formed URI describing the - * location to save the packet capture. - * - * @member {string} [storageLocation.filePath] A valid local path on the - * targeting VM. Must include the name of the capture file (*.cap). For linux - * virtual machine it must start with /var/captures. Required if no storage ID - * is provided, otherwise optional. - * - * @member {array} [filters] - * - * @member {string} [provisioningState] The provisioning state of the packet - * capture session. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' - * */ class PacketCaptureResult { + /** + * Create a PacketCaptureResult. + * @member {string} [name] Name of the packet capture session. + * @member {string} [id] ID of the packet capture operation. + * @member {string} [etag] Default value: 'A unique read-only string that + * changes whenever the resource is updated.' . + * @member {string} target The ID of the targeted resource, only VM is + * currently supported. + * @member {number} [bytesToCapturePerPacket] Number of bytes captured per + * packet, the remaining bytes are truncated. Default value: 0 . + * @member {number} [totalBytesPerSession] Maximum size of the capture + * output. Default value: 1073741824 . + * @member {number} [timeLimitInSeconds] Maximum duration of the capture + * session in seconds. Default value: 18000 . + * @member {object} storageLocation + * @member {string} [storageLocation.storageId] The ID of the storage account + * to save the packet capture session. Required if no local file path is + * provided. + * @member {string} [storageLocation.storagePath] The URI of the storage path + * to save the packet capture. Must be a well-formed URI describing the + * location to save the packet capture. + * @member {string} [storageLocation.filePath] A valid local path on the + * targeting VM. Must include the name of the capture file (*.cap). For linux + * virtual machine it must start with /var/captures. Required if no storage + * ID is provided, otherwise optional. + * @member {array} [filters] + * @member {string} [provisioningState] The provisioning state of the packet + * capture session. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/packetCaptureStorageLocation.js b/lib/services/networkManagement2/lib/models/packetCaptureStorageLocation.js index 45c079dd5f..1661120018 100644 --- a/lib/services/networkManagement2/lib/models/packetCaptureStorageLocation.js +++ b/lib/services/networkManagement2/lib/models/packetCaptureStorageLocation.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,25 +11,22 @@ 'use strict'; /** - * @class - * Initializes a new instance of the PacketCaptureStorageLocation class. - * @constructor * Describes the storage location for a packet capture session. * - * @member {string} [storageId] The ID of the storage account to save the - * packet capture session. Required if no local file path is provided. - * - * @member {string} [storagePath] The URI of the storage path to save the - * packet capture. Must be a well-formed URI describing the location to save - * the packet capture. - * - * @member {string} [filePath] A valid local path on the targeting VM. Must - * include the name of the capture file (*.cap). For linux virtual machine it - * must start with /var/captures. Required if no storage ID is provided, - * otherwise optional. - * */ class PacketCaptureStorageLocation { + /** + * Create a PacketCaptureStorageLocation. + * @member {string} [storageId] The ID of the storage account to save the + * packet capture session. Required if no local file path is provided. + * @member {string} [storagePath] The URI of the storage path to save the + * packet capture. Must be a well-formed URI describing the location to save + * the packet capture. + * @member {string} [filePath] A valid local path on the targeting VM. Must + * include the name of the capture file (*.cap). For linux virtual machine it + * must start with /var/captures. Required if no storage ID is provided, + * otherwise optional. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/patchRouteFilter.js b/lib/services/networkManagement2/lib/models/patchRouteFilter.js index 312358a063..4765da6f2b 100644 --- a/lib/services/networkManagement2/lib/models/patchRouteFilter.js +++ b/lib/services/networkManagement2/lib/models/patchRouteFilter.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,32 +13,27 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the PatchRouteFilter class. - * @constructor * Route Filter Resource. * - * @member {array} [rules] Collection of RouteFilterRules contained within a - * route filter. - * - * @member {array} [peerings] A collection of references to express route - * circuit peerings. - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {string} [type] Resource type. - * - * @member {object} [tags] Resource tags. - * + * @extends models['SubResource'] */ class PatchRouteFilter extends models['SubResource'] { + /** + * Create a PatchRouteFilter. + * @member {array} [rules] Collection of RouteFilterRules contained within a + * route filter. + * @member {array} [peerings] A collection of references to express route + * circuit peerings. + * @member {string} [provisioningState] The provisioning state of the + * resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and + * 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {string} [type] Resource type. + * @member {object} [tags] Resource tags. + */ constructor() { super(); } @@ -81,7 +76,6 @@ class PatchRouteFilter extends models['SubResource'] { }, peerings: { required: false, - readOnly: true, serializedName: 'properties.peerings', type: { name: 'Sequence', diff --git a/lib/services/networkManagement2/lib/models/patchRouteFilterRule.js b/lib/services/networkManagement2/lib/models/patchRouteFilterRule.js index 2b63510b9c..6554b189cc 100644 --- a/lib/services/networkManagement2/lib/models/patchRouteFilterRule.js +++ b/lib/services/networkManagement2/lib/models/patchRouteFilterRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,30 +13,26 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the PatchRouteFilterRule class. - * @constructor * Route Filter Rule Resource * - * @member {string} access The access type of the rule. Valid values are: - * 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' - * - * @member {array} communities The collection for bgp community values to - * filter on. e.g. ['12076:5010','12076:5020'] - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {object} [tags] Resource tags. - * + * @extends models['SubResource'] */ class PatchRouteFilterRule extends models['SubResource'] { + /** + * Create a PatchRouteFilterRule. + * @member {string} access The access type of the rule. Valid values are: + * 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' + * @member {array} communities The collection for bgp community values to + * filter on. e.g. ['12076:5010','12076:5020'] + * @member {string} [provisioningState] The provisioning state of the + * resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and + * 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {object} [tags] Resource tags. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/probe.js b/lib/services/networkManagement2/lib/models/probe.js index 02ee5b655f..667f984b64 100644 --- a/lib/services/networkManagement2/lib/models/probe.js +++ b/lib/services/networkManagement2/lib/models/probe.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,50 +13,42 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Probe class. - * @constructor * A load balancer probe. * - * @member {array} [loadBalancingRules] The load balancer rules that use this - * probe. - * - * @member {string} protocol The protocol of the end point. Possible values - * are: 'Http' or 'Tcp'. If 'Tcp' is specified, a received ACK is required for - * the probe to be successful. If 'Http' is specified, a 200 OK response from - * the specifies URI is required for the probe to be successful. Possible - * values include: 'Http', 'Tcp' - * - * @member {number} port The port for communicating the probe. Possible values - * range from 1 to 65535, inclusive. - * - * @member {number} [intervalInSeconds] The interval, in seconds, for how - * frequently to probe the endpoint for health status. Typically, the interval - * is slightly less than half the allocated timeout period (in seconds) which - * allows two full probes before taking the instance out of rotation. The - * default value is 15, the minimum value is 5. - * - * @member {number} [numberOfProbes] The number of probes where if no response, - * will result in stopping further traffic from being delivered to the - * endpoint. This values allows endpoints to be taken out of rotation faster or - * slower than the typical times used in Azure. - * - * @member {string} [requestPath] The URI used for requesting health status - * from the VM. Path is required if a protocol is set to http. Otherwise, it is - * not allowed. There is no default value. - * - * @member {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @member {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class Probe extends models['SubResource'] { + /** + * Create a Probe. + * @member {array} [loadBalancingRules] The load balancer rules that use this + * probe. + * @member {string} protocol The protocol of the end point. Possible values + * are: 'Http' or 'Tcp'. If 'Tcp' is specified, a received ACK is required + * for the probe to be successful. If 'Http' is specified, a 200 OK response + * from the specifies URI is required for the probe to be successful. + * Possible values include: 'Http', 'Tcp' + * @member {number} port The port for communicating the probe. Possible + * values range from 1 to 65535, inclusive. + * @member {number} [intervalInSeconds] The interval, in seconds, for how + * frequently to probe the endpoint for health status. Typically, the + * interval is slightly less than half the allocated timeout period (in + * seconds) which allows two full probes before taking the instance out of + * rotation. The default value is 15, the minimum value is 5. + * @member {number} [numberOfProbes] The number of probes where if no + * response, will result in stopping further traffic from being delivered to + * the endpoint. This values allows endpoints to be taken out of rotation + * faster or slower than the typical times used in Azure. + * @member {string} [requestPath] The URI used for requesting health status + * from the VM. Path is required if a protocol is set to http. Otherwise, it + * is not allowed. There is no default value. + * @member {string} [provisioningState] Gets the provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [name] Gets name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/publicIPAddress.js b/lib/services/networkManagement2/lib/models/publicIPAddress.js index 28f13f9191..df528f1a83 100644 --- a/lib/services/networkManagement2/lib/models/publicIPAddress.js +++ b/lib/services/networkManagement2/lib/models/publicIPAddress.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,145 +13,116 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the PublicIPAddress class. - * @constructor * Public IP address resource. * - * @member {string} [publicIPAllocationMethod] The public IP allocation method. - * Possible values are: 'Static' and 'Dynamic'. Possible values include: - * 'Static', 'Dynamic' - * - * @member {string} [publicIPAddressVersion] The public IP address version. - * Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' - * - * @member {object} [ipConfiguration] - * - * @member {string} [ipConfiguration.privateIPAddress] The private IP address - * of the IP configuration. - * - * @member {string} [ipConfiguration.privateIPAllocationMethod] The private IP - * allocation method. Possible values are 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * - * @member {object} [ipConfiguration.subnet] The reference of the subnet - * resource. - * - * @member {string} [ipConfiguration.subnet.addressPrefix] The address prefix - * for the subnet. - * - * @member {object} [ipConfiguration.subnet.networkSecurityGroup] The reference - * of the NetworkSecurityGroup resource. - * - * @member {array} [ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * - * @member {array} - * [ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * - * @member {array} - * [ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] A collection - * of references to network interfaces. - * - * @member {array} [ipConfiguration.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * - * @member {string} [ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * - * @member {string} - * [ipConfiguration.subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [ipConfiguration.subnet.networkSecurityGroup.etag] A unique - * read-only string that changes whenever the resource is updated. - * - * @member {object} [ipConfiguration.subnet.routeTable] The reference of the - * RouteTable resource. - * - * @member {array} [ipConfiguration.subnet.routeTable.routes] Collection of - * routes contained within a route table. - * - * @member {array} [ipConfiguration.subnet.routeTable.subnets] A collection of - * references to subnets. - * - * @member {string} [ipConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [ipConfiguration.subnet.routeTable.etag] Gets a unique - * read-only string that changes whenever the resource is updated. - * - * @member {array} [ipConfiguration.subnet.privateAccessServices] An array of - * private access services values. - * - * @member {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of - * references to the network interface IP configurations using subnet. - * - * @member {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * - * @member {string} [ipConfiguration.subnet.provisioningState] The provisioning - * state of the resource. - * - * @member {string} [ipConfiguration.subnet.name] The name of the resource that - * is unique within a resource group. This name can be used to access the - * resource. - * - * @member {string} [ipConfiguration.subnet.etag] A unique read-only string - * that changes whenever the resource is updated. - * - * @member {object} [ipConfiguration.publicIPAddress] The reference of the - * public IP resource. - * - * @member {string} [ipConfiguration.provisioningState] Gets the provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [ipConfiguration.name] The name of the resource that is - * unique within a resource group. This name can be used to access the - * resource. - * - * @member {string} [ipConfiguration.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {object} [dnsSettings] The FQDN of the DNS record associated with - * the public IP address. - * - * @member {string} [dnsSettings.domainNameLabel] Gets or sets the Domain name - * label.The concatenation of the domain name label and the regionalized DNS - * zone make up the fully qualified domain name associated with the public IP - * address. If a domain name label is specified, an A DNS record is created for - * the public IP in the Microsoft Azure DNS system. - * - * @member {string} [dnsSettings.fqdn] Gets the FQDN, Fully qualified domain - * name of the A DNS record associated with the public IP. This is the - * concatenation of the domainNameLabel and the regionalized DNS zone. - * - * @member {string} [dnsSettings.reverseFqdn] Gets or Sets the Reverse FQDN. A - * user-visible, fully qualified domain name that resolves to this public IP - * address. If the reverseFqdn is specified, then a PTR DNS record is created - * pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. - * - * @member {string} [ipAddress] - * - * @member {number} [idleTimeoutInMinutes] The idle timeout of the public IP - * address. - * - * @member {string} [resourceGuid] The resource GUID property of the public IP - * resource. - * - * @member {string} [provisioningState] The provisioning state of the PublicIP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['Resource'] */ class PublicIPAddress extends models['Resource'] { + /** + * Create a PublicIPAddress. + * @member {object} [sku] The public IP address SKU. + * @member {string} [sku.name] Name of a public IP address SKU. Possible + * values include: 'Basic', 'Standard' + * @member {string} [publicIPAllocationMethod] The public IP allocation + * method. Possible values are: 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + * @member {string} [publicIPAddressVersion] The public IP address version. + * Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', + * 'IPv6' + * @member {object} [ipConfiguration] The IP configuration associated with + * the public IP address. + * @member {string} [ipConfiguration.privateIPAddress] The private IP address + * of the IP configuration. + * @member {string} [ipConfiguration.privateIPAllocationMethod] The private + * IP allocation method. Possible values are 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * @member {object} [ipConfiguration.subnet] The reference of the subnet + * resource. + * @member {string} [ipConfiguration.subnet.addressPrefix] The address prefix + * for the subnet. + * @member {object} [ipConfiguration.subnet.networkSecurityGroup] The + * reference of the NetworkSecurityGroup resource. + * @member {array} + * [ipConfiguration.subnet.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * @member {array} + * [ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * @member {array} + * [ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] A + * collection of references to network interfaces. + * @member {array} [ipConfiguration.subnet.networkSecurityGroup.subnets] A + * collection of references to subnets. + * @member {string} + * [ipConfiguration.subnet.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * @member {string} + * [ipConfiguration.subnet.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [ipConfiguration.subnet.networkSecurityGroup.etag] A + * unique read-only string that changes whenever the resource is updated. + * @member {object} [ipConfiguration.subnet.routeTable] The reference of the + * RouteTable resource. + * @member {array} [ipConfiguration.subnet.routeTable.routes] Collection of + * routes contained within a route table. + * @member {array} [ipConfiguration.subnet.routeTable.subnets] A collection + * of references to subnets. + * @member {string} [ipConfiguration.subnet.routeTable.provisioningState] The + * provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [ipConfiguration.subnet.routeTable.etag] Gets a unique + * read-only string that changes whenever the resource is updated. + * @member {array} [ipConfiguration.subnet.serviceEndpoints] An array of + * service endpoints. + * @member {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of + * references to the network interface IP configurations using subnet. + * @member {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an + * array of references to the external resources using subnet. + * @member {string} [ipConfiguration.subnet.provisioningState] The + * provisioning state of the resource. + * @member {string} [ipConfiguration.subnet.name] The name of the resource + * that is unique within a resource group. This name can be used to access + * the resource. + * @member {string} [ipConfiguration.subnet.etag] A unique read-only string + * that changes whenever the resource is updated. + * @member {object} [ipConfiguration.publicIPAddress] The reference of the + * public IP resource. + * @member {string} [ipConfiguration.provisioningState] Gets the provisioning + * state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [ipConfiguration.name] The name of the resource that is + * unique within a resource group. This name can be used to access the + * resource. + * @member {string} [ipConfiguration.etag] A unique read-only string that + * changes whenever the resource is updated. + * @member {object} [dnsSettings] The FQDN of the DNS record associated with + * the public IP address. + * @member {string} [dnsSettings.domainNameLabel] Gets or sets the Domain + * name label.The concatenation of the domain name label and the regionalized + * DNS zone make up the fully qualified domain name associated with the + * public IP address. If a domain name label is specified, an A DNS record is + * created for the public IP in the Microsoft Azure DNS system. + * @member {string} [dnsSettings.fqdn] Gets the FQDN, Fully qualified domain + * name of the A DNS record associated with the public IP. This is the + * concatenation of the domainNameLabel and the regionalized DNS zone. + * @member {string} [dnsSettings.reverseFqdn] Gets or Sets the Reverse FQDN. + * A user-visible, fully qualified domain name that resolves to this public + * IP address. If the reverseFqdn is specified, then a PTR DNS record is + * created pointing from the IP address in the in-addr.arpa domain to the + * reverse FQDN. + * @member {string} [ipAddress] The IP address associated with the public IP + * address resource. + * @member {number} [idleTimeoutInMinutes] The idle timeout of the public IP + * address. + * @member {string} [resourceGuid] The resource GUID property of the public + * IP resource. + * @member {string} [provisioningState] The provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } @@ -214,6 +185,14 @@ class PublicIPAddress extends models['Resource'] { } } }, + sku: { + required: false, + serializedName: 'sku', + type: { + name: 'Composite', + className: 'PublicIPAddressSku' + } + }, publicIPAllocationMethod: { required: false, serializedName: 'properties.publicIPAllocationMethod', diff --git a/lib/services/networkManagement2/lib/models/publicIPAddressDnsSettings.js b/lib/services/networkManagement2/lib/models/publicIPAddressDnsSettings.js index 08309d0c05..1381dca87a 100644 --- a/lib/services/networkManagement2/lib/models/publicIPAddressDnsSettings.js +++ b/lib/services/networkManagement2/lib/models/publicIPAddressDnsSettings.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,28 +11,26 @@ 'use strict'; /** - * @class - * Initializes a new instance of the PublicIPAddressDnsSettings class. - * @constructor * Contains FQDN of the DNS record associated with the public IP address * - * @member {string} [domainNameLabel] Gets or sets the Domain name label.The - * concatenation of the domain name label and the regionalized DNS zone make up - * the fully qualified domain name associated with the public IP address. If a - * domain name label is specified, an A DNS record is created for the public IP - * in the Microsoft Azure DNS system. - * - * @member {string} [fqdn] Gets the FQDN, Fully qualified domain name of the A - * DNS record associated with the public IP. This is the concatenation of the - * domainNameLabel and the regionalized DNS zone. - * - * @member {string} [reverseFqdn] Gets or Sets the Reverse FQDN. A - * user-visible, fully qualified domain name that resolves to this public IP - * address. If the reverseFqdn is specified, then a PTR DNS record is created - * pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. - * */ class PublicIPAddressDnsSettings { + /** + * Create a PublicIPAddressDnsSettings. + * @member {string} [domainNameLabel] Gets or sets the Domain name label.The + * concatenation of the domain name label and the regionalized DNS zone make + * up the fully qualified domain name associated with the public IP address. + * If a domain name label is specified, an A DNS record is created for the + * public IP in the Microsoft Azure DNS system. + * @member {string} [fqdn] Gets the FQDN, Fully qualified domain name of the + * A DNS record associated with the public IP. This is the concatenation of + * the domainNameLabel and the regionalized DNS zone. + * @member {string} [reverseFqdn] Gets or Sets the Reverse FQDN. A + * user-visible, fully qualified domain name that resolves to this public IP + * address. If the reverseFqdn is specified, then a PTR DNS record is created + * pointing from the IP address in the in-addr.arpa domain to the reverse + * FQDN. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/publicIPAddressListResult.js b/lib/services/networkManagement2/lib/models/publicIPAddressListResult.js index 1c5c425561..5545b55f0b 100644 --- a/lib/services/networkManagement2/lib/models/publicIPAddressListResult.js +++ b/lib/services/networkManagement2/lib/models/publicIPAddressListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the PublicIPAddressListResult class. - * @constructor * Response for ListPublicIpAddresses API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class PublicIPAddressListResult extends Array { + /** + * Create a PublicIPAddressListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/publicIPAddressSku.js b/lib/services/networkManagement2/lib/models/publicIPAddressSku.js new file mode 100644 index 0000000000..c3198b0439 --- /dev/null +++ b/lib/services/networkManagement2/lib/models/publicIPAddressSku.js @@ -0,0 +1,53 @@ +/* + * 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'; + +/** + * SKU of a public IP address + * + */ +class PublicIPAddressSku { + /** + * Create a PublicIPAddressSku. + * @member {string} [name] Name of a public IP address SKU. Possible values + * include: 'Basic', 'Standard' + */ + constructor() { + } + + /** + * Defines the metadata of PublicIPAddressSku + * + * @returns {object} metadata of PublicIPAddressSku + * + */ + mapper() { + return { + required: false, + serializedName: 'PublicIPAddressSku', + type: { + name: 'Composite', + className: 'PublicIPAddressSku', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = PublicIPAddressSku; diff --git a/lib/services/networkManagement2/lib/models/queryTroubleshootingParameters.js b/lib/services/networkManagement2/lib/models/queryTroubleshootingParameters.js index 7aec853960..ffca4c1894 100644 --- a/lib/services/networkManagement2/lib/models/queryTroubleshootingParameters.js +++ b/lib/services/networkManagement2/lib/models/queryTroubleshootingParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the QueryTroubleshootingParameters class. - * @constructor * Parameters that define the resource to query the troubleshooting result. * - * @member {string} targetResourceId The target resource ID to query the - * troubleshooting result. - * */ class QueryTroubleshootingParameters { + /** + * Create a QueryTroubleshootingParameters. + * @member {string} targetResourceId The target resource ID to query the + * troubleshooting result. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/resource.js b/lib/services/networkManagement2/lib/models/resource.js index ee777590eb..cbf0836276 100644 --- a/lib/services/networkManagement2/lib/models/resource.js +++ b/lib/services/networkManagement2/lib/models/resource.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,21 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Resource class. - * @constructor - * @member {string} [id] Resource ID. - * - * @member {string} [name] Resource name. - * - * @member {string} [type] Resource type. - * - * @member {string} [location] Resource location. - * - * @member {object} [tags] Resource tags. + * Common resource representation. * + * @extends models['BaseResource'] */ class Resource extends models['BaseResource'] { + /** + * Create a Resource. + * @member {string} [id] Resource ID. + * @member {string} [name] Resource name. + * @member {string} [type] Resource type. + * @member {string} [location] Resource location. + * @member {object} [tags] Resource tags. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/resourceNavigationLink.js b/lib/services/networkManagement2/lib/models/resourceNavigationLink.js index 5e8b299399..998fc4a73e 100644 --- a/lib/services/networkManagement2/lib/models/resourceNavigationLink.js +++ b/lib/services/networkManagement2/lib/models/resourceNavigationLink.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,26 +13,23 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ResourceNavigationLink class. - * @constructor * ResourceNavigationLink resource. * - * @member {string} [linkedResourceType] Resource type of the linked resource. - * - * @member {string} [link] Link to the external resource - * - * @member {string} [provisioningState] Provisioning state of the - * ResourceNavigationLink resource. - * - * @member {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class ResourceNavigationLink extends models['SubResource'] { + /** + * Create a ResourceNavigationLink. + * @member {string} [linkedResourceType] Resource type of the linked + * resource. + * @member {string} [link] Link to the external resource + * @member {string} [provisioningState] Provisioning state of the + * ResourceNavigationLink resource. + * @member {string} [name] Name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/retentionPolicyParameters.js b/lib/services/networkManagement2/lib/models/retentionPolicyParameters.js index 7cb817b935..85a9101d3b 100644 --- a/lib/services/networkManagement2/lib/models/retentionPolicyParameters.js +++ b/lib/services/networkManagement2/lib/models/retentionPolicyParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,19 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the RetentionPolicyParameters class. - * @constructor * Parameters that define the retention policy for flow log. * - * @member {number} [days] Number of days to retain flow log records. Default - * value: 0 . - * - * @member {boolean} [enabled] Flag to enable/disable retention. Default value: - * false . - * */ class RetentionPolicyParameters { + /** + * Create a RetentionPolicyParameters. + * @member {number} [days] Number of days to retain flow log records. Default + * value: 0 . + * @member {boolean} [enabled] Flag to enable/disable retention. Default + * value: false . + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/route.js b/lib/services/networkManagement2/lib/models/route.js index 0a8e9e5db7..8fb7c8b2b8 100644 --- a/lib/services/networkManagement2/lib/models/route.js +++ b/lib/services/networkManagement2/lib/models/route.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,34 +13,30 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Route class. - * @constructor * Route resource * - * @member {string} [addressPrefix] The destination CIDR to which the route - * applies. - * - * @member {string} nextHopType The type of Azure hop the packet should be sent - * to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', - * 'VirtualAppliance', and 'None'. Possible values include: - * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' - * - * @member {string} [nextHopIpAddress] The IP address packets should be - * forwarded to. Next hop values are only allowed in routes where the next hop - * type is VirtualAppliance. - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class Route extends models['SubResource'] { + /** + * Create a Route. + * @member {string} [addressPrefix] The destination CIDR to which the route + * applies. + * @member {string} nextHopType The type of Azure hop the packet should be + * sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', + * 'Internet', 'VirtualAppliance', and 'None'. Possible values include: + * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + * 'None' + * @member {string} [nextHopIpAddress] The IP address packets should be + * forwarded to. Next hop values are only allowed in routes where the next + * hop type is VirtualAppliance. + * @member {string} [provisioningState] The provisioning state of the + * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/routeFilter.js b/lib/services/networkManagement2/lib/models/routeFilter.js index a8eca9e477..3c965667ac 100644 --- a/lib/services/networkManagement2/lib/models/routeFilter.js +++ b/lib/services/networkManagement2/lib/models/routeFilter.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,25 +13,23 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the RouteFilter class. - * @constructor * Route Filter Resource. * - * @member {array} [rules] Collection of RouteFilterRules contained within a - * route filter. - * - * @member {array} [peerings] A collection of references to express route - * circuit peerings. - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. - * - * @member {string} [etag] Gets a unique read-only string that changes whenever - * the resource is updated. - * + * @extends models['Resource'] */ class RouteFilter extends models['Resource'] { + /** + * Create a RouteFilter. + * @member {array} [rules] Collection of RouteFilterRules contained within a + * route filter. + * @member {array} [peerings] A collection of references to express route + * circuit peerings. + * @member {string} [provisioningState] The provisioning state of the + * resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and + * 'Failed'. + * @member {string} [etag] Gets a unique read-only string that changes + * whenever the resource is updated. + */ constructor() { super(); } @@ -111,7 +109,6 @@ class RouteFilter extends models['Resource'] { }, peerings: { required: false, - readOnly: true, serializedName: 'properties.peerings', type: { name: 'Sequence', diff --git a/lib/services/networkManagement2/lib/models/routeFilterListResult.js b/lib/services/networkManagement2/lib/models/routeFilterListResult.js index 0ff7838623..07f60cfe43 100644 --- a/lib/services/networkManagement2/lib/models/routeFilterListResult.js +++ b/lib/services/networkManagement2/lib/models/routeFilterListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the RouteFilterListResult class. - * @constructor * Response for the ListRouteFilters API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class RouteFilterListResult extends Array { + /** + * Create a RouteFilterListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/routeFilterRule.js b/lib/services/networkManagement2/lib/models/routeFilterRule.js index 64979f4aea..4782bf3bee 100644 --- a/lib/services/networkManagement2/lib/models/routeFilterRule.js +++ b/lib/services/networkManagement2/lib/models/routeFilterRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,32 +13,27 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the RouteFilterRule class. - * @constructor * Route Filter Rule Resource * - * @member {string} access The access type of the rule. Valid values are: - * 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' - * - * @member {array} communities The collection for bgp community values to - * filter on. e.g. ['12076:5010','12076:5020'] - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [location] Resource location. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * - * @member {object} [tags] Resource tags. - * + * @extends models['SubResource'] */ class RouteFilterRule extends models['SubResource'] { + /** + * Create a RouteFilterRule. + * @member {string} access The access type of the rule. Valid values are: + * 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' + * @member {array} communities The collection for bgp community values to + * filter on. e.g. ['12076:5010','12076:5020'] + * @member {string} [provisioningState] The provisioning state of the + * resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and + * 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [location] Resource location. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * @member {object} [tags] Resource tags. + */ constructor() { super(); } @@ -104,7 +99,6 @@ class RouteFilterRule extends models['SubResource'] { }, name: { required: false, - readOnly: true, serializedName: 'name', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/routeFilterRuleListResult.js b/lib/services/networkManagement2/lib/models/routeFilterRuleListResult.js index 1ba9619d16..d5fc3d232a 100644 --- a/lib/services/networkManagement2/lib/models/routeFilterRuleListResult.js +++ b/lib/services/networkManagement2/lib/models/routeFilterRuleListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the RouteFilterRuleListResult class. - * @constructor * Response for the ListRouteFilterRules API service call - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class RouteFilterRuleListResult extends Array { + /** + * Create a RouteFilterRuleListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/routeListResult.js b/lib/services/networkManagement2/lib/models/routeListResult.js index c93fecfbc8..d5e97bccfd 100644 --- a/lib/services/networkManagement2/lib/models/routeListResult.js +++ b/lib/services/networkManagement2/lib/models/routeListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the RouteListResult class. - * @constructor * Response for the ListRoute API service call - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class RouteListResult extends Array { + /** + * Create a RouteListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/routeTable.js b/lib/services/networkManagement2/lib/models/routeTable.js index 0a679318c6..b64368b2e0 100644 --- a/lib/services/networkManagement2/lib/models/routeTable.js +++ b/lib/services/networkManagement2/lib/models/routeTable.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,24 +13,21 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the RouteTable class. - * @constructor * Route table resource. * - * @member {array} [routes] Collection of routes contained within a route - * table. - * - * @member {array} [subnets] A collection of references to subnets. - * - * @member {string} [provisioningState] The provisioning state of the resource. - * Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [etag] Gets a unique read-only string that changes whenever - * the resource is updated. - * + * @extends models['Resource'] */ class RouteTable extends models['Resource'] { + /** + * Create a RouteTable. + * @member {array} [routes] Collection of routes contained within a route + * table. + * @member {array} [subnets] A collection of references to subnets. + * @member {string} [provisioningState] The provisioning state of the + * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [etag] Gets a unique read-only string that changes + * whenever the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/routeTableListResult.js b/lib/services/networkManagement2/lib/models/routeTableListResult.js index c513d41700..e7fcdff6bc 100644 --- a/lib/services/networkManagement2/lib/models/routeTableListResult.js +++ b/lib/services/networkManagement2/lib/models/routeTableListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the RouteTableListResult class. - * @constructor * Response for the ListRouteTable API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class RouteTableListResult extends Array { + /** + * Create a RouteTableListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/securityGroupNetworkInterface.js b/lib/services/networkManagement2/lib/models/securityGroupNetworkInterface.js index b844b276c1..fab0c7c38e 100644 --- a/lib/services/networkManagement2/lib/models/securityGroupNetworkInterface.js +++ b/lib/services/networkManagement2/lib/models/securityGroupNetworkInterface.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,39 +13,30 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the SecurityGroupNetworkInterface class. - * @constructor * Network interface and all its associated security rules. * - * @member {string} [id] ID of the network interface. - * - * @member {object} [securityRuleAssociations] - * - * @member {object} [securityRuleAssociations.networkInterfaceAssociation] - * - * @member {string} [securityRuleAssociations.networkInterfaceAssociation.id] - * Network interface ID. - * - * @member {array} - * [securityRuleAssociations.networkInterfaceAssociation.securityRules] - * Collection of custom security rules. - * - * @member {object} [securityRuleAssociations.subnetAssociation] - * - * @member {string} [securityRuleAssociations.subnetAssociation.id] Subnet ID. - * - * @member {array} [securityRuleAssociations.subnetAssociation.securityRules] - * Collection of custom security rules. - * - * @member {array} [securityRuleAssociations.defaultSecurityRules] Collection - * of default security rules of the network security group. - * - * @member {array} [securityRuleAssociations.effectiveSecurityRules] Collection - * of effective security rules. - * */ class SecurityGroupNetworkInterface { + /** + * Create a SecurityGroupNetworkInterface. + * @member {string} [id] ID of the network interface. + * @member {object} [securityRuleAssociations] + * @member {object} [securityRuleAssociations.networkInterfaceAssociation] + * @member {string} [securityRuleAssociations.networkInterfaceAssociation.id] + * Network interface ID. + * @member {array} + * [securityRuleAssociations.networkInterfaceAssociation.securityRules] + * Collection of custom security rules. + * @member {object} [securityRuleAssociations.subnetAssociation] + * @member {string} [securityRuleAssociations.subnetAssociation.id] Subnet + * ID. + * @member {array} [securityRuleAssociations.subnetAssociation.securityRules] + * Collection of custom security rules. + * @member {array} [securityRuleAssociations.defaultSecurityRules] Collection + * of default security rules of the network security group. + * @member {array} [securityRuleAssociations.effectiveSecurityRules] + * Collection of effective security rules. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/securityGroupViewParameters.js b/lib/services/networkManagement2/lib/models/securityGroupViewParameters.js index 9296a01740..f44e5ddca7 100644 --- a/lib/services/networkManagement2/lib/models/securityGroupViewParameters.js +++ b/lib/services/networkManagement2/lib/models/securityGroupViewParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the SecurityGroupViewParameters class. - * @constructor * Parameters that define the VM to check security groups for. * - * @member {string} targetResourceId ID of the target VM. - * */ class SecurityGroupViewParameters { + /** + * Create a SecurityGroupViewParameters. + * @member {string} targetResourceId ID of the target VM. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/securityGroupViewResult.js b/lib/services/networkManagement2/lib/models/securityGroupViewResult.js index 0f41d1df30..4e15fddac6 100644 --- a/lib/services/networkManagement2/lib/models/securityGroupViewResult.js +++ b/lib/services/networkManagement2/lib/models/securityGroupViewResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,16 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the SecurityGroupViewResult class. - * @constructor * The information about security rules applied to the specified VM. * - * @member {array} [networkInterfaces] List of network interfaces on the - * specified VM. - * */ class SecurityGroupViewResult { + /** + * Create a SecurityGroupViewResult. + * @member {array} [networkInterfaces] List of network interfaces on the + * specified VM. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/securityRule.js b/lib/services/networkManagement2/lib/models/securityRule.js index 7b5e8d68a9..cd92d3a380 100644 --- a/lib/services/networkManagement2/lib/models/securityRule.js +++ b/lib/services/networkManagement2/lib/models/securityRule.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,58 +13,54 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the SecurityRule class. - * @constructor * Network security rule. * - * @member {string} [description] A description for this rule. Restricted to - * 140 chars. - * - * @member {string} protocol Network protocol this rule applies to. Possible - * values are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', '*' - * - * @member {string} [sourcePortRange] The source port or range. Integer or - * range between 0 and 65535. Asterix '*' can also be used to match all ports. - * - * @member {string} [destinationPortRange] The destination port or range. - * Integer or range between 0 and 65535. Asterix '*' can also be used to match - * all ports. - * - * @member {string} sourceAddressPrefix The CIDR or source IP range. Asterix - * '*' can also be used to match all source IPs. Default tags such as - * 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If - * this is an ingress rule, specifies where network traffic originates from. - * - * @member {string} destinationAddressPrefix The destination address prefix. - * CIDR or source IP range. Asterix '*' can also be used to match all source - * IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and - * 'Internet' can also be used. - * - * @member {string} access The network traffic is allowed or denied. Possible - * values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny' - * - * @member {number} [priority] The priority of the rule. The value can be - * between 100 and 4096. The priority number must be unique for each rule in - * the collection. The lower the priority number, the higher the priority of - * the rule. - * - * @member {string} direction The direction of the rule. The direction - * specifies if rule will be evaluated on incoming or outcoming traffic. - * Possible values are: 'Inbound' and 'Outbound'. Possible values include: - * 'Inbound', 'Outbound' - * - * @member {string} [provisioningState] The provisioning state of the public IP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class SecurityRule extends models['SubResource'] { + /** + * Create a SecurityRule. + * @member {string} [description] A description for this rule. Restricted to + * 140 chars. + * @member {string} protocol Network protocol this rule applies to. Possible + * values are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', + * '*' + * @member {string} [sourcePortRange] The source port or range. Integer or + * range between 0 and 65535. Asterix '*' can also be used to match all + * ports. + * @member {string} [destinationPortRange] The destination port or range. + * Integer or range between 0 and 65535. Asterix '*' can also be used to + * match all ports. + * @member {string} sourceAddressPrefix The CIDR or source IP range. Asterix + * '*' can also be used to match all source IPs. Default tags such as + * 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If + * this is an ingress rule, specifies where network traffic originates from. + * @member {array} [sourceAddressPrefixes] The CIDR or source IP ranges. + * @member {string} destinationAddressPrefix The destination address prefix. + * CIDR or destination IP range. Asterix '*' can also be used to match all + * source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + * 'Internet' can also be used. + * @member {array} [destinationAddressPrefixes] The destination address + * prefixes. CIDR or destination IP ranges. + * @member {array} [sourcePortRanges] The source port ranges. + * @member {array} [destinationPortRanges] The destination port ranges. + * @member {string} access The network traffic is allowed or denied. Possible + * values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny' + * @member {number} [priority] The priority of the rule. The value can be + * between 100 and 4096. The priority number must be unique for each rule in + * the collection. The lower the priority number, the higher the priority of + * the rule. + * @member {string} direction The direction of the rule. The direction + * specifies if rule will be evaluated on incoming or outcoming traffic. + * Possible values are: 'Inbound' and 'Outbound'. Possible values include: + * 'Inbound', 'Outbound' + * @member {string} [provisioningState] The provisioning state of the public + * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } @@ -125,6 +121,20 @@ class SecurityRule extends models['SubResource'] { name: 'String' } }, + sourceAddressPrefixes: { + required: false, + serializedName: 'properties.sourceAddressPrefixes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, destinationAddressPrefix: { required: true, serializedName: 'properties.destinationAddressPrefix', @@ -132,6 +142,48 @@ class SecurityRule extends models['SubResource'] { name: 'String' } }, + destinationAddressPrefixes: { + required: false, + serializedName: 'properties.destinationAddressPrefixes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + sourcePortRanges: { + required: false, + serializedName: 'properties.sourcePortRanges', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + destinationPortRanges: { + required: false, + serializedName: 'properties.destinationPortRanges', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, access: { required: true, serializedName: 'properties.access', diff --git a/lib/services/networkManagement2/lib/models/securityRuleAssociations.js b/lib/services/networkManagement2/lib/models/securityRuleAssociations.js index c55cb3a737..bfb3321308 100644 --- a/lib/services/networkManagement2/lib/models/securityRuleAssociations.js +++ b/lib/services/networkManagement2/lib/models/securityRuleAssociations.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,33 +13,25 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the SecurityRuleAssociations class. - * @constructor * All security rules associated with the network interface. * - * @member {object} [networkInterfaceAssociation] - * - * @member {string} [networkInterfaceAssociation.id] Network interface ID. - * - * @member {array} [networkInterfaceAssociation.securityRules] Collection of - * custom security rules. - * - * @member {object} [subnetAssociation] - * - * @member {string} [subnetAssociation.id] Subnet ID. - * - * @member {array} [subnetAssociation.securityRules] Collection of custom - * security rules. - * - * @member {array} [defaultSecurityRules] Collection of default security rules - * of the network security group. - * - * @member {array} [effectiveSecurityRules] Collection of effective security - * rules. - * */ class SecurityRuleAssociations { + /** + * Create a SecurityRuleAssociations. + * @member {object} [networkInterfaceAssociation] + * @member {string} [networkInterfaceAssociation.id] Network interface ID. + * @member {array} [networkInterfaceAssociation.securityRules] Collection of + * custom security rules. + * @member {object} [subnetAssociation] + * @member {string} [subnetAssociation.id] Subnet ID. + * @member {array} [subnetAssociation.securityRules] Collection of custom + * security rules. + * @member {array} [defaultSecurityRules] Collection of default security + * rules of the network security group. + * @member {array} [effectiveSecurityRules] Collection of effective security + * rules. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/securityRuleListResult.js b/lib/services/networkManagement2/lib/models/securityRuleListResult.js index 0254a63078..f8e55a66b4 100644 --- a/lib/services/networkManagement2/lib/models/securityRuleListResult.js +++ b/lib/services/networkManagement2/lib/models/securityRuleListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the SecurityRuleListResult class. - * @constructor * Response for ListSecurityRule API service call. Retrieves all security rules * that belongs to a network security group. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class SecurityRuleListResult extends Array { + /** + * Create a SecurityRuleListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/privateAccessServicePropertiesFormat.js b/lib/services/networkManagement2/lib/models/serviceEndpointPropertiesFormat.js similarity index 60% rename from lib/services/networkManagement2/lib/models/privateAccessServicePropertiesFormat.js rename to lib/services/networkManagement2/lib/models/serviceEndpointPropertiesFormat.js index 5f6fcc92e5..710f651b4e 100644 --- a/lib/services/networkManagement2/lib/models/privateAccessServicePropertiesFormat.js +++ b/lib/services/networkManagement2/lib/models/serviceEndpointPropertiesFormat.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,35 +11,33 @@ 'use strict'; /** - * @class - * Initializes a new instance of the PrivateAccessServicePropertiesFormat class. - * @constructor - * The private access service properties. - * - * @member {string} [service] The type of the private access. - * - * @member {array} [locations] A list of locations. - * - * @member {string} [provisioningState] The provisioning state of the resource. + * The service endpoint properties. * */ -class PrivateAccessServicePropertiesFormat { +class ServiceEndpointPropertiesFormat { + /** + * Create a ServiceEndpointPropertiesFormat. + * @member {string} [service] The type of the endpoint service. + * @member {array} [locations] A list of locations. + * @member {string} [provisioningState] The provisioning state of the + * resource. + */ constructor() { } /** - * Defines the metadata of PrivateAccessServicePropertiesFormat + * Defines the metadata of ServiceEndpointPropertiesFormat * - * @returns {object} metadata of PrivateAccessServicePropertiesFormat + * @returns {object} metadata of ServiceEndpointPropertiesFormat * */ mapper() { return { required: false, - serializedName: 'PrivateAccessServicePropertiesFormat', + serializedName: 'ServiceEndpointPropertiesFormat', type: { name: 'Composite', - className: 'PrivateAccessServicePropertiesFormat', + className: 'ServiceEndpointPropertiesFormat', modelProperties: { service: { required: false, @@ -75,4 +73,4 @@ class PrivateAccessServicePropertiesFormat { } } -module.exports = PrivateAccessServicePropertiesFormat; +module.exports = ServiceEndpointPropertiesFormat; diff --git a/lib/services/networkManagement2/lib/models/subResource.js b/lib/services/networkManagement2/lib/models/subResource.js index bbe837799b..51215f1707 100644 --- a/lib/services/networkManagement2/lib/models/subResource.js +++ b/lib/services/networkManagement2/lib/models/subResource.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,13 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the SubResource class. - * @constructor - * @member {string} [id] Resource ID. + * Reference to another subresource. * + * @extends models['BaseResource'] */ class SubResource extends models['BaseResource'] { + /** + * Create a SubResource. + * @member {string} [id] Resource ID. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/subnet.js b/lib/services/networkManagement2/lib/models/subnet.js index 8113dd261a..d87d95d1e4 100644 --- a/lib/services/networkManagement2/lib/models/subnet.js +++ b/lib/services/networkManagement2/lib/models/subnet.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,70 +13,52 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Subnet class. - * @constructor * Subnet in a virtual network resource. * - * @member {string} [addressPrefix] The address prefix for the subnet. - * - * @member {object} [networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * - * @member {array} [networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * - * @member {array} [networkSecurityGroup.defaultSecurityRules] The default - * security rules of network security group. - * - * @member {array} [networkSecurityGroup.networkInterfaces] A collection of - * references to network interfaces. - * - * @member {array} [networkSecurityGroup.subnets] A collection of references to - * subnets. - * - * @member {string} [networkSecurityGroup.resourceGuid] The resource GUID - * property of the network security group resource. - * - * @member {string} [networkSecurityGroup.provisioningState] The provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [networkSecurityGroup.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {object} [routeTable] The reference of the RouteTable resource. - * - * @member {array} [routeTable.routes] Collection of routes contained within a - * route table. - * - * @member {array} [routeTable.subnets] A collection of references to subnets. - * - * @member {string} [routeTable.provisioningState] The provisioning state of - * the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [routeTable.etag] Gets a unique read-only string that - * changes whenever the resource is updated. - * - * @member {array} [privateAccessServices] An array of private access services - * values. - * - * @member {array} [ipConfigurations] Gets an array of references to the - * network interface IP configurations using subnet. - * - * @member {array} [resourceNavigationLinks] Gets an array of references to the - * external resources using subnet. - * - * @member {string} [provisioningState] The provisioning state of the resource. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class Subnet extends models['SubResource'] { + /** + * Create a Subnet. + * @member {string} [addressPrefix] The address prefix for the subnet. + * @member {object} [networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * @member {array} [networkSecurityGroup.securityRules] A collection of + * security rules of the network security group. + * @member {array} [networkSecurityGroup.defaultSecurityRules] The default + * security rules of network security group. + * @member {array} [networkSecurityGroup.networkInterfaces] A collection of + * references to network interfaces. + * @member {array} [networkSecurityGroup.subnets] A collection of references + * to subnets. + * @member {string} [networkSecurityGroup.resourceGuid] The resource GUID + * property of the network security group resource. + * @member {string} [networkSecurityGroup.provisioningState] The provisioning + * state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [networkSecurityGroup.etag] A unique read-only string + * that changes whenever the resource is updated. + * @member {object} [routeTable] The reference of the RouteTable resource. + * @member {array} [routeTable.routes] Collection of routes contained within + * a route table. + * @member {array} [routeTable.subnets] A collection of references to + * subnets. + * @member {string} [routeTable.provisioningState] The provisioning state of + * the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [routeTable.etag] Gets a unique read-only string that + * changes whenever the resource is updated. + * @member {array} [serviceEndpoints] An array of service endpoints. + * @member {array} [ipConfigurations] Gets an array of references to the + * network interface IP configurations using subnet. + * @member {array} [resourceNavigationLinks] Gets an array of references to + * the external resources using subnet. + * @member {string} [provisioningState] The provisioning state of the + * resource. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } @@ -125,17 +107,17 @@ class Subnet extends models['SubResource'] { className: 'RouteTable' } }, - privateAccessServices: { + serviceEndpoints: { required: false, - serializedName: 'properties.privateAccessServices', + serializedName: 'properties.serviceEndpoints', type: { name: 'Sequence', element: { required: false, - serializedName: 'PrivateAccessServicePropertiesFormatElementType', + serializedName: 'ServiceEndpointPropertiesFormatElementType', type: { name: 'Composite', - className: 'PrivateAccessServicePropertiesFormat' + className: 'ServiceEndpointPropertiesFormat' } } } diff --git a/lib/services/networkManagement2/lib/models/subnetAssociation.js b/lib/services/networkManagement2/lib/models/subnetAssociation.js index d19b89ea45..eadfdd90d5 100644 --- a/lib/services/networkManagement2/lib/models/subnetAssociation.js +++ b/lib/services/networkManagement2/lib/models/subnetAssociation.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,17 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the SubnetAssociation class. - * @constructor * Network interface and its custom security rules. * - * @member {string} [id] Subnet ID. - * - * @member {array} [securityRules] Collection of custom security rules. - * */ class SubnetAssociation { + /** + * Create a SubnetAssociation. + * @member {string} [id] Subnet ID. + * @member {array} [securityRules] Collection of custom security rules. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/subnetListResult.js b/lib/services/networkManagement2/lib/models/subnetListResult.js index 2843f28a1c..fd7e58bb19 100644 --- a/lib/services/networkManagement2/lib/models/subnetListResult.js +++ b/lib/services/networkManagement2/lib/models/subnetListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the SubnetListResult class. - * @constructor * Response for ListSubnets API service callRetrieves all subnet that belongs * to a virtual network - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class SubnetListResult extends Array { + /** + * Create a SubnetListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/topology.js b/lib/services/networkManagement2/lib/models/topology.js index 0c2e45e6be..3aea099c87 100644 --- a/lib/services/networkManagement2/lib/models/topology.js +++ b/lib/services/networkManagement2/lib/models/topology.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,23 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Topology class. - * @constructor * Topology of the specified resource group. * - * @member {string} [id] GUID representing the operation id. - * - * @member {date} [createdDateTime] The datetime when the topology was - * initially created for the resource group. - * - * @member {date} [lastModified] The datetime when the topology was last - * modified. - * - * @member {array} [resources] - * */ class Topology { + /** + * Create a Topology. + * @member {string} [id] GUID representing the operation id. + * @member {date} [createdDateTime] The datetime when the topology was + * initially created for the resource group. + * @member {date} [lastModified] The datetime when the topology was last + * modified. + * @member {array} [resources] + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/topologyAssociation.js b/lib/services/networkManagement2/lib/models/topologyAssociation.js index 6288a9c054..af3667e2ec 100644 --- a/lib/services/networkManagement2/lib/models/topologyAssociation.js +++ b/lib/services/networkManagement2/lib/models/topologyAssociation.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,23 +11,20 @@ 'use strict'; /** - * @class - * Initializes a new instance of the TopologyAssociation class. - * @constructor * Resources that have an association with the parent resource. * - * @member {string} [name] The name of the resource that is associated with the - * parent resource. - * - * @member {string} [resourceId] The ID of the resource that is associated with - * the parent resource. - * - * @member {string} [associationType] The association type of the child - * resource to the parent resource. Possible values include: 'Associated', - * 'Contains' - * */ class TopologyAssociation { + /** + * Create a TopologyAssociation. + * @member {string} [name] The name of the resource that is associated with + * the parent resource. + * @member {string} [resourceId] The ID of the resource that is associated + * with the parent resource. + * @member {string} [associationType] The association type of the child + * resource to the parent resource. Possible values include: 'Associated', + * 'Contains' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/topologyParameters.js b/lib/services/networkManagement2/lib/models/topologyParameters.js index 751e140436..ef57064fdd 100644 --- a/lib/services/networkManagement2/lib/models/topologyParameters.js +++ b/lib/services/networkManagement2/lib/models/topologyParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the TopologyParameters class. - * @constructor * Parameters that define the representation of topology. * - * @member {string} targetResourceGroupName The name of the target resource - * group to perform topology on. - * */ class TopologyParameters { + /** + * Create a TopologyParameters. + * @member {string} targetResourceGroupName The name of the target resource + * group to perform topology on. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/topologyResource.js b/lib/services/networkManagement2/lib/models/topologyResource.js index ccdaa18878..3d3475924c 100644 --- a/lib/services/networkManagement2/lib/models/topologyResource.js +++ b/lib/services/networkManagement2/lib/models/topologyResource.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,22 +13,18 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the TopologyResource class. - * @constructor * The network resource topology information for the given resource group. * - * @member {string} [name] Name of the resource. - * - * @member {string} [id] ID of the resource. - * - * @member {string} [location] Resource location. - * - * @member {array} [associations] Holds the associations the resource has with - * other resources in the resource group. - * */ class TopologyResource { + /** + * Create a TopologyResource. + * @member {string} [name] Name of the resource. + * @member {string} [id] ID of the resource. + * @member {string} [location] Resource location. + * @member {array} [associations] Holds the associations the resource has + * with other resources in the resource group. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/troubleshootingDetails.js b/lib/services/networkManagement2/lib/models/troubleshootingDetails.js index 472dc23f50..a05817b8c9 100644 --- a/lib/services/networkManagement2/lib/models/troubleshootingDetails.js +++ b/lib/services/networkManagement2/lib/models/troubleshootingDetails.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,23 +13,18 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the TroubleshootingDetails class. - * @constructor * Information gained from troubleshooting of specified resource. * - * @member {string} [id] The id of the get troubleshoot operation. - * - * @member {string} [reasonType] Reason type of failure. - * - * @member {string} [summary] A summary of troubleshooting. - * - * @member {string} [detail] Details on troubleshooting results. - * - * @member {array} [recommendedActions] List of recommended actions. - * */ class TroubleshootingDetails { + /** + * Create a TroubleshootingDetails. + * @member {string} [id] The id of the get troubleshoot operation. + * @member {string} [reasonType] Reason type of failure. + * @member {string} [summary] A summary of troubleshooting. + * @member {string} [detail] Details on troubleshooting results. + * @member {array} [recommendedActions] List of recommended actions. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/troubleshootingParameters.js b/lib/services/networkManagement2/lib/models/troubleshootingParameters.js index 4a3fef62e1..d57f7fcc88 100644 --- a/lib/services/networkManagement2/lib/models/troubleshootingParameters.js +++ b/lib/services/networkManagement2/lib/models/troubleshootingParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,21 +11,18 @@ 'use strict'; /** - * @class - * Initializes a new instance of the TroubleshootingParameters class. - * @constructor * Parameters that define the resource to troubleshoot. * - * @member {string} targetResourceId The target resource to troubleshoot. - * - * @member {string} storageId The ID for the storage account to save the - * troubleshoot result. - * - * @member {string} storagePath The path to the blob to save the troubleshoot - * result in. - * */ class TroubleshootingParameters { + /** + * Create a TroubleshootingParameters. + * @member {string} targetResourceId The target resource to troubleshoot. + * @member {string} storageId The ID for the storage account to save the + * troubleshoot result. + * @member {string} storagePath The path to the blob to save the troubleshoot + * result in. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/troubleshootingRecommendedActions.js b/lib/services/networkManagement2/lib/models/troubleshootingRecommendedActions.js index 38d269747e..60b1587277 100644 --- a/lib/services/networkManagement2/lib/models/troubleshootingRecommendedActions.js +++ b/lib/services/networkManagement2/lib/models/troubleshootingRecommendedActions.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,23 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the TroubleshootingRecommendedActions class. - * @constructor * Recommended actions based on discovered issues. * - * @member {string} [actionId] ID of the recommended action. - * - * @member {string} [actionText] Description of recommended actions. - * - * @member {string} [actionUri] The uri linking to a documentation for the - * recommended troubleshooting actions. - * - * @member {string} [actionUriText] The information from the URI for the - * recommended troubleshooting actions. - * */ class TroubleshootingRecommendedActions { + /** + * Create a TroubleshootingRecommendedActions. + * @member {string} [actionId] ID of the recommended action. + * @member {string} [actionText] Description of recommended actions. + * @member {string} [actionUri] The uri linking to a documentation for the + * recommended troubleshooting actions. + * @member {string} [actionUriText] The information from the URI for the + * recommended troubleshooting actions. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/troubleshootingResult.js b/lib/services/networkManagement2/lib/models/troubleshootingResult.js index d8e0d17ea3..567714ac73 100644 --- a/lib/services/networkManagement2/lib/models/troubleshootingResult.js +++ b/lib/services/networkManagement2/lib/models/troubleshootingResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,21 +13,17 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the TroubleshootingResult class. - * @constructor * Troubleshooting information gained from specified resource. * - * @member {date} [startTime] The start time of the troubleshooting. - * - * @member {date} [endTime] The end time of the troubleshooting. - * - * @member {string} [code] The result code of the troubleshooting. - * - * @member {array} [results] Information from troubleshooting. - * */ class TroubleshootingResult { + /** + * Create a TroubleshootingResult. + * @member {date} [startTime] The start time of the troubleshooting. + * @member {date} [endTime] The end time of the troubleshooting. + * @member {string} [code] The result code of the troubleshooting. + * @member {array} [results] Information from troubleshooting. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/tunnelConnectionHealth.js b/lib/services/networkManagement2/lib/models/tunnelConnectionHealth.js index 621fe3a757..4f0858957a 100644 --- a/lib/services/networkManagement2/lib/models/tunnelConnectionHealth.js +++ b/lib/services/networkManagement2/lib/models/tunnelConnectionHealth.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,28 +11,23 @@ 'use strict'; /** - * @class - * Initializes a new instance of the TunnelConnectionHealth class. - * @constructor * VirtualNetworkGatewayConnection properties * - * @member {string} [tunnel] Tunnel name. - * - * @member {string} [connectionStatus] Virtual network Gateway connection - * status. Possible values include: 'Unknown', 'Connecting', 'Connected', - * 'NotConnected' - * - * @member {number} [ingressBytesTransferred] The Ingress Bytes Transferred in - * this connection - * - * @member {number} [egressBytesTransferred] The Egress Bytes Transferred in - * this connection - * - * @member {string} [lastConnectionEstablishedUtcTime] The time at which - * connection was established in Utc format. - * */ class TunnelConnectionHealth { + /** + * Create a TunnelConnectionHealth. + * @member {string} [tunnel] Tunnel name. + * @member {string} [connectionStatus] Virtual network Gateway connection + * status. Possible values include: 'Unknown', 'Connecting', 'Connected', + * 'NotConnected' + * @member {number} [ingressBytesTransferred] The Ingress Bytes Transferred + * in this connection + * @member {number} [egressBytesTransferred] The Egress Bytes Transferred in + * this connection + * @member {string} [lastConnectionEstablishedUtcTime] The time at which + * connection was established in Utc format. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/usage.js b/lib/services/networkManagement2/lib/models/usage.js index 7694496242..ef598e7390 100644 --- a/lib/services/networkManagement2/lib/models/usage.js +++ b/lib/services/networkManagement2/lib/models/usage.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,24 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Usage class. - * @constructor * Describes network resource usage. * - * @member {number} currentValue The current value of the usage. - * - * @member {number} limit The limit of usage. - * - * @member {object} name The name of the type of usage. - * - * @member {string} [name.value] A string describing the resource name. - * - * @member {string} [name.localizedValue] A localized string describing the - * resource name. - * */ class Usage { + /** + * Create a Usage. + * @member {number} currentValue The current value of the usage. + * @member {number} limit The limit of usage. + * @member {object} name The name of the type of usage. + * @member {string} [name.value] A string describing the resource name. + * @member {string} [name.localizedValue] A localized string describing the + * resource name. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/usageName.js b/lib/services/networkManagement2/lib/models/usageName.js index e348d74e16..391cb23fe0 100644 --- a/lib/services/networkManagement2/lib/models/usageName.js +++ b/lib/services/networkManagement2/lib/models/usageName.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,18 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the UsageName class. - * @constructor * The usage names. * - * @member {string} [value] A string describing the resource name. - * - * @member {string} [localizedValue] A localized string describing the resource - * name. - * */ class UsageName { + /** + * Create a UsageName. + * @member {string} [value] A string describing the resource name. + * @member {string} [localizedValue] A localized string describing the + * resource name. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/usagesListResult.js b/lib/services/networkManagement2/lib/models/usagesListResult.js index ac188dd3bb..7c5697ddb4 100644 --- a/lib/services/networkManagement2/lib/models/usagesListResult.js +++ b/lib/services/networkManagement2/lib/models/usagesListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the UsagesListResult class. - * @constructor * The list usages operation response. - * - * @member {string} [nextLink] URL to get the next set of results. - * */ class UsagesListResult extends Array { + /** + * Create a UsagesListResult. + * @member {string} [nextLink] URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/verificationIPFlowParameters.js b/lib/services/networkManagement2/lib/models/verificationIPFlowParameters.js index 7d1ce0b620..6270bd0162 100644 --- a/lib/services/networkManagement2/lib/models/verificationIPFlowParameters.js +++ b/lib/services/networkManagement2/lib/models/verificationIPFlowParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,40 +11,32 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VerificationIPFlowParameters class. - * @constructor * Parameters that define the IP flow to be verified. * - * @member {string} targetResourceId The ID of the target resource to perform - * next-hop on. - * - * @member {string} direction The direction of the packet represented as a - * 5-tuple. Possible values include: 'Inbound', 'Outbound' - * - * @member {string} protocol Protocol to be verified on. Possible values - * include: 'TCP', 'UDP' - * - * @member {string} localPort The local port. Acceptable values are a single - * integer in the range (0-65535). Support for * for the source port, which - * depends on the direction. - * - * @member {string} remotePort The remote port. Acceptable values are a single - * integer in the range (0-65535). Support for * for the source port, which - * depends on the direction. - * - * @member {string} localIPAddress The local IP address. Acceptable values are - * valid IPv4 addresses. - * - * @member {string} remoteIPAddress The remote IP address. Acceptable values - * are valid IPv4 addresses. - * - * @member {string} [targetNicResourceId] The NIC ID. (If VM has multiple NICs - * and IP forwarding is enabled on any of them, then this parameter must be - * specified. Otherwise optional). - * */ class VerificationIPFlowParameters { + /** + * Create a VerificationIPFlowParameters. + * @member {string} targetResourceId The ID of the target resource to perform + * next-hop on. + * @member {string} direction The direction of the packet represented as a + * 5-tuple. Possible values include: 'Inbound', 'Outbound' + * @member {string} protocol Protocol to be verified on. Possible values + * include: 'TCP', 'UDP' + * @member {string} localPort The local port. Acceptable values are a single + * integer in the range (0-65535). Support for * for the source port, which + * depends on the direction. + * @member {string} remotePort The remote port. Acceptable values are a + * single integer in the range (0-65535). Support for * for the source port, + * which depends on the direction. + * @member {string} localIPAddress The local IP address. Acceptable values + * are valid IPv4 addresses. + * @member {string} remoteIPAddress The remote IP address. Acceptable values + * are valid IPv4 addresses. + * @member {string} [targetNicResourceId] The NIC ID. (If VM has multiple + * NICs and IP forwarding is enabled on any of them, then this parameter must + * be specified. Otherwise optional). + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/verificationIPFlowResult.js b/lib/services/networkManagement2/lib/models/verificationIPFlowResult.js index e7a363127c..47b6fa77d7 100644 --- a/lib/services/networkManagement2/lib/models/verificationIPFlowResult.js +++ b/lib/services/networkManagement2/lib/models/verificationIPFlowResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,19 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VerificationIPFlowResult class. - * @constructor * Results of IP flow verification on the target resource. * - * @member {string} [access] Indicates whether the traffic is allowed or - * denied. Possible values include: 'Allow', 'Deny' - * - * @member {string} [ruleName] Name of the rule. If input is not matched - * against any security rule, it is not displayed. - * */ class VerificationIPFlowResult { + /** + * Create a VerificationIPFlowResult. + * @member {string} [access] Indicates whether the traffic is allowed or + * denied. Possible values include: 'Allow', 'Deny' + * @member {string} [ruleName] Name of the rule. If input is not matched + * against any security rule, it is not displayed. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/virtualNetwork.js b/lib/services/networkManagement2/lib/models/virtualNetwork.js index 9e78621160..95aae2b775 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetwork.js +++ b/lib/services/networkManagement2/lib/models/virtualNetwork.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,39 +13,32 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VirtualNetwork class. - * @constructor * Virtual Network resource. * - * @member {object} [addressSpace] The AddressSpace that contains an array of - * IP address ranges that can be used by subnets. - * - * @member {array} [addressSpace.addressPrefixes] A list of address blocks - * reserved for this virtual network in CIDR notation. - * - * @member {object} [dhcpOptions] The dhcpOptions that contains an array of DNS - * servers available to VMs deployed in the virtual network. - * - * @member {array} [dhcpOptions.dnsServers] The list of DNS servers IP - * addresses. - * - * @member {array} [subnets] A list of subnets in a Virtual Network. - * - * @member {array} [virtualNetworkPeerings] A list of peerings in a Virtual - * Network. - * - * @member {string} [resourceGuid] The resourceGuid property of the Virtual - * Network resource. - * - * @member {string} [provisioningState] The provisioning state of the PublicIP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [etag] Gets a unique read-only string that changes whenever - * the resource is updated. - * + * @extends models['Resource'] */ class VirtualNetwork extends models['Resource'] { + /** + * Create a VirtualNetwork. + * @member {object} [addressSpace] The AddressSpace that contains an array of + * IP address ranges that can be used by subnets. + * @member {array} [addressSpace.addressPrefixes] A list of address blocks + * reserved for this virtual network in CIDR notation. + * @member {object} [dhcpOptions] The dhcpOptions that contains an array of + * DNS servers available to VMs deployed in the virtual network. + * @member {array} [dhcpOptions.dnsServers] The list of DNS servers IP + * addresses. + * @member {array} [subnets] A list of subnets in a Virtual Network. + * @member {array} [virtualNetworkPeerings] A list of peerings in a Virtual + * Network. + * @member {string} [resourceGuid] The resourceGuid property of the Virtual + * Network resource. + * @member {string} [provisioningState] The provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @member {string} [etag] Gets a unique read-only string that changes + * whenever the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkConnectionGatewayReference.js b/lib/services/networkManagement2/lib/models/virtualNetworkConnectionGatewayReference.js new file mode 100644 index 0000000000..8484f69350 --- /dev/null +++ b/lib/services/networkManagement2/lib/models/virtualNetworkConnectionGatewayReference.js @@ -0,0 +1,53 @@ +/* + * 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'; + +/** + * A reference to VirtualNetworkGateway or LocalNetworkGateway resource. + * + */ +class VirtualNetworkConnectionGatewayReference { + /** + * Create a VirtualNetworkConnectionGatewayReference. + * @member {string} id The ID of VirtualNetworkGateway or LocalNetworkGateway + * resource. + */ + constructor() { + } + + /** + * Defines the metadata of VirtualNetworkConnectionGatewayReference + * + * @returns {object} metadata of VirtualNetworkConnectionGatewayReference + * + */ + mapper() { + return { + required: false, + serializedName: 'virtualNetworkConnectionGatewayReference', + type: { + name: 'Composite', + className: 'VirtualNetworkConnectionGatewayReference', + modelProperties: { + id: { + required: true, + serializedName: 'id', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = VirtualNetworkConnectionGatewayReference; diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGateway.js b/lib/services/networkManagement2/lib/models/virtualNetworkGateway.js index 9e12c0bbf4..78394c86a4 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkGateway.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGateway.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,97 +13,74 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VirtualNetworkGateway class. - * @constructor * A common class for general resource information * - * @member {array} [ipConfigurations] IP configurations for virtual network - * gateway. - * - * @member {string} [gatewayType] The type of this virtual network gateway. - * Possible values are: 'Vpn' and 'ExpressRoute'. Possible values include: - * 'Vpn', 'ExpressRoute' - * - * @member {string} [vpnType] The type of this virtual network gateway. - * Possible values are: 'PolicyBased' and 'RouteBased'. Possible values - * include: 'PolicyBased', 'RouteBased' - * - * @member {boolean} [enableBgp] Whether BGP is enabled for this virtual - * network gateway or not. - * - * @member {boolean} [activeActive] ActiveActive flag - * - * @member {object} [gatewayDefaultSite] The reference of the - * LocalNetworkGateway resource which represents local network site having - * default routes. Assign Null value in case of removing existing default site - * setting. - * - * @member {string} [gatewayDefaultSite.id] Resource ID. - * - * @member {object} [sku] The reference of the VirtualNetworkGatewaySku - * resource which represents the SKU selected for Virtual network gateway. - * - * @member {string} [sku.name] Gateway SKU name. Possible values include: - * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', - * 'VpnGw2', 'VpnGw3' - * - * @member {string} [sku.tier] Gateway SKU tier. Possible values include: - * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', - * 'VpnGw2', 'VpnGw3' - * - * @member {number} [sku.capacity] The capacity. - * - * @member {object} [vpnClientConfiguration] The reference of the - * VpnClientConfiguration resource which represents the P2S VpnClient - * configurations. - * - * @member {object} [vpnClientConfiguration.vpnClientAddressPool] The reference - * of the address space resource which represents Address space for P2S - * VpnClient. - * - * @member {array} - * [vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. - * - * @member {array} [vpnClientConfiguration.vpnClientRootCertificates] - * VpnClientRootCertificate for virtual network gateway. - * - * @member {array} [vpnClientConfiguration.vpnClientRevokedCertificates] - * VpnClientRevokedCertificate for Virtual network gateway. - * - * @member {array} [vpnClientConfiguration.vpnClientProtocols] - * VpnClientProtocols for Virtual network gateway. - * - * @member {object} [bgpSettings] Virtual network gateway's BGP speaker - * settings. - * - * @member {number} [bgpSettings.asn] The BGP speaker's ASN. - * - * @member {string} [bgpSettings.bgpPeeringAddress] The BGP peering address and - * BGP identifier of this BGP speaker. - * - * @member {number} [bgpSettings.peerWeight] The weight added to routes learned - * from this BGP speaker. - * - * @member {string} [radiusServer] The radius server address property of the - * VirtualNetworkGateway resource for vpn client connection. - * - * @member {string} [radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * - * @member {string} [resourceGuid] The resource GUID property of the - * VirtualNetworkGateway resource. - * - * @member {string} [provisioningState] The provisioning state of the - * VirtualNetworkGateway resource. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * - * @member {string} [etag] Gets a unique read-only string that changes whenever - * the resource is updated. - * + * @extends models['Resource'] */ class VirtualNetworkGateway extends models['Resource'] { + /** + * Create a VirtualNetworkGateway. + * @member {array} [ipConfigurations] IP configurations for virtual network + * gateway. + * @member {string} [gatewayType] The type of this virtual network gateway. + * Possible values are: 'Vpn' and 'ExpressRoute'. Possible values include: + * 'Vpn', 'ExpressRoute' + * @member {string} [vpnType] The type of this virtual network gateway. + * Possible values are: 'PolicyBased' and 'RouteBased'. Possible values + * include: 'PolicyBased', 'RouteBased' + * @member {boolean} [enableBgp] Whether BGP is enabled for this virtual + * network gateway or not. + * @member {boolean} [activeActive] ActiveActive flag + * @member {object} [gatewayDefaultSite] The reference of the + * LocalNetworkGateway resource which represents local network site having + * default routes. Assign Null value in case of removing existing default + * site setting. + * @member {string} [gatewayDefaultSite.id] Resource ID. + * @member {object} [sku] The reference of the VirtualNetworkGatewaySku + * resource which represents the SKU selected for Virtual network gateway. + * @member {string} [sku.name] Gateway SKU name. Possible values include: + * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', + * 'VpnGw2', 'VpnGw3' + * @member {string} [sku.tier] Gateway SKU tier. Possible values include: + * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', + * 'VpnGw2', 'VpnGw3' + * @member {number} [sku.capacity] The capacity. + * @member {object} [vpnClientConfiguration] The reference of the + * VpnClientConfiguration resource which represents the P2S VpnClient + * configurations. + * @member {object} [vpnClientConfiguration.vpnClientAddressPool] The + * reference of the address space resource which represents Address space for + * P2S VpnClient. + * @member {array} + * [vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] A list of + * address blocks reserved for this virtual network in CIDR notation. + * @member {array} [vpnClientConfiguration.vpnClientRootCertificates] + * VpnClientRootCertificate for virtual network gateway. + * @member {array} [vpnClientConfiguration.vpnClientRevokedCertificates] + * VpnClientRevokedCertificate for Virtual network gateway. + * @member {array} [vpnClientConfiguration.vpnClientProtocols] + * VpnClientProtocols for Virtual network gateway. + * @member {string} [vpnClientConfiguration.radiusServerAddress] The radius + * server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * @member {string} [vpnClientConfiguration.radiusServerSecret] The radius + * secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * @member {object} [bgpSettings] Virtual network gateway's BGP speaker + * settings. + * @member {number} [bgpSettings.asn] The BGP speaker's ASN. + * @member {string} [bgpSettings.bgpPeeringAddress] The BGP peering address + * and BGP identifier of this BGP speaker. + * @member {number} [bgpSettings.peerWeight] The weight added to routes + * learned from this BGP speaker. + * @member {string} [resourceGuid] The resource GUID property of the + * VirtualNetworkGateway resource. + * @member {string} [provisioningState] The provisioning state of the + * VirtualNetworkGateway resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [etag] Gets a unique read-only string that changes + * whenever the resource is updated. + */ constructor() { super(); } @@ -241,20 +218,6 @@ class VirtualNetworkGateway extends models['Resource'] { className: 'BgpSettings' } }, - radiusServer: { - required: false, - serializedName: 'properties.radiusServer', - type: { - name: 'String' - } - }, - radiusSecret: { - required: false, - serializedName: 'properties.radiusSecret', - type: { - name: 'String' - } - }, resourceGuid: { required: false, serializedName: 'properties.resourceGuid', diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnection.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnection.js index d3239127d0..f271073db5 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnection.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnection.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,279 +13,212 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayConnection class. - * @constructor * A common class for general resource information * - * @member {string} [authorizationKey] The authorizationKey. - * - * @member {object} virtualNetworkGateway1 - * - * @member {array} [virtualNetworkGateway1.ipConfigurations] IP configurations - * for virtual network gateway. - * - * @member {string} [virtualNetworkGateway1.gatewayType] The type of this - * virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. - * Possible values include: 'Vpn', 'ExpressRoute' - * - * @member {string} [virtualNetworkGateway1.vpnType] The type of this virtual - * network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. - * Possible values include: 'PolicyBased', 'RouteBased' - * - * @member {boolean} [virtualNetworkGateway1.enableBgp] Whether BGP is enabled - * for this virtual network gateway or not. - * - * @member {boolean} [virtualNetworkGateway1.activeActive] ActiveActive flag - * - * @member {object} [virtualNetworkGateway1.gatewayDefaultSite] The reference - * of the LocalNetworkGateway resource which represents local network site - * having default routes. Assign Null value in case of removing existing - * default site setting. - * - * @member {string} [virtualNetworkGateway1.gatewayDefaultSite.id] Resource ID. - * - * @member {object} [virtualNetworkGateway1.sku] The reference of the - * VirtualNetworkGatewaySku resource which represents the SKU selected for - * Virtual network gateway. - * - * @member {string} [virtualNetworkGateway1.sku.name] Gateway SKU name. - * Possible values include: 'Basic', 'HighPerformance', 'Standard', - * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' - * - * @member {string} [virtualNetworkGateway1.sku.tier] Gateway SKU tier. - * Possible values include: 'Basic', 'HighPerformance', 'Standard', - * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' - * - * @member {number} [virtualNetworkGateway1.sku.capacity] The capacity. - * - * @member {object} [virtualNetworkGateway1.vpnClientConfiguration] The - * reference of the VpnClientConfiguration resource which represents the P2S - * VpnClient configurations. - * - * @member {object} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientAddressPool] The - * reference of the address space resource which represents Address space for - * P2S VpnClient. - * - * @member {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] - * A list of address blocks reserved for this virtual network in CIDR notation. - * - * @member {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientRootCertificates] - * VpnClientRootCertificate for virtual network gateway. - * - * @member {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientRevokedCertificates] - * VpnClientRevokedCertificate for Virtual network gateway. - * - * @member {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientProtocols] - * VpnClientProtocols for Virtual network gateway. - * - * @member {object} [virtualNetworkGateway1.bgpSettings] Virtual network - * gateway's BGP speaker settings. - * - * @member {number} [virtualNetworkGateway1.bgpSettings.asn] The BGP speaker's - * ASN. - * - * @member {string} [virtualNetworkGateway1.bgpSettings.bgpPeeringAddress] The - * BGP peering address and BGP identifier of this BGP speaker. - * - * @member {number} [virtualNetworkGateway1.bgpSettings.peerWeight] The weight - * added to routes learned from this BGP speaker. - * - * @member {string} [virtualNetworkGateway1.radiusServer] The radius server - * address property of the VirtualNetworkGateway resource for vpn client - * connection. - * - * @member {string} [virtualNetworkGateway1.radiusSecret] The radius secret - * property of the VirtualNetworkGateway resource for vpn client connection. - * - * @member {string} [virtualNetworkGateway1.resourceGuid] The resource GUID - * property of the VirtualNetworkGateway resource. - * - * @member {string} [virtualNetworkGateway1.provisioningState] The provisioning - * state of the VirtualNetworkGateway resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [virtualNetworkGateway1.etag] Gets a unique read-only - * string that changes whenever the resource is updated. - * - * @member {object} [virtualNetworkGateway2] - * - * @member {array} [virtualNetworkGateway2.ipConfigurations] IP configurations - * for virtual network gateway. - * - * @member {string} [virtualNetworkGateway2.gatewayType] The type of this - * virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. - * Possible values include: 'Vpn', 'ExpressRoute' - * - * @member {string} [virtualNetworkGateway2.vpnType] The type of this virtual - * network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. - * Possible values include: 'PolicyBased', 'RouteBased' - * - * @member {boolean} [virtualNetworkGateway2.enableBgp] Whether BGP is enabled - * for this virtual network gateway or not. - * - * @member {boolean} [virtualNetworkGateway2.activeActive] ActiveActive flag - * - * @member {object} [virtualNetworkGateway2.gatewayDefaultSite] The reference - * of the LocalNetworkGateway resource which represents local network site - * having default routes. Assign Null value in case of removing existing - * default site setting. - * - * @member {string} [virtualNetworkGateway2.gatewayDefaultSite.id] Resource ID. - * - * @member {object} [virtualNetworkGateway2.sku] The reference of the - * VirtualNetworkGatewaySku resource which represents the SKU selected for - * Virtual network gateway. - * - * @member {string} [virtualNetworkGateway2.sku.name] Gateway SKU name. - * Possible values include: 'Basic', 'HighPerformance', 'Standard', - * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' - * - * @member {string} [virtualNetworkGateway2.sku.tier] Gateway SKU tier. - * Possible values include: 'Basic', 'HighPerformance', 'Standard', - * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' - * - * @member {number} [virtualNetworkGateway2.sku.capacity] The capacity. - * - * @member {object} [virtualNetworkGateway2.vpnClientConfiguration] The - * reference of the VpnClientConfiguration resource which represents the P2S - * VpnClient configurations. - * - * @member {object} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] The - * reference of the address space resource which represents Address space for - * P2S VpnClient. - * - * @member {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] - * A list of address blocks reserved for this virtual network in CIDR notation. - * - * @member {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] - * VpnClientRootCertificate for virtual network gateway. - * - * @member {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] - * VpnClientRevokedCertificate for Virtual network gateway. - * - * @member {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] - * VpnClientProtocols for Virtual network gateway. - * - * @member {object} [virtualNetworkGateway2.bgpSettings] Virtual network - * gateway's BGP speaker settings. - * - * @member {number} [virtualNetworkGateway2.bgpSettings.asn] The BGP speaker's - * ASN. - * - * @member {string} [virtualNetworkGateway2.bgpSettings.bgpPeeringAddress] The - * BGP peering address and BGP identifier of this BGP speaker. - * - * @member {number} [virtualNetworkGateway2.bgpSettings.peerWeight] The weight - * added to routes learned from this BGP speaker. - * - * @member {string} [virtualNetworkGateway2.radiusServer] The radius server - * address property of the VirtualNetworkGateway resource for vpn client - * connection. - * - * @member {string} [virtualNetworkGateway2.radiusSecret] The radius secret - * property of the VirtualNetworkGateway resource for vpn client connection. - * - * @member {string} [virtualNetworkGateway2.resourceGuid] The resource GUID - * property of the VirtualNetworkGateway resource. - * - * @member {string} [virtualNetworkGateway2.provisioningState] The provisioning - * state of the VirtualNetworkGateway resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [virtualNetworkGateway2.etag] Gets a unique read-only - * string that changes whenever the resource is updated. - * - * @member {object} [localNetworkGateway2] - * - * @member {object} [localNetworkGateway2.localNetworkAddressSpace] Local - * network site address space. - * - * @member {array} - * [localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. - * - * @member {string} [localNetworkGateway2.gatewayIpAddress] IP address of local - * network gateway. - * - * @member {object} [localNetworkGateway2.bgpSettings] Local network gateway's - * BGP speaker settings. - * - * @member {number} [localNetworkGateway2.bgpSettings.asn] The BGP speaker's - * ASN. - * - * @member {string} [localNetworkGateway2.bgpSettings.bgpPeeringAddress] The - * BGP peering address and BGP identifier of this BGP speaker. - * - * @member {number} [localNetworkGateway2.bgpSettings.peerWeight] The weight - * added to routes learned from this BGP speaker. - * - * @member {string} [localNetworkGateway2.resourceGuid] The resource GUID - * property of the LocalNetworkGateway resource. - * - * @member {string} [localNetworkGateway2.provisioningState] The provisioning - * state of the LocalNetworkGateway resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [localNetworkGateway2.etag] A unique read-only string that - * changes whenever the resource is updated. - * - * @member {string} connectionType Gateway connection type. Possible values - * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values - * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' - * - * @member {number} [routingWeight] The routing weight. - * - * @member {string} [sharedKey] The IPSec shared key. - * - * @member {string} [connectionStatus] Virtual network Gateway connection - * status. Possible values are 'Unknown', 'Connecting', 'Connected' and - * 'NotConnected'. Possible values include: 'Unknown', 'Connecting', - * 'Connected', 'NotConnected' - * - * @member {array} [tunnelConnectionStatus] Collection of all tunnels' - * connection health status. - * - * @member {number} [egressBytesTransferred] The egress bytes transferred in - * this connection. - * - * @member {number} [ingressBytesTransferred] The ingress bytes transferred in - * this connection. - * - * @member {object} [peer] The reference to peerings resource. - * - * @member {string} [peer.id] Resource ID. - * - * @member {boolean} [enableBgp] EnableBgp flag - * - * @member {boolean} [usePolicyBasedTrafficSelectors] Enable policy-based - * traffic selectors. - * - * @member {array} [ipsecPolicies] The IPSec Policies to be considered by this - * connection. - * - * @member {string} [resourceGuid] The resource GUID property of the - * VirtualNetworkGatewayConnection resource. - * - * @member {string} [provisioningState] The provisioning state of the - * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [etag] Gets a unique read-only string that changes whenever - * the resource is updated. - * + * @extends models['Resource'] */ class VirtualNetworkGatewayConnection extends models['Resource'] { + /** + * Create a VirtualNetworkGatewayConnection. + * @member {string} [authorizationKey] The authorizationKey. + * @member {object} virtualNetworkGateway1 The reference to virtual network + * gateway resource. + * @member {array} [virtualNetworkGateway1.ipConfigurations] IP + * configurations for virtual network gateway. + * @member {string} [virtualNetworkGateway1.gatewayType] The type of this + * virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. + * Possible values include: 'Vpn', 'ExpressRoute' + * @member {string} [virtualNetworkGateway1.vpnType] The type of this virtual + * network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. + * Possible values include: 'PolicyBased', 'RouteBased' + * @member {boolean} [virtualNetworkGateway1.enableBgp] Whether BGP is + * enabled for this virtual network gateway or not. + * @member {boolean} [virtualNetworkGateway1.activeActive] ActiveActive flag + * @member {object} [virtualNetworkGateway1.gatewayDefaultSite] The reference + * of the LocalNetworkGateway resource which represents local network site + * having default routes. Assign Null value in case of removing existing + * default site setting. + * @member {string} [virtualNetworkGateway1.gatewayDefaultSite.id] Resource + * ID. + * @member {object} [virtualNetworkGateway1.sku] The reference of the + * VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. + * @member {string} [virtualNetworkGateway1.sku.name] Gateway SKU name. + * Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' + * @member {string} [virtualNetworkGateway1.sku.tier] Gateway SKU tier. + * Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' + * @member {number} [virtualNetworkGateway1.sku.capacity] The capacity. + * @member {object} [virtualNetworkGateway1.vpnClientConfiguration] The + * reference of the VpnClientConfiguration resource which represents the P2S + * VpnClient configurations. + * @member {object} + * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientAddressPool] The + * reference of the address space resource which represents Address space for + * P2S VpnClient. + * @member {array} + * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] + * A list of address blocks reserved for this virtual network in CIDR + * notation. + * @member {array} + * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientRootCertificates] + * VpnClientRootCertificate for virtual network gateway. + * @member {array} + * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientRevokedCertificates] + * VpnClientRevokedCertificate for Virtual network gateway. + * @member {array} + * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientProtocols] + * VpnClientProtocols for Virtual network gateway. + * @member {string} + * [virtualNetworkGateway1.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. + * @member {string} + * [virtualNetworkGateway1.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. + * @member {object} [virtualNetworkGateway1.bgpSettings] Virtual network + * gateway's BGP speaker settings. + * @member {number} [virtualNetworkGateway1.bgpSettings.asn] The BGP + * speaker's ASN. + * @member {string} [virtualNetworkGateway1.bgpSettings.bgpPeeringAddress] + * The BGP peering address and BGP identifier of this BGP speaker. + * @member {number} [virtualNetworkGateway1.bgpSettings.peerWeight] The + * weight added to routes learned from this BGP speaker. + * @member {string} [virtualNetworkGateway1.resourceGuid] The resource GUID + * property of the VirtualNetworkGateway resource. + * @member {string} [virtualNetworkGateway1.provisioningState] The + * provisioning state of the VirtualNetworkGateway resource. Possible values + * are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [virtualNetworkGateway1.etag] Gets a unique read-only + * string that changes whenever the resource is updated. + * @member {object} [virtualNetworkGateway2] The reference to virtual network + * gateway resource. + * @member {array} [virtualNetworkGateway2.ipConfigurations] IP + * configurations for virtual network gateway. + * @member {string} [virtualNetworkGateway2.gatewayType] The type of this + * virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. + * Possible values include: 'Vpn', 'ExpressRoute' + * @member {string} [virtualNetworkGateway2.vpnType] The type of this virtual + * network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. + * Possible values include: 'PolicyBased', 'RouteBased' + * @member {boolean} [virtualNetworkGateway2.enableBgp] Whether BGP is + * enabled for this virtual network gateway or not. + * @member {boolean} [virtualNetworkGateway2.activeActive] ActiveActive flag + * @member {object} [virtualNetworkGateway2.gatewayDefaultSite] The reference + * of the LocalNetworkGateway resource which represents local network site + * having default routes. Assign Null value in case of removing existing + * default site setting. + * @member {string} [virtualNetworkGateway2.gatewayDefaultSite.id] Resource + * ID. + * @member {object} [virtualNetworkGateway2.sku] The reference of the + * VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. + * @member {string} [virtualNetworkGateway2.sku.name] Gateway SKU name. + * Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' + * @member {string} [virtualNetworkGateway2.sku.tier] Gateway SKU tier. + * Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3' + * @member {number} [virtualNetworkGateway2.sku.capacity] The capacity. + * @member {object} [virtualNetworkGateway2.vpnClientConfiguration] The + * reference of the VpnClientConfiguration resource which represents the P2S + * VpnClient configurations. + * @member {object} + * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] The + * reference of the address space resource which represents Address space for + * P2S VpnClient. + * @member {array} + * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] + * A list of address blocks reserved for this virtual network in CIDR + * notation. + * @member {array} + * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] + * VpnClientRootCertificate for virtual network gateway. + * @member {array} + * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] + * VpnClientRevokedCertificate for Virtual network gateway. + * @member {array} + * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] + * VpnClientProtocols for Virtual network gateway. + * @member {string} + * [virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. + * @member {string} + * [virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. + * @member {object} [virtualNetworkGateway2.bgpSettings] Virtual network + * gateway's BGP speaker settings. + * @member {number} [virtualNetworkGateway2.bgpSettings.asn] The BGP + * speaker's ASN. + * @member {string} [virtualNetworkGateway2.bgpSettings.bgpPeeringAddress] + * The BGP peering address and BGP identifier of this BGP speaker. + * @member {number} [virtualNetworkGateway2.bgpSettings.peerWeight] The + * weight added to routes learned from this BGP speaker. + * @member {string} [virtualNetworkGateway2.resourceGuid] The resource GUID + * property of the VirtualNetworkGateway resource. + * @member {string} [virtualNetworkGateway2.provisioningState] The + * provisioning state of the VirtualNetworkGateway resource. Possible values + * are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [virtualNetworkGateway2.etag] Gets a unique read-only + * string that changes whenever the resource is updated. + * @member {object} [localNetworkGateway2] The reference to local network + * gateway resource. + * @member {object} [localNetworkGateway2.localNetworkAddressSpace] Local + * network site address space. + * @member {array} + * [localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A list of + * address blocks reserved for this virtual network in CIDR notation. + * @member {string} [localNetworkGateway2.gatewayIpAddress] IP address of + * local network gateway. + * @member {object} [localNetworkGateway2.bgpSettings] Local network + * gateway's BGP speaker settings. + * @member {number} [localNetworkGateway2.bgpSettings.asn] The BGP speaker's + * ASN. + * @member {string} [localNetworkGateway2.bgpSettings.bgpPeeringAddress] The + * BGP peering address and BGP identifier of this BGP speaker. + * @member {number} [localNetworkGateway2.bgpSettings.peerWeight] The weight + * added to routes learned from this BGP speaker. + * @member {string} [localNetworkGateway2.resourceGuid] The resource GUID + * property of the LocalNetworkGateway resource. + * @member {string} [localNetworkGateway2.provisioningState] The provisioning + * state of the LocalNetworkGateway resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * @member {string} [localNetworkGateway2.etag] A unique read-only string + * that changes whenever the resource is updated. + * @member {string} connectionType Gateway connection type. Possible values + * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + * @member {number} [routingWeight] The routing weight. + * @member {string} [sharedKey] The IPSec shared key. + * @member {string} [connectionStatus] Virtual network Gateway connection + * status. Possible values are 'Unknown', 'Connecting', 'Connected' and + * 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + * 'Connected', 'NotConnected' + * @member {array} [tunnelConnectionStatus] Collection of all tunnels' + * connection health status. + * @member {number} [egressBytesTransferred] The egress bytes transferred in + * this connection. + * @member {number} [ingressBytesTransferred] The ingress bytes transferred + * in this connection. + * @member {object} [peer] The reference to peerings resource. + * @member {string} [peer.id] Resource ID. + * @member {boolean} [enableBgp] EnableBgp flag + * @member {boolean} [usePolicyBasedTrafficSelectors] Enable policy-based + * traffic selectors. + * @member {array} [ipsecPolicies] The IPSec Policies to be considered by + * this connection. + * @member {string} [resourceGuid] The resource GUID property of the + * VirtualNetworkGatewayConnection resource. + * @member {string} [provisioningState] The provisioning state of the + * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [etag] Gets a unique read-only string that changes + * whenever the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListEntity.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListEntity.js new file mode 100644 index 0000000000..12183ef6db --- /dev/null +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListEntity.js @@ -0,0 +1,285 @@ +/* + * 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'); + +/** + * A common class for general resource information + * + * @extends models['Resource'] + */ +class VirtualNetworkGatewayConnectionListEntity extends models['Resource'] { + /** + * Create a VirtualNetworkGatewayConnectionListEntity. + * @member {string} [authorizationKey] The authorizationKey. + * @member {object} virtualNetworkGateway1 The reference to virtual network + * gateway resource. + * @member {string} [virtualNetworkGateway1.id] The ID of + * VirtualNetworkGateway or LocalNetworkGateway resource. + * @member {object} [virtualNetworkGateway2] The reference to virtual network + * gateway resource. + * @member {string} [virtualNetworkGateway2.id] The ID of + * VirtualNetworkGateway or LocalNetworkGateway resource. + * @member {object} [localNetworkGateway2] The reference to local network + * gateway resource. + * @member {string} [localNetworkGateway2.id] The ID of VirtualNetworkGateway + * or LocalNetworkGateway resource. + * @member {string} connectionType Gateway connection type. Possible values + * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + * @member {number} [routingWeight] The routing weight. + * @member {string} [sharedKey] The IPSec shared key. + * @member {string} [connectionStatus] Virtual network Gateway connection + * status. Possible values are 'Unknown', 'Connecting', 'Connected' and + * 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + * 'Connected', 'NotConnected' + * @member {array} [tunnelConnectionStatus] Collection of all tunnels' + * connection health status. + * @member {number} [egressBytesTransferred] The egress bytes transferred in + * this connection. + * @member {number} [ingressBytesTransferred] The ingress bytes transferred + * in this connection. + * @member {object} [peer] The reference to peerings resource. + * @member {string} [peer.id] Resource ID. + * @member {boolean} [enableBgp] EnableBgp flag + * @member {boolean} [usePolicyBasedTrafficSelectors] Enable policy-based + * traffic selectors. + * @member {array} [ipsecPolicies] The IPSec Policies to be considered by + * this connection. + * @member {string} [resourceGuid] The resource GUID property of the + * VirtualNetworkGatewayConnection resource. + * @member {string} [provisioningState] The provisioning state of the + * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [etag] Gets a unique read-only string that changes + * whenever the resource is updated. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of VirtualNetworkGatewayConnectionListEntity + * + * @returns {object} metadata of VirtualNetworkGatewayConnectionListEntity + * + */ + mapper() { + return { + required: false, + serializedName: 'VirtualNetworkGatewayConnectionListEntity', + type: { + name: 'Composite', + className: 'VirtualNetworkGatewayConnectionListEntity', + modelProperties: { + id: { + required: false, + 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' + } + }, + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + authorizationKey: { + required: false, + serializedName: 'properties.authorizationKey', + type: { + name: 'String' + } + }, + virtualNetworkGateway1: { + required: true, + serializedName: 'properties.virtualNetworkGateway1', + type: { + name: 'Composite', + className: 'VirtualNetworkConnectionGatewayReference' + } + }, + virtualNetworkGateway2: { + required: false, + serializedName: 'properties.virtualNetworkGateway2', + type: { + name: 'Composite', + className: 'VirtualNetworkConnectionGatewayReference' + } + }, + localNetworkGateway2: { + required: false, + serializedName: 'properties.localNetworkGateway2', + type: { + name: 'Composite', + className: 'VirtualNetworkConnectionGatewayReference' + } + }, + connectionType: { + required: true, + serializedName: 'properties.connectionType', + type: { + name: 'String' + } + }, + routingWeight: { + required: false, + serializedName: 'properties.routingWeight', + type: { + name: 'Number' + } + }, + sharedKey: { + required: false, + serializedName: 'properties.sharedKey', + type: { + name: 'String' + } + }, + connectionStatus: { + required: false, + readOnly: true, + serializedName: 'properties.connectionStatus', + type: { + name: 'String' + } + }, + tunnelConnectionStatus: { + required: false, + readOnly: true, + serializedName: 'properties.tunnelConnectionStatus', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'TunnelConnectionHealthElementType', + type: { + name: 'Composite', + className: 'TunnelConnectionHealth' + } + } + } + }, + egressBytesTransferred: { + required: false, + readOnly: true, + serializedName: 'properties.egressBytesTransferred', + type: { + name: 'Number' + } + }, + ingressBytesTransferred: { + required: false, + readOnly: true, + serializedName: 'properties.ingressBytesTransferred', + type: { + name: 'Number' + } + }, + peer: { + required: false, + serializedName: 'properties.peer', + type: { + name: 'Composite', + className: 'SubResource' + } + }, + enableBgp: { + required: false, + serializedName: 'properties.enableBgp', + type: { + name: 'Boolean' + } + }, + usePolicyBasedTrafficSelectors: { + required: false, + serializedName: 'properties.usePolicyBasedTrafficSelectors', + type: { + name: 'Boolean' + } + }, + ipsecPolicies: { + required: false, + serializedName: 'properties.ipsecPolicies', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'IpsecPolicyElementType', + type: { + name: 'Composite', + className: 'IpsecPolicy' + } + } + } + }, + resourceGuid: { + required: false, + serializedName: 'properties.resourceGuid', + type: { + name: 'String' + } + }, + provisioningState: { + required: false, + readOnly: true, + serializedName: 'properties.provisioningState', + type: { + name: 'String' + } + }, + etag: { + required: false, + serializedName: 'etag', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = VirtualNetworkGatewayConnectionListEntity; diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListResult.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListResult.js index 4b9b990571..6572635654 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListResult.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayConnectionListResult class. - * @constructor * Response for the ListVirtualNetworkGatewayConnections API service call - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class VirtualNetworkGatewayConnectionListResult extends Array { + /** + * Create a VirtualNetworkGatewayConnectionListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } @@ -55,6 +53,7 @@ class VirtualNetworkGatewayConnectionListResult extends Array { }, nextLink: { required: false, + readOnly: true, serializedName: 'nextLink', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayIPConfiguration.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayIPConfiguration.js index 01d2c7a8f9..704ba94ddd 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayIPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayIPConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,34 +13,28 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayIPConfiguration class. - * @constructor * IP configuration for virtual network gateway * - * @member {string} [privateIPAllocationMethod] The private IP allocation - * method. Possible values are: 'Static' and 'Dynamic'. Possible values - * include: 'Static', 'Dynamic' - * - * @member {object} [subnet] The reference of the subnet resource. - * - * @member {string} [subnet.id] Resource ID. - * - * @member {object} [publicIPAddress] The reference of the public IP resource. - * - * @member {string} [publicIPAddress.id] Resource ID. - * - * @member {string} [provisioningState] The provisioning state of the public IP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class VirtualNetworkGatewayIPConfiguration extends models['SubResource'] { + /** + * Create a VirtualNetworkGatewayIPConfiguration. + * @member {string} [privateIPAllocationMethod] The private IP allocation + * method. Possible values are: 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + * @member {object} [subnet] The reference of the subnet resource. + * @member {string} [subnet.id] Resource ID. + * @member {object} [publicIPAddress] The reference of the public IP + * resource. + * @member {string} [publicIPAddress.id] Resource ID. + * @member {string} [provisioningState] The provisioning state of the public + * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayListConnectionsResult.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayListConnectionsResult.js new file mode 100644 index 0000000000..b2ad2405b1 --- /dev/null +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayListConnectionsResult.js @@ -0,0 +1,68 @@ +/* + * 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'; + +/** + * Response for the VirtualNetworkGatewayListConnections API service call + */ +class VirtualNetworkGatewayListConnectionsResult extends Array { + /** + * Create a VirtualNetworkGatewayListConnectionsResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of VirtualNetworkGatewayListConnectionsResult + * + * @returns {object} metadata of VirtualNetworkGatewayListConnectionsResult + * + */ + mapper() { + return { + required: false, + serializedName: 'VirtualNetworkGatewayListConnectionsResult', + type: { + name: 'Composite', + className: 'VirtualNetworkGatewayListConnectionsResult', + modelProperties: { + value: { + required: false, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'VirtualNetworkGatewayConnectionListEntityElementType', + type: { + name: 'Composite', + className: 'VirtualNetworkGatewayConnectionListEntity' + } + } + } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = VirtualNetworkGatewayListConnectionsResult; diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayListResult.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayListResult.js index a6578d43a4..7daeceaa76 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayListResult.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayListResult class. - * @constructor * Response for the ListVirtualNetworkGateways API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class VirtualNetworkGatewayListResult extends Array { + /** + * Create a VirtualNetworkGatewayListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } @@ -55,6 +53,7 @@ class VirtualNetworkGatewayListResult extends Array { }, nextLink: { required: false, + readOnly: true, serializedName: 'nextLink', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewaySku.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewaySku.js index 49a9349aee..cea2349ade 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkGatewaySku.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewaySku.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,23 +11,20 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VirtualNetworkGatewaySku class. - * @constructor * VirtualNetworkGatewaySku details * - * @member {string} [name] Gateway SKU name. Possible values include: 'Basic', - * 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', - * 'VpnGw3' - * - * @member {string} [tier] Gateway SKU tier. Possible values include: 'Basic', - * 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', - * 'VpnGw3' - * - * @member {number} [capacity] The capacity. - * */ class VirtualNetworkGatewaySku { + /** + * Create a VirtualNetworkGatewaySku. + * @member {string} [name] Gateway SKU name. Possible values include: + * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', + * 'VpnGw2', 'VpnGw3' + * @member {string} [tier] Gateway SKU tier. Possible values include: + * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', + * 'VpnGw2', 'VpnGw3' + * @member {number} [capacity] The capacity. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkListResult.js b/lib/services/networkManagement2/lib/models/virtualNetworkListResult.js index 9edd272d13..d578f54820 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkListResult.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VirtualNetworkListResult class. - * @constructor * Response for the ListVirtualNetworks API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class VirtualNetworkListResult extends Array { + /** + * Create a VirtualNetworkListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkListUsageResult.js b/lib/services/networkManagement2/lib/models/virtualNetworkListUsageResult.js index db8ae62489..633640ecb3 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkListUsageResult.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkListUsageResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VirtualNetworkListUsageResult class. - * @constructor * Response for the virtual networks GetUsage API service call. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class VirtualNetworkListUsageResult extends Array { + /** + * Create a VirtualNetworkListUsageResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkPeering.js b/lib/services/networkManagement2/lib/models/virtualNetworkPeering.js index cc0cd6d96f..d6469a2382 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkPeering.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkPeering.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,46 +13,39 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VirtualNetworkPeering class. - * @constructor * Peerings in a virtual network resource. * - * @member {boolean} [allowVirtualNetworkAccess] Whether the VMs in the linked - * virtual network space would be able to access all the VMs in local Virtual - * network space. - * - * @member {boolean} [allowForwardedTraffic] Whether the forwarded traffic from - * the VMs in the remote virtual network will be allowed/disallowed. - * - * @member {boolean} [allowGatewayTransit] If gateway links can be used in - * remote virtual networking to link to this virtual network. - * - * @member {boolean} [useRemoteGateways] If remote gateways can be used on this - * virtual network. If the flag is set to true, and allowGatewayTransit on - * remote peering is also true, virtual network will use gateways of remote - * virtual network for transit. Only one peering can have this flag set to - * true. This flag cannot be set if virtual network already has a gateway. - * - * @member {object} [remoteVirtualNetwork] The reference of the remote virtual - * network. - * - * @member {string} [remoteVirtualNetwork.id] Resource ID. - * - * @member {string} [peeringState] The status of the virtual network peering. - * Possible values are 'Initiated', 'Connected', and 'Disconnected'. Possible - * values include: 'Initiated', 'Connected', 'Disconnected' - * - * @member {string} [provisioningState] The provisioning state of the resource. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class VirtualNetworkPeering extends models['SubResource'] { + /** + * Create a VirtualNetworkPeering. + * @member {boolean} [allowVirtualNetworkAccess] Whether the VMs in the + * linked virtual network space would be able to access all the VMs in local + * Virtual network space. + * @member {boolean} [allowForwardedTraffic] Whether the forwarded traffic + * from the VMs in the remote virtual network will be allowed/disallowed. + * @member {boolean} [allowGatewayTransit] If gateway links can be used in + * remote virtual networking to link to this virtual network. + * @member {boolean} [useRemoteGateways] If remote gateways can be used on + * this virtual network. If the flag is set to true, and allowGatewayTransit + * on remote peering is also true, virtual network will use gateways of + * remote virtual network for transit. Only one peering can have this flag + * set to true. This flag cannot be set if virtual network already has a + * gateway. + * @member {object} [remoteVirtualNetwork] The reference of the remote + * virtual network. + * @member {string} [remoteVirtualNetwork.id] Resource ID. + * @member {string} [peeringState] The status of the virtual network peering. + * Possible values are 'Initiated', 'Connected', and 'Disconnected'. Possible + * values include: 'Initiated', 'Connected', 'Disconnected' + * @member {string} [provisioningState] The provisioning state of the + * resource. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkPeeringListResult.js b/lib/services/networkManagement2/lib/models/virtualNetworkPeeringListResult.js index 972b29df7e..f3ee98739a 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkPeeringListResult.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkPeeringListResult.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,16 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VirtualNetworkPeeringListResult class. - * @constructor * Response for ListSubnets API service call. Retrieves all subnets that belong * to a virtual network. - * - * @member {string} [nextLink] The URL to get the next set of results. - * */ class VirtualNetworkPeeringListResult extends Array { + /** + * Create a VirtualNetworkPeeringListResult. + * @member {string} [nextLink] The URL to get the next set of results. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkUsage.js b/lib/services/networkManagement2/lib/models/virtualNetworkUsage.js index a2c02d5ca6..d599549cb5 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkUsage.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkUsage.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,30 +13,23 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VirtualNetworkUsage class. - * @constructor * Usage details for subnet. * - * @member {number} [currentValue] Indicates number of IPs used from the - * Subnet. - * - * @member {string} [id] Subnet identifier. - * - * @member {number} [limit] Indicates the size of the subnet. - * - * @member {object} [name] The name containing common and localized value for - * usage. - * - * @member {string} [name.localizedValue] Localized subnet size and usage - * string. - * - * @member {string} [name.value] Subnet size and usage string. - * - * @member {string} [unit] Usage units. Returns 'Count' - * */ class VirtualNetworkUsage { + /** + * Create a VirtualNetworkUsage. + * @member {number} [currentValue] Indicates number of IPs used from the + * Subnet. + * @member {string} [id] Subnet identifier. + * @member {number} [limit] Indicates the size of the subnet. + * @member {object} [name] The name containing common and localized value for + * usage. + * @member {string} [name.localizedValue] Localized subnet size and usage + * string. + * @member {string} [name.value] Subnet size and usage string. + * @member {string} [unit] Usage units. Returns 'Count' + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkUsageName.js b/lib/services/networkManagement2/lib/models/virtualNetworkUsageName.js index 826db0f8f0..093951db51 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkUsageName.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkUsageName.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,17 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VirtualNetworkUsageName class. - * @constructor * Usage strings container. * - * @member {string} [localizedValue] Localized subnet size and usage string. - * - * @member {string} [value] Subnet size and usage string. - * */ class VirtualNetworkUsageName { + /** + * Create a VirtualNetworkUsageName. + * @member {string} [localizedValue] Localized subnet size and usage string. + * @member {string} [value] Subnet size and usage string. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/vpnClientConfiguration.js b/lib/services/networkManagement2/lib/models/vpnClientConfiguration.js index d555e62f03..bacec54289 100644 --- a/lib/services/networkManagement2/lib/models/vpnClientConfiguration.js +++ b/lib/services/networkManagement2/lib/models/vpnClientConfiguration.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,28 +13,27 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VpnClientConfiguration class. - * @constructor * VpnClientConfiguration for P2S client. * - * @member {object} [vpnClientAddressPool] The reference of the address space - * resource which represents Address space for P2S VpnClient. - * - * @member {array} [vpnClientAddressPool.addressPrefixes] A list of address - * blocks reserved for this virtual network in CIDR notation. - * - * @member {array} [vpnClientRootCertificates] VpnClientRootCertificate for - * virtual network gateway. - * - * @member {array} [vpnClientRevokedCertificates] VpnClientRevokedCertificate - * for Virtual network gateway. - * - * @member {array} [vpnClientProtocols] VpnClientProtocols for Virtual network - * gateway. - * */ class VpnClientConfiguration { + /** + * Create a VpnClientConfiguration. + * @member {object} [vpnClientAddressPool] The reference of the address space + * resource which represents Address space for P2S VpnClient. + * @member {array} [vpnClientAddressPool.addressPrefixes] A list of address + * blocks reserved for this virtual network in CIDR notation. + * @member {array} [vpnClientRootCertificates] VpnClientRootCertificate for + * virtual network gateway. + * @member {array} [vpnClientRevokedCertificates] VpnClientRevokedCertificate + * for Virtual network gateway. + * @member {array} [vpnClientProtocols] VpnClientProtocols for Virtual + * network gateway. + * @member {string} [radiusServerAddress] The radius server address property + * of the VirtualNetworkGateway resource for vpn client connection. + * @member {string} [radiusServerSecret] The radius secret property of the + * VirtualNetworkGateway resource for vpn client connection. + */ constructor() { } @@ -103,6 +102,20 @@ class VpnClientConfiguration { } } } + }, + radiusServerAddress: { + required: false, + serializedName: 'radiusServerAddress', + type: { + name: 'String' + } + }, + radiusServerSecret: { + required: false, + serializedName: 'radiusServerSecret', + type: { + name: 'String' + } } } } diff --git a/lib/services/networkManagement2/lib/models/vpnClientParameters.js b/lib/services/networkManagement2/lib/models/vpnClientParameters.js index 48a6d6d99e..f83ecb68a3 100644 --- a/lib/services/networkManagement2/lib/models/vpnClientParameters.js +++ b/lib/services/networkManagement2/lib/models/vpnClientParameters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -11,30 +11,26 @@ 'use strict'; /** - * @class - * Initializes a new instance of the VpnClientParameters class. - * @constructor * Vpn Client Parameters for package generation * - * @member {string} [processorArchitecture] VPN client Processor Architecture. - * Possible values are: 'AMD64' and 'X86'. Possible values include: 'Amd64', - * 'X86' - * - * @member {string} [authenticationMethod] VPN client Authentication Method. - * Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: - * 'EAPTLS', 'EAPMSCHAPv2' - * - * @member {string} [radiusServerAuthCertificate] The public certificate data - * for the radius server authentication certificate as a Base-64 encoded - * string. Required only if external radius authentication has been configured - * with EAPTLS authentication. - * - * @member {array} [clientRootCertificates] A list of client root certificates - * public certificate data encoded as Base-64 strings. Optional parameter for - * external radius based authentication with EAPTLS. - * */ class VpnClientParameters { + /** + * Create a VpnClientParameters. + * @member {string} [processorArchitecture] VPN client Processor + * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' + * @member {string} [authenticationMethod] VPN client Authentication Method. + * Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: + * 'EAPTLS', 'EAPMSCHAPv2' + * @member {string} [radiusServerAuthCertificate] The public certificate data + * for the radius server authentication certificate as a Base-64 encoded + * string. Required only if external radius authentication has been + * configured with EAPTLS authentication. + * @member {array} [clientRootCertificates] A list of client root + * certificates public certificate data encoded as Base-64 strings. Optional + * parameter for external radius based authentication with EAPTLS. + */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/vpnClientRevokedCertificate.js b/lib/services/networkManagement2/lib/models/vpnClientRevokedCertificate.js index 619f7971f3..6765ec0de6 100644 --- a/lib/services/networkManagement2/lib/models/vpnClientRevokedCertificate.js +++ b/lib/services/networkManagement2/lib/models/vpnClientRevokedCertificate.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,25 +13,23 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VpnClientRevokedCertificate class. - * @constructor * VPN client revoked certificate of virtual network gateway. * - * @member {string} [thumbprint] The revoked VPN client certificate thumbprint. - * - * @member {string} [provisioningState] The provisioning state of the VPN - * client revoked certificate resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class VpnClientRevokedCertificate extends models['SubResource'] { + /** + * Create a VpnClientRevokedCertificate. + * @member {string} [thumbprint] The revoked VPN client certificate + * thumbprint. + * @member {string} [provisioningState] The provisioning state of the VPN + * client revoked certificate resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/models/vpnClientRootCertificate.js b/lib/services/networkManagement2/lib/models/vpnClientRootCertificate.js index 2a1f49340c..c37cf3e0db 100644 --- a/lib/services/networkManagement2/lib/models/vpnClientRootCertificate.js +++ b/lib/services/networkManagement2/lib/models/vpnClientRootCertificate.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -13,25 +13,22 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the VpnClientRootCertificate class. - * @constructor * VPN client root certificate of virtual network gateway * - * @member {string} publicCertData The certificate public data. - * - * @member {string} [provisioningState] The provisioning state of the VPN - * client root certificate resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * - * @member {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * - * @member {string} [etag] A unique read-only string that changes whenever the - * resource is updated. - * + * @extends models['SubResource'] */ class VpnClientRootCertificate extends models['SubResource'] { + /** + * Create a VpnClientRootCertificate. + * @member {string} publicCertData The certificate public data. + * @member {string} [provisioningState] The provisioning state of the VPN + * client root certificate resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * @member {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ constructor() { super(); } diff --git a/lib/services/networkManagement2/lib/networkManagementClient.d.ts b/lib/services/networkManagement2/lib/networkManagementClient.d.ts index 6d693207df..45ba1eb772 100644 --- a/lib/services/networkManagement2/lib/networkManagementClient.d.ts +++ b/lib/services/networkManagement2/lib/networkManagementClient.d.ts @@ -3,16 +3,17 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { ServiceClient, ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; import * as models from "./models"; import * as operations from "./operations"; -declare class NetworkManagementClient { +declare class NetworkManagementClient extends AzureServiceClient { /** * Initializes a new instance of the NetworkManagementClient class. * @constructor @@ -40,7 +41,7 @@ declare class NetworkManagementClient { * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions); + constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); credentials: ServiceClientCredentials; @@ -54,14 +55,24 @@ declare class NetworkManagementClient { // Operation groups applicationGateways: operations.ApplicationGateways; + availableEndpointServices: operations.AvailableEndpointServices; expressRouteCircuitAuthorizations: operations.ExpressRouteCircuitAuthorizations; expressRouteCircuitPeerings: operations.ExpressRouteCircuitPeerings; expressRouteCircuits: operations.ExpressRouteCircuits; expressRouteServiceProviders: operations.ExpressRouteServiceProviders; loadBalancers: operations.LoadBalancers; + loadBalancerBackendAddressPools: operations.LoadBalancerBackendAddressPools; + loadBalancerFrontendIPConfigurations: operations.LoadBalancerFrontendIPConfigurations; + inboundNatRules: operations.InboundNatRules; + loadBalancerLoadBalancingRules: operations.LoadBalancerLoadBalancingRules; + loadBalancerNetworkInterfaces: operations.LoadBalancerNetworkInterfaces; + loadBalancerProbes: operations.LoadBalancerProbes; networkInterfaces: operations.NetworkInterfaces; + networkInterfaceIPConfigurations: operations.NetworkInterfaceIPConfigurations; + networkInterfaceLoadBalancers: operations.NetworkInterfaceLoadBalancers; networkSecurityGroups: operations.NetworkSecurityGroups; securityRules: operations.SecurityRules; + defaultSecurityRules: operations.DefaultSecurityRules; networkWatchers: operations.NetworkWatchers; packetCaptures: operations.PacketCaptures; publicIPAddresses: operations.PublicIPAddresses; @@ -77,7 +88,6 @@ declare class NetworkManagementClient { virtualNetworkGateways: operations.VirtualNetworkGateways; virtualNetworkGatewayConnections: operations.VirtualNetworkGatewayConnections; localNetworkGateways: operations.LocalNetworkGateways; - availablePrivateAccessServices: operations.AvailablePrivateAccessServices; /** diff --git a/lib/services/networkManagement2/lib/networkManagementClient.js b/lib/services/networkManagement2/lib/networkManagementClient.js index 1c41609895..46e26c0e41 100644 --- a/lib/services/networkManagement2/lib/networkManagementClient.js +++ b/lib/services/networkManagement2/lib/networkManagementClient.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -62,7 +62,7 @@ function _checkDnsNameAvailability(location, options, callback) { throw new Error('callback cannot be null.'); } let domainNameLabel = (options && options.domainNameLabel !== undefined) ? options.domainNameLabel : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -98,9 +98,10 @@ function _checkDnsNameAvailability(location, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -114,7 +115,6 @@ function _checkDnsNameAvailability(location, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -172,34 +172,22 @@ function _checkDnsNameAvailability(location, options, callback) { }); } -/** - * @class - * Initializes a new instance of the NetworkManagementClient class. - * @constructor - * - * @param {credentials} credentials - Credentials needed for the client to connect to Azure. - * - * @param {string} subscriptionId - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - * - * @param {string} [baseUri] - The base URI of the service. - * - * @param {object} [options] - The parameter options - * - * @param {Array} [options.filters] - Filters to be added to the request pipeline - * - * @param {object} [options.requestOptions] - Options for the underlying request object - * {@link https://github.com/request/request#requestoptions-callback Options doc} - * - * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. - * - */ +/** Class representing a NetworkManagementClient. */ class NetworkManagementClient extends ServiceClient { + /** + * Create a NetworkManagementClient. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. + * @param {string} subscriptionId - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * @param {string} [baseUri] - The base URI of the service. + * @param {object} [options] - The parameter options + * @param {Array} [options.filters] - Filters to be added to the request pipeline + * @param {object} [options.requestOptions] - Options for the underlying request object + * {@link https://github.com/request/request#requestoptions-callback Options doc} + * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ constructor(credentials, subscriptionId, baseUri, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); @@ -234,14 +222,24 @@ class NetworkManagementClient extends ServiceClient { this.generateClientRequestId = options.generateClientRequestId; } this.applicationGateways = new operations.ApplicationGateways(this); + this.availableEndpointServices = new operations.AvailableEndpointServices(this); this.expressRouteCircuitAuthorizations = new operations.ExpressRouteCircuitAuthorizations(this); this.expressRouteCircuitPeerings = new operations.ExpressRouteCircuitPeerings(this); this.expressRouteCircuits = new operations.ExpressRouteCircuits(this); this.expressRouteServiceProviders = new operations.ExpressRouteServiceProviders(this); this.loadBalancers = new operations.LoadBalancers(this); + this.loadBalancerBackendAddressPools = new operations.LoadBalancerBackendAddressPools(this); + this.loadBalancerFrontendIPConfigurations = new operations.LoadBalancerFrontendIPConfigurations(this); + this.inboundNatRules = new operations.InboundNatRules(this); + this.loadBalancerLoadBalancingRules = new operations.LoadBalancerLoadBalancingRules(this); + this.loadBalancerNetworkInterfaces = new operations.LoadBalancerNetworkInterfaces(this); + this.loadBalancerProbes = new operations.LoadBalancerProbes(this); this.networkInterfaces = new operations.NetworkInterfaces(this); + this.networkInterfaceIPConfigurations = new operations.NetworkInterfaceIPConfigurations(this); + this.networkInterfaceLoadBalancers = new operations.NetworkInterfaceLoadBalancers(this); this.networkSecurityGroups = new operations.NetworkSecurityGroups(this); this.securityRules = new operations.SecurityRules(this); + this.defaultSecurityRules = new operations.DefaultSecurityRules(this); this.networkWatchers = new operations.NetworkWatchers(this); this.packetCaptures = new operations.PacketCaptures(this); this.publicIPAddresses = new operations.PublicIPAddresses(this); @@ -257,7 +255,6 @@ class NetworkManagementClient extends ServiceClient { this.virtualNetworkGateways = new operations.VirtualNetworkGateways(this); this.virtualNetworkGatewayConnections = new operations.VirtualNetworkGatewayConnections(this); this.localNetworkGateways = new operations.LocalNetworkGateways(this); - this.availablePrivateAccessServices = new operations.AvailablePrivateAccessServices(this); this.models = models; this._checkDnsNameAvailability = _checkDnsNameAvailability; msRest.addSerializationMixin(this); diff --git a/lib/services/networkManagement2/lib/operations/applicationGateways.js b/lib/services/networkManagement2/lib/operations/applicationGateways.js index 47aa963a5d..e2a455f55f 100644 --- a/lib/services/networkManagement2/lib/operations/applicationGateways.js +++ b/lib/services/networkManagement2/lib/operations/applicationGateways.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -112,7 +112,7 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -146,9 +146,10 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -162,7 +163,6 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -441,7 +441,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -471,9 +471,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -487,7 +488,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -577,7 +577,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -603,9 +603,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -619,7 +620,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -919,7 +919,7 @@ function _listAvailableWafRuleSets(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -945,9 +945,10 @@ function _listAvailableWafRuleSets(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -961,7 +962,6 @@ function _listAvailableWafRuleSets(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1051,7 +1051,7 @@ function _listAvailableSslOptions(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1077,9 +1077,10 @@ function _listAvailableSslOptions(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1093,7 +1094,6 @@ function _listAvailableSslOptions(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1184,7 +1184,7 @@ function _listAvailableSslPredefinedPolicies(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1210,9 +1210,10 @@ function _listAvailableSslPredefinedPolicies(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1226,7 +1227,6 @@ function _listAvailableSslPredefinedPolicies(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1318,7 +1318,7 @@ function _getSslPredefinedPolicy(predefinedPolicyName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1348,9 +1348,10 @@ function _getSslPredefinedPolicy(predefinedPolicyName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1364,7 +1365,6 @@ function _getSslPredefinedPolicy(predefinedPolicyName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1456,7 +1456,7 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1490,9 +1490,10 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1506,7 +1507,6 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1691,7 +1691,7 @@ function _beginCreateOrUpdate(resourceGroupName, applicationGatewayName, paramet if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1728,9 +1728,10 @@ function _beginCreateOrUpdate(resourceGroupName, applicationGatewayName, paramet // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1744,7 +1745,6 @@ function _beginCreateOrUpdate(resourceGroupName, applicationGatewayName, paramet } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1867,7 +1867,7 @@ function _beginStart(resourceGroupName, applicationGatewayName, options, callbac if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1901,9 +1901,10 @@ function _beginStart(resourceGroupName, applicationGatewayName, options, callbac // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1917,7 +1918,6 @@ function _beginStart(resourceGroupName, applicationGatewayName, options, callbac } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1992,7 +1992,7 @@ function _beginStop(resourceGroupName, applicationGatewayName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2026,9 +2026,10 @@ function _beginStop(resourceGroupName, applicationGatewayName, options, callback // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2042,7 +2043,6 @@ function _beginStop(resourceGroupName, applicationGatewayName, options, callback } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2124,7 +2124,7 @@ function _beginBackendHealth(resourceGroupName, applicationGatewayName, options, throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2164,9 +2164,10 @@ function _beginBackendHealth(resourceGroupName, applicationGatewayName, options, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2180,7 +2181,6 @@ function _beginBackendHealth(resourceGroupName, applicationGatewayName, options, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2292,9 +2292,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2308,7 +2309,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2420,9 +2420,10 @@ function _listAllNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2436,7 +2437,6 @@ function _listAllNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2549,9 +2549,10 @@ function _listAvailableSslPredefinedPoliciesNext(nextPageLink, options, callback // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2565,7 +2566,6 @@ function _listAvailableSslPredefinedPoliciesNext(nextPageLink, options, callback } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2623,17 +2623,12 @@ function _listAvailableSslPredefinedPoliciesNext(nextPageLink, options, callback }); } -/** - * @class - * ApplicationGateways - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the ApplicationGateways class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a ApplicationGateways. */ class ApplicationGateways { + /** + * Create a ApplicationGateways. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/lib/operations/availablePrivateAccessServices.js b/lib/services/networkManagement2/lib/operations/availableEndpointServices.js similarity index 87% rename from lib/services/networkManagement2/lib/operations/availablePrivateAccessServices.js rename to lib/services/networkManagement2/lib/operations/availableEndpointServices.js index 3d97d00b9d..9f2433c1f4 100644 --- a/lib/services/networkManagement2/lib/operations/availablePrivateAccessServices.js +++ b/lib/services/networkManagement2/lib/operations/availableEndpointServices.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -15,10 +15,9 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * List what values of private access services are available for use. + * List what values of endpoint services are available for use. * - * @param {string} location The location to check available private access - * values. + * @param {string} location The location to check available endpoint services. * * @param {object} [options] Optional Parameters. * @@ -32,7 +31,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 PrivateAccessServicesListResult} for more + * See {@link EndpointServicesListResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. @@ -49,7 +48,7 @@ function _list(location, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -67,7 +66,7 @@ function _list(location, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/privateAccessServices'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices'; requestUrl = requestUrl.replace('{location}', encodeURIComponent(location)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; @@ -79,9 +78,10 @@ function _list(location, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -95,7 +95,6 @@ function _list(location, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -138,7 +137,7 @@ function _list(location, options, callback) { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['PrivateAccessServicesListResult']().mapper(); + let resultMapper = new client.models['EndpointServicesListResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -154,7 +153,7 @@ function _list(location, options, callback) { } /** - * List what values of private access services are available for use. + * List what values of endpoint services are available for use. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -171,7 +170,7 @@ function _list(location, 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 PrivateAccessServicesListResult} for more + * See {@link EndpointServicesListResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. @@ -207,9 +206,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -223,7 +223,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -266,7 +265,7 @@ function _listNext(nextPageLink, options, callback) { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['PrivateAccessServicesListResult']().mapper(); + let resultMapper = new client.models['EndpointServicesListResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { @@ -281,17 +280,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * AvailablePrivateAccessServices - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the AvailablePrivateAccessServices class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ -class AvailablePrivateAccessServices { +/** Class representing a AvailableEndpointServices. */ +class AvailableEndpointServices { + /** + * Create a AvailableEndpointServices. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._list = _list; @@ -299,10 +293,9 @@ class AvailablePrivateAccessServices { } /** - * List what values of private access services are available for use. + * List what values of endpoint services are available for use. * - * @param {string} location The location to check available private access - * values. + * @param {string} location The location to check available endpoint services. * * @param {object} [options] Optional Parameters. * @@ -311,7 +304,7 @@ class AvailablePrivateAccessServices { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -330,10 +323,9 @@ class AvailablePrivateAccessServices { } /** - * List what values of private access services are available for use. + * List what values of endpoint services are available for use. * - * @param {string} location The location to check available private access - * values. + * @param {string} location The location to check available endpoint services. * * @param {object} [options] Optional Parameters. * @@ -347,7 +339,7 @@ class AvailablePrivateAccessServices { * * {Promise} A promise is returned * - * @resolve {PrivateAccessServicesListResult} - The deserialized result object. + * @resolve {EndpointServicesListResult} - The deserialized result object. * * @reject {Error} - The error object. * @@ -356,7 +348,7 @@ class AvailablePrivateAccessServices { * {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 PrivateAccessServicesListResult} for more + * See {@link EndpointServicesListResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. @@ -384,7 +376,7 @@ class AvailablePrivateAccessServices { } /** - * List what values of private access services are available for use. + * List what values of endpoint services are available for use. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -396,7 +388,7 @@ class AvailablePrivateAccessServices { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -415,7 +407,7 @@ class AvailablePrivateAccessServices { } /** - * List what values of private access services are available for use. + * List what values of endpoint services are available for use. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -432,7 +424,7 @@ class AvailablePrivateAccessServices { * * {Promise} A promise is returned * - * @resolve {PrivateAccessServicesListResult} - The deserialized result object. + * @resolve {EndpointServicesListResult} - The deserialized result object. * * @reject {Error} - The error object. * @@ -441,7 +433,7 @@ class AvailablePrivateAccessServices { * {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 PrivateAccessServicesListResult} for more + * See {@link EndpointServicesListResult} for more * information. * * {object} [request] - The HTTP Request object if an error did not occur. @@ -470,4 +462,4 @@ class AvailablePrivateAccessServices { } -module.exports = AvailablePrivateAccessServices; +module.exports = AvailableEndpointServices; diff --git a/lib/services/networkManagement2/lib/operations/bgpServiceCommunities.js b/lib/services/networkManagement2/lib/operations/bgpServiceCommunities.js index eee88ddcc4..f03d6db8b8 100644 --- a/lib/services/networkManagement2/lib/operations/bgpServiceCommunities.js +++ b/lib/services/networkManagement2/lib/operations/bgpServiceCommunities.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -46,7 +46,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -72,9 +72,10 @@ function _list(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -88,7 +89,6 @@ function _list(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -200,9 +200,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -216,7 +217,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -274,17 +274,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * BgpServiceCommunities - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the BgpServiceCommunities class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a BgpServiceCommunities. */ class BgpServiceCommunities { + /** + * Create a BgpServiceCommunities. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._list = _list; diff --git a/lib/services/networkManagement2/lib/operations/defaultSecurityRules.js b/lib/services/networkManagement2/lib/operations/defaultSecurityRules.js new file mode 100644 index 0000000000..1569fb42fa --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/defaultSecurityRules.js @@ -0,0 +1,724 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets all default security rules in a network security group. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 SecurityRuleListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, networkSecurityGroupName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (networkSecurityGroupName === null || networkSecurityGroupName === undefined || typeof networkSecurityGroupName.valueOf() !== 'string') { + throw new Error('networkSecurityGroupName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{networkSecurityGroupName}', encodeURIComponent(networkSecurityGroupName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['SecurityRuleListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Get the specified default network security rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {string} defaultSecurityRuleName The name of the default security + * rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 SecurityRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (networkSecurityGroupName === null || networkSecurityGroupName === undefined || typeof networkSecurityGroupName.valueOf() !== 'string') { + throw new Error('networkSecurityGroupName cannot be null or undefined and it must be of type string.'); + } + if (defaultSecurityRuleName === null || defaultSecurityRuleName === undefined || typeof defaultSecurityRuleName.valueOf() !== 'string') { + throw new Error('defaultSecurityRuleName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{networkSecurityGroupName}', encodeURIComponent(networkSecurityGroupName)); + requestUrl = requestUrl.replace('{defaultSecurityRuleName}', encodeURIComponent(defaultSecurityRuleName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['SecurityRule']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets all default security rules in a network security group. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 SecurityRuleListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['SecurityRuleListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a DefaultSecurityRules. */ +class DefaultSecurityRules { + /** + * Create a DefaultSecurityRules. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._get = _get; + this._listNext = _listNext; + } + + /** + * Gets all default security rules in a network security group. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, networkSecurityGroupName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, networkSecurityGroupName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all default security rules in a network security group. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {SecurityRuleListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 SecurityRuleListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, networkSecurityGroupName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, networkSecurityGroupName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, networkSecurityGroupName, options, optionalCallback); + } + } + + /** + * Get the specified default network security rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {string} defaultSecurityRuleName The name of the default security + * rule. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get the specified default network security rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {string} defaultSecurityRuleName The name of the default security + * rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {SecurityRule} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 SecurityRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, options, optionalCallback); + } + } + + /** + * Gets all default security rules in a network security group. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all default security rules in a network security group. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {SecurityRuleListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 SecurityRuleListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = DefaultSecurityRules; diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCircuitAuthorizations.js b/lib/services/networkManagement2/lib/operations/expressRouteCircuitAuthorizations.js index 962d48c684..c0b29eaee9 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCircuitAuthorizations.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCircuitAuthorizations.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -118,7 +118,7 @@ function _get(resourceGroupName, circuitName, authorizationName, options, callba if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -156,9 +156,10 @@ function _get(resourceGroupName, circuitName, authorizationName, options, callba // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -172,7 +173,6 @@ function _get(resourceGroupName, circuitName, authorizationName, options, callba } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -367,7 +367,7 @@ function _list(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -401,9 +401,10 @@ function _list(resourceGroupName, circuitName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -417,7 +418,6 @@ function _list(resourceGroupName, circuitName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -512,7 +512,7 @@ function _beginDeleteMethod(resourceGroupName, circuitName, authorizationName, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -550,9 +550,10 @@ function _beginDeleteMethod(resourceGroupName, circuitName, authorizationName, o // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -566,7 +567,6 @@ function _beginDeleteMethod(resourceGroupName, circuitName, authorizationName, o } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -665,7 +665,7 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, authorizationName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -706,9 +706,10 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, authorizationName, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -722,7 +723,6 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, authorizationName, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -865,9 +865,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -881,7 +882,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -939,17 +939,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * ExpressRouteCircuitAuthorizations - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the ExpressRouteCircuitAuthorizations class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a ExpressRouteCircuitAuthorizations. */ class ExpressRouteCircuitAuthorizations { + /** + * Create a ExpressRouteCircuitAuthorizations. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCircuitPeerings.js b/lib/services/networkManagement2/lib/operations/expressRouteCircuitPeerings.js index 0be1898d28..b9fa22c7a3 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCircuitPeerings.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCircuitPeerings.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -117,7 +117,7 @@ function _get(resourceGroupName, circuitName, peeringName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -155,9 +155,10 @@ function _get(resourceGroupName, circuitName, peeringName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -171,7 +172,6 @@ function _get(resourceGroupName, circuitName, peeringName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -346,6 +346,9 @@ function _get(resourceGroupName, circuitName, peeringName, options, callback) { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -472,7 +475,7 @@ function _list(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -506,9 +509,10 @@ function _list(resourceGroupName, circuitName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -522,7 +526,6 @@ function _list(resourceGroupName, circuitName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -616,7 +619,7 @@ function _beginDeleteMethod(resourceGroupName, circuitName, peeringName, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -654,9 +657,10 @@ function _beginDeleteMethod(resourceGroupName, circuitName, peeringName, options // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -670,7 +674,6 @@ function _beginDeleteMethod(resourceGroupName, circuitName, peeringName, options } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -827,6 +830,9 @@ function _beginDeleteMethod(resourceGroupName, circuitName, peeringName, options * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -875,7 +881,7 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, peeringName, peeri if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -916,9 +922,10 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, peeringName, peeri // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -932,7 +939,6 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, peeringName, peeri } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1075,9 +1081,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1091,7 +1098,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1149,17 +1155,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * ExpressRouteCircuitPeerings - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the ExpressRouteCircuitPeerings class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a ExpressRouteCircuitPeerings. */ class ExpressRouteCircuitPeerings { + /** + * Create a ExpressRouteCircuitPeerings. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; @@ -1467,6 +1468,9 @@ class ExpressRouteCircuitPeerings { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -1627,6 +1631,9 @@ class ExpressRouteCircuitPeerings { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -1986,6 +1993,9 @@ class ExpressRouteCircuitPeerings { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -2146,6 +2156,9 @@ class ExpressRouteCircuitPeerings { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCircuits.js b/lib/services/networkManagement2/lib/operations/expressRouteCircuits.js index bbb4aa4edf..b5433844ba 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCircuits.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCircuits.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -112,7 +112,7 @@ function _get(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -146,9 +146,10 @@ function _get(resourceGroupName, circuitName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -162,7 +163,6 @@ function _get(resourceGroupName, circuitName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -645,7 +645,7 @@ function _getStats(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -679,9 +679,10 @@ function _getStats(resourceGroupName, circuitName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -695,7 +696,6 @@ function _getStats(resourceGroupName, circuitName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -791,7 +791,7 @@ function _getPeeringStats(resourceGroupName, circuitName, peeringName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -829,9 +829,10 @@ function _getPeeringStats(resourceGroupName, circuitName, peeringName, options, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -845,7 +846,6 @@ function _getPeeringStats(resourceGroupName, circuitName, peeringName, options, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -937,7 +937,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -967,9 +967,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -983,7 +984,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1073,7 +1073,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1099,9 +1099,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1115,7 +1116,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1207,7 +1207,7 @@ function _beginDeleteMethod(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1241,9 +1241,10 @@ function _beginDeleteMethod(resourceGroupName, circuitName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1257,7 +1258,6 @@ function _beginDeleteMethod(resourceGroupName, circuitName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1391,7 +1391,7 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, parameters, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1428,9 +1428,10 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, parameters, option // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1444,7 +1445,6 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, parameters, option } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1574,7 +1574,7 @@ function _beginListArpTable(resourceGroupName, circuitName, peeringName, deviceP if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1616,9 +1616,10 @@ function _beginListArpTable(resourceGroupName, circuitName, peeringName, deviceP // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1632,7 +1633,6 @@ function _beginListArpTable(resourceGroupName, circuitName, peeringName, deviceP } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1731,7 +1731,7 @@ function _beginListRoutesTable(resourceGroupName, circuitName, peeringName, devi if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1773,9 +1773,10 @@ function _beginListRoutesTable(resourceGroupName, circuitName, peeringName, devi // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1789,7 +1790,6 @@ function _beginListRoutesTable(resourceGroupName, circuitName, peeringName, devi } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1889,7 +1889,7 @@ function _beginListRoutesTableSummary(resourceGroupName, circuitName, peeringNam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1931,9 +1931,10 @@ function _beginListRoutesTableSummary(resourceGroupName, circuitName, peeringNam // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1947,7 +1948,6 @@ function _beginListRoutesTableSummary(resourceGroupName, circuitName, peeringNam } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2059,9 +2059,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2075,7 +2076,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2187,9 +2187,10 @@ function _listAllNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2203,7 +2204,6 @@ function _listAllNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2261,17 +2261,12 @@ function _listAllNext(nextPageLink, options, callback) { }); } -/** - * @class - * ExpressRouteCircuits - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the ExpressRouteCircuits class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a ExpressRouteCircuits. */ class ExpressRouteCircuits { + /** + * Create a ExpressRouteCircuits. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/lib/operations/expressRouteServiceProviders.js b/lib/services/networkManagement2/lib/operations/expressRouteServiceProviders.js index 286f42eb33..fef778ef50 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteServiceProviders.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteServiceProviders.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -46,7 +46,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -72,9 +72,10 @@ function _list(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -88,7 +89,6 @@ function _list(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -200,9 +200,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -216,7 +217,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -274,17 +274,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * ExpressRouteServiceProviders - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the ExpressRouteServiceProviders class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a ExpressRouteServiceProviders. */ class ExpressRouteServiceProviders { + /** + * Create a ExpressRouteServiceProviders. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._list = _list; diff --git a/lib/services/networkManagement2/lib/operations/inboundNatRules.js b/lib/services/networkManagement2/lib/operations/inboundNatRules.js new file mode 100644 index 0000000000..15ca10a694 --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/inboundNatRules.js @@ -0,0 +1,1813 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets all the inbound nat rules in a load balancer. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 InboundNatRuleListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, loadBalancerName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['InboundNatRuleListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + + +/** + * Deletes the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _deleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginDeleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + +/** + * Gets the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.expand] Expands referenced resources. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 InboundNatRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, loadBalancerName, inboundNatRuleName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let expand = (options && options.expand !== undefined) ? options.expand : undefined; + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName cannot be null or undefined and it must be of type string.'); + } + if (inboundNatRuleName === null || inboundNatRuleName === undefined || typeof inboundNatRuleName.valueOf() !== 'string') { + throw new Error('inboundNatRuleName 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.'); + } + if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { + throw new Error('expand 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{inboundNatRuleName}', encodeURIComponent(inboundNatRuleName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (expand !== null && expand !== undefined) { + queryParameters.push('$expand=' + encodeURIComponent(expand)); + } + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['InboundNatRule']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + + +/** + * Creates or updates a load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 InboundNatRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _createOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginCreateOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['InboundNatRule']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + + return callback(null, result, httpRequest, response); + }); + }); +} + +/** + * Deletes the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginDeleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName cannot be null or undefined and it must be of type string.'); + } + if (inboundNatRuleName === null || inboundNatRuleName === undefined || typeof inboundNatRuleName.valueOf() !== 'string') { + throw new Error('inboundNatRuleName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{inboundNatRuleName}', encodeURIComponent(inboundNatRuleName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'DELETE'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 204 && statusCode !== 202 && statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Creates or updates a load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 InboundNatRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginCreateOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName cannot be null or undefined and it must be of type string.'); + } + if (inboundNatRuleName === null || inboundNatRuleName === undefined || typeof inboundNatRuleName.valueOf() !== 'string') { + throw new Error('inboundNatRuleName cannot be null or undefined and it must be of type string.'); + } + if (inboundNatRuleParameters === null || inboundNatRuleParameters === undefined) { + throw new Error('inboundNatRuleParameters cannot be null or undefined.'); + } + 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{inboundNatRuleName}', encodeURIComponent(inboundNatRuleName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PUT'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (inboundNatRuleParameters !== null && inboundNatRuleParameters !== undefined) { + let requestModelMapper = new client.models['InboundNatRule']().mapper(); + requestModel = client.serialize(requestModelMapper, inboundNatRuleParameters, 'inboundNatRuleParameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(inboundNatRuleParameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 201 && statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 201) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['InboundNatRule']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['InboundNatRule']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError1.request = msRest.stripRequest(httpRequest); + deserializationError1.response = msRest.stripResponse(response); + return callback(deserializationError1); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets all the inbound nat rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 InboundNatRuleListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['InboundNatRuleListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a InboundNatRules. */ +class InboundNatRules { + /** + * Create a InboundNatRules. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._deleteMethod = _deleteMethod; + this._get = _get; + this._createOrUpdate = _createOrUpdate; + this._beginDeleteMethod = _beginDeleteMethod; + this._beginCreateOrUpdate = _beginCreateOrUpdate; + this._listNext = _listNext; + } + + /** + * Gets all the inbound nat rules in a load balancer. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, loadBalancerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the inbound nat rules in a load balancer. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {InboundNatRuleListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 InboundNatRuleListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, loadBalancerName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, loadBalancerName, options, optionalCallback); + } + } + + /** + * Deletes the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @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} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName, loadBalancerName, inboundNatRuleName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._deleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._deleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, optionalCallback); + } + } + + /** + * Gets the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.expand] Expands referenced resources. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, loadBalancerName, inboundNatRuleName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, inboundNatRuleName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.expand] Expands referenced resources. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {InboundNatRule} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 InboundNatRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, loadBalancerName, inboundNatRuleName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, inboundNatRuleName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, loadBalancerName, inboundNatRuleName, options, optionalCallback); + } + } + + /** + * Creates or updates a load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. + * + * @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} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates a load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {InboundNatRule} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 InboundNatRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + createOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._createOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, optionalCallback); + } + } + + /** + * Deletes the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @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} - The error object. + */ + beginDeleteMethodWithHttpOperationResponse(resourceGroupName, loadBalancerName, inboundNatRuleName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginDeleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Deletes the specified load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginDeleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginDeleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginDeleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleName, options, optionalCallback); + } + } + + /** + * Creates or updates a load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. + * + * @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} - The error object. + */ + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginCreateOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Creates or updates a load balancer inbound nat rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {InboundNatRule} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 InboundNatRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginCreateOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginCreateOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginCreateOrUpdate(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, options, optionalCallback); + } + } + + /** + * Gets all the inbound nat rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the inbound nat rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {InboundNatRuleListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 InboundNatRuleListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = InboundNatRules; diff --git a/lib/services/networkManagement2/lib/operations/index.d.ts b/lib/services/networkManagement2/lib/operations/index.d.ts index 1dab4ca765..5e44946ef6 100644 --- a/lib/services/networkManagement2/lib/operations/index.d.ts +++ b/lib/services/networkManagement2/lib/operations/index.d.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -1615,6 +1615,129 @@ export interface ApplicationGateways { listAvailableSslPredefinedPoliciesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } +/** + * @class + * AvailableEndpointServices + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface AvailableEndpointServices { + + + /** + * List what values of endpoint services are available for use. + * + * @param {string} location The location to check available endpoint services. + * + * @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. + */ + listWithHttpOperationResponse(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * List what values of endpoint services are available for use. + * + * @param {string} location The location to check available endpoint services. + * + * @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 {EndpointServicesListResult} - 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. + * + * {EndpointServicesListResult} [result] - The deserialized result object if an error did not occur. + * See {@link EndpointServicesListResult} 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. + */ + list(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(location: string, callback: ServiceCallback): void; + list(location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * List what values of endpoint services are available for use. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * List what values of endpoint services are available for use. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {EndpointServicesListResult} - 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. + * + * {EndpointServicesListResult} [result] - The deserialized result object if an error did not occur. + * See {@link EndpointServicesListResult} 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. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + /** * @class * ExpressRouteCircuitAuthorizations @@ -2393,6 +2516,9 @@ export interface ExpressRouteCircuitPeerings { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -2541,6 +2667,9 @@ export interface ExpressRouteCircuitPeerings { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -2831,6 +2960,9 @@ export interface ExpressRouteCircuitPeerings { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -2979,6 +3111,9 @@ export interface ExpressRouteCircuitPeerings { * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * + * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A + * collection of references to express route circuit peerings. + * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * @@ -4652,6 +4787,11 @@ export interface LoadBalancers { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -4722,6 +4862,11 @@ export interface LoadBalancers { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -4977,6 +5122,11 @@ export interface LoadBalancers { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -5047,6 +5197,11 @@ export interface LoadBalancers { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -5244,19 +5399,19 @@ export interface LoadBalancers { /** * @class - * NetworkInterfaces + * LoadBalancerBackendAddressPools * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface NetworkInterfaces { +export interface LoadBalancerBackendAddressPools { /** - * Deletes the specified network interface. + * Gets all the load balancer backed address pools. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -5265,18 +5420,18 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network interface. + * Gets all the load balancer backed address pools. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -5290,7 +5445,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5298,49 +5453,51 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {LoadBalancerBackendAddressPoolListResult} [result] - The deserialized result object if an error did not occur. + * See {@link LoadBalancerBackendAddressPoolListResult} + * 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(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets information about the specified network interface. + * Gets load balancer backend address pool. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {object} [options] Optional Parameters. + * @param {string} backendAddressPoolName The name of the backend address pool. * - * @param {string} [options.expand] Expands referenced resources. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets information about the specified network interface. + * Gets load balancer backend address pool. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {object} [options] Optional Parameters. + * @param {string} backendAddressPoolName The name of the backend address pool. * - * @param {string} [options.expand] Expands referenced resources. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -5352,7 +5509,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {BackendAddressPool} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5360,226 +5517,111 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterface} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterface} for more information. + * {BackendAddressPool} [result] - The deserialized result object if an error did not occur. + * See {@link BackendAddressPool} 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(resourceGroupName: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, networkInterfaceName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or updates a network interface. + * Gets all the load balancer backed address pools. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {object} [options] Optional Parameters. * - * @param {object} parameters Parameters supplied to the create or update - * network interface operation. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.virtualMachine] The reference of a virtual - * machine. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.virtualMachine.id] Resource ID. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {object} [parameters.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. + * @reject {Error|ServiceError} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the load balancer backed address pools. * - * @param {array} [parameters.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * {Promise} A promise is returned. * - * @param {string} [parameters.networkSecurityGroup.location] Resource - * location. + * @resolve {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. * - * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * @reject {Error|ServiceError} - The error object. * - * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of - * the network interface. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {object} [parameters.dnsSettings] The DNS settings in network - * interface. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP - * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS - * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it - * must be the only value in dnsServers collection. + * {LoadBalancerBackendAddressPoolListResult} [result] - The deserialized result object if an error did not occur. + * See {@link LoadBalancerBackendAddressPoolListResult} + * for more information. * - * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that - * uses this NIC is part of an Availability Set, then this list will have the - * union of all DNS servers from all NICs that are part of the Availability - * Set. This property is what is configured on each of those VMs. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS - * name for this NIC used for internal communications between VMs in the same - * virtual network. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * LoadBalancerFrontendIPConfigurations + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface LoadBalancerFrontendIPConfigurations { + + + /** + * Gets all the load balancer frontend IP configurations. * - * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS - * name supporting internal communications between VMs in the same virtual - * network. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if - * internalDnsNameLabel is not specified, a DNS entry is created for the - * primary NIC of the VM. This DNS name can be constructed by concatenating the - * VM name with the value of internalDomainNameSuffix. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {string} [parameters.macAddress] The MAC address of the network - * interface. + * @param {object} [options] Optional Parameters. * - * @param {boolean} [parameters.primary] Gets whether this is a primary network - * interface on a virtual machine. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {boolean} [parameters.enableAcceleratedNetworking] If the network - * interface is accelerated networking enabled. + * @returns {Promise} A promise is returned * - * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP - * forwarding is enabled on this network interface. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * network interface resource. + * @reject {Error|ServiceError} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the load balancer frontend IP configurations. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. - * - * @param {string} [parameters.id] Resource ID. - * - * @param {string} [parameters.location] Resource location. - * - * @param {object} [parameters.tags] Resource tags. - * - * @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(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Creates or updates a network interface. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} networkInterfaceName The name of the network interface. - * - * @param {object} parameters Parameters supplied to the create or update - * network interface operation. - * - * @param {object} [parameters.virtualMachine] The reference of a virtual - * machine. - * - * @param {string} [parameters.virtualMachine.id] Resource ID. - * - * @param {object} [parameters.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * - * @param {array} [parameters.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. - * - * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * - * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * - * @param {string} [parameters.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * - * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * - * @param {string} [parameters.networkSecurityGroup.id] Resource ID. - * - * @param {string} [parameters.networkSecurityGroup.location] Resource - * location. - * - * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. - * - * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of - * the network interface. - * - * @param {object} [parameters.dnsSettings] The DNS settings in network - * interface. - * - * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP - * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS - * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it - * must be the only value in dnsServers collection. - * - * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that - * uses this NIC is part of an Availability Set, then this list will have the - * union of all DNS servers from all NICs that are part of the Availability - * Set. This property is what is configured on each of those VMs. - * - * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS - * name for this NIC used for internal communications between VMs in the same - * virtual network. - * - * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS - * name supporting internal communications between VMs in the same virtual - * network. - * - * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if - * internalDnsNameLabel is not specified, a DNS entry is created for the - * primary NIC of the VM. This DNS name can be constructed by concatenating the - * VM name with the value of internalDomainNameSuffix. - * - * @param {string} [parameters.macAddress] The MAC address of the network - * interface. - * - * @param {boolean} [parameters.primary] Gets whether this is a primary network - * interface on a virtual machine. - * - * @param {boolean} [parameters.enableAcceleratedNetworking] If the network - * interface is accelerated networking enabled. - * - * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP - * forwarding is enabled on this network interface. - * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * network interface resource. - * - * @param {string} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. - * - * @param {string} [parameters.id] Resource ID. - * - * @param {string} [parameters.location] Resource location. - * - * @param {object} [parameters.tags] Resource tags. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -5593,7 +5635,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5601,20 +5643,29 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterface} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterface} for more information. + * {LoadBalancerFrontendIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * LoadBalancerFrontendIPConfigurationListResult} 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(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all network interfaces in a subscription. + * Gets load balancer frontend IP configuration. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} frontendIPConfigurationName The name of the frontend IP + * configuration. * * @param {object} [options] Optional Parameters. * @@ -5623,14 +5674,21 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a subscription. + * Gets load balancer frontend IP configuration. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} frontendIPConfigurationName The name of the frontend IP + * configuration. * * @param {object} [options] Optional Parameters. * @@ -5644,7 +5702,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {FrontendIPConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5652,23 +5710,24 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more + * {FrontendIPConfiguration} [result] - The deserialized result object if an error did not occur. + * See {@link FrontendIPConfiguration} 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. */ - listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAll(callback: ServiceCallback): void; - listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all network interfaces in a resource group. + * Gets all the load balancer frontend IP configurations. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5677,16 +5736,17 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a resource group. + * Gets all the load balancer frontend IP configurations. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5700,7 +5760,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5708,25 +5768,35 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more + * {LoadBalancerFrontendIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link + * LoadBalancerFrontendIPConfigurationListResult} 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. */ - list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(resourceGroupName: string, callback: ServiceCallback): void; - list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * InboundNatRules + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface InboundNatRules { /** - * Gets all route tables applied to a network interface. + * Gets all the inbound nat rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -5735,18 +5805,18 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route tables applied to a network interface. + * Gets all the inbound nat rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -5760,7 +5830,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {EffectiveRouteListResult} - The deserialized result object. + * @resolve {InboundNatRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5768,25 +5838,27 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {EffectiveRouteListResult} [result] - The deserialized result object if an error did not occur. - * See {@link EffectiveRouteListResult} for more + * {InboundNatRuleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link InboundNatRuleListResult} 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. */ - getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; - getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all network security groups applied to a network interface. + * Deletes the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * @@ -5795,18 +5867,20 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network security groups applied to a network interface. + * Deletes the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * @@ -5820,7 +5894,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {EffectiveNetworkSecurityGroupListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5828,56 +5902,54 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {EffectiveNetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. - * See {@link EffectiveNetworkSecurityGroupListResult} for - * more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {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. */ - listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; - listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets information about all network interfaces in a virtual machine in a - * virtual machine scale set. + * Gets the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {string} virtualmachineIndex The virtual machine index. + * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.expand] Expands referenced resources. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetVMNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets information about all network interfaces in a virtual machine in a - * virtual machine scale set. + * Gets the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {string} virtualmachineIndex The virtual machine index. + * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.expand] Expands referenced resources. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5888,7 +5960,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5896,26 +5968,70 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more - * information. + * {InboundNatRule} [result] - The deserialized result object if an error did not occur. + * See {@link InboundNatRule} 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. */ - listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, callback: ServiceCallback): void; - listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all network interfaces in a virtual machine scale set. + * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -5924,19 +6040,64 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a virtual machine scale set. + * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -5950,7 +6111,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5958,62 +6119,51 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more - * information. + * {InboundNatRule} [result] - The deserialized result object if an error did not occur. + * See {@link InboundNatRule} 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. */ - listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, callback: ServiceCallback): void; - listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Get the specified network interface in a virtual machine scale set. + * Deletes the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. - * - * @param {string} virtualmachineIndex The virtual machine index. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.expand] Expands referenced resources. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getVirtualMachineScaleSetNetworkInterfaceWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified network interface in a virtual machine scale set. + * Deletes the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. - * - * @param {string} virtualmachineIndex The virtual machine index. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.expand] Expands referenced resources. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6024,7 +6174,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6032,24 +6182,69 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterface} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterface} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {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. */ - getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, callback: ServiceCallback): void; - getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the specified network interface. + * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -6058,18 +6253,64 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network interface. + * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. + * + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. + * + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. + * + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. + * + * @param {string} [inboundNatRuleParameters.protocol] The transport protocol + * for the endpoint. Possible values are: 'Udp' or 'Tcp'. Possible values + * include: 'Udp', 'Tcp' + * + * @param {number} [inboundNatRuleParameters.frontendPort] The port for the + * external endpoint. Port numbers for each Rule must be unique within the Load + * Balancer. Acceptable values range from 1 to 65534. + * + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. + * + * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout + * for the TCP idle connection. The value can be set between 4 and 30 minutes. + * The default value is 4 minutes. This element is only used when the protocol + * is set to TCP. + * + * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a + * virtual machine's endpoint for the floating IP capability required to + * configure a SQL AlwaysOn Availability Group. This setting is required when + * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't + * be changed after you create the endpoint. + * + * @param {string} [inboundNatRuleParameters.provisioningState] Gets the + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [inboundNatRuleParameters.name] Gets name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [inboundNatRuleParameters.etag] A unique read-only string + * that changes whenever the resource is updated. + * + * @param {string} [inboundNatRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -6083,7 +6324,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6091,114 +6332,1809 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {InboundNatRule} [result] - The deserialized result object if an error did not occur. + * See {@link InboundNatRule} 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. */ - beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or updates a network interface. + * Gets all the inbound nat rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the inbound nat rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {InboundNatRuleListResult} - 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. + * + * {InboundNatRuleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link InboundNatRuleListResult} 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. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * LoadBalancerLoadBalancingRules + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface LoadBalancerLoadBalancingRules { + + + /** + * Gets all the load balancing rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {object} parameters Parameters supplied to the create or update - * network interface operation. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.virtualMachine] The reference of a virtual - * machine. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.virtualMachine.id] Resource ID. + * @returns {Promise} A promise is returned * - * @param {object} [parameters.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {array} [parameters.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. + * @reject {Error|ServiceError} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the load balancing rules in a load balancer. * - * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {string} [parameters.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} [parameters.networkSecurityGroup.location] Resource - * location. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * {Promise} A promise is returned. * - * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of - * the network interface. + * @resolve {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. * - * @param {object} [parameters.dnsSettings] The DNS settings in network - * interface. + * @reject {Error|ServiceError} - The error object. * - * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP - * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS - * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it - * must be the only value in dnsServers collection. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that - * uses this NIC is part of an Availability Set, then this list will have the - * union of all DNS servers from all NICs that are part of the Availability - * Set. This property is what is configured on each of those VMs. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS - * name for this NIC used for internal communications between VMs in the same - * virtual network. + * {LoadBalancerLoadBalancingRuleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link LoadBalancerLoadBalancingRuleListResult} for + * more information. * - * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS - * name supporting internal communications between VMs in the same virtual - * network. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if - * internalDnsNameLabel is not specified, a DNS entry is created for the - * primary NIC of the VM. This DNS name can be constructed by concatenating the - * VM name with the value of internalDomainNameSuffix. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets the specified load balancer load balancing rule. * - * @param {string} [parameters.macAddress] The MAC address of the network - * interface. + * @param {string} resourceGroupName The name of the resource group. * - * @param {boolean} [parameters.primary] Gets whether this is a primary network - * interface on a virtual machine. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {boolean} [parameters.enableAcceleratedNetworking] If the network - * interface is accelerated networking enabled. + * @param {string} loadBalancingRuleName The name of the load balancing rule. * - * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP - * forwarding is enabled on this network interface. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * network interface resource. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets the specified load balancer load balancing rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} loadBalancingRuleName The name of the load balancing rule. + * + * @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 {LoadBalancingRule} - 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. + * + * {LoadBalancingRule} [result] - The deserialized result object if an error did not occur. + * See {@link LoadBalancingRule} 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(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all the load balancing rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the load balancing rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {LoadBalancerLoadBalancingRuleListResult} - 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. + * + * {LoadBalancerLoadBalancingRuleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link LoadBalancerLoadBalancingRuleListResult} 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. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * LoadBalancerNetworkInterfaces + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface LoadBalancerNetworkInterfaces { + + + /** + * Gets associated load balancer network interfaces. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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. + */ + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets associated load balancer network interfaces. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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 {NetworkInterfaceListResult} - 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. + * + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} 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. + */ + list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets associated load balancer network interfaces. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets associated load balancer network interfaces. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {NetworkInterfaceListResult} - 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. + * + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} 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. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * LoadBalancerProbes + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface LoadBalancerProbes { + + + /** + * Gets all the load balancer probes. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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. + */ + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the load balancer probes. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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 {LoadBalancerProbeListResult} - 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. + * + * {LoadBalancerProbeListResult} [result] - The deserialized result object if an error did not occur. + * See {@link LoadBalancerProbeListResult} 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. + */ + list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets load balancer probe. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} probeName The name of the probe. + * + * @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(resourceGroupName: string, loadBalancerName: string, probeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets load balancer probe. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} probeName The name of the probe. + * + * @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 {Probe} - 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. + * + * {Probe} [result] - The deserialized result object if an error did not occur. + * See {@link Probe} 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(resourceGroupName: string, loadBalancerName: string, probeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, loadBalancerName: string, probeName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, probeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all the load balancer probes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the load balancer probes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {LoadBalancerProbeListResult} - 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. + * + * {LoadBalancerProbeListResult} [result] - The deserialized result object if an error did not occur. + * See {@link LoadBalancerProbeListResult} 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. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * NetworkInterfaces + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface NetworkInterfaces { + + + /** + * Deletes the specified network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes the specified network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets information about the specified network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.expand] Expands referenced resources. + * + * @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(resourceGroupName: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets information about the specified network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.expand] Expands referenced resources. + * + * @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 {NetworkInterface} - 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. + * + * {NetworkInterface} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterface} 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(resourceGroupName: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, networkInterfaceName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} parameters Parameters supplied to the create or update + * network interface operation. + * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * + * @param {object} [parameters.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * + * @param {array} [parameters.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * + * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * + * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * + * @param {string} [parameters.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only + * string that changes whenever the resource is updated. + * + * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * + * @param {string} [parameters.networkSecurityGroup.location] Resource + * location. + * + * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * + * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of + * the network interface. + * + * @param {object} [parameters.dnsSettings] The DNS settings in network + * interface. + * + * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP + * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS + * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it + * must be the only value in dnsServers collection. + * + * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that + * uses this NIC is part of an Availability Set, then this list will have the + * union of all DNS servers from all NICs that are part of the Availability + * Set. This property is what is configured on each of those VMs. + * + * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS + * name for this NIC used for internal communications between VMs in the same + * virtual network. + * + * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS + * name supporting internal communications between VMs in the same virtual + * network. + * + * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if + * internalDnsNameLabel is not specified, a DNS entry is created for the + * primary NIC of the VM. This DNS name can be constructed by concatenating the + * VM name with the value of internalDomainNameSuffix. + * + * @param {string} [parameters.macAddress] The MAC address of the network + * interface. + * + * @param {boolean} [parameters.primary] Gets whether this is a primary network + * interface on a virtual machine. + * + * @param {boolean} [parameters.enableAcceleratedNetworking] If the network + * interface is accelerated networking enabled. + * + * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP + * forwarding is enabled on this network interface. + * + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * network interface resource. + * + * @param {string} [parameters.provisioningState] The provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. + * + * @param {string} [parameters.id] Resource ID. + * + * @param {string} [parameters.location] Resource location. + * + * @param {object} [parameters.tags] Resource tags. + * + * @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(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} parameters Parameters supplied to the create or update + * network interface operation. + * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * + * @param {object} [parameters.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * + * @param {array} [parameters.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * + * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * + * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * + * @param {string} [parameters.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only + * string that changes whenever the resource is updated. + * + * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * + * @param {string} [parameters.networkSecurityGroup.location] Resource + * location. + * + * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * + * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of + * the network interface. + * + * @param {object} [parameters.dnsSettings] The DNS settings in network + * interface. + * + * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP + * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS + * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it + * must be the only value in dnsServers collection. + * + * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that + * uses this NIC is part of an Availability Set, then this list will have the + * union of all DNS servers from all NICs that are part of the Availability + * Set. This property is what is configured on each of those VMs. + * + * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS + * name for this NIC used for internal communications between VMs in the same + * virtual network. + * + * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS + * name supporting internal communications between VMs in the same virtual + * network. + * + * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if + * internalDnsNameLabel is not specified, a DNS entry is created for the + * primary NIC of the VM. This DNS name can be constructed by concatenating the + * VM name with the value of internalDomainNameSuffix. + * + * @param {string} [parameters.macAddress] The MAC address of the network + * interface. + * + * @param {boolean} [parameters.primary] Gets whether this is a primary network + * interface on a virtual machine. + * + * @param {boolean} [parameters.enableAcceleratedNetworking] If the network + * interface is accelerated networking enabled. + * + * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP + * forwarding is enabled on this network interface. + * + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * network interface resource. + * + * @param {string} [parameters.provisioningState] The provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. + * + * @param {string} [parameters.id] Resource ID. + * + * @param {string} [parameters.location] Resource location. + * + * @param {object} [parameters.tags] Resource tags. + * + * @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 {NetworkInterface} - 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. + * + * {NetworkInterface} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterface} 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(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all network interfaces in a subscription. + * + * @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. + */ + listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all network interfaces in a subscription. + * + * @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 {NetworkInterfaceListResult} - 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. + * + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} 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. + */ + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all network interfaces in a resource group. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @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. + */ + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all network interfaces in a resource group. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @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 {NetworkInterfaceListResult} - 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. + * + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} 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. + */ + list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all route tables applied to a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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. + */ + getEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all route tables applied to a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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 {EffectiveRouteListResult} - 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. + * + * {EffectiveRouteListResult} [result] - The deserialized result object if an error did not occur. + * See {@link EffectiveRouteListResult} 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. + */ + getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all network security groups applied to a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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. + */ + listEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all network security groups applied to a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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 {EffectiveNetworkSecurityGroupListResult} - 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. + * + * {EffectiveNetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. + * See {@link EffectiveNetworkSecurityGroupListResult} 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. + */ + listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets information about all network interfaces in a virtual machine in a + * virtual machine scale set. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. + * + * @param {string} virtualmachineIndex The virtual machine index. + * + * @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. + */ + listVirtualMachineScaleSetVMNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets information about all network interfaces in a virtual machine in a + * virtual machine scale set. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. + * + * @param {string} virtualmachineIndex The virtual machine index. + * + * @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 {NetworkInterfaceListResult} - 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. + * + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} 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. + */ + listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, callback: ServiceCallback): void; + listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all network interfaces in a virtual machine scale set. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. + * + * @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. + */ + listVirtualMachineScaleSetNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all network interfaces in a virtual machine scale set. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. + * + * @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 {NetworkInterfaceListResult} - 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. + * + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} 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. + */ + listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, callback: ServiceCallback): void; + listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Get the specified network interface in a virtual machine scale set. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. + * + * @param {string} virtualmachineIndex The virtual machine index. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.expand] Expands referenced resources. + * + * @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. + */ + getVirtualMachineScaleSetNetworkInterfaceWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get the specified network interface in a virtual machine scale set. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. + * + * @param {string} virtualmachineIndex The virtual machine index. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.expand] Expands referenced resources. + * + * @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 {NetworkInterface} - 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. + * + * {NetworkInterface} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterface} 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. + */ + getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, callback: ServiceCallback): void; + getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes the specified network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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. + */ + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes the specified network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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 {null} - 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. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or updates a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} parameters Parameters supplied to the create or update + * network interface operation. + * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * + * @param {object} [parameters.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * + * @param {array} [parameters.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * + * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * + * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * + * @param {string} [parameters.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only + * string that changes whenever the resource is updated. + * + * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * + * @param {string} [parameters.networkSecurityGroup.location] Resource + * location. + * + * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * + * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of + * the network interface. + * + * @param {object} [parameters.dnsSettings] The DNS settings in network + * interface. + * + * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP + * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS + * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it + * must be the only value in dnsServers collection. + * + * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that + * uses this NIC is part of an Availability Set, then this list will have the + * union of all DNS servers from all NICs that are part of the Availability + * Set. This property is what is configured on each of those VMs. + * + * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS + * name for this NIC used for internal communications between VMs in the same + * virtual network. + * + * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS + * name supporting internal communications between VMs in the same virtual + * network. + * + * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if + * internalDnsNameLabel is not specified, a DNS entry is created for the + * primary NIC of the VM. This DNS name can be constructed by concatenating the + * VM name with the value of internalDomainNameSuffix. + * + * @param {string} [parameters.macAddress] The MAC address of the network + * interface. + * + * @param {boolean} [parameters.primary] Gets whether this is a primary network + * interface on a virtual machine. + * + * @param {boolean} [parameters.enableAcceleratedNetworking] If the network + * interface is accelerated networking enabled. + * + * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP + * forwarding is enabled on this network interface. + * + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * network interface resource. + * + * @param {string} [parameters.provisioningState] The provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. + * + * @param {string} [parameters.id] Resource ID. + * + * @param {string} [parameters.location] Resource location. + * + * @param {object} [parameters.tags] Resource tags. + * + * @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. + */ + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} parameters Parameters supplied to the create or update + * network interface operation. + * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * + * @param {object} [parameters.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. + * + * @param {array} [parameters.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. + * + * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. + * + * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. + * + * @param {string} [parameters.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * + * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only + * string that changes whenever the resource is updated. + * + * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * + * @param {string} [parameters.networkSecurityGroup.location] Resource + * location. + * + * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * + * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of + * the network interface. + * + * @param {object} [parameters.dnsSettings] The DNS settings in network + * interface. + * + * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP + * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS + * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it + * must be the only value in dnsServers collection. + * + * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that + * uses this NIC is part of an Availability Set, then this list will have the + * union of all DNS servers from all NICs that are part of the Availability + * Set. This property is what is configured on each of those VMs. + * + * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS + * name for this NIC used for internal communications between VMs in the same + * virtual network. + * + * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS + * name supporting internal communications between VMs in the same virtual + * network. + * + * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if + * internalDnsNameLabel is not specified, a DNS entry is created for the + * primary NIC of the VM. This DNS name can be constructed by concatenating the + * VM name with the value of internalDomainNameSuffix. + * + * @param {string} [parameters.macAddress] The MAC address of the network + * interface. + * + * @param {boolean} [parameters.primary] Gets whether this is a primary network + * interface on a virtual machine. + * + * @param {boolean} [parameters.enableAcceleratedNetworking] If the network + * interface is accelerated networking enabled. + * + * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP + * forwarding is enabled on this network interface. + * + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * network interface resource. + * + * @param {string} [parameters.provisioningState] The provisioning state of the + * public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. + * + * @param {string} [parameters.id] Resource ID. + * + * @param {string} [parameters.location] Resource location. + * + * @param {object} [parameters.tags] Resource tags. + * + * @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 {NetworkInterface} - 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. + * + * {NetworkInterface} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterface} 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. + */ + beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all route tables applied to a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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. + */ + beginGetEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all route tables applied to a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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 {EffectiveRouteListResult} - 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. + * + * {EffectiveRouteListResult} [result] - The deserialized result object if an error did not occur. + * See {@link EffectiveRouteListResult} 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. + */ + beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all network security groups applied to a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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. + */ + beginListEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all network security groups applied to a network interface. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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 {EffectiveNetworkSecurityGroupListResult} - 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. + * + * {EffectiveNetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. + * See {@link EffectiveNetworkSecurityGroupListResult} for + * more information. * - * @param {string} [parameters.id] Resource ID. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [parameters.location] Resource location. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all network interfaces in a subscription. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -6207,109 +8143,135 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a network interface. + * Gets all network interfaces in a subscription. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {object} [options] Optional Parameters. * - * @param {object} parameters Parameters supplied to the create or update - * network interface operation. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.virtualMachine] The reference of a virtual - * machine. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} [parameters.virtualMachine.id] Resource ID. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {object} [parameters.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. + * {Promise} A promise is returned. * - * @param {array} [parameters.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * - * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. + * @reject {Error|ServiceError} - The error object. * - * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [parameters.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} for more + * information. * - * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [parameters.networkSecurityGroup.location] Resource - * location. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAllNext(nextPageLink: string, callback: ServiceCallback): void; + listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all network interfaces in a resource group. * - * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of - * the network interface. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.dnsSettings] The DNS settings in network - * interface. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP - * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS - * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it - * must be the only value in dnsServers collection. + * @returns {Promise} A promise is returned * - * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that - * uses this NIC is part of an Availability Set, then this list will have the - * union of all DNS servers from all NICs that are part of the Availability - * Set. This property is what is configured on each of those VMs. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS - * name for this NIC used for internal communications between VMs in the same - * virtual network. + * @reject {Error|ServiceError} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all network interfaces in a resource group. * - * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS - * name supporting internal communications between VMs in the same virtual - * network. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if - * internalDnsNameLabel is not specified, a DNS entry is created for the - * primary NIC of the VM. This DNS name can be constructed by concatenating the - * VM name with the value of internalDomainNameSuffix. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.macAddress] The MAC address of the network - * interface. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {boolean} [parameters.primary] Gets whether this is a primary network - * interface on a virtual machine. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {boolean} [parameters.enableAcceleratedNetworking] If the network - * interface is accelerated networking enabled. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP - * forwarding is enabled on this network interface. + * {Promise} A promise is returned. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * network interface resource. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @reject {Error|ServiceError} - The error object. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [parameters.id] Resource ID. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.location] Resource location. + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} for more + * information. * - * @param {object} [parameters.tags] Resource tags. + * {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. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets information about all network interfaces in a virtual machine in a + * virtual machine scale set. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listVirtualMachineScaleSetVMNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets information about all network interfaces in a virtual machine in a + * virtual machine scale set. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -6323,7 +8285,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6331,24 +8293,24 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterface} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterface} for more information. + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} 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. */ - beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, callback: ServiceCallback): void; + listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all route tables applied to a network interface. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all network interfaces in a virtual machine scale set. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -6357,18 +8319,17 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginGetEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route tables applied to a network interface. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all network interfaces in a virtual machine scale set. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -6382,7 +8343,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {EffectiveRouteListResult} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6390,21 +8351,30 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {EffectiveRouteListResult} [result] - The deserialized result object if an error did not occur. - * See {@link EffectiveRouteListResult} for more + * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceListResult} 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. */ - beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; - beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, callback: ServiceCallback): void; + listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * NetworkInterfaceIPConfigurations + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface NetworkInterfaceIPConfigurations { /** - * Gets all network security groups applied to a network interface. + * Get all ip configurations in a network interface * * @param {string} resourceGroupName The name of the resource group. * @@ -6417,14 +8387,14 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginListEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network security groups applied to a network interface. + * Get all ip configurations in a network interface * * @param {string} resourceGroupName The name of the resource group. * @@ -6442,7 +8412,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {EffectiveNetworkSecurityGroupListResult} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6450,24 +8420,27 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {EffectiveNetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. - * See {@link EffectiveNetworkSecurityGroupListResult} for - * more information. + * {NetworkInterfaceIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceIPConfigurationListResult} + * 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. */ - beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; - beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + list(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all network interfaces in a subscription. + * Gets the specified network interface ip configuration. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {string} ipConfigurationName The name of the ip configuration name. * * @param {object} [options] Optional Parameters. * @@ -6476,17 +8449,20 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a subscription. + * Gets the specified network interface ip configuration. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {string} ipConfigurationName The name of the ip configuration name. * * @param {object} [options] Optional Parameters. * @@ -6500,7 +8476,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6508,21 +8484,21 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more + * {NetworkInterfaceIPConfiguration} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceIPConfiguration} 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. */ - listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAllNext(nextPageLink: string, callback: ServiceCallback): void; - listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all network interfaces in a resource group. + * Get all ip configurations in a network interface * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -6534,14 +8510,14 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a resource group. + * Get all ip configurations in a network interface * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -6558,7 +8534,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6566,25 +8542,34 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more - * information. + * {NetworkInterfaceIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceIPConfigurationListResult} + * 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. */ - listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listNext(nextPageLink: string, callback: ServiceCallback): void; - listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * NetworkInterfaceLoadBalancers + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface NetworkInterfaceLoadBalancers { /** - * Gets information about all network interfaces in a virtual machine in a - * virtual machine scale set. + * Get all load balancers in a network interface * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -6593,18 +8578,18 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetVMNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets information about all network interfaces in a virtual machine in a - * virtual machine scale set. + * Get all load balancers in a network interface * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -6618,7 +8603,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6626,21 +8611,21 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more - * information. + * {NetworkInterfaceLoadBalancerListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceLoadBalancerListResult} 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. */ - listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, callback: ServiceCallback): void; - listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + list(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all network interfaces in a virtual machine scale set. + * Get all load balancers in a network interface * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -6652,14 +8637,14 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a virtual machine scale set. + * Get all load balancers in a network interface * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -6676,7 +8661,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6684,17 +8669,17 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more - * information. + * {NetworkInterfaceLoadBalancerListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkInterfaceLoadBalancerListResult} 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. */ - listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, callback: ServiceCallback): void; - listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -7509,11 +9494,23 @@ export interface SecurityRules { * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' @@ -7588,11 +9585,23 @@ export interface SecurityRules { * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' @@ -7812,11 +9821,114 @@ export interface SecurityRules { * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * + * @param {string} securityRuleParameters.destinationAddressPrefix The + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', + * 'AzureLoadBalancer' and 'Internet' can also be used. + * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * + * @param {string} securityRuleParameters.access The network traffic is allowed + * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: + * 'Allow', 'Deny' + * + * @param {number} [securityRuleParameters.priority] The priority of the rule. + * The value can be between 100 and 4096. The priority number must be unique + * for each rule in the collection. The lower the priority number, the higher + * the priority of the rule. + * + * @param {string} securityRuleParameters.direction The direction of the rule. + * The direction specifies if rule will be evaluated on incoming or outcoming + * traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values + * include: 'Inbound', 'Outbound' + * + * @param {string} [securityRuleParameters.provisioningState] The provisioning + * state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * + * @param {string} [securityRuleParameters.name] The name of the resource that + * is unique within a resource group. This name can be used to access the + * resource. + * + * @param {string} [securityRuleParameters.etag] A unique read-only string that + * changes whenever the resource is updated. + * + * @param {string} [securityRuleParameters.id] Resource ID. + * + * @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. + */ + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates or updates a security rule in the specified network security group. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {string} securityRuleName The name of the security rule. + * + * @param {object} securityRuleParameters Parameters supplied to the create or + * update network security rule operation. + * + * @param {string} [securityRuleParameters.description] A description for this + * rule. Restricted to 140 chars. + * + * @param {string} securityRuleParameters.protocol Network protocol this rule + * applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible values + * include: 'Tcp', 'Udp', '*' + * + * @param {string} [securityRuleParameters.sourcePortRange] The source port or + * range. Integer or range between 0 and 65535. Asterix '*' can also be used to + * match all ports. + * + * @param {string} [securityRuleParameters.destinationPortRange] The + * destination port or range. Integer or range between 0 and 65535. Asterix '*' + * can also be used to match all ports. + * + * @param {string} securityRuleParameters.sourceAddressPrefix The CIDR or + * source IP range. Asterix '*' can also be used to match all source IPs. + * Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' + * can also be used. If this is an ingress rule, specifies where network + * traffic originates from. + * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' @@ -7839,10 +9951,117 @@ export interface SecurityRules { * is unique within a resource group. This name can be used to access the * resource. * - * @param {string} [securityRuleParameters.etag] A unique read-only string that - * changes whenever the resource is updated. + * @param {string} [securityRuleParameters.etag] A unique read-only string that + * changes whenever the resource is updated. + * + * @param {string} [securityRuleParameters.id] Resource ID. + * + * @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 {SecurityRule} - 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. + * + * {SecurityRule} [result] - The deserialized result object if an error did not occur. + * See {@link SecurityRule} 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. + */ + beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all security rules in a network security group. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all security rules in a network security group. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {SecurityRuleListResult} - 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. + * + * {SecurityRuleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SecurityRuleListResult} 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. + */ + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * DefaultSecurityRules + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface DefaultSecurityRules { + + + /** + * Gets all default security rules in a network security group. + * + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [securityRuleParameters.id] Resource ID. + * @param {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -7851,77 +10070,87 @@ export interface SecurityRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a security rule in the specified network security group. + * Gets all default security rules in a network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * - * @param {string} securityRuleName The name of the security rule. + * @param {object} [options] Optional Parameters. * - * @param {object} securityRuleParameters Parameters supplied to the create or - * update network security rule operation. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [securityRuleParameters.description] A description for this - * rule. Restricted to 140 chars. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} securityRuleParameters.protocol Network protocol this rule - * applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible values - * include: 'Tcp', 'Udp', '*' + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {string} [securityRuleParameters.sourcePortRange] The source port or - * range. Integer or range between 0 and 65535. Asterix '*' can also be used to - * match all ports. + * {Promise} A promise is returned. * - * @param {string} [securityRuleParameters.destinationPortRange] The - * destination port or range. Integer or range between 0 and 65535. Asterix '*' - * can also be used to match all ports. + * @resolve {SecurityRuleListResult} - The deserialized result object. * - * @param {string} securityRuleParameters.sourceAddressPrefix The CIDR or - * source IP range. Asterix '*' can also be used to match all source IPs. - * Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' - * can also be used. If this is an ingress rule, specifies where network - * traffic originates from. + * @reject {Error|ServiceError} - The error object. * - * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', - * 'AzureLoadBalancer' and 'Internet' can also be used. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} securityRuleParameters.access The network traffic is allowed - * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: - * 'Allow', 'Deny' + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {number} [securityRuleParameters.priority] The priority of the rule. - * The value can be between 100 and 4096. The priority number must be unique - * for each rule in the collection. The lower the priority number, the higher - * the priority of the rule. + * {SecurityRuleListResult} [result] - The deserialized result object if an error did not occur. + * See {@link SecurityRuleListResult} for more + * information. * - * @param {string} securityRuleParameters.direction The direction of the rule. - * The direction specifies if rule will be evaluated on incoming or outcoming - * traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values - * include: 'Inbound', 'Outbound' + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [securityRuleParameters.provisioningState] The provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(resourceGroupName: string, networkSecurityGroupName: string, callback: ServiceCallback): void; + list(resourceGroupName: string, networkSecurityGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Get the specified default network security rule. * - * @param {string} [securityRuleParameters.name] The name of the resource that - * is unique within a resource group. This name can be used to access the - * resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [securityRuleParameters.etag] A unique read-only string that - * changes whenever the resource is updated. + * @param {string} networkSecurityGroupName The name of the network security + * group. * - * @param {string} [securityRuleParameters.id] Resource ID. + * @param {string} defaultSecurityRuleName The name of the default security + * rule. + * + * @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(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Get the specified default network security rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {string} defaultSecurityRuleName The name of the default security + * rule. * * @param {object} [options] Optional Parameters. * @@ -7950,13 +10179,13 @@ export interface SecurityRules { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all security rules in a network security group. + * Gets all default security rules in a network security group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -7975,7 +10204,7 @@ export interface SecurityRules { listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all security rules in a network security group. + * Gets all default security rules in a network security group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -10795,6 +13024,11 @@ export interface PublicIPAddresses { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -10822,7 +13056,8 @@ export interface PublicIPAddresses { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -10866,6 +13101,11 @@ export interface PublicIPAddresses { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -10893,7 +13133,8 @@ export interface PublicIPAddresses { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -11343,6 +13584,11 @@ export interface PublicIPAddresses { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -11370,7 +13616,8 @@ export interface PublicIPAddresses { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -11414,6 +13661,11 @@ export interface PublicIPAddresses { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -11441,7 +13693,8 @@ export interface PublicIPAddresses { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -11875,6 +14128,9 @@ export interface RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -11907,6 +14163,9 @@ export interface RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -11958,6 +14217,9 @@ export interface RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -11988,6 +14250,9 @@ export interface RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -12201,6 +14466,9 @@ export interface RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -12233,6 +14501,9 @@ export interface RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -12284,6 +14555,9 @@ export interface RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -12314,6 +14588,9 @@ export interface RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -12617,6 +14894,10 @@ export interface RouteFilterRules { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -12655,6 +14936,10 @@ export interface RouteFilterRules { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -12925,6 +15210,10 @@ export interface RouteFilterRules { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -12963,6 +15252,10 @@ export interface RouteFilterRules { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -15592,8 +17885,8 @@ export interface Subnets { * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -15683,8 +17976,8 @@ export interface Subnets { * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -15914,8 +18207,8 @@ export interface Subnets { * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -16005,8 +18298,8 @@ export interface Subnets { * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -16818,6 +19111,14 @@ export interface VirtualNetworkGateways { * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -16829,12 +19130,6 @@ export interface VirtualNetworkGateways { * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -16931,6 +19226,14 @@ export interface VirtualNetworkGateways { * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -16942,12 +19245,6 @@ export interface VirtualNetworkGateways { * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -17169,6 +19466,68 @@ export interface VirtualNetworkGateways { list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Gets all the connections in a virtual network gateway. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @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. + */ + listConnectionsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the connections in a virtual network gateway. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @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 {VirtualNetworkGatewayListConnectionsResult} - 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. + * + * {VirtualNetworkGatewayListConnectionsResult} [result] - The deserialized result object if an error did not occur. + * See {@link VirtualNetworkGatewayListConnectionsResult} + * 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. + */ + listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; + listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Resets the primary of the virtual network gateway in the specified resource * group. @@ -17402,14 +19761,78 @@ export interface VirtualNetworkGateways { * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values * include: 'EAPTLS', 'EAPMSCHAPv2' * - * @param {string} [parameters.radiusServerAuthCertificate] The public - * certificate data for the radius server authentication certificate as a - * Base-64 encoded string. Required only if external radius authentication has - * been configured with EAPTLS authentication. + * @param {string} [parameters.radiusServerAuthCertificate] The public + * certificate data for the radius server authentication certificate as a + * Base-64 encoded string. Required only if external radius authentication has + * been configured with EAPTLS authentication. + * + * @param {array} [parameters.clientRootCertificates] A list of client root + * certificates public certificate data encoded as Base-64 strings. Optional + * parameter for external radius based authentication with EAPTLS. + * + * @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 {String} - 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. + * + * {String} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, callback: ServiceCallback): void; + generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @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. + */ + getVpnProfilePacakgeUrlWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. * - * @param {array} [parameters.clientRootCertificates] A list of client root - * certificates public certificate data encoded as Base-64 strings. Optional - * parameter for external radius based authentication with EAPTLS. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -17437,9 +19860,9 @@ export interface VirtualNetworkGateways { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, callback: ServiceCallback): void; - generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getVpnProfilePacakgeUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getVpnProfilePacakgeUrl(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; + getVpnProfilePacakgeUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -17713,6 +20136,14 @@ export interface VirtualNetworkGateways { * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -17724,12 +20155,6 @@ export interface VirtualNetworkGateways { * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -17826,6 +20251,14 @@ export interface VirtualNetworkGateways { * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -17837,12 +20270,6 @@ export interface VirtualNetworkGateways { * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -18220,6 +20647,70 @@ export interface VirtualNetworkGateways { beginGenerateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @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. + */ + beginGetVpnProfilePacakgeUrlWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @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 {String} - 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. + * + * {String} [result] - The deserialized result object if an error did not occur. + * + * {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. + */ + beginGetVpnProfilePacakgeUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginGetVpnProfilePacakgeUrl(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; + beginGetVpnProfilePacakgeUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * @@ -18476,6 +20967,64 @@ export interface VirtualNetworkGateways { listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets all the connections in a virtual network gateway. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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. + */ + listConnectionsNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all the connections in a virtual network gateway. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {VirtualNetworkGatewayListConnectionsResult} - 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. + * + * {VirtualNetworkGatewayListConnectionsResult} [result] - The deserialized result object if an error did not occur. + * See {@link VirtualNetworkGatewayListConnectionsResult} + * 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. + */ + listConnectionsNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listConnectionsNext(nextPageLink: string, callback: ServiceCallback): void; + listConnectionsNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -18501,9 +21050,11 @@ export interface VirtualNetworkGatewayConnections { * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -18563,16 +21114,18 @@ export interface VirtualNetworkGatewayConnections { * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -18587,7 +21140,8 @@ export interface VirtualNetworkGatewayConnections { * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -18684,9 +21238,11 @@ export interface VirtualNetworkGatewayConnections { * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -18746,16 +21302,18 @@ export interface VirtualNetworkGatewayConnections { * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -18770,7 +21328,8 @@ export interface VirtualNetworkGatewayConnections { * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -19295,9 +21854,11 @@ export interface VirtualNetworkGatewayConnections { * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -19357,16 +21918,18 @@ export interface VirtualNetworkGatewayConnections { * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -19381,7 +21944,8 @@ export interface VirtualNetworkGatewayConnections { * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -19478,9 +22042,11 @@ export interface VirtualNetworkGatewayConnections { * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -19540,16 +22106,18 @@ export interface VirtualNetworkGatewayConnections { * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -19564,7 +22132,8 @@ export interface VirtualNetworkGatewayConnections { * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -20515,128 +23084,3 @@ export interface LocalNetworkGateways { listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } - -/** - * @class - * AvailablePrivateAccessServices - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface AvailablePrivateAccessServices { - - - /** - * List what values of private access services are available for use. - * - * @param {string} location The location to check available private access - * values. - * - * @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. - */ - listWithHttpOperationResponse(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * List what values of private access services are available for use. - * - * @param {string} location The location to check available private access - * values. - * - * @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 {PrivateAccessServicesListResult} - 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. - * - * {PrivateAccessServicesListResult} [result] - The deserialized result object if an error did not occur. - * See {@link PrivateAccessServicesListResult} 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. - */ - list(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(location: string, callback: ServiceCallback): void; - list(location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * List what values of private access services are available for use. - * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. - * - * @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. - */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * List what values of private access services are available for use. - * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. - * - * @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 {PrivateAccessServicesListResult} - 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. - * - * {PrivateAccessServicesListResult} [result] - The deserialized result object if an error did not occur. - * See {@link PrivateAccessServicesListResult} 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. - */ - listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listNext(nextPageLink: string, callback: ServiceCallback): void; - listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} diff --git a/lib/services/networkManagement2/lib/operations/index.js b/lib/services/networkManagement2/lib/operations/index.js index 0869f2d85d..42a3cd72cc 100644 --- a/lib/services/networkManagement2/lib/operations/index.js +++ b/lib/services/networkManagement2/lib/operations/index.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -15,14 +15,24 @@ 'use strict'; exports.ApplicationGateways = require('./applicationGateways'); +exports.AvailableEndpointServices = require('./availableEndpointServices'); exports.ExpressRouteCircuitAuthorizations = require('./expressRouteCircuitAuthorizations'); exports.ExpressRouteCircuitPeerings = require('./expressRouteCircuitPeerings'); exports.ExpressRouteCircuits = require('./expressRouteCircuits'); exports.ExpressRouteServiceProviders = require('./expressRouteServiceProviders'); exports.LoadBalancers = require('./loadBalancers'); +exports.LoadBalancerBackendAddressPools = require('./loadBalancerBackendAddressPools'); +exports.LoadBalancerFrontendIPConfigurations = require('./loadBalancerFrontendIPConfigurations'); +exports.InboundNatRules = require('./inboundNatRules'); +exports.LoadBalancerLoadBalancingRules = require('./loadBalancerLoadBalancingRules'); +exports.LoadBalancerNetworkInterfaces = require('./loadBalancerNetworkInterfaces'); +exports.LoadBalancerProbes = require('./loadBalancerProbes'); exports.NetworkInterfaces = require('./networkInterfaces'); +exports.NetworkInterfaceIPConfigurations = require('./networkInterfaceIPConfigurations'); +exports.NetworkInterfaceLoadBalancers = require('./networkInterfaceLoadBalancers'); exports.NetworkSecurityGroups = require('./networkSecurityGroups'); exports.SecurityRules = require('./securityRules'); +exports.DefaultSecurityRules = require('./defaultSecurityRules'); exports.NetworkWatchers = require('./networkWatchers'); exports.PacketCaptures = require('./packetCaptures'); exports.PublicIPAddresses = require('./publicIPAddresses'); @@ -38,4 +48,3 @@ exports.VirtualNetworkPeerings = require('./virtualNetworkPeerings'); exports.VirtualNetworkGateways = require('./virtualNetworkGateways'); exports.VirtualNetworkGatewayConnections = require('./virtualNetworkGatewayConnections'); exports.LocalNetworkGateways = require('./localNetworkGateways'); -exports.AvailablePrivateAccessServices = require('./availablePrivateAccessServices'); diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerBackendAddressPools.js b/lib/services/networkManagement2/lib/operations/loadBalancerBackendAddressPools.js new file mode 100644 index 0000000000..531cea2e18 --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/loadBalancerBackendAddressPools.js @@ -0,0 +1,715 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets all the load balancer backed address pools. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 LoadBalancerBackendAddressPoolListResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, loadBalancerName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancerBackendAddressPoolListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets load balancer backend address pool. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} backendAddressPoolName The name of the backend address pool. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 BackendAddressPool} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, loadBalancerName, backendAddressPoolName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName cannot be null or undefined and it must be of type string.'); + } + if (backendAddressPoolName === null || backendAddressPoolName === undefined || typeof backendAddressPoolName.valueOf() !== 'string') { + throw new Error('backendAddressPoolName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{backendAddressPoolName}', encodeURIComponent(backendAddressPoolName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['BackendAddressPool']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets all the load balancer backed address pools. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 LoadBalancerBackendAddressPoolListResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancerBackendAddressPoolListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a LoadBalancerBackendAddressPools. */ +class LoadBalancerBackendAddressPools { + /** + * Create a LoadBalancerBackendAddressPools. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._get = _get; + this._listNext = _listNext; + } + + /** + * Gets all the load balancer backed address pools. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, loadBalancerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the load balancer backed address pools. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 LoadBalancerBackendAddressPoolListResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, loadBalancerName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, loadBalancerName, options, optionalCallback); + } + } + + /** + * Gets load balancer backend address pool. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} backendAddressPoolName The name of the backend address pool. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, loadBalancerName, backendAddressPoolName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, backendAddressPoolName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets load balancer backend address pool. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} backendAddressPoolName The name of the backend address pool. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {BackendAddressPool} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 BackendAddressPool} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, loadBalancerName, backendAddressPoolName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, backendAddressPoolName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, loadBalancerName, backendAddressPoolName, options, optionalCallback); + } + } + + /** + * Gets all the load balancer backed address pools. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the load balancer backed address pools. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 LoadBalancerBackendAddressPoolListResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = LoadBalancerBackendAddressPools; diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerFrontendIPConfigurations.js b/lib/services/networkManagement2/lib/operations/loadBalancerFrontendIPConfigurations.js new file mode 100644 index 0000000000..e7daeec5cb --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/loadBalancerFrontendIPConfigurations.js @@ -0,0 +1,724 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets all the load balancer frontend IP configurations. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 + * LoadBalancerFrontendIPConfigurationListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, loadBalancerName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancerFrontendIPConfigurationListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets load balancer frontend IP configuration. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} frontendIPConfigurationName The name of the frontend IP + * configuration. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 FrontendIPConfiguration} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, loadBalancerName, frontendIPConfigurationName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName cannot be null or undefined and it must be of type string.'); + } + if (frontendIPConfigurationName === null || frontendIPConfigurationName === undefined || typeof frontendIPConfigurationName.valueOf() !== 'string') { + throw new Error('frontendIPConfigurationName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{frontendIPConfigurationName}', encodeURIComponent(frontendIPConfigurationName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['FrontendIPConfiguration']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets all the load balancer frontend IP configurations. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 + * LoadBalancerFrontendIPConfigurationListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancerFrontendIPConfigurationListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a LoadBalancerFrontendIPConfigurations. */ +class LoadBalancerFrontendIPConfigurations { + /** + * Create a LoadBalancerFrontendIPConfigurations. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._get = _get; + this._listNext = _listNext; + } + + /** + * Gets all the load balancer frontend IP configurations. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, loadBalancerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the load balancer frontend IP configurations. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 + * LoadBalancerFrontendIPConfigurationListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, loadBalancerName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, loadBalancerName, options, optionalCallback); + } + } + + /** + * Gets load balancer frontend IP configuration. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} frontendIPConfigurationName The name of the frontend IP + * configuration. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, loadBalancerName, frontendIPConfigurationName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, frontendIPConfigurationName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets load balancer frontend IP configuration. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} frontendIPConfigurationName The name of the frontend IP + * configuration. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {FrontendIPConfiguration} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 FrontendIPConfiguration} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, loadBalancerName, frontendIPConfigurationName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, frontendIPConfigurationName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, loadBalancerName, frontendIPConfigurationName, options, optionalCallback); + } + } + + /** + * Gets all the load balancer frontend IP configurations. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the load balancer frontend IP configurations. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 + * LoadBalancerFrontendIPConfigurationListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = LoadBalancerFrontendIPConfigurations; diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerLoadBalancingRules.js b/lib/services/networkManagement2/lib/operations/loadBalancerLoadBalancingRules.js new file mode 100644 index 0000000000..e36ccf4d13 --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/loadBalancerLoadBalancingRules.js @@ -0,0 +1,715 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets all the load balancing rules in a load balancer. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 LoadBalancerLoadBalancingRuleListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, loadBalancerName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancerLoadBalancingRuleListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets the specified load balancer load balancing rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} loadBalancingRuleName The name of the load balancing rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 LoadBalancingRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, loadBalancerName, loadBalancingRuleName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName cannot be null or undefined and it must be of type string.'); + } + if (loadBalancingRuleName === null || loadBalancingRuleName === undefined || typeof loadBalancingRuleName.valueOf() !== 'string') { + throw new Error('loadBalancingRuleName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{loadBalancingRuleName}', encodeURIComponent(loadBalancingRuleName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancingRule']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets all the load balancing rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 LoadBalancerLoadBalancingRuleListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancerLoadBalancingRuleListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a LoadBalancerLoadBalancingRules. */ +class LoadBalancerLoadBalancingRules { + /** + * Create a LoadBalancerLoadBalancingRules. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._get = _get; + this._listNext = _listNext; + } + + /** + * Gets all the load balancing rules in a load balancer. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, loadBalancerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the load balancing rules in a load balancer. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 LoadBalancerLoadBalancingRuleListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, loadBalancerName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, loadBalancerName, options, optionalCallback); + } + } + + /** + * Gets the specified load balancer load balancing rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} loadBalancingRuleName The name of the load balancing rule. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, loadBalancerName, loadBalancingRuleName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, loadBalancingRuleName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the specified load balancer load balancing rule. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} loadBalancingRuleName The name of the load balancing rule. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancingRule} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 LoadBalancingRule} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, loadBalancerName, loadBalancingRuleName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, loadBalancingRuleName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, loadBalancerName, loadBalancingRuleName, options, optionalCallback); + } + } + + /** + * Gets all the load balancing rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the load balancing rules in a load balancer. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 LoadBalancerLoadBalancingRuleListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = LoadBalancerLoadBalancingRules; diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerNetworkInterfaces.js b/lib/services/networkManagement2/lib/operations/loadBalancerNetworkInterfaces.js new file mode 100644 index 0000000000..2dea7f3cc5 --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/loadBalancerNetworkInterfaces.js @@ -0,0 +1,475 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets associated load balancer network interfaces. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 NetworkInterfaceListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, loadBalancerName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkInterfaceListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets associated load balancer network interfaces. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 NetworkInterfaceListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkInterfaceListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a LoadBalancerNetworkInterfaces. */ +class LoadBalancerNetworkInterfaces { + /** + * Create a LoadBalancerNetworkInterfaces. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._listNext = _listNext; + } + + /** + * Gets associated load balancer network interfaces. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, loadBalancerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets associated load balancer network interfaces. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {NetworkInterfaceListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 NetworkInterfaceListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, loadBalancerName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, loadBalancerName, options, optionalCallback); + } + } + + /** + * Gets associated load balancer network interfaces. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets associated load balancer network interfaces. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {NetworkInterfaceListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 NetworkInterfaceListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = LoadBalancerNetworkInterfaces; diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerProbes.js b/lib/services/networkManagement2/lib/operations/loadBalancerProbes.js new file mode 100644 index 0000000000..4fc7acef51 --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/loadBalancerProbes.js @@ -0,0 +1,715 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Gets all the load balancer probes. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 LoadBalancerProbeListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, loadBalancerName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancerProbeListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets load balancer probe. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} probeName The name of the probe. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 Probe} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, loadBalancerName, probeName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (loadBalancerName === null || loadBalancerName === undefined || typeof loadBalancerName.valueOf() !== 'string') { + throw new Error('loadBalancerName cannot be null or undefined and it must be of type string.'); + } + if (probeName === null || probeName === undefined || typeof probeName.valueOf() !== 'string') { + throw new Error('probeName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{loadBalancerName}', encodeURIComponent(loadBalancerName)); + requestUrl = requestUrl.replace('{probeName}', encodeURIComponent(probeName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['Probe']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets all the load balancer probes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 LoadBalancerProbeListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['LoadBalancerProbeListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a LoadBalancerProbes. */ +class LoadBalancerProbes { + /** + * Create a LoadBalancerProbes. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._get = _get; + this._listNext = _listNext; + } + + /** + * Gets all the load balancer probes. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, loadBalancerName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the load balancer probes. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancerProbeListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 LoadBalancerProbeListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, loadBalancerName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, loadBalancerName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, loadBalancerName, options, optionalCallback); + } + } + + /** + * Gets load balancer probe. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} probeName The name of the probe. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, loadBalancerName, probeName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, probeName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets load balancer probe. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} probeName The name of the probe. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {Probe} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 Probe} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, loadBalancerName, probeName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, loadBalancerName, probeName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, loadBalancerName, probeName, options, optionalCallback); + } + } + + /** + * Gets all the load balancer probes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the load balancer probes. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {LoadBalancerProbeListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 LoadBalancerProbeListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = LoadBalancerProbes; diff --git a/lib/services/networkManagement2/lib/operations/loadBalancers.js b/lib/services/networkManagement2/lib/operations/loadBalancers.js index 38ce1e55f4..00da53b349 100644 --- a/lib/services/networkManagement2/lib/operations/loadBalancers.js +++ b/lib/services/networkManagement2/lib/operations/loadBalancers.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -115,7 +115,7 @@ function _get(resourceGroupName, loadBalancerName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -155,9 +155,10 @@ function _get(resourceGroupName, loadBalancerName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -171,7 +172,6 @@ function _get(resourceGroupName, loadBalancerName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -240,6 +240,11 @@ function _get(resourceGroupName, loadBalancerName, options, callback) { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -389,7 +394,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -415,9 +420,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -431,7 +437,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -523,7 +528,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -553,9 +558,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -569,7 +575,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -661,7 +666,7 @@ function _beginDeleteMethod(resourceGroupName, loadBalancerName, options, callba if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -695,9 +700,10 @@ function _beginDeleteMethod(resourceGroupName, loadBalancerName, options, callba // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -711,7 +717,6 @@ function _beginDeleteMethod(resourceGroupName, loadBalancerName, options, callba } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -762,6 +767,11 @@ function _beginDeleteMethod(resourceGroupName, loadBalancerName, options, callba * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -837,7 +847,7 @@ function _beginCreateOrUpdate(resourceGroupName, loadBalancerName, parameters, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -874,9 +884,10 @@ function _beginCreateOrUpdate(resourceGroupName, loadBalancerName, parameters, o // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -890,7 +901,6 @@ function _beginCreateOrUpdate(resourceGroupName, loadBalancerName, parameters, o } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1033,9 +1043,10 @@ function _listAllNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1049,7 +1060,6 @@ function _listAllNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1161,9 +1171,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1177,7 +1188,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1235,17 +1245,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * LoadBalancers - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the LoadBalancers class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a LoadBalancers. */ class LoadBalancers { + /** + * Create a LoadBalancers. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; @@ -1444,6 +1449,11 @@ class LoadBalancers { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -1526,6 +1536,11 @@ class LoadBalancers { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -1877,6 +1892,11 @@ class LoadBalancers { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * @@ -1959,6 +1979,11 @@ class LoadBalancers { * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * + * @param {object} [parameters.sku] The load balancer SKU. + * + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' + * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * diff --git a/lib/services/networkManagement2/lib/operations/localNetworkGateways.js b/lib/services/networkManagement2/lib/operations/localNetworkGateways.js index e15efac125..0d0b4d6b3a 100644 --- a/lib/services/networkManagement2/lib/operations/localNetworkGateways.js +++ b/lib/services/networkManagement2/lib/operations/localNetworkGateways.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -164,7 +164,7 @@ function _get(resourceGroupName, localNetworkGatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -204,9 +204,10 @@ function _get(resourceGroupName, localNetworkGatewayName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -220,7 +221,6 @@ function _get(resourceGroupName, localNetworkGatewayName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -376,7 +376,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -406,9 +406,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -422,7 +423,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -551,7 +551,7 @@ function _beginCreateOrUpdate(resourceGroupName, localNetworkGatewayName, parame if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -594,9 +594,10 @@ function _beginCreateOrUpdate(resourceGroupName, localNetworkGatewayName, parame // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -610,7 +611,6 @@ function _beginCreateOrUpdate(resourceGroupName, localNetworkGatewayName, parame } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -734,7 +734,7 @@ function _beginDeleteMethod(resourceGroupName, localNetworkGatewayName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -774,9 +774,10 @@ function _beginDeleteMethod(resourceGroupName, localNetworkGatewayName, options, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -790,7 +791,6 @@ function _beginDeleteMethod(resourceGroupName, localNetworkGatewayName, options, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -885,9 +885,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -901,7 +902,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -959,17 +959,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * LocalNetworkGateways - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the LocalNetworkGateways class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a LocalNetworkGateways. */ class LocalNetworkGateways { + /** + * Create a LocalNetworkGateways. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createOrUpdate = _createOrUpdate; diff --git a/lib/services/networkManagement2/lib/operations/networkInterfaceIPConfigurations.js b/lib/services/networkManagement2/lib/operations/networkInterfaceIPConfigurations.js new file mode 100644 index 0000000000..c3009a270b --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/networkInterfaceIPConfigurations.js @@ -0,0 +1,717 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Get all ip configurations in a network interface + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 NetworkInterfaceIPConfigurationListResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, networkInterfaceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (networkInterfaceName === null || networkInterfaceName === undefined || typeof networkInterfaceName.valueOf() !== 'string') { + throw new Error('networkInterfaceName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{networkInterfaceName}', encodeURIComponent(networkInterfaceName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkInterfaceIPConfigurationListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets the specified network interface ip configuration. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {string} ipConfigurationName The name of the ip configuration name. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 NetworkInterfaceIPConfiguration} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, networkInterfaceName, ipConfigurationName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (networkInterfaceName === null || networkInterfaceName === undefined || typeof networkInterfaceName.valueOf() !== 'string') { + throw new Error('networkInterfaceName cannot be null or undefined and it must be of type string.'); + } + if (ipConfigurationName === null || ipConfigurationName === undefined || typeof ipConfigurationName.valueOf() !== 'string') { + throw new Error('ipConfigurationName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{networkInterfaceName}', encodeURIComponent(networkInterfaceName)); + requestUrl = requestUrl.replace('{ipConfigurationName}', encodeURIComponent(ipConfigurationName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkInterfaceIPConfiguration']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Get all ip configurations in a network interface + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 NetworkInterfaceIPConfigurationListResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkInterfaceIPConfigurationListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a NetworkInterfaceIPConfigurations. */ +class NetworkInterfaceIPConfigurations { + /** + * Create a NetworkInterfaceIPConfigurations. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._get = _get; + this._listNext = _listNext; + } + + /** + * Get all ip configurations in a network interface + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, networkInterfaceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, networkInterfaceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get all ip configurations in a network interface + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 NetworkInterfaceIPConfigurationListResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, networkInterfaceName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, networkInterfaceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, networkInterfaceName, options, optionalCallback); + } + } + + /** + * Gets the specified network interface ip configuration. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {string} ipConfigurationName The name of the ip configuration name. + * + * @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} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, networkInterfaceName, ipConfigurationName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, networkInterfaceName, ipConfigurationName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets the specified network interface ip configuration. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {string} ipConfigurationName The name of the ip configuration name. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {NetworkInterfaceIPConfiguration} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 NetworkInterfaceIPConfiguration} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, networkInterfaceName, ipConfigurationName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, networkInterfaceName, ipConfigurationName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, networkInterfaceName, ipConfigurationName, options, optionalCallback); + } + } + + /** + * Get all ip configurations in a network interface + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get all ip configurations in a network interface + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 NetworkInterfaceIPConfigurationListResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = NetworkInterfaceIPConfigurations; diff --git a/lib/services/networkManagement2/lib/operations/networkInterfaceLoadBalancers.js b/lib/services/networkManagement2/lib/operations/networkInterfaceLoadBalancers.js new file mode 100644 index 0000000000..a891243652 --- /dev/null +++ b/lib/services/networkManagement2/lib/operations/networkInterfaceLoadBalancers.js @@ -0,0 +1,475 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Get all load balancers in a network interface + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 NetworkInterfaceLoadBalancerListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _list(resourceGroupName, networkInterfaceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (networkInterfaceName === null || networkInterfaceName === undefined || typeof networkInterfaceName.valueOf() !== 'string') { + throw new Error('networkInterfaceName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{networkInterfaceName}', encodeURIComponent(networkInterfaceName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkInterfaceLoadBalancerListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Get all load balancers in a network interface + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 NetworkInterfaceLoadBalancerListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkInterfaceLoadBalancerListResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a NetworkInterfaceLoadBalancers. */ +class NetworkInterfaceLoadBalancers { + /** + * Create a NetworkInterfaceLoadBalancers. + * @param {NetworkManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + this._listNext = _listNext; + } + + /** + * Get all load balancers in a network interface + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @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} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, networkInterfaceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, networkInterfaceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get all load balancers in a network interface + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 NetworkInterfaceLoadBalancerListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, networkInterfaceName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, networkInterfaceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, networkInterfaceName, options, optionalCallback); + } + } + + /** + * Get all load balancers in a network interface + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Get all load balancers in a network interface + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 NetworkInterfaceLoadBalancerListResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = NetworkInterfaceLoadBalancers; diff --git a/lib/services/networkManagement2/lib/operations/networkInterfaces.js b/lib/services/networkManagement2/lib/operations/networkInterfaces.js index 1da126c02e..b7cd55af95 100644 --- a/lib/services/networkManagement2/lib/operations/networkInterfaces.js +++ b/lib/services/networkManagement2/lib/operations/networkInterfaces.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -115,7 +115,7 @@ function _get(resourceGroupName, networkInterfaceName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -155,9 +155,10 @@ function _get(resourceGroupName, networkInterfaceName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -171,7 +172,6 @@ function _get(resourceGroupName, networkInterfaceName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -430,7 +430,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -456,9 +456,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -472,7 +473,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -564,7 +564,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -594,9 +594,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -610,7 +611,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -904,9 +904,10 @@ function _listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName, virtu // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -920,7 +921,6 @@ function _listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName, virtu } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1049,9 +1049,10 @@ function _listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName, virtual // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1065,7 +1066,6 @@ function _listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName, virtual } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1214,9 +1214,10 @@ function _getVirtualMachineScaleSetNetworkInterface(resourceGroupName, virtualMa // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1230,7 +1231,6 @@ function _getVirtualMachineScaleSetNetworkInterface(resourceGroupName, virtualMa } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1322,7 +1322,7 @@ function _beginDeleteMethod(resourceGroupName, networkInterfaceName, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1356,9 +1356,10 @@ function _beginDeleteMethod(resourceGroupName, networkInterfaceName, options, ca // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1372,7 +1373,6 @@ function _beginDeleteMethod(resourceGroupName, networkInterfaceName, options, ca } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1539,7 +1539,7 @@ function _beginCreateOrUpdate(resourceGroupName, networkInterfaceName, parameter if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1576,9 +1576,10 @@ function _beginCreateOrUpdate(resourceGroupName, networkInterfaceName, parameter // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1592,7 +1593,6 @@ function _beginCreateOrUpdate(resourceGroupName, networkInterfaceName, parameter } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1717,7 +1717,7 @@ function _beginGetEffectiveRouteTable(resourceGroupName, networkInterfaceName, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1751,9 +1751,10 @@ function _beginGetEffectiveRouteTable(resourceGroupName, networkInterfaceName, o // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1767,7 +1768,6 @@ function _beginGetEffectiveRouteTable(resourceGroupName, networkInterfaceName, o } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1861,7 +1861,7 @@ function _beginListEffectiveNetworkSecurityGroups(resourceGroupName, networkInte if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1895,9 +1895,10 @@ function _beginListEffectiveNetworkSecurityGroups(resourceGroupName, networkInte // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1911,7 +1912,6 @@ function _beginListEffectiveNetworkSecurityGroups(resourceGroupName, networkInte } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2023,9 +2023,10 @@ function _listAllNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2039,7 +2040,6 @@ function _listAllNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2151,9 +2151,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2167,7 +2168,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2280,9 +2280,10 @@ function _listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink, option // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2296,7 +2297,6 @@ function _listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink, option } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2408,9 +2408,10 @@ function _listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink, options, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2424,7 +2425,6 @@ function _listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink, options, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2482,17 +2482,12 @@ function _listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink, options, }); } -/** - * @class - * NetworkInterfaces - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the NetworkInterfaces class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a NetworkInterfaces. */ class NetworkInterfaces { + /** + * Create a NetworkInterfaces. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/lib/operations/networkSecurityGroups.js b/lib/services/networkManagement2/lib/operations/networkSecurityGroups.js index 7b99933b9b..fe09180015 100644 --- a/lib/services/networkManagement2/lib/operations/networkSecurityGroups.js +++ b/lib/services/networkManagement2/lib/operations/networkSecurityGroups.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -117,7 +117,7 @@ function _get(resourceGroupName, networkSecurityGroupName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -157,9 +157,10 @@ function _get(resourceGroupName, networkSecurityGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -173,7 +174,6 @@ function _get(resourceGroupName, networkSecurityGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -367,7 +367,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -393,9 +393,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -409,7 +410,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -501,7 +501,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -531,9 +531,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -547,7 +548,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -640,7 +640,7 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -674,9 +674,10 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, options // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -690,7 +691,6 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, options } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -792,7 +792,7 @@ function _beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, param if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -829,9 +829,10 @@ function _beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, param // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -845,7 +846,6 @@ function _beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, param } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -988,9 +988,10 @@ function _listAllNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1004,7 +1005,6 @@ function _listAllNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1116,9 +1116,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1132,7 +1133,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1190,17 +1190,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * NetworkSecurityGroups - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the NetworkSecurityGroups class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a NetworkSecurityGroups. */ class NetworkSecurityGroups { + /** + * Create a NetworkSecurityGroups. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/lib/operations/networkWatchers.js b/lib/services/networkManagement2/lib/operations/networkWatchers.js index 97f3bdc94a..0b507444ca 100644 --- a/lib/services/networkManagement2/lib/operations/networkWatchers.js +++ b/lib/services/networkManagement2/lib/operations/networkWatchers.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -61,7 +61,7 @@ function _createOrUpdate(resourceGroupName, networkWatcherName, parameters, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -98,9 +98,10 @@ function _createOrUpdate(resourceGroupName, networkWatcherName, parameters, opti // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -114,7 +115,6 @@ function _createOrUpdate(resourceGroupName, networkWatcherName, parameters, opti } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -238,7 +238,7 @@ function _get(resourceGroupName, networkWatcherName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -272,9 +272,10 @@ function _get(resourceGroupName, networkWatcherName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -288,7 +289,6 @@ function _get(resourceGroupName, networkWatcherName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -443,7 +443,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -473,9 +473,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -489,7 +490,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -579,7 +579,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -605,9 +605,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -621,7 +622,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -720,7 +720,7 @@ function _getTopology(resourceGroupName, networkWatcherName, parameters, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -757,9 +757,10 @@ function _getTopology(resourceGroupName, networkWatcherName, parameters, options // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -773,7 +774,6 @@ function _getTopology(resourceGroupName, networkWatcherName, parameters, options } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1626,7 +1626,7 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, options, call if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1660,9 +1660,10 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, options, call // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1676,7 +1677,6 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, options, call } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1784,7 +1784,7 @@ function _beginVerifyIPFlow(resourceGroupName, networkWatcherName, parameters, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1821,9 +1821,10 @@ function _beginVerifyIPFlow(resourceGroupName, networkWatcherName, parameters, o // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1837,7 +1838,6 @@ function _beginVerifyIPFlow(resourceGroupName, networkWatcherName, parameters, o } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1975,7 +1975,7 @@ function _beginGetNextHop(resourceGroupName, networkWatcherName, parameters, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2012,9 +2012,10 @@ function _beginGetNextHop(resourceGroupName, networkWatcherName, parameters, opt // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2028,7 +2029,6 @@ function _beginGetNextHop(resourceGroupName, networkWatcherName, parameters, opt } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -2158,7 +2158,7 @@ function _beginGetVMSecurityRules(resourceGroupName, networkWatcherName, paramet if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2195,9 +2195,10 @@ function _beginGetVMSecurityRules(resourceGroupName, networkWatcherName, paramet // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2211,7 +2212,6 @@ function _beginGetVMSecurityRules(resourceGroupName, networkWatcherName, paramet } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -2347,7 +2347,7 @@ function _beginGetTroubleshooting(resourceGroupName, networkWatcherName, paramet if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2384,9 +2384,10 @@ function _beginGetTroubleshooting(resourceGroupName, networkWatcherName, paramet // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2400,7 +2401,6 @@ function _beginGetTroubleshooting(resourceGroupName, networkWatcherName, paramet } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -2530,7 +2530,7 @@ function _beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, p if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2567,9 +2567,10 @@ function _beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, p // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2583,7 +2584,6 @@ function _beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, p } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -2727,7 +2727,7 @@ function _beginSetFlowLogConfiguration(resourceGroupName, networkWatcherName, pa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2764,9 +2764,10 @@ function _beginSetFlowLogConfiguration(resourceGroupName, networkWatcherName, pa // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2780,7 +2781,6 @@ function _beginSetFlowLogConfiguration(resourceGroupName, networkWatcherName, pa } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -2911,7 +2911,7 @@ function _beginGetFlowLogStatus(resourceGroupName, networkWatcherName, parameter if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2948,9 +2948,10 @@ function _beginGetFlowLogStatus(resourceGroupName, networkWatcherName, parameter // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2964,7 +2965,6 @@ function _beginGetFlowLogStatus(resourceGroupName, networkWatcherName, parameter } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -3114,7 +3114,7 @@ function _beginCheckConnectivity(resourceGroupName, networkWatcherName, paramete if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3151,9 +3151,10 @@ function _beginCheckConnectivity(resourceGroupName, networkWatcherName, paramete // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -3167,7 +3168,6 @@ function _beginCheckConnectivity(resourceGroupName, networkWatcherName, paramete } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -3256,17 +3256,12 @@ function _beginCheckConnectivity(resourceGroupName, networkWatcherName, paramete }); } -/** - * @class - * NetworkWatchers - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the NetworkWatchers class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a NetworkWatchers. */ class NetworkWatchers { + /** + * Create a NetworkWatchers. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createOrUpdate = _createOrUpdate; diff --git a/lib/services/networkManagement2/lib/operations/packetCaptures.js b/lib/services/networkManagement2/lib/operations/packetCaptures.js index 2bdda6c505..fbbee26169 100644 --- a/lib/services/networkManagement2/lib/operations/packetCaptures.js +++ b/lib/services/networkManagement2/lib/operations/packetCaptures.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -163,7 +163,7 @@ function _get(resourceGroupName, networkWatcherName, packetCaptureName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -201,9 +201,10 @@ function _get(resourceGroupName, networkWatcherName, packetCaptureName, options, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -217,7 +218,6 @@ function _get(resourceGroupName, networkWatcherName, packetCaptureName, options, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -523,7 +523,7 @@ function _list(resourceGroupName, networkWatcherName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -557,9 +557,10 @@ function _list(resourceGroupName, networkWatcherName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -573,7 +574,6 @@ function _list(resourceGroupName, networkWatcherName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -700,7 +700,7 @@ function _beginCreate(resourceGroupName, networkWatcherName, packetCaptureName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -741,9 +741,10 @@ function _beginCreate(resourceGroupName, networkWatcherName, packetCaptureName, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -757,7 +758,6 @@ function _beginCreate(resourceGroupName, networkWatcherName, packetCaptureName, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -865,7 +865,7 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, packetCapture if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -903,9 +903,10 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, packetCapture // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -919,7 +920,6 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, packetCapture } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -996,7 +996,7 @@ function _beginStop(resourceGroupName, networkWatcherName, packetCaptureName, op if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1034,9 +1034,10 @@ function _beginStop(resourceGroupName, networkWatcherName, packetCaptureName, op // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1050,7 +1051,6 @@ function _beginStop(resourceGroupName, networkWatcherName, packetCaptureName, op } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1130,7 +1130,7 @@ function _beginGetStatus(resourceGroupName, networkWatcherName, packetCaptureNam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1168,9 +1168,10 @@ function _beginGetStatus(resourceGroupName, networkWatcherName, packetCaptureNam // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1184,7 +1185,6 @@ function _beginGetStatus(resourceGroupName, networkWatcherName, packetCaptureNam } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1259,17 +1259,12 @@ function _beginGetStatus(resourceGroupName, networkWatcherName, packetCaptureNam }); } -/** - * @class - * PacketCaptures - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the PacketCaptures class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a PacketCaptures. */ class PacketCaptures { + /** + * Create a PacketCaptures. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._create = _create; diff --git a/lib/services/networkManagement2/lib/operations/publicIPAddresses.js b/lib/services/networkManagement2/lib/operations/publicIPAddresses.js index 7100ab7a2d..2098457e9d 100644 --- a/lib/services/networkManagement2/lib/operations/publicIPAddresses.js +++ b/lib/services/networkManagement2/lib/operations/publicIPAddresses.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -115,7 +115,7 @@ function _get(resourceGroupName, publicIpAddressName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -155,9 +155,10 @@ function _get(resourceGroupName, publicIpAddressName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -171,7 +172,6 @@ function _get(resourceGroupName, publicIpAddressName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -240,6 +240,11 @@ function _get(resourceGroupName, publicIpAddressName, options, callback) { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -267,7 +272,8 @@ function _get(resourceGroupName, publicIpAddressName, options, callback) { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -390,7 +396,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -416,9 +422,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -432,7 +439,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -524,7 +530,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -554,9 +560,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -570,7 +577,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -700,9 +706,10 @@ function _listVirtualMachineScaleSetPublicIPAddresses(resourceGroupName, virtual // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -716,7 +723,6 @@ function _listVirtualMachineScaleSetPublicIPAddresses(resourceGroupName, virtual } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -864,9 +870,10 @@ function _listVirtualMachineScaleSetVMPublicIPAddresses(resourceGroupName, virtu // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -880,7 +887,6 @@ function _listVirtualMachineScaleSetVMPublicIPAddresses(resourceGroupName, virtu } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1041,9 +1047,10 @@ function _getVirtualMachineScaleSetPublicIPAddress(resourceGroupName, virtualMac // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1057,7 +1064,6 @@ function _getVirtualMachineScaleSetPublicIPAddress(resourceGroupName, virtualMac } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1149,7 +1155,7 @@ function _beginDeleteMethod(resourceGroupName, publicIpAddressName, options, cal if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1183,9 +1189,10 @@ function _beginDeleteMethod(resourceGroupName, publicIpAddressName, options, cal // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1199,7 +1206,6 @@ function _beginDeleteMethod(resourceGroupName, publicIpAddressName, options, cal } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1250,6 +1256,11 @@ function _beginDeleteMethod(resourceGroupName, publicIpAddressName, options, cal * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -1277,7 +1288,8 @@ function _beginDeleteMethod(resourceGroupName, publicIpAddressName, options, cal * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -1326,7 +1338,7 @@ function _beginCreateOrUpdate(resourceGroupName, publicIpAddressName, parameters if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1363,9 +1375,10 @@ function _beginCreateOrUpdate(resourceGroupName, publicIpAddressName, parameters // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1379,7 +1392,6 @@ function _beginCreateOrUpdate(resourceGroupName, publicIpAddressName, parameters } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1522,9 +1534,10 @@ function _listAllNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1538,7 +1551,6 @@ function _listAllNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1650,9 +1662,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1666,7 +1679,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1779,9 +1791,10 @@ function _listVirtualMachineScaleSetPublicIPAddressesNext(nextPageLink, options, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1795,7 +1808,6 @@ function _listVirtualMachineScaleSetPublicIPAddressesNext(nextPageLink, options, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1908,9 +1920,10 @@ function _listVirtualMachineScaleSetVMPublicIPAddressesNext(nextPageLink, option // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1924,7 +1937,6 @@ function _listVirtualMachineScaleSetVMPublicIPAddressesNext(nextPageLink, option } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1982,17 +1994,12 @@ function _listVirtualMachineScaleSetVMPublicIPAddressesNext(nextPageLink, option }); } -/** - * @class - * PublicIPAddresses - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the PublicIPAddresses class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a PublicIPAddresses. */ class PublicIPAddresses { + /** + * Create a PublicIPAddresses. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; @@ -2196,6 +2203,11 @@ class PublicIPAddresses { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -2223,7 +2235,8 @@ class PublicIPAddresses { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -2279,6 +2292,11 @@ class PublicIPAddresses { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -2306,7 +2324,8 @@ class PublicIPAddresses { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -2933,6 +2952,11 @@ class PublicIPAddresses { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -2960,7 +2984,8 @@ class PublicIPAddresses { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. @@ -3016,6 +3041,11 @@ class PublicIPAddresses { * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * + * @param {object} [parameters.sku] The public IP address SKU. + * + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' + * * @param {string} [parameters.publicIPAllocationMethod] The public IP * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible * values include: 'Static', 'Dynamic' @@ -3043,7 +3073,8 @@ class PublicIPAddresses { * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * - * @param {string} [parameters.ipAddress] + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. diff --git a/lib/services/networkManagement2/lib/operations/routeFilterRules.js b/lib/services/networkManagement2/lib/operations/routeFilterRules.js index e6c59a36a9..ed0ac8cf12 100644 --- a/lib/services/networkManagement2/lib/operations/routeFilterRules.js +++ b/lib/services/networkManagement2/lib/operations/routeFilterRules.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -116,7 +116,7 @@ function _get(resourceGroupName, routeFilterName, ruleName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -154,9 +154,10 @@ function _get(resourceGroupName, routeFilterName, ruleName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -170,7 +171,6 @@ function _get(resourceGroupName, routeFilterName, ruleName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -248,6 +248,10 @@ function _get(resourceGroupName, routeFilterName, ruleName, options, callback) { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -454,7 +458,7 @@ function _listByRouteFilter(resourceGroupName, routeFilterName, options, callbac if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -488,9 +492,10 @@ function _listByRouteFilter(resourceGroupName, routeFilterName, options, callbac // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -504,7 +509,6 @@ function _listByRouteFilter(resourceGroupName, routeFilterName, options, callbac } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -598,7 +602,7 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, ruleName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -636,9 +640,10 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, ruleName, option // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -652,7 +657,6 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, ruleName, option } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -712,6 +716,10 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, ruleName, option * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -750,7 +758,7 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, ruleName, rout { routeFilterRuleParameters = {}; } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -791,9 +799,10 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, ruleName, rout // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -807,7 +816,6 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, ruleName, rout } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -951,7 +959,7 @@ function _beginUpdate(resourceGroupName, routeFilterName, ruleName, routeFilterR { routeFilterRuleParameters = {}; } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -992,9 +1000,10 @@ function _beginUpdate(resourceGroupName, routeFilterName, ruleName, routeFilterR // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PATCH'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1008,7 +1017,6 @@ function _beginUpdate(resourceGroupName, routeFilterName, ruleName, routeFilterR } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1134,9 +1142,10 @@ function _listByRouteFilterNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1150,7 +1159,6 @@ function _listByRouteFilterNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1208,17 +1216,12 @@ function _listByRouteFilterNext(nextPageLink, options, callback) { }); } -/** - * @class - * RouteFilterRules - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the RouteFilterRules class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a RouteFilterRules. */ class RouteFilterRules { + /** + * Create a RouteFilterRules. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; @@ -1430,6 +1433,10 @@ class RouteFilterRules { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -1480,6 +1487,10 @@ class RouteFilterRules { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -1846,6 +1857,10 @@ class RouteFilterRules { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. @@ -1896,6 +1911,10 @@ class RouteFilterRules { * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * + * @param {string} [routeFilterRuleParameters.name] The name of the resource + * that is unique within a resource group. This name can be used to access the + * resource. + * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {object} [routeFilterRuleParameters.tags] Resource tags. diff --git a/lib/services/networkManagement2/lib/operations/routeFilters.js b/lib/services/networkManagement2/lib/operations/routeFilters.js index 71670c4b05..157dcf3c54 100644 --- a/lib/services/networkManagement2/lib/operations/routeFilters.js +++ b/lib/services/networkManagement2/lib/operations/routeFilters.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -116,7 +116,7 @@ function _get(resourceGroupName, routeFilterName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -156,9 +156,10 @@ function _get(resourceGroupName, routeFilterName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -172,7 +173,6 @@ function _get(resourceGroupName, routeFilterName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -244,6 +244,9 @@ function _get(resourceGroupName, routeFilterName, options, callback) { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -334,6 +337,9 @@ function _createOrUpdate(resourceGroupName, routeFilterName, routeFilterParamete * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -441,7 +447,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -471,9 +477,10 @@ function _listByResourceGroup(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -487,7 +494,6 @@ function _listByResourceGroup(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -576,7 +582,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -602,9 +608,10 @@ function _list(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -618,7 +625,6 @@ function _list(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -710,7 +716,7 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, options, callbac if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -744,9 +750,10 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, options, callbac // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -760,7 +767,6 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, options, callbac } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -814,6 +820,9 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, options, callbac * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -848,7 +857,7 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, routeFilterPar if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -885,9 +894,10 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, routeFilterPar // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -901,7 +911,6 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, routeFilterPar } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1003,6 +1012,9 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, routeFilterPar * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -1035,7 +1047,7 @@ function _beginUpdate(resourceGroupName, routeFilterName, routeFilterParameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1072,9 +1084,10 @@ function _beginUpdate(resourceGroupName, routeFilterName, routeFilterParameters, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PATCH'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1088,7 +1101,6 @@ function _beginUpdate(resourceGroupName, routeFilterName, routeFilterParameters, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1213,9 +1225,10 @@ function _listByResourceGroupNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1229,7 +1242,6 @@ function _listByResourceGroupNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1340,9 +1352,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1356,7 +1369,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1414,17 +1426,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * RouteFilters - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the RouteFilters class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a RouteFilters. */ class RouteFilters { + /** + * Create a RouteFilters. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; @@ -1630,6 +1637,9 @@ class RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -1674,6 +1684,9 @@ class RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -1740,6 +1753,9 @@ class RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -1782,6 +1798,9 @@ class RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -2091,6 +2110,9 @@ class RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -2135,6 +2157,9 @@ class RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. @@ -2201,6 +2226,9 @@ class RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. @@ -2243,6 +2271,9 @@ class RouteFilters { * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. + * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. diff --git a/lib/services/networkManagement2/lib/operations/routeTables.js b/lib/services/networkManagement2/lib/operations/routeTables.js index 9fa81935f1..3f251a060d 100644 --- a/lib/services/networkManagement2/lib/operations/routeTables.js +++ b/lib/services/networkManagement2/lib/operations/routeTables.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -115,7 +115,7 @@ function _get(resourceGroupName, routeTableName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -155,9 +155,10 @@ function _get(resourceGroupName, routeTableName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -171,7 +172,6 @@ function _get(resourceGroupName, routeTableName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -358,7 +358,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -388,9 +388,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -404,7 +405,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -493,7 +493,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -519,9 +519,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -535,7 +536,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -627,7 +627,7 @@ function _beginDeleteMethod(resourceGroupName, routeTableName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -661,9 +661,10 @@ function _beginDeleteMethod(resourceGroupName, routeTableName, options, callback // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -677,7 +678,6 @@ function _beginDeleteMethod(resourceGroupName, routeTableName, options, callback } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -771,7 +771,7 @@ function _beginCreateOrUpdate(resourceGroupName, routeTableName, parameters, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -808,9 +808,10 @@ function _beginCreateOrUpdate(resourceGroupName, routeTableName, parameters, opt // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -824,7 +825,6 @@ function _beginCreateOrUpdate(resourceGroupName, routeTableName, parameters, opt } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -966,9 +966,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -982,7 +983,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1093,9 +1093,10 @@ function _listAllNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1109,7 +1110,6 @@ function _listAllNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1167,17 +1167,12 @@ function _listAllNext(nextPageLink, options, callback) { }); } -/** - * @class - * RouteTables - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the RouteTables class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a RouteTables. */ class RouteTables { + /** + * Create a RouteTables. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/lib/operations/routes.js b/lib/services/networkManagement2/lib/operations/routes.js index ce4f597d22..63d1eaac79 100644 --- a/lib/services/networkManagement2/lib/operations/routes.js +++ b/lib/services/networkManagement2/lib/operations/routes.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -116,7 +116,7 @@ function _get(resourceGroupName, routeTableName, routeName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -154,9 +154,10 @@ function _get(resourceGroupName, routeTableName, routeName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -170,7 +171,6 @@ function _get(resourceGroupName, routeTableName, routeName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -371,7 +371,7 @@ function _list(resourceGroupName, routeTableName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -405,9 +405,10 @@ function _list(resourceGroupName, routeTableName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -421,7 +422,6 @@ function _list(resourceGroupName, routeTableName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -515,7 +515,7 @@ function _beginDeleteMethod(resourceGroupName, routeTableName, routeName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -553,9 +553,10 @@ function _beginDeleteMethod(resourceGroupName, routeTableName, routeName, option // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -569,7 +570,6 @@ function _beginDeleteMethod(resourceGroupName, routeTableName, routeName, option } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -675,7 +675,7 @@ function _beginCreateOrUpdate(resourceGroupName, routeTableName, routeName, rout if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -716,9 +716,10 @@ function _beginCreateOrUpdate(resourceGroupName, routeTableName, routeName, rout // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -732,7 +733,6 @@ function _beginCreateOrUpdate(resourceGroupName, routeTableName, routeName, rout } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -874,9 +874,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -890,7 +891,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -948,17 +948,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * Routes - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the Routes class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a Routes. */ class Routes { + /** + * Create a Routes. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/lib/operations/securityRules.js b/lib/services/networkManagement2/lib/operations/securityRules.js index 8330e6ed4e..1374241a7e 100644 --- a/lib/services/networkManagement2/lib/operations/securityRules.js +++ b/lib/services/networkManagement2/lib/operations/securityRules.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -118,7 +118,7 @@ function _get(resourceGroupName, networkSecurityGroupName, securityRuleName, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -156,9 +156,10 @@ function _get(resourceGroupName, networkSecurityGroupName, securityRuleName, opt // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -172,7 +173,6 @@ function _get(resourceGroupName, networkSecurityGroupName, securityRuleName, opt } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -265,11 +265,23 @@ function _get(resourceGroupName, networkSecurityGroupName, securityRuleName, opt * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' @@ -404,7 +416,7 @@ function _list(resourceGroupName, networkSecurityGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -438,9 +450,10 @@ function _list(resourceGroupName, networkSecurityGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -454,7 +467,6 @@ function _list(resourceGroupName, networkSecurityGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -549,7 +561,7 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, securit if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -587,9 +599,10 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, securit // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -603,7 +616,6 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, securit } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -678,11 +690,23 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, securit * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' @@ -738,7 +762,7 @@ function _beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, secur if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -779,9 +803,10 @@ function _beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, secur // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -795,7 +820,6 @@ function _beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, secur } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -938,9 +962,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -954,7 +979,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1012,17 +1036,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * SecurityRules - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the SecurityRules class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a SecurityRules. */ class SecurityRules { + /** + * Create a SecurityRules. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; @@ -1251,11 +1270,23 @@ class SecurityRules { * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' @@ -1342,11 +1373,23 @@ class SecurityRules { * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' @@ -1635,11 +1678,23 @@ class SecurityRules { * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' @@ -1726,11 +1781,23 @@ class SecurityRules { * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. + * * @param {string} securityRuleParameters.destinationAddressPrefix The - * destination address prefix. CIDR or source IP range. Asterix '*' can also be - * used to match all source IPs. Default tags such as 'VirtualNetwork', + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. + * + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. + * + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. + * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: * 'Allow', 'Deny' diff --git a/lib/services/networkManagement2/lib/operations/subnets.js b/lib/services/networkManagement2/lib/operations/subnets.js index d91d542229..c8ab2cf137 100644 --- a/lib/services/networkManagement2/lib/operations/subnets.js +++ b/lib/services/networkManagement2/lib/operations/subnets.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -119,7 +119,7 @@ function _get(resourceGroupName, virtualNetworkName, subnetName, options, callba throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -163,9 +163,10 @@ function _get(resourceGroupName, virtualNetworkName, subnetName, options, callba // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -179,7 +180,6 @@ function _get(resourceGroupName, virtualNetworkName, subnetName, options, callba } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -298,8 +298,8 @@ function _get(resourceGroupName, virtualNetworkName, subnetName, options, callba * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -421,7 +421,7 @@ function _list(resourceGroupName, virtualNetworkName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -455,9 +455,10 @@ function _list(resourceGroupName, virtualNetworkName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -471,7 +472,6 @@ function _list(resourceGroupName, virtualNetworkName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -565,7 +565,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, subnetName, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -603,9 +603,10 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, subnetName, o // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -619,7 +620,6 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, subnetName, o } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -720,8 +720,8 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, subnetName, o * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -766,7 +766,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, subnetName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -807,9 +807,10 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, subnetName, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -823,7 +824,6 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, subnetName, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -965,9 +965,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -981,7 +982,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1039,17 +1039,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * Subnets - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the Subnets class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a Subnets. */ class Subnets { + /** + * Create a Subnets. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; @@ -1304,8 +1299,8 @@ class Subnets { * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -1407,8 +1402,8 @@ class Subnets { * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -1707,8 +1702,8 @@ class Subnets { * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. @@ -1810,8 +1805,8 @@ class Subnets { * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {array} [subnetParameters.privateAccessServices] An array of private - * access services values. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. diff --git a/lib/services/networkManagement2/lib/operations/usages.js b/lib/services/networkManagement2/lib/operations/usages.js index 25147853a6..7f0e8dc3b1 100644 --- a/lib/services/networkManagement2/lib/operations/usages.js +++ b/lib/services/networkManagement2/lib/operations/usages.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -47,7 +47,7 @@ function _list(location, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -83,9 +83,10 @@ function _list(location, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -99,7 +100,6 @@ function _list(location, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -210,9 +210,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -226,7 +227,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -284,17 +284,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * Usages - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the Usages class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a Usages. */ class Usages { + /** + * Create a Usages. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._list = _list; diff --git a/lib/services/networkManagement2/lib/operations/virtualNetworkGatewayConnections.js b/lib/services/networkManagement2/lib/operations/virtualNetworkGatewayConnections.js index 24b19dba97..87bc6970c6 100644 --- a/lib/services/networkManagement2/lib/operations/virtualNetworkGatewayConnections.js +++ b/lib/services/networkManagement2/lib/operations/virtualNetworkGatewayConnections.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -29,9 +29,11 @@ const WebResource = msRest.WebResource; * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -91,16 +93,18 @@ const WebResource = msRest.WebResource; * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -115,7 +119,8 @@ const WebResource = msRest.WebResource; * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -293,7 +298,7 @@ function _get(resourceGroupName, virtualNetworkGatewayConnectionName, options, c if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -327,9 +332,10 @@ function _get(resourceGroupName, virtualNetworkGatewayConnectionName, options, c // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -343,7 +349,6 @@ function _get(resourceGroupName, virtualNetworkGatewayConnectionName, options, c } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -592,7 +597,7 @@ function _getSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -626,9 +631,10 @@ function _getSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, o // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -642,7 +648,6 @@ function _getSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, o } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -735,7 +740,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -765,9 +770,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -781,7 +787,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -943,9 +948,11 @@ function _resetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -1005,16 +1012,18 @@ function _resetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -1029,7 +1038,8 @@ function _resetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -1128,7 +1138,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayConnection if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1165,9 +1175,10 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayConnection // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1181,7 +1192,6 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayConnection } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1305,7 +1315,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkGatewayConnectionNa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1339,9 +1349,10 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkGatewayConnectionNa // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1355,7 +1366,6 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkGatewayConnectionNa } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1442,7 +1452,7 @@ function _beginSetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionNa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1479,9 +1489,10 @@ function _beginSetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionNa // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1495,7 +1506,6 @@ function _beginSetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionNa } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1631,7 +1641,7 @@ function _beginResetSharedKey(resourceGroupName, virtualNetworkGatewayConnection if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1668,9 +1678,10 @@ function _beginResetSharedKey(resourceGroupName, virtualNetworkGatewayConnection // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1684,7 +1695,6 @@ function _beginResetSharedKey(resourceGroupName, virtualNetworkGatewayConnection } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1811,9 +1821,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1827,7 +1838,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1885,17 +1895,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * VirtualNetworkGatewayConnections - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the VirtualNetworkGatewayConnections class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a VirtualNetworkGatewayConnections. */ class VirtualNetworkGatewayConnections { + /** + * Create a VirtualNetworkGatewayConnections. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createOrUpdate = _createOrUpdate; @@ -1926,9 +1931,11 @@ class VirtualNetworkGatewayConnections { * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -1988,16 +1995,18 @@ class VirtualNetworkGatewayConnections { * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -2012,7 +2021,8 @@ class VirtualNetworkGatewayConnections { * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -2121,9 +2131,11 @@ class VirtualNetworkGatewayConnections { * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -2183,16 +2195,18 @@ class VirtualNetworkGatewayConnections { * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -2207,7 +2221,8 @@ class VirtualNetworkGatewayConnections { * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -2909,9 +2924,11 @@ class VirtualNetworkGatewayConnections { * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -2971,16 +2988,18 @@ class VirtualNetworkGatewayConnections { * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -2995,7 +3014,8 @@ class VirtualNetworkGatewayConnections { * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. @@ -3104,9 +3124,11 @@ class VirtualNetworkGatewayConnections { * * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} parameters.virtualNetworkGateway1 + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [parameters.virtualNetworkGateway2] + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. @@ -3166,16 +3188,18 @@ class VirtualNetworkGatewayConnections { * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * - * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual - * network gateway's BGP speaker settings. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusServer] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} [parameters.virtualNetworkGateway2.radiusSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. @@ -3190,7 +3214,8 @@ class VirtualNetworkGatewayConnections { * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {object} [parameters.localNetworkGateway2] + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. diff --git a/lib/services/networkManagement2/lib/operations/virtualNetworkGateways.js b/lib/services/networkManagement2/lib/operations/virtualNetworkGateways.js index 8f020b766c..1a2821c86c 100644 --- a/lib/services/networkManagement2/lib/operations/virtualNetworkGateways.js +++ b/lib/services/networkManagement2/lib/operations/virtualNetworkGateways.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -86,6 +86,14 @@ const WebResource = msRest.WebResource; * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -97,12 +105,6 @@ const WebResource = msRest.WebResource; * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -221,7 +223,7 @@ function _get(resourceGroupName, virtualNetworkGatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -255,9 +257,10 @@ function _get(resourceGroupName, virtualNetworkGatewayName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -271,7 +274,6 @@ function _get(resourceGroupName, virtualNetworkGatewayName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -427,7 +429,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -457,9 +459,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -473,7 +476,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -531,6 +533,151 @@ function _list(resourceGroupName, options, callback) { }); } +/** + * Gets all the connections in a virtual network gateway. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 VirtualNetworkGatewayListConnectionsResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listConnections(resourceGroupName, virtualNetworkGatewayName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (virtualNetworkGatewayName === null || virtualNetworkGatewayName === undefined || typeof virtualNetworkGatewayName.valueOf() !== 'string') { + throw new Error('virtualNetworkGatewayName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{virtualNetworkGatewayName}', encodeURIComponent(virtualNetworkGatewayName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['VirtualNetworkGatewayListConnectionsResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** * Resets the primary of the virtual network gateway in the specified resource @@ -825,6 +972,92 @@ function _generateVpnProfile(resourceGroupName, virtualNetworkGatewayName, param } +/** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {string} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _getVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginGetVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = { + required: false, + serializedName: 'parsedResponse', + type: { + name: 'String' + } + }; + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + + return callback(null, result, httpRequest, response); + }); + }); +} + + /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * @@ -1142,6 +1375,14 @@ function _getAdvertisedRoutes(resourceGroupName, virtualNetworkGatewayName, peer * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -1153,12 +1394,6 @@ function _getAdvertisedRoutes(resourceGroupName, virtualNetworkGatewayName, peer * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -1199,7 +1434,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayName, para if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1236,9 +1471,10 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayName, para // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1252,7 +1488,6 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayName, para } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1376,7 +1611,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkGatewayName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1410,9 +1645,10 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkGatewayName, option // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1426,7 +1662,6 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkGatewayName, option } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1508,7 +1743,7 @@ function _beginReset(resourceGroupName, virtualNetworkGatewayName, options, call throw new Error('callback cannot be null.'); } let gatewayVip = (options && options.gatewayVip !== undefined) ? options.gatewayVip : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1548,9 +1783,10 @@ function _beginReset(resourceGroupName, virtualNetworkGatewayName, options, call // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1564,7 +1800,6 @@ function _beginReset(resourceGroupName, virtualNetworkGatewayName, options, call } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1678,7 +1913,7 @@ function _beginGeneratevpnclientpackage(resourceGroupName, virtualNetworkGateway if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1715,9 +1950,10 @@ function _beginGeneratevpnclientpackage(resourceGroupName, virtualNetworkGateway // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1731,7 +1967,6 @@ function _beginGeneratevpnclientpackage(resourceGroupName, virtualNetworkGateway } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1865,7 +2100,7 @@ function _beginGenerateVpnProfile(resourceGroupName, virtualNetworkGatewayName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1902,9 +2137,10 @@ function _beginGenerateVpnProfile(resourceGroupName, virtualNetworkGatewayName, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1918,7 +2154,6 @@ function _beginGenerateVpnProfile(resourceGroupName, virtualNetworkGatewayName, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1940,7 +2175,158 @@ function _beginGenerateVpnProfile(resourceGroupName, virtualNetworkGatewayName, return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200) { + if (statusCode !== 200 && statusCode !== 202) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = { + required: false, + serializedName: 'parsedResponse', + type: { + name: 'String' + } + }; + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {string} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginGetVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + let apiVersion = '2017-08-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 (virtualNetworkGatewayName === null || virtualNetworkGatewayName === undefined || typeof virtualNetworkGatewayName.valueOf() !== 'string') { + throw new Error('virtualNetworkGatewayName 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.'); + } + 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{virtualNetworkGatewayName}', encodeURIComponent(virtualNetworkGatewayName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 202) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -2037,7 +2423,7 @@ function _beginGetBgpPeerStatus(resourceGroupName, virtualNetworkGatewayName, op throw new Error('callback cannot be null.'); } let peer = (options && options.peer !== undefined) ? options.peer : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2077,9 +2463,10 @@ function _beginGetBgpPeerStatus(resourceGroupName, virtualNetworkGatewayName, op // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2093,7 +2480,6 @@ function _beginGetBgpPeerStatus(resourceGroupName, virtualNetworkGatewayName, op } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2189,7 +2575,7 @@ function _beginGetLearnedRoutes(resourceGroupName, virtualNetworkGatewayName, op if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2223,9 +2609,10 @@ function _beginGetLearnedRoutes(resourceGroupName, virtualNetworkGatewayName, op // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2239,7 +2626,6 @@ function _beginGetLearnedRoutes(resourceGroupName, virtualNetworkGatewayName, op } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2337,7 +2723,7 @@ function _beginGetAdvertisedRoutes(resourceGroupName, virtualNetworkGatewayName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2375,9 +2761,10 @@ function _beginGetAdvertisedRoutes(resourceGroupName, virtualNetworkGatewayName, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'POST'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2391,7 +2778,6 @@ function _beginGetAdvertisedRoutes(resourceGroupName, virtualNetworkGatewayName, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2503,9 +2889,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -2519,7 +2906,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -2578,25 +2964,150 @@ function _listNext(nextPageLink, options, callback) { } /** - * @class - * VirtualNetworkGateways - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the VirtualNetworkGateways class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. + * Gets all the connections in a virtual network gateway. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {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 VirtualNetworkGatewayListConnectionsResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. */ +function _listConnectionsNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink 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.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['VirtualNetworkGatewayListConnectionsResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a VirtualNetworkGateways. */ class VirtualNetworkGateways { + /** + * Create a VirtualNetworkGateways. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createOrUpdate = _createOrUpdate; this._get = _get; this._deleteMethod = _deleteMethod; this._list = _list; + this._listConnections = _listConnections; this._reset = _reset; this._generatevpnclientpackage = _generatevpnclientpackage; this._generateVpnProfile = _generateVpnProfile; + this._getVpnProfilePacakgeUrl = _getVpnProfilePacakgeUrl; this._getBgpPeerStatus = _getBgpPeerStatus; this._getLearnedRoutes = _getLearnedRoutes; this._getAdvertisedRoutes = _getAdvertisedRoutes; @@ -2605,10 +3116,12 @@ class VirtualNetworkGateways { this._beginReset = _beginReset; this._beginGeneratevpnclientpackage = _beginGeneratevpnclientpackage; this._beginGenerateVpnProfile = _beginGenerateVpnProfile; + this._beginGetVpnProfilePacakgeUrl = _beginGetVpnProfilePacakgeUrl; this._beginGetBgpPeerStatus = _beginGetBgpPeerStatus; this._beginGetLearnedRoutes = _beginGetLearnedRoutes; this._beginGetAdvertisedRoutes = _beginGetAdvertisedRoutes; this._listNext = _listNext; + this._listConnectionsNext = _listConnectionsNext; } /** @@ -2682,6 +3195,14 @@ class VirtualNetworkGateways { * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -2693,12 +3214,6 @@ class VirtualNetworkGateways { * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -2807,6 +3322,14 @@ class VirtualNetworkGateways { * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -2818,12 +3341,6 @@ class VirtualNetworkGateways { * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -3070,15 +3587,101 @@ class VirtualNetworkGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(resourceGroupName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all virtual network gateways by resource group. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {VirtualNetworkGatewayListResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 VirtualNetworkGatewayListResult} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + list(resourceGroupName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._list(resourceGroupName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(resourceGroupName, options, optionalCallback); + } + } + + /** + * Gets all the connections in a virtual network gateway. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @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} - The error object. */ - listWithHttpOperationResponse(resourceGroupName, options) { + listConnectionsWithHttpOperationResponse(resourceGroupName, virtualNetworkGatewayName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._list(resourceGroupName, options, (err, result, request, response) => { + self._listConnections(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3089,10 +3692,13 @@ class VirtualNetworkGateways { } /** - * Gets all virtual network gateways by resource group. + * Gets all the connections in a virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -3105,7 +3711,7 @@ class VirtualNetworkGateways { * * {Promise} A promise is returned * - * @resolve {VirtualNetworkGatewayListResult} - The deserialized result object. + * @resolve {VirtualNetworkGatewayListConnectionsResult} - The deserialized result object. * * @reject {Error} - The error object. * @@ -3114,14 +3720,14 @@ class VirtualNetworkGateways { * {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 VirtualNetworkGatewayListResult} for more - * information. + * See {@link VirtualNetworkGatewayListConnectionsResult} + * for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - list(resourceGroupName, options, optionalCallback) { + listConnections(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3130,14 +3736,14 @@ class VirtualNetworkGateways { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._list(resourceGroupName, options, (err, result, request, response) => { + self._listConnections(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._list(resourceGroupName, options, optionalCallback); + return self._listConnections(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback); } } @@ -3495,6 +4101,97 @@ class VirtualNetworkGateways { } } + /** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @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} - The error object. + */ + getVpnProfilePacakgeUrlWithHttpOperationResponse(resourceGroupName, virtualNetworkGatewayName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {String} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {string} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + getVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._getVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback); + } + } + /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * @@ -3847,6 +4544,14 @@ class VirtualNetworkGateways { * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -3858,12 +4563,6 @@ class VirtualNetworkGateways { * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -3972,6 +4671,14 @@ class VirtualNetworkGateways { * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * + * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The + * radius server address property of the VirtualNetworkGateway resource for vpn + * client connection. + * + * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The + * radius secret property of the VirtualNetworkGateway resource for vpn client + * connection. + * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * @@ -3983,12 +4690,6 @@ class VirtualNetworkGateways { * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * - * @param {string} [parameters.radiusServer] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * - * @param {string} [parameters.radiusSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * @@ -4489,6 +5190,97 @@ class VirtualNetworkGateways { } } + /** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @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} - The error object. + */ + beginGetVpnProfilePacakgeUrlWithHttpOperationResponse(resourceGroupName, virtualNetworkGatewayName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginGetVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets pre-generated VPN profile for P2S client of the virtual network gateway + * in the specified resource group. The profile needs to be generated first + * using generateVpnProfile. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {String} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {string} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginGetVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginGetVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginGetVpnProfilePacakgeUrl(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback); + } + } + /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * @@ -4855,6 +5647,91 @@ class VirtualNetworkGateways { } } + /** + * Gets all the connections in a virtual network gateway. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The error object. + */ + listConnectionsNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listConnectionsNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets all the connections in a virtual network gateway. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {VirtualNetworkGatewayListConnectionsResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {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 VirtualNetworkGatewayListConnectionsResult} + * for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listConnectionsNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listConnectionsNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listConnectionsNext(nextPageLink, options, optionalCallback); + } + } + } module.exports = VirtualNetworkGateways; diff --git a/lib/services/networkManagement2/lib/operations/virtualNetworkPeerings.js b/lib/services/networkManagement2/lib/operations/virtualNetworkPeerings.js index 805a182418..2c3f0b08fd 100644 --- a/lib/services/networkManagement2/lib/operations/virtualNetworkPeerings.js +++ b/lib/services/networkManagement2/lib/operations/virtualNetworkPeerings.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -118,7 +118,7 @@ function _get(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -156,9 +156,10 @@ function _get(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -172,7 +173,6 @@ function _get(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -391,7 +391,7 @@ function _list(resourceGroupName, virtualNetworkName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -425,9 +425,10 @@ function _list(resourceGroupName, virtualNetworkName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -441,7 +442,6 @@ function _list(resourceGroupName, virtualNetworkName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -536,7 +536,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, virtualNetwor if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -574,9 +574,10 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, virtualNetwor // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -590,7 +591,6 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, virtualNetwor } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -713,7 +713,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, virtualNetw if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -754,9 +754,10 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, virtualNetw // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -770,7 +771,6 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, virtualNetw } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -913,9 +913,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -929,7 +930,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -987,17 +987,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * VirtualNetworkPeerings - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the VirtualNetworkPeerings class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a VirtualNetworkPeerings. */ class VirtualNetworkPeerings { + /** + * Create a VirtualNetworkPeerings. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/lib/operations/virtualNetworks.js b/lib/services/networkManagement2/lib/operations/virtualNetworks.js index 6601e27a6a..22aa4cb857 100644 --- a/lib/services/networkManagement2/lib/operations/virtualNetworks.js +++ b/lib/services/networkManagement2/lib/operations/virtualNetworks.js @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for * license information. * - * Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 + * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ @@ -115,7 +115,7 @@ function _get(resourceGroupName, virtualNetworkName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -155,9 +155,10 @@ function _get(resourceGroupName, virtualNetworkName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -171,7 +172,6 @@ function _get(resourceGroupName, virtualNetworkName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -375,7 +375,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -401,9 +401,10 @@ function _listAll(options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -417,7 +418,6 @@ function _listAll(options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -509,7 +509,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -539,9 +539,10 @@ function _list(resourceGroupName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -555,7 +556,6 @@ function _list(resourceGroupName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -652,7 +652,7 @@ function _checkIPAddressAvailability(resourceGroupName, virtualNetworkName, opti throw new Error('callback cannot be null.'); } let ipAddress = (options && options.ipAddress !== undefined) ? options.ipAddress : undefined; - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (ipAddress !== null && ipAddress !== undefined && typeof ipAddress.valueOf() !== 'string') { @@ -692,9 +692,10 @@ function _checkIPAddressAvailability(resourceGroupName, virtualNetworkName, opti // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -708,7 +709,6 @@ function _checkIPAddressAvailability(resourceGroupName, virtualNetworkName, opti } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -802,7 +802,7 @@ function _listUsage(resourceGroupName, virtualNetworkName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -836,9 +836,10 @@ function _listUsage(resourceGroupName, virtualNetworkName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -852,7 +853,6 @@ function _listUsage(resourceGroupName, virtualNetworkName, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -944,7 +944,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, options, call if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -978,9 +978,10 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, options, call // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -994,7 +995,6 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, options, call } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1106,7 +1106,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, parameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2017-06-01'; + let apiVersion = '2017-08-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1143,9 +1143,10 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, parameters, // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1159,7 +1160,6 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, parameters, } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; // Serialize Request let requestContent = null; let requestModel = null; @@ -1302,9 +1302,10 @@ function _listAllNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1318,7 +1319,6 @@ function _listAllNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1430,9 +1430,10 @@ function _listNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1446,7 +1447,6 @@ function _listNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1558,9 +1558,10 @@ function _listUsageNext(nextPageLink, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; - httpRequest.headers = {}; httpRequest.url = requestUrl; + httpRequest.headers = {}; // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } @@ -1574,7 +1575,6 @@ function _listUsageNext(nextPageLink, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { @@ -1632,17 +1632,12 @@ function _listUsageNext(nextPageLink, options, callback) { }); } -/** - * @class - * VirtualNetworks - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - * Initializes a new instance of the VirtualNetworks class. - * @constructor - * - * @param {NetworkManagementClient} client Reference to the service client. - */ +/** Class representing a VirtualNetworks. */ class VirtualNetworks { + /** + * Create a VirtualNetworks. + * @param {NetworkManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._deleteMethod = _deleteMethod; diff --git a/lib/services/networkManagement2/package.json b/lib/services/networkManagement2/package.json index 18096d2485..0962b6ee4e 100644 --- a/lib/services/networkManagement2/package.json +++ b/lib/services/networkManagement2/package.json @@ -6,7 +6,7 @@ "Rajendran, Deepak ", "Choubey, Ankur " ], - "version": "2.0.0", + "version": "3.0.0", "description": "Microsoft Azure Network Resource Provider Management Client Library for node", "tags": [ "azure",