-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] servicefabric/data-plane (#3865)
* [AutoPR servicefabric/data-plane] typo: servicefabric/data-plane/Microsoft.ServiceFabric/servicefabric (#3848) * Generated from cebed9a01f5c0a1a57c6a8b4108d08e6ce853dd7 typo: servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/servicefabric - specificed -> specified - sucessful -> successful - resturns -> returns - commited -> committed - Double word "maximum" - Double word "with" * Packaging update of azure-servicefabric * [AutoPR servicefabric/data-plane] Swagger specification for Service Fabric runtime version 6.4 (#3898) * Generated from 6415c5920fc51ac978815e71c12089643a219c49 Swagger specification for Service Fabric runtime version 6.4 * Generated from c69b3d22ae7f74ae4932d3fdce146ff567441664 fix typos specificed -> specified, sucessful -> successful, resturns -> returns, commited -> committed, Double word "maximum", Double word "with" * Generated from 494e01db96f17beb1d349ab74358274971b26d08 remove invalid character * [AutoPR servicefabric/data-plane] typo: servicefabric/data-plane/Microsoft.ServiceFabric (#4000) * Generated from 5305ee85120064c4201d196fbc1b272ea31cdd0a typo: servicefabric/data-plane/Microsoft.ServiceFabric - dataloss -> data loss - specificed -> specified - sucsessful -> successful * Generated from 5305ee85120064c4201d196fbc1b272ea31cdd0a typo: servicefabric/data-plane/Microsoft.ServiceFabric - dataloss -> data loss - specificed -> specified - sucsessful -> successful * Update HISTORY.rst * Update sdk_packaging.toml * Packaging update of azure-servicefabric
- Loading branch information
1 parent
b862802
commit 34453e6
Showing
299 changed files
with
8,085 additions
and
2,769 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
include *.rst | ||
include azure/__init__.py | ||
|
481 changes: 306 additions & 175 deletions
481
azure-servicefabric/azure/servicefabric/models/__init__.py
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
azure-servicefabric/azure/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,53 @@ | ||
# 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). | ||
All required parameters must be populated in order to send to Azure. | ||
:param kind: Required. Constant filled by server. | ||
:type kind: str | ||
:param min_count: Required. Minimum number of containers (scale down won't | ||
be performed below this number). | ||
:type min_count: int | ||
:param max_count: Required. Maximum number of containers (scale up won't | ||
be performed above this number). | ||
:type max_count: int | ||
:param scale_increment: Required. 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, **kwargs): | ||
super(AddRemoveReplicaScalingMechanism, self).__init__(**kwargs) | ||
self.min_count = kwargs.get('min_count', None) | ||
self.max_count = kwargs.get('max_count', None) | ||
self.scale_increment = kwargs.get('scale_increment', None) | ||
self.kind = 'AddRemoveReplica' |
53 changes: 53 additions & 0 deletions
53
azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism_py3.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,53 @@ | ||
# 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_py3 import AutoScalingMechanism | ||
|
||
|
||
class AddRemoveReplicaScalingMechanism(AutoScalingMechanism): | ||
"""Describes the horizontal auto scaling mechanism that adds or removes | ||
replicas (containers or container groups). | ||
All required parameters must be populated in order to send to Azure. | ||
:param kind: Required. Constant filled by server. | ||
:type kind: str | ||
:param min_count: Required. Minimum number of containers (scale down won't | ||
be performed below this number). | ||
:type min_count: int | ||
:param max_count: Required. Maximum number of containers (scale up won't | ||
be performed above this number). | ||
:type max_count: int | ||
:param scale_increment: Required. 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: int, max_count: int, scale_increment: int, **kwargs) -> None: | ||
super(AddRemoveReplicaScalingMechanism, self).__init__(**kwargs) | ||
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
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
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.