Skip to content

Commit

Permalink
SF Mgmt as of 2018-02-12
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel authored and AutorestCI committed Feb 28, 2018
1 parent f746c62 commit 4a3ec35
Show file tree
Hide file tree
Showing 66 changed files with 4,578 additions and 733 deletions.
112 changes: 88 additions & 24 deletions azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,122 @@
# regenerated.
# --------------------------------------------------------------------------

from .cluster_version_details import ClusterVersionDetails
from .cluster_code_versions_result import ClusterCodeVersionsResult
from .service_type_health_policy import ServiceTypeHealthPolicy
from .service_type_health_policy_map_item import ServiceTypeHealthPolicyMapItem
from .application_health_policy import ApplicationHealthPolicy
from .application_metric_description import ApplicationMetricDescription
from .application_parameter import ApplicationParameter
from .service_correlation_description import ServiceCorrelationDescription
from .service_load_metric_description import ServiceLoadMetricDescription
from .service_placement_policy_description import ServicePlacementPolicyDescription
from .partition_scheme_description import PartitionSchemeDescription
from .named_partition_scheme_description import NamedPartitionSchemeDescription
from .singleton_partition_scheme_description import SingletonPartitionSchemeDescription
from .uniform_int64_range_partition_scheme_description import UniformInt64RangePartitionSchemeDescription
from .application_type_resource import ApplicationTypeResource
from .application_type_resource_list import ApplicationTypeResourceList
from .version_resource import VersionResource
from .version_resource_list import VersionResourceList
from .application_resource import ApplicationResource
from .application_resource_list import ApplicationResourceList
from .rolling_upgrade_monitoring_policy import RollingUpgradeMonitoringPolicy
from .application_upgrade_policy import ApplicationUpgradePolicy
from .application_resource_update import ApplicationResourceUpdate
from .service_properties import ServiceProperties
from .service_resource import ServiceResource
from .service_resource_list import ServiceResourceList
from .service_properties_base import ServicePropertiesBase
from .service_update_properties import ServiceUpdateProperties
from .service_resource_update import ServiceResourceUpdate
from .stateless_service_properties import StatelessServiceProperties
from .stateless_service_update_properties import StatelessServiceUpdateProperties
from .stateful_service_properties import StatefulServiceProperties
from .stateful_service_update_properties import StatefulServiceUpdateProperties
from .available_operation_display import AvailableOperationDisplay
from .azure_active_directory import AzureActiveDirectory
from .certificate_description import CertificateDescription
from .client_certificate_common_name import ClientCertificateCommonName
from .client_certificate_thumbprint import ClientCertificateThumbprint
from .cluster_version_details import ClusterVersionDetails
from .settings_parameter_description import SettingsParameterDescription
from .settings_section_description import SettingsSectionDescription
from .endpoint_range_description import EndpointRangeDescription
from .node_type_description import NodeTypeDescription
from .client_certificate_thumbprint import ClientCertificateThumbprint
from .client_certificate_common_name import ClientCertificateCommonName
from .diagnostics_storage_account_config import DiagnosticsStorageAccountConfig
from .cluster_health_policy import ClusterHealthPolicy
from .cluster_upgrade_delta_health_policy import ClusterUpgradeDeltaHealthPolicy
from .cluster_upgrade_policy import ClusterUpgradePolicy
from .diagnostics_storage_account_config import DiagnosticsStorageAccountConfig
from .azure_active_directory import AzureActiveDirectory
from .cluster_update_parameters import ClusterUpdateParameters
from .cluster import Cluster
from .available_operation_display import AvailableOperationDisplay
from .operation_result import OperationResult
from .error_model_error import ErrorModelError
from .cluster_code_versions_result import ClusterCodeVersionsResult
from .cluster_code_versions_list_result import ClusterCodeVersionsListResult
from .cluster_list_result import ClusterListResult
from .cluster_update_parameters import ClusterUpdateParameters
from .error_model import ErrorModel, ErrorModelException
from .operation_result import OperationResult
from .proxy_resource import ProxyResource
from .resource import Resource
from .cluster_paged import ClusterPaged
from .cluster_code_versions_result_paged import ClusterCodeVersionsResultPaged
from .service_type_delta_health_policy import ServiceTypeDeltaHealthPolicy
from .operation_result_paged import OperationResultPaged
from .service_fabric_management_client_enums import (
ProvisioningState,
)

