Skip to content

Commit 3411051

Browse files
AutorestCIlmazuel
authored andcommitted
azure-servicefabric 6.2.0.0 (#2445)
* [AutoPR servicefabric/data-plane] Service Fabric REST API specification version 6.2 RTO (#2383) * Generated from 4cffa20a5783aab5b2d2f0268d922c6b9a6a21ba Service Fabric REST API specification version 6.2 RTO * Generated from 9ceed58fbab00d8902f075bda8fa948e27a99c0f fix the bugs in the specification and examples as surfaced by the example validation * Generated from dff9557eeb14fa3ed9b82e8dcfa1312a2b67a4ab example updates * Generated from 813b94529da22628561e9a804adb53710d08e967 remove newlines from the end of the description * Avoid pytest to look for tests in folder called 'models' * Latest Autorest.Python fixes * ServiceFabric 6.2.0.0 ChangeLog * Final details
1 parent f0750c2 commit 3411051

File tree

833 files changed

+41297
-4062
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

833 files changed

+41297
-4062
lines changed

azure-servicefabric/HISTORY.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,46 @@
33
Release History
44
===============
55

6+
6.2.0.0 (2018-05-10)
7+
++++++++++++++++++++
8+
9+
**General Breaking changes**
10+
11+
This version uses a next-generation code generator that *might* introduce breaking changes.
12+
13+
- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments.
14+
To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments.
15+
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered.
16+
While this is not a breaking change, the distinctions are important, and are documented here:
17+
https://docs.python.org/3/library/enum.html#others
18+
At a glance:
19+
20+
- "is" should not be used at all.
21+
- "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be prefered.
22+
23+
- New Long Running Operation:
24+
25+
- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
26+
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
27+
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
28+
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
29+
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
30+
the response of the initial call will be returned without polling.
31+
- `polling` parameter accepts instances of subclasses of `msrest.polling.PollingMethod`.
32+
- `add_done_callback` will no longer raise if called after polling is finished, but will instead execute the callback right away.
33+
34+
**Bugfixes**
35+
36+
- Numerous fixes to descriptions and help text of entities
37+
- Compatibility of the sdist with wheel 0.31.0
38+
39+
**Features**
40+
41+
- Add support for invoking container APIs
42+
- Add option to fetch container logs from exited containers
43+
- Query to get chaos events now supports specification to limit number of returned items
44+
- Client class can be used as a context manager to keep the underlying HTTP session open for performance
45+
646
6.1.2.9 (2018-02-05)
747
++++++++++++++++++++
848

azure-servicefabric/azure/servicefabric/models/__init__.py

Lines changed: 998 additions & 317 deletions
Large diffs are not rendered by default.

azure-servicefabric/azure/servicefabric/models/aad_metadata.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ class AadMetadata(Model):
3838
'tenant': {'key': 'tenant', 'type': 'str'},
3939
}
4040

41-
def __init__(self, authority=None, client=None, cluster=None, login=None, redirect=None, tenant=None):
42-
super(AadMetadata, self).__init__()
43-
self.authority = authority
44-
self.client = client
45-
self.cluster = cluster
46-
self.login = login
47-
self.redirect = redirect
48-
self.tenant = tenant
41+
def __init__(self, **kwargs):
42+
super(AadMetadata, self).__init__(**kwargs)
43+
self.authority = kwargs.get('authority', None)
44+
self.client = kwargs.get('client', None)
45+
self.cluster = kwargs.get('cluster', None)
46+
self.login = kwargs.get('login', None)
47+
self.redirect = kwargs.get('redirect', None)
48+
self.tenant = kwargs.get('tenant', None)

azure-servicefabric/azure/servicefabric/models/aad_metadata_object.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AadMetadataObject(Model):
2828
'metadata': {'key': 'metadata', 'type': 'AadMetadata'},
2929
}
3030

