-
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] Swagger specification for Service F…
…abric 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
- Loading branch information
1 parent
7d59a31
commit 3335ed7
Showing
294 changed files
with
8,060 additions
and
2,761 deletions.
There are no files selected for viewing
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
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.