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

[AutoPR network/resource-manager] Fix errors in old Network API version #4513

Merged
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
2 changes: 1 addition & 1 deletion lib/services/networkManagement2/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* 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 ApplicationGatewayAvailableRequestHeaders API service call.
*
*/
class ApplicationGatewayAvailableRequestHeadersResult {
/**
* Create a ApplicationGatewayAvailableRequestHeadersResult.
* @property {array} [value] The list of supported request headers in
* application gateway.
*/
constructor() {
}

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

module.exports = ApplicationGatewayAvailableRequestHeadersResult;
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* 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 ApplicationGatewayAvailableResponeHeaders API service call.
*
*/
class ApplicationGatewayAvailableResponseHeadersResult {
/**
* Create a ApplicationGatewayAvailableResponseHeadersResult.
* @property {array} [value] The list of supported response header in
* application gateway.
*/
constructor() {
}

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

module.exports = ApplicationGatewayAvailableResponseHeadersResult;
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* 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 ApplicationGatewayAvailableServerVariables API service call.
*
*/
class ApplicationGatewayAvailableServerVariablesResult {
/**
* Create a ApplicationGatewayAvailableServerVariablesResult.
* @property {array} [value] The list of supported server variables in
* application gateway.
*/
constructor() {
}

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

module.exports = ApplicationGatewayAvailableServerVariablesResult;
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,19 @@ class ApplicationGatewayBackendHealthServer {
* 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.
* @property {object} [ipConfiguration.publicIPAddress.ddosSettings] The DDoS
* protection custom policy associated with the public IP address.
* @property {object}
* [ipConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] The DDoS
* custom policy associated with the public IP.
* @property {string}
* [ipConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy.id]
* Resource ID.
* @property {string}
* [ipConfiguration.publicIPAddress.ddosSettings.protectionCoverage] The DDoS
* protection policy customizability of the public IP. Only standard coverage
* will have the ability to be customized. Possible values include: 'Basic',
* 'Standard'
* @property {array} [ipConfiguration.publicIPAddress.ipTags] The list of
* tags associated with the public IP address.
* @property {string} [ipConfiguration.publicIPAddress.ipAddress] The IP
Expand Down
65 changes: 65 additions & 0 deletions lib/services/networkManagement2/lib/models/ddosSettings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* 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';

/**
* Contains the DDoS protection settings of the public IP.
*
*/
class DdosSettings {
/**
* Create a DdosSettings.
* @property {object} [ddosCustomPolicy] The DDoS custom policy associated
* with the public IP.
* @property {string} [ddosCustomPolicy.id] Resource ID.
* @property {string} [protectionCoverage] The DDoS protection policy
* customizability of the public IP. Only standard coverage will have the
* ability to be customized. Possible values include: 'Basic', 'Standard'
*/
constructor() {
}

/**
* Defines the metadata of DdosSettings
*
* @returns {object} metadata of DdosSettings
*
*/
mapper() {
return {
required: false,
serializedName: 'DdosSettings',
type: {
name: 'Composite',
className: 'DdosSettings',
modelProperties: {
ddosCustomPolicy: {
required: false,
serializedName: 'ddosCustomPolicy',
type: {
name: 'Composite',
className: 'SubResource'
}
},
protectionCoverage: {
required: false,
serializedName: 'protectionCoverage',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DdosSettings;
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,16 @@ class FrontendIPConfiguration extends models['SubResource'] {
* 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.
* @property {object} [publicIPAddress.ddosSettings] The DDoS protection
* custom policy associated with the public IP address.
* @property {object} [publicIPAddress.ddosSettings.ddosCustomPolicy] The
* DDoS custom policy associated with the public IP.
* @property {string} [publicIPAddress.ddosSettings.ddosCustomPolicy.id]
* Resource ID.
* @property {string} [publicIPAddress.ddosSettings.protectionCoverage] The
* DDoS protection policy customizability of the public IP. Only standard
* coverage will have the ability to be customized. Possible values include:
* 'Basic', 'Standard'
* @property {array} [publicIPAddress.ipTags] The list of tags associated
* with the public IP address.
* @property {string} [publicIPAddress.ipAddress] The IP address associated
Expand Down
10 changes: 10 additions & 0 deletions lib/services/networkManagement2/lib/models/iPConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ class IPConfiguration extends models['SubResource'] {
* 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.
* @property {object} [publicIPAddress.ddosSettings] The DDoS protection
* custom policy associated with the public IP address.
* @property {object} [publicIPAddress.ddosSettings.ddosCustomPolicy] The
* DDoS custom policy associated with the public IP.
* @property {string} [publicIPAddress.ddosSettings.ddosCustomPolicy.id]
* Resource ID.
* @property {string} [publicIPAddress.ddosSettings.protectionCoverage] The
* DDoS protection policy customizability of the public IP. Only standard
* coverage will have the ability to be customized. Possible values include:
* 'Basic', 'Standard'
* @property {array} [publicIPAddress.ipTags] The list of tags associated
* with the public IP address.
* @property {string} [publicIPAddress.ipAddress] The IP address associated
Expand Down
13 changes: 13 additions & 0 deletions lib/services/networkManagement2/lib/models/inboundNatRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,19 @@ class InboundNatRule extends models['SubResource'] {
* 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.
* @property {object} [backendIPConfiguration.publicIPAddress.ddosSettings]
* The DDoS protection custom policy associated with the public IP address.
* @property {object}
* [backendIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] The
* DDoS custom policy associated with the public IP.
* @property {string}
* [backendIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy.id]
* Resource ID.
* @property {string}
* [backendIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage]
* The DDoS protection policy customizability of the public IP. Only standard
* coverage will have the ability to be customized. Possible values include:
* 'Basic', 'Standard'
* @property {array} [backendIPConfiguration.publicIPAddress.ipTags] The list
* of tags associated with the public IP address.
* @property {string} [backendIPConfiguration.publicIPAddress.ipAddress] The
Expand Down
Loading