This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR network/resource-manager] Fix errors with ddosCustomPolicy.js…
…on (#4525) * Generated from f786e806eeb7e1217a996e89ba30fb7f230a4b8b Add ddosCustomPolicy.json to readme.md and fix spec errors * Generated from dbd13ad4dd6a402b16ce899c7c6915e147405b65 Add ddosCustomPolicy.json to readme.md and fix spec errors
- Loading branch information
1 parent
92be5b0
commit 770378d
Showing
9 changed files
with
2,357 additions
and
0 deletions.
There are no files selected for viewing
160 changes: 160 additions & 0 deletions
160
lib/services/networkManagement2/lib/models/ddosCustomPolicy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
/* | ||
* 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 DDoS custom policy in a resource group. | ||
* | ||
* @extends models['Resource'] | ||
*/ | ||
class DdosCustomPolicy extends models['Resource'] { | ||
/** | ||
* Create a DdosCustomPolicy. | ||
* @property {string} [resourceGuid] The resource GUID property of the DDoS | ||
* custom policy resource. It uniquely identifies the resource, even if the | ||
* user changes its name or migrate the resource across subscriptions or | ||
* resource groups. | ||
* @property {string} [provisioningState] The provisioning state of the DDoS | ||
* custom policy resource. Possible values are: 'Succeeded', 'Updating', | ||
* 'Deleting', and 'Failed'. | ||
* @property {array} [publicIPAddresses] The list of public IPs associated | ||
* with the DDoS custom policy resource. This list is read-only. | ||
* @property {array} [protocolCustomSettings] The protocol-specific DDoS | ||
* policy customization parameters. | ||
* @property {string} [etag] A unique read-only string that changes whenever | ||
* the resource is updated. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of DdosCustomPolicy | ||
* | ||
* @returns {object} metadata of DdosCustomPolicy | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'DdosCustomPolicy', | ||
type: { | ||
name: 'Composite', | ||
className: 'DdosCustomPolicy', | ||
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' | ||
} | ||
} | ||
} | ||
}, | ||
resourceGuid: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.resourceGuid', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
provisioningState: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.provisioningState', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
publicIPAddresses: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.publicIPAddresses', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'SubResourceElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'SubResource' | ||
} | ||
} | ||
} | ||
}, | ||
protocolCustomSettings: { | ||
required: false, | ||
serializedName: 'properties.protocolCustomSettings', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ProtocolCustomSettingsFormatElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ProtocolCustomSettingsFormat' | ||
} | ||
} | ||
} | ||
}, | ||
etag: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'etag', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = DdosCustomPolicy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
lib/services/networkManagement2/lib/models/protocolCustomSettingsFormat.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; | ||
|
||
/** | ||
* DDoS custom policy properties. | ||
* | ||
*/ | ||
class ProtocolCustomSettingsFormat { | ||
/** | ||
* Create a ProtocolCustomSettingsFormat. | ||
* @property {string} [protocol] The protocol for which the DDoS protection | ||
* policy is being customized. Possible values include: 'Tcp', 'Udp', 'Syn' | ||
* @property {string} [triggerRateOverride] The customized DDoS protection | ||
* trigger rate. | ||
* @property {string} [sourceRateOverride] The customized DDoS protection | ||
* source rate. | ||
* @property {string} [triggerSensitivityOverride] The customized DDoS | ||
* protection trigger rate sensitivity degrees. High: Trigger rate set with | ||
* most sensitivity w.r.t. normal traffic. Default: Trigger rate set with | ||
* moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with | ||
* less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with | ||
* least sensitivity w.r.t. normal traffic. Possible values include: | ||
* 'Relaxed', 'Low', 'Default', 'High' | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of ProtocolCustomSettingsFormat | ||
* | ||
* @returns {object} metadata of ProtocolCustomSettingsFormat | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ProtocolCustomSettingsFormat', | ||
type: { | ||
name: 'Composite', | ||
className: 'ProtocolCustomSettingsFormat', | ||
modelProperties: { | ||
protocol: { | ||
required: false, | ||
serializedName: 'protocol', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
triggerRateOverride: { | ||
required: false, | ||
serializedName: 'triggerRateOverride', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
sourceRateOverride: { | ||
required: false, | ||
serializedName: 'sourceRateOverride', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
triggerSensitivityOverride: { | ||
required: false, | ||
serializedName: 'triggerSensitivityOverride', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ProtocolCustomSettingsFormat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.