31-
def __init__(self, type=None, metadata=None):
32-
super(AadMetadataObject, self).__init__()
33-
self.type = type
34-
self.metadata = metadata
31+
def __init__(self, **kwargs):
32+
super(AadMetadataObject, self).__init__(**kwargs)
33+
self.type = kwargs.get('type', None)
34+
self.metadata = kwargs.get('metadata', None)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AadMetadataObject(Model):
16+
"""Azure Active Directory metadata object used for secured connection to
17+
cluster.
18+
19+
:param type: The client authentication method.
20+
:type type: str
21+
:param metadata: Azure Active Directory metadata used for secured
22+
connection to cluster.
23+
:type metadata: ~azure.servicefabric.models.AadMetadata
24+
"""
25+
26+
_attribute_map = {
27+
'type': {'key': 'type', 'type': 'str'},
28+
'metadata': {'key': 'metadata', 'type': 'AadMetadata'},
29+
}
30+
31+
def __init__(self, *, type: str=None, metadata=None, **kwargs) -> None:
32+
super(AadMetadataObject, self).__init__(**kwargs)
33+
self.type = type
34+
self.metadata = metadata
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AadMetadata(Model):
16+
"""Azure Active Directory metadata used for secured connection to cluster.
17+
18+
:param authority: The AAD authority url.
19+
:type authority: str
20+
:param client: The AAD client application Id.
21+
:type client: str
22+
:param cluster: The AAD cluster application Id.
23+
:type cluster: str
24+
:param login: The AAD login url.
25+
:type login: str
26+
:param redirect: The client application redirect address.
27+
:type redirect: str
28+
:param tenant: The AAD tenant Id.
29+
:type tenant: str
30+
"""
31+
32+
_attribute_map = {
33+
'authority': {'key': 'authority', 'type': 'str'},
34+
'client': {'key': 'client', 'type': 'str'},
35+
'cluster': {'key': 'cluster', 'type': 'str'},
36+
'login': {'key': 'login', 'type': 'str'},
37+
'redirect': {'key': 'redirect', 'type': 'str'},
38+
'tenant': {'key': 'tenant', 'type': 'str'},
39+
}
40+
41+
def __init__(self, *, authority: str=None, client: str=None, cluster: str=None, login: str=None, redirect: str=None, tenant: str=None, **kwargs) -> None:
42+
super(AadMetadata, self).__init__(**kwargs)
43+
self.authority = authority
44+
self.client = client
45+
self.cluster = cluster
46+
self.login = login
47+
self.redirect = redirect
48+
self.tenant = tenant
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .scaling_mechanism_description import ScalingMechanismDescription
13+
14+
15+
class AddRemoveIncrementalNamedPartitionScalingMechanism(ScalingMechanismDescription):
16+
"""Represents a scaling mechanism for adding or removing named partitions of a
17+
stateless service. Partition names are in the format '0','1''N-1'.
18+
19+
All required parameters must be populated in order to send to Azure.
20+
21+
:param kind: Required. Constant filled by server.
22+
:type kind: str
23+
:param min_partition_count: Required. Minimum number of named partitions
24+
of the service.
25+
:type min_partition_count: int
26+
:param max_partition_count: Required. Maximum number of named partitions
27+
of the service.
28+
:type max_partition_count: int
29+
:param scale_increment: Required. The number of instances to add or remove
30+
during a scaling operation.
31+
:type scale_increment: int
32+
"""
33+
34+
_validation = {
35+
'kind': {'required': True},
36+
'min_partition_count': {'required': True},
37+
'max_partition_count': {'required': True},
38+
'scale_increment': {'required': True},
39+
}
40+
41+
_attribute_map = {
42+
'kind': {'key': 'Kind', 'type': 'str'},
43+
'min_partition_count': {'key': 'MinPartitionCount', 'type': 'int'},
44+
'max_partition_count': {'key': 'MaxPartitionCount', 'type': 'int'},
45+
'scale_increment': {'key': 'ScaleIncrement', 'type': 'int'},
46+
}
47+
48+
def __init__(self, **kwargs):
49+
super(AddRemoveIncrementalNamedPartitionScalingMechanism, self).__init__(**kwargs)
50+
self.min_partition_count = kwargs.get('min_partition_count', None)
51+
self.max_partition_count = kwargs.get('max_partition_count', None)
52+
self.scale_increment = kwargs.get('scale_increment', None)
53+
self.kind = 'AddRemoveIncrementalNamedPartition'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .scaling_mechanism_description_py3 import ScalingMechanismDescription
13+
14+
15+
class AddRemoveIncrementalNamedPartitionScalingMechanism(ScalingMechanismDescription):
16+
"""Represents a scaling mechanism for adding or removing named partitions of a
17+
stateless service. Partition names are in the format '0','1''N-1'.
18+
19+
All required parameters must be populated in order to send to Azure.
20+
21+
:param kind: Required. Constant filled by server.
22+
:type kind: str
23+
:param min_partition_count: Required. Minimum number of named partitions
24+
of the service.
25+
:type min_partition_count: int
26+
:param max_partition_count: Required. Maximum number of named partitions
27+
of the service.
28+
:type max_partition_count: int
29+
:param scale_increment: Required. The number of instances to add or remove
30+
during a scaling operation.
31+
:type scale_increment: int
32+
"""
33+
34+
_validation = {
35+
'kind': {'required': True},
36+
'min_partition_count': {'required': True},
37+
'max_partition_count': {'required': True},
38+
'scale_increment': {'required': True},
39+
}
40+
41+
_attribute_map = {
42+
'kind': {'key': 'Kind', 'type': 'str'},
43+
'min_partition_count': {'key': 'MinPartitionCount', 'type': 'int'},
44+
'max_partition_count': {'key': 'MaxPartitionCount', 'type': 'int'},
45+
'scale_increment': {'key': 'ScaleIncrement', 'type': 'int'},
46+
}
47+
48+
def __init__(self, *, min_partition_count: int, max_partition_count: int, scale_increment: int, **kwargs) -> None:
49+
super(AddRemoveIncrementalNamedPartitionScalingMechanism, self).__init__(**kwargs)
50+
self.min_partition_count = min_partition_count
51+
self.max_partition_count = max_partition_count
52+
self.scale_increment = scale_increment
53+
self.kind = 'AddRemoveIncrementalNamedPartition'
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AnalysisEventMetadata(Model):
16+
"""Metadata about an Analysis Event.
17+
18+
:param delay: The analysis delay.
19+
:type delay: timedelta
20+
:param duration: The duration of analysis.
21+
:type duration: timedelta
22+
"""
23+
24+
_attribute_map = {
25+
'delay': {'key': 'Delay', 'type': 'duration'},
26+
'duration': {'key': 'Duration', 'type': 'duration'},
27+
}
28+
29+
def __init__(self, **kwargs):
30+
super(AnalysisEventMetadata, self).__init__(**kwargs)
31+
self.delay = kwargs.get('delay', None)
32+
self.duration = kwargs.get('duration', None)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AnalysisEventMetadata(Model):
16+
"""Metadata about an Analysis Event.
17+
18+
:param delay: The analysis delay.
19+
:type delay: timedelta
20+
:param duration: The duration of analysis.
21+
:type duration: timedelta
22+
"""
23+
24+
_attribute_map = {
25+
'delay': {'key': 'Delay', 'type': 'duration'},
26+
'duration': {'key': 'Duration', 'type': 'duration'},
27+
}
28+
29+
def __init__(self, *, delay=None, duration=None, **kwargs) -> None:
30+
super(AnalysisEventMetadata, self).__init__(**kwargs)
31+
self.delay = delay
32+
self.duration = duration
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .backup_configuration_info import BackupConfigurationInfo
13+
14+
15+
class ApplicationBackupConfigurationInfo(BackupConfigurationInfo):
16+
"""Backup configuration information for a specific Service Fabric application
17+
specifying what backup policy is being applied and suspend description, if
18+
any.
19+
20+
All required parameters must be populated in order to send to Azure.
21+
22+
:param policy_name: The name of the backup policy which is applicable to
23+
this Service Fabric application or service or partition.
24+
:type policy_name: str
25+
:param policy_inherited_from: Specifies the scope at which the backup
26+
policy is applied. Possible values include: 'Invalid', 'Partition',
27+
'Service', 'Application'
28+
:type policy_inherited_from: str or
29+
~azure.servicefabric.models.BackupPolicyScope
30+
:param suspension_info: Describes the backup suspension details.
31+
:type suspension_info: ~azure.servicefabric.models.BackupSuspensionInfo
32+
:param kind: Required. Constant filled by server.
33+
:type kind: str
34+
:param application_name: The name of the application, including the
35+
'fabric:' URI scheme.
36+
:type application_name: str
37+
"""
38+
39+
_validation = {
40+
'kind': {'required': True},
41+
}
42+
43+
_attribute_map = {
44+
'policy_name': {'key': 'PolicyName', 'type': 'str'},
45+
'policy_inherited_from': {'key': 'PolicyInheritedFrom', 'type': 'str'},
46+
'suspension_info': {'key': 'SuspensionInfo', 'type': 'BackupSuspensionInfo'},
47+
'kind': {'key': 'Kind', 'type': 'str'},
48+
'application_name': {'key': 'ApplicationName', 'type': 'str'},
49+
}
50+
51+
def __init__(self, **kwargs):
52+
super(ApplicationBackupConfigurationInfo, self).__init__(**kwargs)
53+
self.application_name = kwargs.get('application_name', None)
54+
self.kind = 'Application'

0 commit comments

Comments
 (0)