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 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 26f08b03587be02011080dd59d67c691a57b898d (#3914)
Swagger specification and examples for Service Fabric Mesh 2018-09-01-preview release.
- Loading branch information
1 parent
12c0f49
commit f8855ed
Showing
76 changed files
with
13,236 additions
and
1,858 deletions.
There are no files selected for viewing
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
89 changes: 89 additions & 0 deletions
89
lib/services/serviceFabricMeshManagement/lib/models/addRemoveReplicaScalingMechanism.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,89 @@ | ||
/* | ||
* 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'); | ||
|
||
/** | ||
* Describes the horizontal auto scaling mechanism that adds or removes | ||
* replicas (containers or container groups). | ||
* | ||
* @extends models['AutoScalingMechanism'] | ||
*/ | ||
class AddRemoveReplicaScalingMechanism extends models['AutoScalingMechanism'] { | ||
/** | ||
* Create a AddRemoveReplicaScalingMechanism. | ||
* @member {number} minCount Minimum number of containers (scale down won't | ||
* be performed below this number). | ||
* @member {number} maxCount Maximum number of containers (scale up won't be | ||
* performed above this number). | ||
* @member {number} scaleIncrement Each time auto scaling is performed, this | ||
* number of containers will be added or removed. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of AddRemoveReplicaScalingMechanism | ||
* | ||
* @returns {object} metadata of AddRemoveReplicaScalingMechanism | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AddRemoveReplica', | ||
type: { | ||
name: 'Composite', | ||
polymorphicDiscriminator: { | ||
serializedName: 'kind', | ||
clientName: 'kind' | ||
}, | ||
uberParent: 'AutoScalingMechanism', | ||
className: 'AddRemoveReplicaScalingMechanism', | ||
modelProperties: { | ||
kind: { | ||
required: true, | ||
serializedName: 'kind', | ||
isPolymorphicDiscriminator: true, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
minCount: { | ||
required: true, | ||
serializedName: 'minCount', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
maxCount: { | ||
required: true, | ||
serializedName: 'maxCount', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
scaleIncrement: { | ||
required: true, | ||
serializedName: 'scaleIncrement', | ||
type: { | ||
name: 'Number' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AddRemoveReplicaScalingMechanism; |
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.