Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR network/resource-manager] fix the Version for vmss public ip and nic #2632

Merged
merged 2 commits into from
Apr 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions lib/services/networkManagement2/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ class ApplicationGateway extends models['Resource'] {
* version of the rule set type.
* @member {array} [webApplicationFirewallConfiguration.disabledRuleGroups]
* The disabled rule groups.
* @member {boolean} [webApplicationFirewallConfiguration.requestBodyCheck]
* Whether allow WAF to check request Body.
* @member {number} [webApplicationFirewallConfiguration.maxRequestBodySize]
* Maxium request body size for WAF.
* @member {boolean} [enableHttp2] Whether HTTP2 is enabled on the
* application gateway resource.
* @member {string} [resourceGuid] Resource GUID property of the application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ class ApplicationGatewayBackendHealthServer {
* 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 {array} [ipConfiguration.publicIPAddress.ipTags] The list of tags
* associated with the public IP address.
* @member {string} [ipConfiguration.publicIPAddress.ipAddress] The IP
* address associated with the public IP address resource.
* @member {number} [ipConfiguration.publicIPAddress.idleTimeoutInMinutes]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class ApplicationGatewayWebApplicationFirewallConfiguration {
* set. Possible values are: 'OWASP'.
* @member {string} ruleSetVersion The version of the rule set type.
* @member {array} [disabledRuleGroups] The disabled rule groups.
* @member {boolean} [requestBodyCheck] Whether allow WAF to check request
* Body.
* @member {number} [maxRequestBodySize] Maxium request body size for WAF.
*/
constructor() {
}
Expand Down Expand Up @@ -87,6 +90,24 @@ class ApplicationGatewayWebApplicationFirewallConfiguration {
}
}
}
},
requestBodyCheck: {
required: false,
serializedName: 'requestBodyCheck',
type: {
name: 'Boolean'
}
},
maxRequestBodySize: {
required: false,
serializedName: 'maxRequestBodySize',
constraints: {
InclusiveMaximum: 128,
InclusiveMinimum: 8
},
type: {
name: 'Number'
}
}
}
}
Expand Down
116 changes: 116 additions & 0 deletions lib/services/networkManagement2/lib/models/connectionMonitor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
/*
* 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');

/**
* Parameters that define the operation to create a connection monitor.
*
*/
class ConnectionMonitor {
/**
* Create a ConnectionMonitor.
* @member {string} [location] Connection monitor location.
* @member {object} [tags] Connection monitor tags.
* @member {object} source
* @member {string} [source.resourceId] The ID of the resource used as the
* source by connection monitor.
* @member {number} [source.port] The source port used by connection monitor.
* @member {object} destination
* @member {string} [destination.resourceId] The ID of the resource used as
* the destination by connection monitor.
* @member {string} [destination.address] Address of the connection monitor
* destination (IP or domain name).
* @member {number} [destination.port] The destination port used by
* connection monitor.
* @member {boolean} [autoStart] Determines if the connection monitor will
* start automatically once created. Default value: true .
* @member {number} [monitoringIntervalInSeconds] Monitoring interval in
* seconds. Default value: 60 .
*/
constructor() {
}

/**
* Defines the metadata of ConnectionMonitor
*
* @returns {object} metadata of ConnectionMonitor
*
*/
mapper() {
return {
required: false,
serializedName: 'ConnectionMonitor',
type: {
name: 'Composite',
className: 'ConnectionMonitor',
modelProperties: {
location: {
required: false,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
source: {
required: true,
serializedName: 'properties.source',
type: {
name: 'Composite',
className: 'ConnectionMonitorSource'
}
},
destination: {
required: true,
serializedName: 'properties.destination',
type: {
name: 'Composite',
className: 'ConnectionMonitorDestination'
}
},
autoStart: {
required: false,
serializedName: 'properties.autoStart',
defaultValue: true,
type: {
name: 'Boolean'
}
},
monitoringIntervalInSeconds: {
required: false,
serializedName: 'properties.monitoringIntervalInSeconds',
defaultValue: 60,
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = ConnectionMonitor;
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* 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';

/**
* Describes the destination of connection monitor.
*
*/
class ConnectionMonitorDestination {
/**
* Create a ConnectionMonitorDestination.
* @member {string} [resourceId] The ID of the resource used as the
* destination by connection monitor.
* @member {string} [address] Address of the connection monitor destination
* (IP or domain name).
* @member {number} [port] The destination port used by connection monitor.
*/
constructor() {
}

/**
* Defines the metadata of ConnectionMonitorDestination
*
* @returns {object} metadata of ConnectionMonitorDestination
*
*/
mapper() {
return {
required: false,
serializedName: 'ConnectionMonitorDestination',
type: {
name: 'Composite',
className: 'ConnectionMonitorDestination',
modelProperties: {
resourceId: {
required: false,
serializedName: 'resourceId',
type: {
name: 'String'
}
},
address: {
required: false,
serializedName: 'address',
type: {
name: 'String'
}
},
port: {
required: false,
serializedName: 'port',
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = ConnectionMonitorDestination;
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* 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';

/**
* List of connection monitors.
*/
class ConnectionMonitorListResult extends Array {
/**
* Create a ConnectionMonitorListResult.
*/
constructor() {
super();
}

/**
* Defines the metadata of ConnectionMonitorListResult
*
* @returns {object} metadata of ConnectionMonitorListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'ConnectionMonitorListResult',
type: {
name: 'Composite',
className: 'ConnectionMonitorListResult',
modelProperties: {
value: {
required: false,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ConnectionMonitorResultElementType',
type: {
name: 'Composite',
className: 'ConnectionMonitorResult'
}
}
}
}
}
}
};
}
}

module.exports = ConnectionMonitorListResult;
Loading