Skip to content

Commit

Permalink
[AutoPR] servicefabric/resource-manager (Azure#5563)
Browse files Browse the repository at this point in the history
* Generated from bda610e837cf647417615e0f74e0d1e005fe4aa0 (Azure#5562)

Re-trigger ServiceFabric Mgmt for Python

* Packaging update of azure-mgmt-servicefabric

* ChangeLog
  • Loading branch information
AutorestCI authored and lmazuel committed May 30, 2019
1 parent 7a60f9f commit 6671f23
Show file tree
Hide file tree
Showing 116 changed files with 2,579 additions and 1,518 deletions.
27 changes: 27 additions & 0 deletions sdk/servicefabric/azure-mgmt-servicefabric/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@
Release History
===============

0.3.0 (2019-05-30)
++++++++++++++++++

**Breaking changes**

- Model ServiceTypeHealthPolicy has a new signature
- Model ApplicationHealthPolicy has a new signature
- Model ErrorModel has a new signature
- Renamed operation group "application_type" to "application_types"
- Renamed operation group "service" to "services"
- Renamed operation group "application" to "applications"
- Removed operation group "version"

**Features**

- Add tags and etag attributes where supported
- Model ClusterHealthPolicy has a new parameter application_health_policies
- Model ClusterUpgradeDeltaHealthPolicy has a new parameter application_delta_health_policies
- Model StatelessServiceProperties has a new parameter service_package_activation_mode
- Model ServiceResource has a new parameter service_package_activation_mode
- Model Cluster has a new parameter reverse_proxy_certificate_common_names
- Model Cluster has a new parameter certificate_common_names
- Model Cluster has a new parameter event_store_service_enabled
- Model StatefulServiceProperties has a new parameter service_package_activation_mode
- Model ClusterUpdateParameters has a new parameter certificate_common_names
- Model ClusterUpdateParameters has a new parameter event_store_service_enabled

0.2.0 (2018-08-01)
++++++++++++++++++

Expand Down
4 changes: 4 additions & 0 deletions sdk/servicefabric/azure-mgmt-servicefabric/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

19 changes: 0 additions & 19 deletions sdk/servicefabric/azure-mgmt-servicefabric/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell
pip freeze
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell
pip uninstall azure
Usage
=====

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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 msrest.serialization import Model


class ApplicationDeltaHealthPolicy(Model):
"""Defines a delta health policy used to evaluate the health of an application
or one of its child entities when upgrading the cluster.
.
:param default_service_type_delta_health_policy: The delta health policy
used by default to evaluate the health of a service type when upgrading
the cluster.
:type default_service_type_delta_health_policy:
~azure.mgmt.servicefabric.models.ServiceTypeDeltaHealthPolicy
:param service_type_delta_health_policies: The map with service type delta
health policy per service type name. The map is empty by default.
:type service_type_delta_health_policies: dict[str,
~azure.mgmt.servicefabric.models.ServiceTypeDeltaHealthPolicy]
"""

_attribute_map = {
'default_service_type_delta_health_policy': {'key': 'defaultServiceTypeDeltaHealthPolicy', 'type': 'ServiceTypeDeltaHealthPolicy'},
'service_type_delta_health_policies': {'key': 'serviceTypeDeltaHealthPolicies', 'type': '{ServiceTypeDeltaHealthPolicy}'},
}

def __init__(self, **kwargs):
super(ApplicationDeltaHealthPolicy, self).__init__(**kwargs)
self.default_service_type_delta_health_policy = kwargs.get('default_service_type_delta_health_policy', None)
self.service_type_delta_health_policies = kwargs.get('service_type_delta_health_policies', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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 msrest.serialization import Model


class ApplicationDeltaHealthPolicy(Model):
"""Defines a delta health policy used to evaluate the health of an application
or one of its child entities when upgrading the cluster.
.
:param default_service_type_delta_health_policy: The delta health policy
used by default to evaluate the health of a service type when upgrading
the cluster.
:type default_service_type_delta_health_policy:
~azure.mgmt.servicefabric.models.ServiceTypeDeltaHealthPolicy
:param service_type_delta_health_policies: The map with service type delta
health policy per service type name. The map is empty by default.
:type service_type_delta_health_policies: dict[str,
~azure.mgmt.servicefabric.models.ServiceTypeDeltaHealthPolicy]
"""

_attribute_map = {
'default_service_type_delta_health_policy': {'key': 'defaultServiceTypeDeltaHealthPolicy', 'type': 'ServiceTypeDeltaHealthPolicy'},
'service_type_delta_health_policies': {'key': 'serviceTypeDeltaHealthPolicies', 'type': '{ServiceTypeDeltaHealthPolicy}'},
}

def __init__(self, *, default_service_type_delta_health_policy=None, service_type_delta_health_policies=None, **kwargs) -> None:
super(ApplicationDeltaHealthPolicy, self).__init__(**kwargs)
self.default_service_type_delta_health_policy = default_service_type_delta_health_policy
self.service_type_delta_health_policies = service_type_delta_health_policies
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,22 @@ class ApplicationHealthPolicy(Model):
one of its children entities.
.
:param consider_warning_as_error: Indicates whether warnings are treated
with the same severity as errors. Default value: False .
:type consider_warning_as_error: bool
:param max_percent_unhealthy_deployed_applications: The maximum allowed
percentage of unhealthy deployed applications. Allowed values are Byte
values from zero to 100.
The percentage represents the maximum tolerated percentage of deployed
applications that can be unhealthy before the application is considered in
error.
This is calculated by dividing the number of unhealthy deployed
applications over the number of nodes where the application is currently
deployed on in the cluster.
The computation rounds up to tolerate one failure on small numbers of
nodes. Default percentage is zero.
. Default value: 0 .
:type max_percent_unhealthy_deployed_applications: int
:param default_service_type_health_policy:
:param default_service_type_health_policy: The health policy used by
default to evaluate the health of a service type.
:type default_service_type_health_policy:
~azure.mgmt.servicefabric.models.ServiceTypeHealthPolicy
:param service_type_health_policy_map:
:type service_type_health_policy_map:
list[~azure.mgmt.servicefabric.models.ServiceTypeHealthPolicyMapItem]
:param service_type_health_policies: The map with service type health
policy per service type name. The map is empty by default.
:type service_type_health_policies: dict[str,
~azure.mgmt.servicefabric.models.ServiceTypeHealthPolicy]
"""

_attribute_map = {
'consider_warning_as_error': {'key': 'ConsiderWarningAsError', 'type': 'bool'},
'max_percent_unhealthy_deployed_applications': {'key': 'MaxPercentUnhealthyDeployedApplications', 'type': 'int'},
'default_service_type_health_policy': {'key': 'DefaultServiceTypeHealthPolicy', 'type': 'ServiceTypeHealthPolicy'},
'service_type_health_policy_map': {'key': 'ServiceTypeHealthPolicyMap', 'type': '[ServiceTypeHealthPolicyMapItem]'},
'default_service_type_health_policy': {'key': 'defaultServiceTypeHealthPolicy', 'type': 'ServiceTypeHealthPolicy'},
'service_type_health_policies': {'key': 'serviceTypeHealthPolicies', 'type': '{ServiceTypeHealthPolicy}'},
}

def __init__(self, **kwargs):
super(ApplicationHealthPolicy, self).__init__(**kwargs)
self.consider_warning_as_error = kwargs.get('consider_warning_as_error', False)
self.max_percent_unhealthy_deployed_applications = kwargs.get('max_percent_unhealthy_deployed_applications', 0)
self.default_service_type_health_policy = kwargs.get('default_service_type_health_policy', None)
self.service_type_health_policy_map = kwargs.get('service_type_health_policy_map', None)
self.service_type_health_policies = kwargs.get('service_type_health_policies', None)
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,22 @@ class ApplicationHealthPolicy(Model):
one of its children entities.
.
:param consider_warning_as_error: Indicates whether warnings are treated
with the same severity as errors. Default value: False .
:type consider_warning_as_error: bool
:param max_percent_unhealthy_deployed_applications: The maximum allowed
percentage of unhealthy deployed applications. Allowed values are Byte
values from zero to 100.
The percentage represents the maximum tolerated percentage of deployed
applications that can be unhealthy before the application is considered in
error.
This is calculated by dividing the number of unhealthy deployed
applications over the number of nodes where the application is currently
deployed on in the cluster.
The computation rounds up to tolerate one failure on small numbers of
nodes. Default percentage is zero.
. Default value: 0 .
:type max_percent_unhealthy_deployed_applications: int
:param default_service_type_health_policy:
:param default_service_type_health_policy: The health policy used by
default to evaluate the health of a service type.
:type default_service_type_health_policy:
~azure.mgmt.servicefabric.models.ServiceTypeHealthPolicy
:param service_type_health_policy_map:
:type service_type_health_policy_map:
list[~azure.mgmt.servicefabric.models.ServiceTypeHealthPolicyMapItem]
:param service_type_health_policies: The map with service type health
policy per service type name. The map is empty by default.
:type service_type_health_policies: dict[str,
~azure.mgmt.servicefabric.models.ServiceTypeHealthPolicy]
"""

_attribute_map = {
'consider_warning_as_error': {'key': 'ConsiderWarningAsError', 'type': 'bool'},
'max_percent_unhealthy_deployed_applications': {'key': 'MaxPercentUnhealthyDeployedApplications', 'type': 'int'},
'default_service_type_health_policy': {'key': 'DefaultServiceTypeHealthPolicy', 'type': 'ServiceTypeHealthPolicy'},
'service_type_health_policy_map': {'key': 'ServiceTypeHealthPolicyMap', 'type': '[ServiceTypeHealthPolicyMapItem]'},
'default_service_type_health_policy': {'key': 'defaultServiceTypeHealthPolicy', 'type': 'ServiceTypeHealthPolicy'},
'service_type_health_policies': {'key': 'serviceTypeHealthPolicies', 'type': '{ServiceTypeHealthPolicy}'},
}

def __init__(self, *, consider_warning_as_error: bool=False, max_percent_unhealthy_deployed_applications: int=0, default_service_type_health_policy=None, service_type_health_policy_map=None, **kwargs) -> None:
def __init__(self, *, default_service_type_health_policy=None, service_type_health_policies=None, **kwargs) -> None:
super(ApplicationHealthPolicy, self).__init__(**kwargs)
self.consider_warning_as_error = consider_warning_as_error
self.max_percent_unhealthy_deployed_applications = max_percent_unhealthy_deployed_applications
self.default_service_type_health_policy = default_service_type_health_policy
self.service_type_health_policy_map = service_type_health_policy_map
self.service_type_health_policies = service_type_health_policies
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class ApplicationMetricDescription(Model):
"""

_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'maximum_capacity': {'key': 'MaximumCapacity', 'type': 'long'},
'reservation_capacity': {'key': 'ReservationCapacity', 'type': 'long'},
'total_application_capacity': {'key': 'TotalApplicationCapacity', 'type': 'long'},
'name': {'key': 'name', 'type': 'str'},
'maximum_capacity': {'key': 'maximumCapacity', 'type': 'long'},
'reservation_capacity': {'key': 'reservationCapacity', 'type': 'long'},
'total_application_capacity': {'key': 'totalApplicationCapacity', 'type': 'long'},
}

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class ApplicationMetricDescription(Model):
"""

_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'maximum_capacity': {'key': 'MaximumCapacity', 'type': 'long'},
'reservation_capacity': {'key': 'ReservationCapacity', 'type': 'long'},
'total_application_capacity': {'key': 'TotalApplicationCapacity', 'type': 'long'},
'name': {'key': 'name', 'type': 'str'},
'maximum_capacity': {'key': 'maximumCapacity', 'type': 'long'},
'reservation_capacity': {'key': 'reservationCapacity', 'type': 'long'},
'total_application_capacity': {'key': 'totalApplicationCapacity', 'type': 'long'},
}

def __init__(self, *, name: str=None, maximum_capacity: int=None, reservation_capacity: int=None, total_application_capacity: int=None, **kwargs) -> None:
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6671f23

Please sign in to comment.