forked from microsoft/service-fabric-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Show cluster connection URL (microsoft#103) Add command sfctl cluster show-connection. Command shows the currently connected cluster connection. Nothing is returned is no endpoint is set. * Add command to see the current version (microsoft#104) Use `sfctl --version` to see the current sfctl version * Update README (microsoft#105) update readme * Update versions for 6.0.0 release and update get nodes query (microsoft#113) - Update release notes and versions for 6.0.0 release. - Add parameter to set max results for query "sfctl node list" * Add support for python 3.7 and fix linting issues (microsoft#111) - Add support for python 3.7 - Make fixes where flagged by lint. These fixes are from code from a previous commits, but which were not caught until the latest lint tooling update. * Removed customSDK in preparation for release (microsoft#114) Remove the custom SDK folder in preparation for 6.0.0 release. There are no other changes in this PR. Only the deletion of that folder. * Help text update (microsoft#115) Add some fixes to the documentation. This includes a typo in the main help text about which version this release (6.0.0) should target. * Update release notes (microsoft#116) Update release notes * Add customSDK (microsoft#120) * Add upgrade-rollback for compose deployment (microsoft#119) Add upgrade-rollback command for compose deployment * Update custom SDK and update API version in paths generation test (microsoft#124) * update custom SDK to include get cluster version API * Update paths generation test to reflect updated required API version in get partition list API * Update knack package to be version 0.4.2 (microsoft#122) update knack package to be 0.4.2 * Remove retry on failed commands (microsoft#125) Remove retry for any sfctl failure - no retry on any HTTP request, regardless of returned error code.
- Loading branch information
Showing
303 changed files
with
5,394 additions
and
1,958 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
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
51 changes: 51 additions & 0 deletions
51
customSDK/servicefabric/models/add_remove_replica_scaling_mechanism.py
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,51 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .auto_scaling_mechanism import AutoScalingMechanism | ||
|
||
|
||
class AddRemoveReplicaScalingMechanism(AutoScalingMechanism): | ||
"""Describes the horizontal auto scaling mechanism that adds or removes | ||
replicas (containers or container groups). | ||
:param kind: Constant filled by server. | ||
:type kind: str | ||
:param min_count: Minimum number of containers (scale down won't be | ||
performed below this number). | ||
:type min_count: int | ||
:param max_count: Maximum number of containers (scale up won't be | ||
performed above this number). | ||
:type max_count: int | ||
:param scale_increment: Each time auto scaling is performed, this number | ||
of containers will be added or removed. | ||
:type scale_increment: int | ||
""" | ||
|
||
_validation = { | ||
'kind': {'required': True}, | ||
'min_count': {'required': True}, | ||
'max_count': {'required': True}, | ||
'scale_increment': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'kind': {'key': 'kind', 'type': 'str'}, | ||
'min_count': {'key': 'minCount', 'type': 'int'}, | ||
'max_count': {'key': 'maxCount', 'type': 'int'}, | ||
'scale_increment': {'key': 'scaleIncrement', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, min_count, max_count, scale_increment): | ||
super(AddRemoveReplicaScalingMechanism, self).__init__() | ||
self.min_count = min_count | ||
self.max_count = max_count | ||
self.scale_increment = scale_increment | ||
self.kind = 'AddRemoveReplica' |
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.