__all__ = [
'ClusterVersionDetails',
'ClusterCodeVersionsResult',
'ServiceTypeHealthPolicy',
'ServiceTypeHealthPolicyMapItem',
'ApplicationHealthPolicy',
'ApplicationMetricDescription',
'ApplicationParameter',
'ServiceCorrelationDescription',
'ServiceLoadMetricDescription',
'ServicePlacementPolicyDescription',
'PartitionSchemeDescription',
'NamedPartitionSchemeDescription',
'SingletonPartitionSchemeDescription',
'UniformInt64RangePartitionSchemeDescription',
'ApplicationTypeResource',
'ApplicationTypeResourceList',
'VersionResource',
'VersionResourceList',
'ApplicationResource',
'ApplicationResourceList',
'RollingUpgradeMonitoringPolicy',
'ApplicationUpgradePolicy',
'ApplicationResourceUpdate',
'ServiceProperties',
'ServiceResource',
'ServiceResourceList',
'ServicePropertiesBase',
'ServiceUpdateProperties',
'ServiceResourceUpdate',
'StatelessServiceProperties',
'StatelessServiceUpdateProperties',
'StatefulServiceProperties',
'StatefulServiceUpdateProperties',
'AvailableOperationDisplay',
'AzureActiveDirectory',
'CertificateDescription',
'ClientCertificateCommonName',
'ClientCertificateThumbprint',
'ClusterVersionDetails',
'SettingsParameterDescription',
'SettingsSectionDescription',
'EndpointRangeDescription',
'NodeTypeDescription',
'ClientCertificateThumbprint',
'ClientCertificateCommonName',
'DiagnosticsStorageAccountConfig',
'ClusterHealthPolicy',
'ClusterUpgradeDeltaHealthPolicy',
'ClusterUpgradePolicy',
'DiagnosticsStorageAccountConfig',
'AzureActiveDirectory',
'ClusterUpdateParameters',
'Cluster',
'AvailableOperationDisplay',
'OperationResult',
'ErrorModelError',
'ClusterCodeVersionsResult',
'ClusterCodeVersionsListResult',
'ClusterListResult',
'ClusterUpdateParameters',
'ErrorModel', 'ErrorModelException',
'OperationResult',
'ProxyResource',
'Resource',
'ClusterPaged',
'ClusterCodeVersionsResultPaged',
'ServiceTypeDeltaHealthPolicy',
'OperationResultPaged',
'ProvisioningState',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 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 ApplicationHealthPolicy(Model):
"""Defines a health policy used to evaluate the health of an application or
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:
: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]
"""

_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]'},
}

def __init__(self, consider_warning_as_error=False, max_percent_unhealthy_deployed_applications=0, default_service_type_health_policy=None, service_type_health_policy_map=None):
super(ApplicationHealthPolicy, self).__init__()
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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 ApplicationMetricDescription(Model):
"""Describes capacity information for a custom resource balancing metric. This
can be used to limit the total consumption of this metric by the services
of this application.
.
:param name: The name of the metric.
:type name: str
:param maximum_capacity: The maximum node capacity for Service Fabric
application.
This is the maximum Load for an instance of this application on a single
node. Even if the capacity of node is greater than this value, Service
Fabric will limit the total load of services within the application on
each node to this value.
If set to zero, capacity for this metric is unlimited on each node.
When creating a new application with application capacity defined, the
product of MaximumNodes and this value must always be smaller than or
equal to TotalApplicationCapacity.
When updating existing application with application capacity, the product
of MaximumNodes and this value must always be smaller than or equal to
TotalApplicationCapacity.
:type maximum_capacity: long
:param reservation_capacity: The node reservation capacity for Service
Fabric application.
This is the amount of load which is reserved on nodes which have instances
of this application.
If MinimumNodes is specified, then the product of these values will be the
capacity reserved in the cluster for the application.
If set to zero, no capacity is reserved for this metric.
When setting application capacity or when updating application capacity;
this value must be smaller than or equal to MaximumCapacity for each
metric.
:type reservation_capacity: long
:param total_application_capacity: The total metric capacity for Service
Fabric application.
This is the total metric capacity for this application in the cluster.
Service Fabric will try to limit the sum of loads of services within the
application to this value.
When creating a new application with application capacity defined, the
product of MaximumNodes and MaximumCapacity must always be smaller than or
equal to this value.
:type total_application_capacity: long
"""

_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'},
}

def __init__(self, name=None, maximum_capacity=None, reservation_capacity=None, total_application_capacity=None):
super(ApplicationMetricDescription, self).__init__()
self.name = name
self.maximum_capacity = maximum_capacity
self.reservation_capacity = reservation_capacity
self.total_application_capacity = total_application_capacity
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 ApplicationParameter(Model):
"""Describes an application parameter override to be applied when creating or
upgrading an application.
:param key: The name of the parameter.
:type key: str
:param value: The value of the parameter.
:type value: str
"""

_validation = {
'key': {'required': True},
'value': {'required': True},
}

_attribute_map = {
'key': {'key': 'Key', 'type': 'str'},
'value': {'key': 'Value', 'type': 'str'},
}

def __init__(self, key, value):
super(ApplicationParameter, self).__init__()
self.key = key
self.value = value
Loading

0 comments on commit 4a3ec35

Please sign in to comment.