diff --git a/lib/services/networkManagement2/lib/models/expressRouteCrossConnection.js b/lib/services/networkManagement2/lib/models/expressRouteCrossConnection.js index 21e3b6f300..180429e70e 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCrossConnection.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCrossConnection.js @@ -130,7 +130,6 @@ class ExpressRouteCrossConnection extends models['Resource'] { }, peeringLocation: { required: false, - readOnly: true, serializedName: 'properties.peeringLocation', type: { name: 'String' @@ -138,7 +137,6 @@ class ExpressRouteCrossConnection extends models['Resource'] { }, bandwidthInMbps: { required: false, - readOnly: true, serializedName: 'properties.bandwidthInMbps', type: { name: 'Number' @@ -146,7 +144,6 @@ class ExpressRouteCrossConnection extends models['Resource'] { }, expressRouteCircuit: { required: false, - readOnly: true, serializedName: 'properties.expressRouteCircuit', type: { name: 'Composite', diff --git a/lib/services/networkManagement2/lib/models/expressRouteCrossConnectionPeering.js b/lib/services/networkManagement2/lib/models/expressRouteCrossConnectionPeering.js index 31abfbf098..1fe2499774 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCrossConnectionPeering.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCrossConnectionPeering.js @@ -221,7 +221,6 @@ class ExpressRouteCrossConnectionPeering extends models['SubResource'] { }, gatewayManagerEtag: { required: false, - readOnly: true, serializedName: 'properties.gatewayManagerEtag', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/httpConfiguration.js b/lib/services/networkManagement2/lib/models/httpConfiguration.js new file mode 100644 index 0000000000..9d79da42bf --- /dev/null +++ b/lib/services/networkManagement2/lib/models/httpConfiguration.js @@ -0,0 +1,85 @@ +/* + * 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'); + +/** + * HTTP configuration of the connectivity check. + * + */ +class HttpConfiguration { + /** + * Create a HttpConfiguration. + * @member {string} [method] HTTP method. Possible values include: 'Get' + * @member {array} [headers] List of HTTP headers. + * @member {array} [validStatusCodes] Valid status codes. + */ + constructor() { + } + + /** + * Defines the metadata of HttpConfiguration + * + * @returns {object} metadata of HttpConfiguration + * + */ + mapper() { + return { + required: false, + serializedName: 'HttpConfiguration', + type: { + name: 'Composite', + className: 'HttpConfiguration', + modelProperties: { + method: { + required: false, + serializedName: 'method', + type: { + name: 'String' + } + }, + headers: { + required: false, + serializedName: 'headers', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'HTTPHeaderElementType', + type: { + name: 'Composite', + className: 'HTTPHeader' + } + } + } + }, + validStatusCodes: { + required: false, + serializedName: 'validStatusCodes', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NumberElementType', + type: { + name: 'Number' + } + } + } + } + } + } + }; + } +} + +module.exports = HttpConfiguration; diff --git a/lib/services/networkManagement2/lib/models/index.d.ts b/lib/services/networkManagement2/lib/models/index.d.ts index e620b9e1f6..62a17e6f38 100644 --- a/lib/services/networkManagement2/lib/models/index.d.ts +++ b/lib/services/networkManagement2/lib/models/index.d.ts @@ -3164,7 +3164,7 @@ export interface ExpressRouteCrossConnectionPeering extends SubResource { vlanId?: number; microsoftPeeringConfig?: ExpressRouteCircuitPeeringConfig; readonly provisioningState?: string; - readonly gatewayManagerEtag?: string; + gatewayManagerEtag?: string; lastModifiedBy?: string; ipv6PeeringConfig?: Ipv6ExpressRouteCircuitPeeringConfig; name?: string; @@ -3203,9 +3203,9 @@ export interface ExpressRouteCrossConnection extends Resource { readonly primaryAzurePort?: string; readonly secondaryAzurePort?: string; readonly sTag?: number; - readonly peeringLocation?: string; - readonly bandwidthInMbps?: number; - readonly expressRouteCircuit?: ExpressRouteCircuitReference; + peeringLocation?: string; + bandwidthInMbps?: number; + expressRouteCircuit?: ExpressRouteCircuitReference; serviceProviderProvisioningState?: string; serviceProviderNotes?: string; readonly provisioningState?: string; diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCrossConnectionPeerings.js b/lib/services/networkManagement2/lib/operations/expressRouteCrossConnectionPeerings.js index 335d82ab08..03589e9500 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCrossConnectionPeerings.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCrossConnectionPeerings.js @@ -412,6 +412,9 @@ function _get(resourceGroupName, crossConnectionName, peeringName, options, call * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * @@ -722,6 +725,9 @@ function _beginDeleteMethod(resourceGroupName, crossConnectionName, peeringName, * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * @@ -1422,6 +1428,9 @@ class ExpressRouteCrossConnectionPeerings { * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * @@ -1554,6 +1563,9 @@ class ExpressRouteCrossConnectionPeerings { * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * @@ -1800,6 +1812,9 @@ class ExpressRouteCrossConnectionPeerings { * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * @@ -1932,6 +1947,9 @@ class ExpressRouteCrossConnectionPeerings { * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCrossConnections.js b/lib/services/networkManagement2/lib/operations/expressRouteCrossConnections.js index 3529e8b314..65dbfa1607 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCrossConnections.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCrossConnections.js @@ -442,6 +442,16 @@ function _get(resourceGroupName, crossConnectionName, options, callback) { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -881,6 +891,16 @@ function _listRoutesTable(resourceGroupName, crossConnectionName, peeringName, d * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -2238,6 +2258,16 @@ class ExpressRouteCrossConnections { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -2291,6 +2321,16 @@ class ExpressRouteCrossConnections { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -2762,6 +2802,16 @@ class ExpressRouteCrossConnections { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -2815,6 +2865,16 @@ class ExpressRouteCrossConnections { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. diff --git a/lib/services/networkManagement2/lib/operations/index.d.ts b/lib/services/networkManagement2/lib/operations/index.d.ts index ebd9602206..8916b437d4 100644 --- a/lib/services/networkManagement2/lib/operations/index.d.ts +++ b/lib/services/networkManagement2/lib/operations/index.d.ts @@ -6781,6 +6781,16 @@ export interface ExpressRouteCrossConnections { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -6822,6 +6832,16 @@ export interface ExpressRouteCrossConnections { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -7170,6 +7190,16 @@ export interface ExpressRouteCrossConnections { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -7211,6 +7241,16 @@ export interface ExpressRouteCrossConnections { * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * + * @param {string} [parameters.peeringLocation] The peering location of the + * ExpressRoute circuit. + * + * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. + * + * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit + * + * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express + * Route Circuit Id. + * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned'. @@ -7900,6 +7940,9 @@ export interface ExpressRouteCrossConnectionPeerings { * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * @@ -8020,6 +8063,9 @@ export interface ExpressRouteCrossConnectionPeerings { * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * @@ -8224,6 +8270,9 @@ export interface ExpressRouteCrossConnectionPeerings { * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * @@ -8344,6 +8393,9 @@ export interface ExpressRouteCrossConnectionPeerings { * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * + * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager + * Etag. + * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. *