diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/HISTORY.rst b/sdk/servicefabric/azure-mgmt-servicefabric/HISTORY.rst index 7eef09669526..0a2d66baa497 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/HISTORY.rst +++ b/sdk/servicefabric/azure-mgmt-servicefabric/HISTORY.rst @@ -3,6 +3,37 @@ Release History =============== +0.4.0 (2019-08-19) +++++++++++++++++++ + +**Features** + +- Added operation ClustersOperations.create_or_update +- Added operation ServicesOperations.create_or_update +- Added operation ApplicationsOperations.create_or_update +- Added operation ApplicationTypesOperations.create_or_update +- Added operation ApplicationTypeVersionsOperations.create_or_update + +**Breaking changes** + +- Removed operation ClustersOperations.create +- Removed operation ServicesOperations.create +- Removed operation ApplicationsOperations.create +- Removed operation ApplicationTypesOperations.create +- Removed operation ApplicationTypeVersionsOperations.create + +**General Breaking changes** + +This version uses a next-generation code generator that *might* introduce breaking changes if from some import. +In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place. + +- ServiceFabricManagementClient cannot be imported from `azure.mgmt.servicefabric.service_fabric_management_client` anymore (import from `azure.mgmt.servicefabric` works like before) +- ServiceFabricManagementClientConfiguration import has been moved from `azure.mgmt.servicefabric.service_fabric_management_client` to `azure.mgmt.servicefabric` +- A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.servicefabric.models.my_class` (import from `azure.mgmt.servicefabric.models` works like before) +- An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.servicefabric.operations.my_class_operations` (import from `azure.mgmt.servicefabric.operations` works like before) + +Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process. + 0.3.0 (2019-05-30) ++++++++++++++++++ diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/README.rst b/sdk/servicefabric/azure-mgmt-servicefabric/README.rst index 818c9340559d..5899185a1ffd 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/README.rst +++ b/sdk/servicefabric/azure-mgmt-servicefabric/README.rst @@ -6,7 +6,7 @@ This is the Microsoft Azure Service Fabric Management Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/__init__.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/__init__.py index 1732f2cd8da2..e9b49faba3cd 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/__init__.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .service_fabric_management_client import ServiceFabricManagementClient -from .version import VERSION +from ._configuration import ServiceFabricManagementClientConfiguration +from ._service_fabric_management_client import ServiceFabricManagementClient +__all__ = ['ServiceFabricManagementClient', 'ServiceFabricManagementClientConfiguration'] -__all__ = ['ServiceFabricManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_configuration.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_configuration.py new file mode 100644 index 000000000000..d0185d49c5bd --- /dev/null +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_configuration.py @@ -0,0 +1,48 @@ +# 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 msrestazure import AzureConfiguration + +from .version import VERSION + + +class ServiceFabricManagementClientConfiguration(AzureConfiguration): + """Configuration for ServiceFabricManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The customer subscription identifier. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ServiceFabricManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-servicefabric/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/service_fabric_management_client.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_service_fabric_management_client.py similarity index 65% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/service_fabric_management_client.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_service_fabric_management_client.py index c8d6f9532cc8..cda98aa0e4c7 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/service_fabric_management_client.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/_service_fabric_management_client.py @@ -11,48 +11,16 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.clusters_operations import ClustersOperations -from .operations.cluster_versions_operations import ClusterVersionsOperations -from .operations.operations import Operations -from .operations.application_types_operations import ApplicationTypesOperations -from .operations.application_type_versions_operations import ApplicationTypeVersionsOperations -from .operations.applications_operations import ApplicationsOperations -from .operations.services_operations import ServicesOperations -from . import models - - -class ServiceFabricManagementClientConfiguration(AzureConfiguration): - """Configuration for ServiceFabricManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The customer subscription identifier. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ServiceFabricManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-servicefabric/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ServiceFabricManagementClientConfiguration +from .operations import ClustersOperations +from .operations import ClusterVersionsOperations +from .operations import Operations +from .operations import ApplicationTypesOperations +from .operations import ApplicationTypeVersionsOperations +from .operations import ApplicationsOperations +from .operations import ServicesOperations +from . import models class ServiceFabricManagementClient(SDKClient): @@ -91,7 +59,7 @@ def __init__( super(ServiceFabricManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2019-03-01-preview' + self.api_version = '2019-03-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/__init__.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/__init__.py index f573e75337b1..64315742f6c5 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/__init__.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/__init__.py @@ -10,127 +10,127 @@ # -------------------------------------------------------------------------- try: - from .service_type_delta_health_policy_py3 import ServiceTypeDeltaHealthPolicy - from .application_delta_health_policy_py3 import ApplicationDeltaHealthPolicy - from .service_type_health_policy_py3 import ServiceTypeHealthPolicy - from .application_health_policy_py3 import ApplicationHealthPolicy - from .available_operation_display_py3 import AvailableOperationDisplay - from .azure_active_directory_py3 import AzureActiveDirectory - from .certificate_description_py3 import CertificateDescription - from .client_certificate_common_name_py3 import ClientCertificateCommonName - from .client_certificate_thumbprint_py3 import ClientCertificateThumbprint - from .cluster_version_details_py3 import ClusterVersionDetails - from .server_certificate_common_name_py3 import ServerCertificateCommonName - from .server_certificate_common_names_py3 import ServerCertificateCommonNames - from .diagnostics_storage_account_config_py3 import DiagnosticsStorageAccountConfig - from .settings_parameter_description_py3 import SettingsParameterDescription - from .settings_section_description_py3 import SettingsSectionDescription - from .endpoint_range_description_py3 import EndpointRangeDescription - from .node_type_description_py3 import NodeTypeDescription - from .cluster_health_policy_py3 import ClusterHealthPolicy - from .cluster_upgrade_delta_health_policy_py3 import ClusterUpgradeDeltaHealthPolicy - from .cluster_upgrade_policy_py3 import ClusterUpgradePolicy - from .cluster_py3 import Cluster - from .cluster_code_versions_result_py3 import ClusterCodeVersionsResult - from .cluster_code_versions_list_result_py3 import ClusterCodeVersionsListResult - from .cluster_list_result_py3 import ClusterListResult - from .cluster_update_parameters_py3 import ClusterUpdateParameters - from .operation_result_py3 import OperationResult - from .resource_py3 import Resource - from .error_model_error_py3 import ErrorModelError - from .error_model_py3 import ErrorModel, ErrorModelException - from .application_metric_description_py3 import ApplicationMetricDescription - from .application_resource_py3 import ApplicationResource - from .application_resource_list_py3 import ApplicationResourceList - from .arm_rolling_upgrade_monitoring_policy_py3 import ArmRollingUpgradeMonitoringPolicy - from .arm_service_type_health_policy_py3 import ArmServiceTypeHealthPolicy - from .arm_application_health_policy_py3 import ArmApplicationHealthPolicy - from .application_upgrade_policy_py3 import ApplicationUpgradePolicy - from .application_resource_update_py3 import ApplicationResourceUpdate - from .application_type_resource_py3 import ApplicationTypeResource - from .application_type_resource_list_py3 import ApplicationTypeResourceList - from .application_type_version_resource_py3 import ApplicationTypeVersionResource - from .application_type_version_resource_list_py3 import ApplicationTypeVersionResourceList - from .service_correlation_description_py3 import ServiceCorrelationDescription - from .named_partition_scheme_description_py3 import NamedPartitionSchemeDescription - from .partition_scheme_description_py3 import PartitionSchemeDescription - from .proxy_resource_py3 import ProxyResource - from .service_load_metric_description_py3 import ServiceLoadMetricDescription - from .service_placement_policy_description_py3 import ServicePlacementPolicyDescription - from .service_resource_properties_py3 import ServiceResourceProperties - from .service_resource_py3 import ServiceResource - from .service_resource_list_py3 import ServiceResourceList - from .service_resource_properties_base_py3 import ServiceResourcePropertiesBase - from .service_resource_update_properties_py3 import ServiceResourceUpdateProperties - from .service_resource_update_py3 import ServiceResourceUpdate - from .singleton_partition_scheme_description_py3 import SingletonPartitionSchemeDescription - from .stateful_service_properties_py3 import StatefulServiceProperties - from .stateful_service_update_properties_py3 import StatefulServiceUpdateProperties - from .stateless_service_properties_py3 import StatelessServiceProperties - from .stateless_service_update_properties_py3 import StatelessServiceUpdateProperties - from .uniform_int64_range_partition_scheme_description_py3 import UniformInt64RangePartitionSchemeDescription + from ._models_py3 import ApplicationDeltaHealthPolicy + from ._models_py3 import ApplicationHealthPolicy + from ._models_py3 import ApplicationMetricDescription + from ._models_py3 import ApplicationResource + from ._models_py3 import ApplicationResourceList + from ._models_py3 import ApplicationResourceUpdate + from ._models_py3 import ApplicationTypeResource + from ._models_py3 import ApplicationTypeResourceList + from ._models_py3 import ApplicationTypeVersionResource + from ._models_py3 import ApplicationTypeVersionResourceList + from ._models_py3 import ApplicationUpgradePolicy + from ._models_py3 import ArmApplicationHealthPolicy + from ._models_py3 import ArmRollingUpgradeMonitoringPolicy + from ._models_py3 import ArmServiceTypeHealthPolicy + from ._models_py3 import AvailableOperationDisplay + from ._models_py3 import AzureActiveDirectory + from ._models_py3 import CertificateDescription + from ._models_py3 import ClientCertificateCommonName + from ._models_py3 import ClientCertificateThumbprint + from ._models_py3 import Cluster + from ._models_py3 import ClusterCodeVersionsListResult + from ._models_py3 import ClusterCodeVersionsResult + from ._models_py3 import ClusterHealthPolicy + from ._models_py3 import ClusterListResult + from ._models_py3 import ClusterUpdateParameters + from ._models_py3 import ClusterUpgradeDeltaHealthPolicy + from ._models_py3 import ClusterUpgradePolicy + from ._models_py3 import ClusterVersionDetails + from ._models_py3 import DiagnosticsStorageAccountConfig + from ._models_py3 import EndpointRangeDescription + from ._models_py3 import ErrorModel, ErrorModelException + from ._models_py3 import ErrorModelError + from ._models_py3 import NamedPartitionSchemeDescription + from ._models_py3 import NodeTypeDescription + from ._models_py3 import OperationResult + from ._models_py3 import PartitionSchemeDescription + from ._models_py3 import ProxyResource + from ._models_py3 import Resource + from ._models_py3 import ServerCertificateCommonName + from ._models_py3 import ServerCertificateCommonNames + from ._models_py3 import ServiceCorrelationDescription + from ._models_py3 import ServiceLoadMetricDescription + from ._models_py3 import ServicePlacementPolicyDescription + from ._models_py3 import ServiceResource + from ._models_py3 import ServiceResourceList + from ._models_py3 import ServiceResourceProperties + from ._models_py3 import ServiceResourcePropertiesBase + from ._models_py3 import ServiceResourceUpdate + from ._models_py3 import ServiceResourceUpdateProperties + from ._models_py3 import ServiceTypeDeltaHealthPolicy + from ._models_py3 import ServiceTypeHealthPolicy + from ._models_py3 import SettingsParameterDescription + from ._models_py3 import SettingsSectionDescription + from ._models_py3 import SingletonPartitionSchemeDescription + from ._models_py3 import StatefulServiceProperties + from ._models_py3 import StatefulServiceUpdateProperties + from ._models_py3 import StatelessServiceProperties + from ._models_py3 import StatelessServiceUpdateProperties + from ._models_py3 import UniformInt64RangePartitionSchemeDescription except (SyntaxError, ImportError): - from .service_type_delta_health_policy import ServiceTypeDeltaHealthPolicy - from .application_delta_health_policy import ApplicationDeltaHealthPolicy - from .service_type_health_policy import ServiceTypeHealthPolicy - from .application_health_policy import ApplicationHealthPolicy - 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 .server_certificate_common_name import ServerCertificateCommonName - from .server_certificate_common_names import ServerCertificateCommonNames - from .diagnostics_storage_account_config import DiagnosticsStorageAccountConfig - 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 .cluster_health_policy import ClusterHealthPolicy - from .cluster_upgrade_delta_health_policy import ClusterUpgradeDeltaHealthPolicy - from .cluster_upgrade_policy import ClusterUpgradePolicy - from .cluster import Cluster - 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 .operation_result import OperationResult - from .resource import Resource - from .error_model_error import ErrorModelError - from .error_model import ErrorModel, ErrorModelException - from .application_metric_description import ApplicationMetricDescription - from .application_resource import ApplicationResource - from .application_resource_list import ApplicationResourceList - from .arm_rolling_upgrade_monitoring_policy import ArmRollingUpgradeMonitoringPolicy - from .arm_service_type_health_policy import ArmServiceTypeHealthPolicy - from .arm_application_health_policy import ArmApplicationHealthPolicy - from .application_upgrade_policy import ApplicationUpgradePolicy - from .application_resource_update import ApplicationResourceUpdate - from .application_type_resource import ApplicationTypeResource - from .application_type_resource_list import ApplicationTypeResourceList - from .application_type_version_resource import ApplicationTypeVersionResource - from .application_type_version_resource_list import ApplicationTypeVersionResourceList - from .service_correlation_description import ServiceCorrelationDescription - from .named_partition_scheme_description import NamedPartitionSchemeDescription - from .partition_scheme_description import PartitionSchemeDescription - from .proxy_resource import ProxyResource - from .service_load_metric_description import ServiceLoadMetricDescription - from .service_placement_policy_description import ServicePlacementPolicyDescription - from .service_resource_properties import ServiceResourceProperties - from .service_resource import ServiceResource - from .service_resource_list import ServiceResourceList - from .service_resource_properties_base import ServiceResourcePropertiesBase - from .service_resource_update_properties import ServiceResourceUpdateProperties - from .service_resource_update import ServiceResourceUpdate - from .singleton_partition_scheme_description import SingletonPartitionSchemeDescription - from .stateful_service_properties import StatefulServiceProperties - from .stateful_service_update_properties import StatefulServiceUpdateProperties - from .stateless_service_properties import StatelessServiceProperties - from .stateless_service_update_properties import StatelessServiceUpdateProperties - from .uniform_int64_range_partition_scheme_description import UniformInt64RangePartitionSchemeDescription -from .operation_result_paged import OperationResultPaged -from .service_fabric_management_client_enums import ( + from ._models import ApplicationDeltaHealthPolicy + from ._models import ApplicationHealthPolicy + from ._models import ApplicationMetricDescription + from ._models import ApplicationResource + from ._models import ApplicationResourceList + from ._models import ApplicationResourceUpdate + from ._models import ApplicationTypeResource + from ._models import ApplicationTypeResourceList + from ._models import ApplicationTypeVersionResource + from ._models import ApplicationTypeVersionResourceList + from ._models import ApplicationUpgradePolicy + from ._models import ArmApplicationHealthPolicy + from ._models import ArmRollingUpgradeMonitoringPolicy + from ._models import ArmServiceTypeHealthPolicy + from ._models import AvailableOperationDisplay + from ._models import AzureActiveDirectory + from ._models import CertificateDescription + from ._models import ClientCertificateCommonName + from ._models import ClientCertificateThumbprint + from ._models import Cluster + from ._models import ClusterCodeVersionsListResult + from ._models import ClusterCodeVersionsResult + from ._models import ClusterHealthPolicy + from ._models import ClusterListResult + from ._models import ClusterUpdateParameters + from ._models import ClusterUpgradeDeltaHealthPolicy + from ._models import ClusterUpgradePolicy + from ._models import ClusterVersionDetails + from ._models import DiagnosticsStorageAccountConfig + from ._models import EndpointRangeDescription + from ._models import ErrorModel, ErrorModelException + from ._models import ErrorModelError + from ._models import NamedPartitionSchemeDescription + from ._models import NodeTypeDescription + from ._models import OperationResult + from ._models import PartitionSchemeDescription + from ._models import ProxyResource + from ._models import Resource + from ._models import ServerCertificateCommonName + from ._models import ServerCertificateCommonNames + from ._models import ServiceCorrelationDescription + from ._models import ServiceLoadMetricDescription + from ._models import ServicePlacementPolicyDescription + from ._models import ServiceResource + from ._models import ServiceResourceList + from ._models import ServiceResourceProperties + from ._models import ServiceResourcePropertiesBase + from ._models import ServiceResourceUpdate + from ._models import ServiceResourceUpdateProperties + from ._models import ServiceTypeDeltaHealthPolicy + from ._models import ServiceTypeHealthPolicy + from ._models import SettingsParameterDescription + from ._models import SettingsSectionDescription + from ._models import SingletonPartitionSchemeDescription + from ._models import StatefulServiceProperties + from ._models import StatefulServiceUpdateProperties + from ._models import StatelessServiceProperties + from ._models import StatelessServiceUpdateProperties + from ._models import UniformInt64RangePartitionSchemeDescription +from ._paged_models import OperationResultPaged +from ._service_fabric_management_client_enums import ( ProvisioningState, ArmUpgradeFailureAction, ServiceCorrelationScheme, @@ -143,59 +143,59 @@ ) __all__ = [ - 'ServiceTypeDeltaHealthPolicy', 'ApplicationDeltaHealthPolicy', - 'ServiceTypeHealthPolicy', 'ApplicationHealthPolicy', + 'ApplicationMetricDescription', + 'ApplicationResource', + 'ApplicationResourceList', + 'ApplicationResourceUpdate', + 'ApplicationTypeResource', + 'ApplicationTypeResourceList', + 'ApplicationTypeVersionResource', + 'ApplicationTypeVersionResourceList', + 'ApplicationUpgradePolicy', + 'ArmApplicationHealthPolicy', + 'ArmRollingUpgradeMonitoringPolicy', + 'ArmServiceTypeHealthPolicy', 'AvailableOperationDisplay', 'AzureActiveDirectory', 'CertificateDescription', 'ClientCertificateCommonName', 'ClientCertificateThumbprint', - 'ClusterVersionDetails', - 'ServerCertificateCommonName', - 'ServerCertificateCommonNames', - 'DiagnosticsStorageAccountConfig', - 'SettingsParameterDescription', - 'SettingsSectionDescription', - 'EndpointRangeDescription', - 'NodeTypeDescription', - 'ClusterHealthPolicy', - 'ClusterUpgradeDeltaHealthPolicy', - 'ClusterUpgradePolicy', 'Cluster', - 'ClusterCodeVersionsResult', 'ClusterCodeVersionsListResult', + 'ClusterCodeVersionsResult', + 'ClusterHealthPolicy', 'ClusterListResult', 'ClusterUpdateParameters', - 'OperationResult', - 'Resource', - 'ErrorModelError', + 'ClusterUpgradeDeltaHealthPolicy', + 'ClusterUpgradePolicy', + 'ClusterVersionDetails', + 'DiagnosticsStorageAccountConfig', + 'EndpointRangeDescription', 'ErrorModel', 'ErrorModelException', - 'ApplicationMetricDescription', - 'ApplicationResource', - 'ApplicationResourceList', - 'ArmRollingUpgradeMonitoringPolicy', - 'ArmServiceTypeHealthPolicy', - 'ArmApplicationHealthPolicy', - 'ApplicationUpgradePolicy', - 'ApplicationResourceUpdate', - 'ApplicationTypeResource', - 'ApplicationTypeResourceList', - 'ApplicationTypeVersionResource', - 'ApplicationTypeVersionResourceList', - 'ServiceCorrelationDescription', + 'ErrorModelError', 'NamedPartitionSchemeDescription', + 'NodeTypeDescription', + 'OperationResult', 'PartitionSchemeDescription', 'ProxyResource', + 'Resource', + 'ServerCertificateCommonName', + 'ServerCertificateCommonNames', + 'ServiceCorrelationDescription', 'ServiceLoadMetricDescription', 'ServicePlacementPolicyDescription', - 'ServiceResourceProperties', 'ServiceResource', 'ServiceResourceList', + 'ServiceResourceProperties', 'ServiceResourcePropertiesBase', - 'ServiceResourceUpdateProperties', 'ServiceResourceUpdate', + 'ServiceResourceUpdateProperties', + 'ServiceTypeDeltaHealthPolicy', + 'ServiceTypeHealthPolicy', + 'SettingsParameterDescription', + 'SettingsSectionDescription', 'SingletonPartitionSchemeDescription', 'StatefulServiceProperties', 'StatefulServiceUpdateProperties', diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models.py new file mode 100644 index 000000000000..227321db7212 --- /dev/null +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models.py @@ -0,0 +1,2887 @@ +# 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 +from msrest.exceptions import HttpOperationError + + +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) + + +class ApplicationHealthPolicy(Model): + """Defines a health policy used to evaluate the health of an application or + one of its children entities. + . + + :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_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 = { + '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.default_service_type_health_policy = kwargs.get('default_service_type_health_policy', None) + self.service_type_health_policies = kwargs.get('service_type_health_policies', None) + + +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, **kwargs): + super(ApplicationMetricDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.maximum_capacity = kwargs.get('maximum_capacity', None) + self.reservation_capacity = kwargs.get('reservation_capacity', None) + self.total_application_capacity = kwargs.get('total_application_capacity', None) + + +class ProxyResource(Model): + """The resource model definition for proxy-only resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProxyResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.etag = None + + +class ApplicationResource(ProxyResource): + """The application resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param type_version: The version of the application type as defined in the + application manifest. + :type type_version: str + :param parameters: List of application parameters with overridden values + from their default values specified in the application manifest. + :type parameters: dict[str, str] + :param upgrade_policy: Describes the policy for a monitored application + upgrade. + :type upgrade_policy: + ~azure.mgmt.servicefabric.models.ApplicationUpgradePolicy + :param minimum_nodes: The minimum number of nodes where Service Fabric + will reserve capacity for this application. Note that this does not mean + that the services of this application will be placed on all of those + nodes. If this property is set to zero, no capacity will be reserved. The + value of this property cannot be more than the value of the MaximumNodes + property. + :type minimum_nodes: long + :param maximum_nodes: The maximum number of nodes where Service Fabric + will reserve capacity for this application. Note that this does not mean + that the services of this application will be placed on all of those + nodes. By default, the value of this property is zero and it means that + the services can be placed on any node. Default value: 0 . + :type maximum_nodes: long + :param remove_application_capacity: Remove the current application + capacity settings. + :type remove_application_capacity: bool + :param metrics: List of application capacity metric description. + :type metrics: + list[~azure.mgmt.servicefabric.models.ApplicationMetricDescription] + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param type_name: The application type name as defined in the application + manifest. + :type type_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'minimum_nodes': {'minimum': 0}, + 'maximum_nodes': {'minimum': 0}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type_version': {'key': 'properties.typeVersion', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '{str}'}, + 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'ApplicationUpgradePolicy'}, + 'minimum_nodes': {'key': 'properties.minimumNodes', 'type': 'long'}, + 'maximum_nodes': {'key': 'properties.maximumNodes', 'type': 'long'}, + 'remove_application_capacity': {'key': 'properties.removeApplicationCapacity', 'type': 'bool'}, + 'metrics': {'key': 'properties.metrics', 'type': '[ApplicationMetricDescription]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'type_name': {'key': 'properties.typeName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationResource, self).__init__(**kwargs) + self.type_version = kwargs.get('type_version', None) + self.parameters = kwargs.get('parameters', None) + self.upgrade_policy = kwargs.get('upgrade_policy', None) + self.minimum_nodes = kwargs.get('minimum_nodes', None) + self.maximum_nodes = kwargs.get('maximum_nodes', 0) + self.remove_application_capacity = kwargs.get('remove_application_capacity', None) + self.metrics = kwargs.get('metrics', None) + self.provisioning_state = None + self.type_name = kwargs.get('type_name', None) + + +class ApplicationResourceList(Model): + """The list of application resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: + :type value: list[~azure.mgmt.servicefabric.models.ApplicationResource] + :ivar next_link: URL to get the next set of application list results if + there are any. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationResourceList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None + + +class ApplicationResourceUpdate(ProxyResource): + """The application resource for patch operations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param type_version: The version of the application type as defined in the + application manifest. + :type type_version: str + :param parameters: List of application parameters with overridden values + from their default values specified in the application manifest. + :type parameters: dict[str, str] + :param upgrade_policy: Describes the policy for a monitored application + upgrade. + :type upgrade_policy: + ~azure.mgmt.servicefabric.models.ApplicationUpgradePolicy + :param minimum_nodes: The minimum number of nodes where Service Fabric + will reserve capacity for this application. Note that this does not mean + that the services of this application will be placed on all of those + nodes. If this property is set to zero, no capacity will be reserved. The + value of this property cannot be more than the value of the MaximumNodes + property. + :type minimum_nodes: long + :param maximum_nodes: The maximum number of nodes where Service Fabric + will reserve capacity for this application. Note that this does not mean + that the services of this application will be placed on all of those + nodes. By default, the value of this property is zero and it means that + the services can be placed on any node. Default value: 0 . + :type maximum_nodes: long + :param remove_application_capacity: Remove the current application + capacity settings. + :type remove_application_capacity: bool + :param metrics: List of application capacity metric description. + :type metrics: + list[~azure.mgmt.servicefabric.models.ApplicationMetricDescription] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'minimum_nodes': {'minimum': 0}, + 'maximum_nodes': {'minimum': 0}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type_version': {'key': 'properties.typeVersion', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '{str}'}, + 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'ApplicationUpgradePolicy'}, + 'minimum_nodes': {'key': 'properties.minimumNodes', 'type': 'long'}, + 'maximum_nodes': {'key': 'properties.maximumNodes', 'type': 'long'}, + 'remove_application_capacity': {'key': 'properties.removeApplicationCapacity', 'type': 'bool'}, + 'metrics': {'key': 'properties.metrics', 'type': '[ApplicationMetricDescription]'}, + } + + def __init__(self, **kwargs): + super(ApplicationResourceUpdate, self).__init__(**kwargs) + self.type_version = kwargs.get('type_version', None) + self.parameters = kwargs.get('parameters', None) + self.upgrade_policy = kwargs.get('upgrade_policy', None) + self.minimum_nodes = kwargs.get('minimum_nodes', None) + self.maximum_nodes = kwargs.get('maximum_nodes', 0) + self.remove_application_capacity = kwargs.get('remove_application_capacity', None) + self.metrics = kwargs.get('metrics', None) + + +class ApplicationTypeResource(ProxyResource): + """The application type name resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response. + :vartype provisioning_state: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationTypeResource, self).__init__(**kwargs) + self.provisioning_state = None + + +class ApplicationTypeResourceList(Model): + """The list of application type names. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: + :type value: + list[~azure.mgmt.servicefabric.models.ApplicationTypeResource] + :ivar next_link: URL to get the next set of application type list results + if there are any. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationTypeResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationTypeResourceList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None + + +class ApplicationTypeVersionResource(ProxyResource): + """An application type version resource for the specified application type + name resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param app_package_url: Required. The URL to the application package + :type app_package_url: str + :ivar default_parameter_list: List of application type parameters that can + be overridden when creating or updating the application. + :vartype default_parameter_list: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'app_package_url': {'required': True}, + 'default_parameter_list': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'app_package_url': {'key': 'properties.appPackageUrl', 'type': 'str'}, + 'default_parameter_list': {'key': 'properties.defaultParameterList', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ApplicationTypeVersionResource, self).__init__(**kwargs) + self.provisioning_state = None + self.app_package_url = kwargs.get('app_package_url', None) + self.default_parameter_list = None + + +class ApplicationTypeVersionResourceList(Model): + """The list of application type version resources for the specified + application type name resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: + :type value: + list[~azure.mgmt.servicefabric.models.ApplicationTypeVersionResource] + :ivar next_link: URL to get the next set of application type version list + results if there are any. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationTypeVersionResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationTypeVersionResourceList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None + + +class ApplicationUpgradePolicy(Model): + """Describes the policy for a monitored application upgrade. + + :param upgrade_replica_set_check_timeout: The maximum amount of time to + block processing of an upgrade domain and prevent loss of availability + when there are unexpected issues. When this timeout expires, processing of + the upgrade domain will proceed regardless of availability loss issues. + The timeout is reset at the start of each upgrade domain. Valid values are + between 0 and 42949672925 inclusive. (unsigned 32-bit integer). + :type upgrade_replica_set_check_timeout: str + :param force_restart: If true, then processes are forcefully restarted + during upgrade even when the code version has not changed (the upgrade + only changes configuration or data). + :type force_restart: bool + :param rolling_upgrade_monitoring_policy: The policy used for monitoring + the application upgrade + :type rolling_upgrade_monitoring_policy: + ~azure.mgmt.servicefabric.models.ArmRollingUpgradeMonitoringPolicy + :param application_health_policy: Defines a health policy used to evaluate + the health of an application or one of its children entities. + :type application_health_policy: + ~azure.mgmt.servicefabric.models.ArmApplicationHealthPolicy + """ + + _attribute_map = { + 'upgrade_replica_set_check_timeout': {'key': 'upgradeReplicaSetCheckTimeout', 'type': 'str'}, + 'force_restart': {'key': 'forceRestart', 'type': 'bool'}, + 'rolling_upgrade_monitoring_policy': {'key': 'rollingUpgradeMonitoringPolicy', 'type': 'ArmRollingUpgradeMonitoringPolicy'}, + 'application_health_policy': {'key': 'applicationHealthPolicy', 'type': 'ArmApplicationHealthPolicy'}, + } + + def __init__(self, **kwargs): + super(ApplicationUpgradePolicy, self).__init__(**kwargs) + self.upgrade_replica_set_check_timeout = kwargs.get('upgrade_replica_set_check_timeout', None) + self.force_restart = kwargs.get('force_restart', None) + self.rolling_upgrade_monitoring_policy = kwargs.get('rolling_upgrade_monitoring_policy', None) + self.application_health_policy = kwargs.get('application_health_policy', None) + + +class ArmApplicationHealthPolicy(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: The health policy used by + default to evaluate the health of a service type. + :type default_service_type_health_policy: + ~azure.mgmt.servicefabric.models.ArmServiceTypeHealthPolicy + :param service_type_health_policy_map: The map with service type health + policy per service type name. The map is empty by default. + :type service_type_health_policy_map: dict[str, + ~azure.mgmt.servicefabric.models.ArmServiceTypeHealthPolicy] + """ + + _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': 'ArmServiceTypeHealthPolicy'}, + 'service_type_health_policy_map': {'key': 'serviceTypeHealthPolicyMap', 'type': '{ArmServiceTypeHealthPolicy}'}, + } + + def __init__(self, **kwargs): + super(ArmApplicationHealthPolicy, 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) + + +class ArmRollingUpgradeMonitoringPolicy(Model): + """The policy used for monitoring the application upgrade. + + :param failure_action: The activation Mode of the service package. + Possible values include: 'Rollback', 'Manual' + :type failure_action: str or + ~azure.mgmt.servicefabric.models.ArmUpgradeFailureAction + :param health_check_wait_duration: The amount of time to wait after + completing an upgrade domain before applying health policies. It is first + interpreted as a string representing an ISO 8601 duration. If that fails, + then it is interpreted as a number representing the total number of + milliseconds. + :type health_check_wait_duration: str + :param health_check_stable_duration: The amount of time that the + application or cluster must remain healthy before the upgrade proceeds to + the next upgrade domain. It is first interpreted as a string representing + an ISO 8601 duration. If that fails, then it is interpreted as a number + representing the total number of milliseconds. + :type health_check_stable_duration: str + :param health_check_retry_timeout: The amount of time to retry health + evaluation when the application or cluster is unhealthy before + FailureAction is executed. It is first interpreted as a string + representing an ISO 8601 duration. If that fails, then it is interpreted + as a number representing the total number of milliseconds. + :type health_check_retry_timeout: str + :param upgrade_timeout: The amount of time the overall upgrade has to + complete before FailureAction is executed. It is first interpreted as a + string representing an ISO 8601 duration. If that fails, then it is + interpreted as a number representing the total number of milliseconds. + :type upgrade_timeout: str + :param upgrade_domain_timeout: The amount of time each upgrade domain has + to complete before FailureAction is executed. It is first interpreted as a + string representing an ISO 8601 duration. If that fails, then it is + interpreted as a number representing the total number of milliseconds. + :type upgrade_domain_timeout: str + """ + + _attribute_map = { + 'failure_action': {'key': 'failureAction', 'type': 'str'}, + 'health_check_wait_duration': {'key': 'healthCheckWaitDuration', 'type': 'str'}, + 'health_check_stable_duration': {'key': 'healthCheckStableDuration', 'type': 'str'}, + 'health_check_retry_timeout': {'key': 'healthCheckRetryTimeout', 'type': 'str'}, + 'upgrade_timeout': {'key': 'upgradeTimeout', 'type': 'str'}, + 'upgrade_domain_timeout': {'key': 'upgradeDomainTimeout', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ArmRollingUpgradeMonitoringPolicy, self).__init__(**kwargs) + self.failure_action = kwargs.get('failure_action', None) + self.health_check_wait_duration = kwargs.get('health_check_wait_duration', None) + self.health_check_stable_duration = kwargs.get('health_check_stable_duration', None) + self.health_check_retry_timeout = kwargs.get('health_check_retry_timeout', None) + self.upgrade_timeout = kwargs.get('upgrade_timeout', None) + self.upgrade_domain_timeout = kwargs.get('upgrade_domain_timeout', None) + + +class ArmServiceTypeHealthPolicy(Model): + """Represents the health policy used to evaluate the health of services + belonging to a service type. + . + + :param max_percent_unhealthy_services: The maximum percentage of services + allowed to be unhealthy before your application is considered in error. + . Default value: 0 . + :type max_percent_unhealthy_services: int + :param max_percent_unhealthy_partitions_per_service: The maximum + percentage of partitions per service allowed to be unhealthy before your + application is considered in error. + . Default value: 0 . + :type max_percent_unhealthy_partitions_per_service: int + :param max_percent_unhealthy_replicas_per_partition: The maximum + percentage of replicas per partition allowed to be unhealthy before your + application is considered in error. + . Default value: 0 . + :type max_percent_unhealthy_replicas_per_partition: int + """ + + _validation = { + 'max_percent_unhealthy_services': {'maximum': 100, 'minimum': 0}, + 'max_percent_unhealthy_partitions_per_service': {'maximum': 100, 'minimum': 0}, + 'max_percent_unhealthy_replicas_per_partition': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_unhealthy_services': {'key': 'maxPercentUnhealthyServices', 'type': 'int'}, + 'max_percent_unhealthy_partitions_per_service': {'key': 'maxPercentUnhealthyPartitionsPerService', 'type': 'int'}, + 'max_percent_unhealthy_replicas_per_partition': {'key': 'maxPercentUnhealthyReplicasPerPartition', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ArmServiceTypeHealthPolicy, self).__init__(**kwargs) + self.max_percent_unhealthy_services = kwargs.get('max_percent_unhealthy_services', 0) + self.max_percent_unhealthy_partitions_per_service = kwargs.get('max_percent_unhealthy_partitions_per_service', 0) + self.max_percent_unhealthy_replicas_per_partition = kwargs.get('max_percent_unhealthy_replicas_per_partition', 0) + + +class AvailableOperationDisplay(Model): + """Operation supported by the Service Fabric resource provider. + + :param provider: The name of the provider. + :type provider: str + :param resource: The resource on which the operation is performed + :type resource: str + :param operation: The operation that can be performed. + :type operation: str + :param description: Operation description + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AvailableOperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class AzureActiveDirectory(Model): + """The settings to enable AAD authentication on the cluster. + + :param tenant_id: Azure active directory tenant id. + :type tenant_id: str + :param cluster_application: Azure active directory cluster application id. + :type cluster_application: str + :param client_application: Azure active directory client application id. + :type client_application: str + """ + + _attribute_map = { + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'cluster_application': {'key': 'clusterApplication', 'type': 'str'}, + 'client_application': {'key': 'clientApplication', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureActiveDirectory, self).__init__(**kwargs) + self.tenant_id = kwargs.get('tenant_id', None) + self.cluster_application = kwargs.get('cluster_application', None) + self.client_application = kwargs.get('client_application', None) + + +class CertificateDescription(Model): + """Describes the certificate details. + + All required parameters must be populated in order to send to Azure. + + :param thumbprint: Required. Thumbprint of the primary certificate. + :type thumbprint: str + :param thumbprint_secondary: Thumbprint of the secondary certificate. + :type thumbprint_secondary: str + :param x509_store_name: The local certificate store location. Possible + values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', + 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' + :type x509_store_name: str or ~azure.mgmt.servicefabric.models.enum + """ + + _validation = { + 'thumbprint': {'required': True}, + } + + _attribute_map = { + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'thumbprint_secondary': {'key': 'thumbprintSecondary', 'type': 'str'}, + 'x509_store_name': {'key': 'x509StoreName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CertificateDescription, self).__init__(**kwargs) + self.thumbprint = kwargs.get('thumbprint', None) + self.thumbprint_secondary = kwargs.get('thumbprint_secondary', None) + self.x509_store_name = kwargs.get('x509_store_name', None) + + +class ClientCertificateCommonName(Model): + """Describes the client certificate details using common name. + + All required parameters must be populated in order to send to Azure. + + :param is_admin: Required. Indicates if the client certificate has admin + access to the cluster. Non admin clients can perform only read only + operations on the cluster. + :type is_admin: bool + :param certificate_common_name: Required. The common name of the client + certificate. + :type certificate_common_name: str + :param certificate_issuer_thumbprint: Required. The issuer thumbprint of + the client certificate. + :type certificate_issuer_thumbprint: str + """ + + _validation = { + 'is_admin': {'required': True}, + 'certificate_common_name': {'required': True}, + 'certificate_issuer_thumbprint': {'required': True}, + } + + _attribute_map = { + 'is_admin': {'key': 'isAdmin', 'type': 'bool'}, + 'certificate_common_name': {'key': 'certificateCommonName', 'type': 'str'}, + 'certificate_issuer_thumbprint': {'key': 'certificateIssuerThumbprint', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClientCertificateCommonName, self).__init__(**kwargs) + self.is_admin = kwargs.get('is_admin', None) + self.certificate_common_name = kwargs.get('certificate_common_name', None) + self.certificate_issuer_thumbprint = kwargs.get('certificate_issuer_thumbprint', None) + + +class ClientCertificateThumbprint(Model): + """Describes the client certificate details using thumbprint. + + All required parameters must be populated in order to send to Azure. + + :param is_admin: Required. Indicates if the client certificate has admin + access to the cluster. Non admin clients can perform only read only + operations on the cluster. + :type is_admin: bool + :param certificate_thumbprint: Required. The thumbprint of the client + certificate. + :type certificate_thumbprint: str + """ + + _validation = { + 'is_admin': {'required': True}, + 'certificate_thumbprint': {'required': True}, + } + + _attribute_map = { + 'is_admin': {'key': 'isAdmin', 'type': 'bool'}, + 'certificate_thumbprint': {'key': 'certificateThumbprint', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClientCertificateThumbprint, self).__init__(**kwargs) + self.is_admin = kwargs.get('is_admin', None) + self.certificate_thumbprint = kwargs.get('certificate_thumbprint', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Resource(Model): + """The resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: Required. Azure resource location. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.etag = None + + +class Cluster(Resource): + """The cluster resource + . + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: Required. Azure resource location. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param add_on_features: The list of add-on features to enable in the + cluster. + :type add_on_features: list[str] + :ivar available_cluster_versions: The Service Fabric runtime versions + available for this cluster. + :vartype available_cluster_versions: + list[~azure.mgmt.servicefabric.models.ClusterVersionDetails] + :param azure_active_directory: The AAD authentication settings of the + cluster. + :type azure_active_directory: + ~azure.mgmt.servicefabric.models.AzureActiveDirectory + :param certificate: The certificate to use for securing the cluster. The + certificate provided will be used for node to node security within the + cluster, SSL certificate for cluster management endpoint and default admin + client. + :type certificate: ~azure.mgmt.servicefabric.models.CertificateDescription + :param certificate_common_names: Describes a list of server certificates + referenced by common name that are used to secure the cluster. + :type certificate_common_names: + ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames + :param client_certificate_common_names: The list of client certificates + referenced by common name that are allowed to manage the cluster. + :type client_certificate_common_names: + list[~azure.mgmt.servicefabric.models.ClientCertificateCommonName] + :param client_certificate_thumbprints: The list of client certificates + referenced by thumbprint that are allowed to manage the cluster. + :type client_certificate_thumbprints: + list[~azure.mgmt.servicefabric.models.ClientCertificateThumbprint] + :param cluster_code_version: The Service Fabric runtime version of the + cluster. This property can only by set the user when **upgradeMode** is + set to 'Manual'. To get list of available Service Fabric versions for new + clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of + available version for existing clusters use **availableClusterVersions**. + :type cluster_code_version: str + :ivar cluster_endpoint: The Azure Resource Provider endpoint. A system + service in the cluster connects to this endpoint. + :vartype cluster_endpoint: str + :ivar cluster_id: A service generated unique identifier for the cluster + resource. + :vartype cluster_id: str + :ivar cluster_state: The current state of the cluster. + - WaitingForNodes - Indicates that the cluster resource is created and the + resource provider is waiting for Service Fabric VM extension to boot up + and report to it. + - Deploying - Indicates that the Service Fabric runtime is being installed + on the VMs. Cluster resource will be in this state until the cluster boots + up and system services are up. + - BaselineUpgrade - Indicates that the cluster is upgrading to establishes + the cluster version. This upgrade is automatically initiated when the + cluster boots up for the first time. + - UpdatingUserConfiguration - Indicates that the cluster is being upgraded + with the user provided configuration. + - UpdatingUserCertificate - Indicates that the cluster is being upgraded + with the user provided certificate. + - UpdatingInfrastructure - Indicates that the cluster is being upgraded + with the latest Service Fabric runtime version. This happens only when the + **upgradeMode** is set to 'Automatic'. + - EnforcingClusterVersion - Indicates that cluster is on a different + version than expected and the cluster is being upgraded to the expected + version. + - UpgradeServiceUnreachable - Indicates that the system service in the + cluster is no longer polling the Resource Provider. Clusters in this state + cannot be managed by the Resource Provider. + - AutoScale - Indicates that the ReliabilityLevel of the cluster is being + adjusted. + - Ready - Indicates that the cluster is in a stable state. + . Possible values include: 'WaitingForNodes', 'Deploying', + 'BaselineUpgrade', 'UpdatingUserConfiguration', 'UpdatingUserCertificate', + 'UpdatingInfrastructure', 'EnforcingClusterVersion', + 'UpgradeServiceUnreachable', 'AutoScale', 'Ready' + :vartype cluster_state: str or ~azure.mgmt.servicefabric.models.enum + :param diagnostics_storage_account_config: The storage account information + for storing Service Fabric diagnostic logs. + :type diagnostics_storage_account_config: + ~azure.mgmt.servicefabric.models.DiagnosticsStorageAccountConfig + :param event_store_service_enabled: Indicates if the event store service + is enabled. + :type event_store_service_enabled: bool + :param fabric_settings: The list of custom fabric settings to configure + the cluster. + :type fabric_settings: + list[~azure.mgmt.servicefabric.models.SettingsSectionDescription] + :param management_endpoint: Required. The http management endpoint of the + cluster. + :type management_endpoint: str + :param node_types: Required. The list of node types in the cluster. + :type node_types: + list[~azure.mgmt.servicefabric.models.NodeTypeDescription] + :ivar provisioning_state: The provisioning state of the cluster resource. + Possible values include: 'Updating', 'Succeeded', 'Failed', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.servicefabric.models.ProvisioningState + :param reliability_level: The reliability level sets the replica set size + of system services. Learn about + [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). + - None - Run the System services with a target replica set count of 1. + This should only be used for test clusters. + - Bronze - Run the System services with a target replica set count of 3. + This should only be used for test clusters. + - Silver - Run the System services with a target replica set count of 5. + - Gold - Run the System services with a target replica set count of 7. + - Platinum - Run the System services with a target replica set count of 9. + . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', 'Platinum' + :type reliability_level: str or ~azure.mgmt.servicefabric.models.enum + :param reverse_proxy_certificate: The server certificate used by reverse + proxy. + :type reverse_proxy_certificate: + ~azure.mgmt.servicefabric.models.CertificateDescription + :param reverse_proxy_certificate_common_names: Describes a list of server + certificates referenced by common name that are used to secure the + cluster. + :type reverse_proxy_certificate_common_names: + ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames + :param upgrade_description: The policy to use when upgrading the cluster. + :type upgrade_description: + ~azure.mgmt.servicefabric.models.ClusterUpgradePolicy + :param upgrade_mode: The upgrade mode of the cluster when new Service + Fabric runtime version is available. + - Automatic - The cluster will be automatically upgraded to the latest + Service Fabric runtime version as soon as it is available. + - Manual - The cluster will not be automatically upgraded to the latest + Service Fabric runtime version. The cluster is upgraded by setting the + **clusterCodeVersion** property in the cluster resource. + . Possible values include: 'Automatic', 'Manual' + :type upgrade_mode: str or ~azure.mgmt.servicefabric.models.enum + :param vm_image: The VM image VMSS has been configured with. Generic names + such as Windows or Linux can be used. + :type vm_image: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'etag': {'readonly': True}, + 'available_cluster_versions': {'readonly': True}, + 'cluster_endpoint': {'readonly': True}, + 'cluster_id': {'readonly': True}, + 'cluster_state': {'readonly': True}, + 'management_endpoint': {'required': True}, + 'node_types': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'add_on_features': {'key': 'properties.addOnFeatures', 'type': '[str]'}, + 'available_cluster_versions': {'key': 'properties.availableClusterVersions', 'type': '[ClusterVersionDetails]'}, + 'azure_active_directory': {'key': 'properties.azureActiveDirectory', 'type': 'AzureActiveDirectory'}, + 'certificate': {'key': 'properties.certificate', 'type': 'CertificateDescription'}, + 'certificate_common_names': {'key': 'properties.certificateCommonNames', 'type': 'ServerCertificateCommonNames'}, + 'client_certificate_common_names': {'key': 'properties.clientCertificateCommonNames', 'type': '[ClientCertificateCommonName]'}, + 'client_certificate_thumbprints': {'key': 'properties.clientCertificateThumbprints', 'type': '[ClientCertificateThumbprint]'}, + 'cluster_code_version': {'key': 'properties.clusterCodeVersion', 'type': 'str'}, + 'cluster_endpoint': {'key': 'properties.clusterEndpoint', 'type': 'str'}, + 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, + 'cluster_state': {'key': 'properties.clusterState', 'type': 'str'}, + 'diagnostics_storage_account_config': {'key': 'properties.diagnosticsStorageAccountConfig', 'type': 'DiagnosticsStorageAccountConfig'}, + 'event_store_service_enabled': {'key': 'properties.eventStoreServiceEnabled', 'type': 'bool'}, + 'fabric_settings': {'key': 'properties.fabricSettings', 'type': '[SettingsSectionDescription]'}, + 'management_endpoint': {'key': 'properties.managementEndpoint', 'type': 'str'}, + 'node_types': {'key': 'properties.nodeTypes', 'type': '[NodeTypeDescription]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'reliability_level': {'key': 'properties.reliabilityLevel', 'type': 'str'}, + 'reverse_proxy_certificate': {'key': 'properties.reverseProxyCertificate', 'type': 'CertificateDescription'}, + 'reverse_proxy_certificate_common_names': {'key': 'properties.reverseProxyCertificateCommonNames', 'type': 'ServerCertificateCommonNames'}, + 'upgrade_description': {'key': 'properties.upgradeDescription', 'type': 'ClusterUpgradePolicy'}, + 'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'str'}, + 'vm_image': {'key': 'properties.vmImage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Cluster, self).__init__(**kwargs) + self.add_on_features = kwargs.get('add_on_features', None) + self.available_cluster_versions = None + self.azure_active_directory = kwargs.get('azure_active_directory', None) + self.certificate = kwargs.get('certificate', None) + self.certificate_common_names = kwargs.get('certificate_common_names', None) + self.client_certificate_common_names = kwargs.get('client_certificate_common_names', None) + self.client_certificate_thumbprints = kwargs.get('client_certificate_thumbprints', None) + self.cluster_code_version = kwargs.get('cluster_code_version', None) + self.cluster_endpoint = None + self.cluster_id = None + self.cluster_state = None + self.diagnostics_storage_account_config = kwargs.get('diagnostics_storage_account_config', None) + self.event_store_service_enabled = kwargs.get('event_store_service_enabled', None) + self.fabric_settings = kwargs.get('fabric_settings', None) + self.management_endpoint = kwargs.get('management_endpoint', None) + self.node_types = kwargs.get('node_types', None) + self.provisioning_state = None + self.reliability_level = kwargs.get('reliability_level', None) + self.reverse_proxy_certificate = kwargs.get('reverse_proxy_certificate', None) + self.reverse_proxy_certificate_common_names = kwargs.get('reverse_proxy_certificate_common_names', None) + self.upgrade_description = kwargs.get('upgrade_description', None) + self.upgrade_mode = kwargs.get('upgrade_mode', None) + self.vm_image = kwargs.get('vm_image', None) + + +class ClusterCodeVersionsListResult(Model): + """The list results of the Service Fabric runtime versions. + + :param value: + :type value: + list[~azure.mgmt.servicefabric.models.ClusterCodeVersionsResult] + :param next_link: The URL to use for getting the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ClusterCodeVersionsResult]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterCodeVersionsListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class ClusterCodeVersionsResult(Model): + """The result of the Service Fabric runtime versions. + + :param id: The identification of the result + :type id: str + :param name: The name of the result + :type name: str + :param type: The result resource type + :type type: str + :param code_version: The Service Fabric runtime version of the cluster. + :type code_version: str + :param support_expiry_utc: The date of expiry of support of the version. + :type support_expiry_utc: str + :param environment: Indicates if this version is for Windows or Linux + operating system. Possible values include: 'Windows', 'Linux' + :type environment: str or ~azure.mgmt.servicefabric.models.enum + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'code_version': {'key': 'properties.codeVersion', 'type': 'str'}, + 'support_expiry_utc': {'key': 'properties.supportExpiryUtc', 'type': 'str'}, + 'environment': {'key': 'properties.environment', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterCodeVersionsResult, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + self.code_version = kwargs.get('code_version', None) + self.support_expiry_utc = kwargs.get('support_expiry_utc', None) + self.environment = kwargs.get('environment', None) + + +class ClusterHealthPolicy(Model): + """Defines a health policy used to evaluate the health of the cluster or of a + cluster node. + . + + :param max_percent_unhealthy_nodes: The maximum allowed percentage of + unhealthy nodes before reporting an error. For example, to allow 10% of + nodes to be unhealthy, this value would be 10. + The percentage represents the maximum tolerated percentage of nodes that + can be unhealthy before the cluster is considered in error. + If the percentage is respected but there is at least one unhealthy node, + the health is evaluated as Warning. + The percentage is calculated by dividing the number of unhealthy nodes + over the total number of nodes in the cluster. + The computation rounds up to tolerate one failure on small numbers of + nodes. Default percentage is zero. + In large clusters, some nodes will always be down or out for repairs, so + this percentage should be configured to tolerate that. + . Default value: 0 . + :type max_percent_unhealthy_nodes: int + :param max_percent_unhealthy_applications: The maximum allowed percentage + of unhealthy applications before reporting an error. For example, to allow + 10% of applications to be unhealthy, this value would be 10. + The percentage represents the maximum tolerated percentage of applications + that can be unhealthy before the cluster is considered in error. + If the percentage is respected but there is at least one unhealthy + application, the health is evaluated as Warning. + This is calculated by dividing the number of unhealthy applications over + the total number of application instances in the cluster, excluding + applications of application types that are included in the + ApplicationTypeHealthPolicyMap. + The computation rounds up to tolerate one failure on small numbers of + applications. Default percentage is zero. + . Default value: 0 . + :type max_percent_unhealthy_applications: int + :param application_health_policies: Defines the application health policy + map used to evaluate the health of an application or one of its children + entities. + :type application_health_policies: dict[str, + ~azure.mgmt.servicefabric.models.ApplicationHealthPolicy] + """ + + _validation = { + 'max_percent_unhealthy_nodes': {'maximum': 100, 'minimum': 0}, + 'max_percent_unhealthy_applications': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_unhealthy_nodes': {'key': 'maxPercentUnhealthyNodes', 'type': 'int'}, + 'max_percent_unhealthy_applications': {'key': 'maxPercentUnhealthyApplications', 'type': 'int'}, + 'application_health_policies': {'key': 'applicationHealthPolicies', 'type': '{ApplicationHealthPolicy}'}, + } + + def __init__(self, **kwargs): + super(ClusterHealthPolicy, self).__init__(**kwargs) + self.max_percent_unhealthy_nodes = kwargs.get('max_percent_unhealthy_nodes', 0) + self.max_percent_unhealthy_applications = kwargs.get('max_percent_unhealthy_applications', 0) + self.application_health_policies = kwargs.get('application_health_policies', None) + + +class ClusterListResult(Model): + """Cluster list results. + + :param value: + :type value: list[~azure.mgmt.servicefabric.models.Cluster] + :param next_link: The URL to use for getting the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Cluster]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class ClusterUpdateParameters(Model): + """Cluster update request. + + :param add_on_features: The list of add-on features to enable in the + cluster. + :type add_on_features: list[str] + :param certificate: The certificate to use for securing the cluster. The + certificate provided will be used for node to node security within the + cluster, SSL certificate for cluster management endpoint and default + admin client. + :type certificate: ~azure.mgmt.servicefabric.models.CertificateDescription + :param certificate_common_names: Describes a list of server certificates + referenced by common name that are used to secure the cluster. + :type certificate_common_names: + ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames + :param client_certificate_common_names: The list of client certificates + referenced by common name that are allowed to manage the cluster. This + will overwrite the existing list. + :type client_certificate_common_names: + list[~azure.mgmt.servicefabric.models.ClientCertificateCommonName] + :param client_certificate_thumbprints: The list of client certificates + referenced by thumbprint that are allowed to manage the cluster. This will + overwrite the existing list. + :type client_certificate_thumbprints: + list[~azure.mgmt.servicefabric.models.ClientCertificateThumbprint] + :param cluster_code_version: The Service Fabric runtime version of the + cluster. This property can only by set the user when **upgradeMode** is + set to 'Manual'. To get list of available Service Fabric versions for new + clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of + available version for existing clusters use **availableClusterVersions**. + :type cluster_code_version: str + :param event_store_service_enabled: Indicates if the event store service + is enabled. + :type event_store_service_enabled: bool + :param fabric_settings: The list of custom fabric settings to configure + the cluster. This will overwrite the existing list. + :type fabric_settings: + list[~azure.mgmt.servicefabric.models.SettingsSectionDescription] + :param node_types: The list of node types in the cluster. This will + overwrite the existing list. + :type node_types: + list[~azure.mgmt.servicefabric.models.NodeTypeDescription] + :param reliability_level: The reliability level sets the replica set size + of system services. Learn about + [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). + - None - Run the System services with a target replica set count of 1. + This should only be used for test clusters. + - Bronze - Run the System services with a target replica set count of 3. + This should only be used for test clusters. + - Silver - Run the System services with a target replica set count of 5. + - Gold - Run the System services with a target replica set count of 7. + - Platinum - Run the System services with a target replica set count of 9. + . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', 'Platinum' + :type reliability_level: str or ~azure.mgmt.servicefabric.models.enum + :param reverse_proxy_certificate: The server certificate used by reverse + proxy. + :type reverse_proxy_certificate: + ~azure.mgmt.servicefabric.models.CertificateDescription + :param upgrade_description: The policy to use when upgrading the cluster. + :type upgrade_description: + ~azure.mgmt.servicefabric.models.ClusterUpgradePolicy + :param upgrade_mode: The upgrade mode of the cluster when new Service + Fabric runtime version is available. + - Automatic - The cluster will be automatically upgraded to the latest + Service Fabric runtime version as soon as it is available. + - Manual - The cluster will not be automatically upgraded to the latest + Service Fabric runtime version. The cluster is upgraded by setting the + **clusterCodeVersion** property in the cluster resource. + . Possible values include: 'Automatic', 'Manual' + :type upgrade_mode: str or ~azure.mgmt.servicefabric.models.enum + :param tags: Cluster update parameters + :type tags: dict[str, str] + """ + + _attribute_map = { + 'add_on_features': {'key': 'properties.addOnFeatures', 'type': '[str]'}, + 'certificate': {'key': 'properties.certificate', 'type': 'CertificateDescription'}, + 'certificate_common_names': {'key': 'properties.certificateCommonNames', 'type': 'ServerCertificateCommonNames'}, + 'client_certificate_common_names': {'key': 'properties.clientCertificateCommonNames', 'type': '[ClientCertificateCommonName]'}, + 'client_certificate_thumbprints': {'key': 'properties.clientCertificateThumbprints', 'type': '[ClientCertificateThumbprint]'}, + 'cluster_code_version': {'key': 'properties.clusterCodeVersion', 'type': 'str'}, + 'event_store_service_enabled': {'key': 'properties.eventStoreServiceEnabled', 'type': 'bool'}, + 'fabric_settings': {'key': 'properties.fabricSettings', 'type': '[SettingsSectionDescription]'}, + 'node_types': {'key': 'properties.nodeTypes', 'type': '[NodeTypeDescription]'}, + 'reliability_level': {'key': 'properties.reliabilityLevel', 'type': 'str'}, + 'reverse_proxy_certificate': {'key': 'properties.reverseProxyCertificate', 'type': 'CertificateDescription'}, + 'upgrade_description': {'key': 'properties.upgradeDescription', 'type': 'ClusterUpgradePolicy'}, + 'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ClusterUpdateParameters, self).__init__(**kwargs) + self.add_on_features = kwargs.get('add_on_features', None) + self.certificate = kwargs.get('certificate', None) + self.certificate_common_names = kwargs.get('certificate_common_names', None) + self.client_certificate_common_names = kwargs.get('client_certificate_common_names', None) + self.client_certificate_thumbprints = kwargs.get('client_certificate_thumbprints', None) + self.cluster_code_version = kwargs.get('cluster_code_version', None) + self.event_store_service_enabled = kwargs.get('event_store_service_enabled', None) + self.fabric_settings = kwargs.get('fabric_settings', None) + self.node_types = kwargs.get('node_types', None) + self.reliability_level = kwargs.get('reliability_level', None) + self.reverse_proxy_certificate = kwargs.get('reverse_proxy_certificate', None) + self.upgrade_description = kwargs.get('upgrade_description', None) + self.upgrade_mode = kwargs.get('upgrade_mode', None) + self.tags = kwargs.get('tags', None) + + +class ClusterUpgradeDeltaHealthPolicy(Model): + """Describes the delta health policies for the cluster upgrade. + + All required parameters must be populated in order to send to Azure. + + :param max_percent_delta_unhealthy_nodes: Required. The maximum allowed + percentage of nodes health degradation allowed during cluster upgrades. + The delta is measured between the state of the nodes at the beginning of + upgrade and the state of the nodes at the time of the health evaluation. + The check is performed after every upgrade domain upgrade completion to + make sure the global state of the cluster is within tolerated limits. + :type max_percent_delta_unhealthy_nodes: int + :param max_percent_upgrade_domain_delta_unhealthy_nodes: Required. The + maximum allowed percentage of upgrade domain nodes health degradation + allowed during cluster upgrades. + The delta is measured between the state of the upgrade domain nodes at the + beginning of upgrade and the state of the upgrade domain nodes at the time + of the health evaluation. + The check is performed after every upgrade domain upgrade completion for + all completed upgrade domains to make sure the state of the upgrade + domains is within tolerated limits. + :type max_percent_upgrade_domain_delta_unhealthy_nodes: int + :param max_percent_delta_unhealthy_applications: Required. The maximum + allowed percentage of applications health degradation allowed during + cluster upgrades. + The delta is measured between the state of the applications at the + beginning of upgrade and the state of the applications at the time of the + health evaluation. + The check is performed after every upgrade domain upgrade completion to + make sure the global state of the cluster is within tolerated limits. + System services are not included in this. + :type max_percent_delta_unhealthy_applications: int + :param application_delta_health_policies: Defines the application delta + health policy map used to evaluate the health of an application or one of + its child entities when upgrading the cluster. + :type application_delta_health_policies: dict[str, + ~azure.mgmt.servicefabric.models.ApplicationDeltaHealthPolicy] + """ + + _validation = { + 'max_percent_delta_unhealthy_nodes': {'required': True, 'maximum': 100, 'minimum': 0}, + 'max_percent_upgrade_domain_delta_unhealthy_nodes': {'required': True, 'maximum': 100, 'minimum': 0}, + 'max_percent_delta_unhealthy_applications': {'required': True, 'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_delta_unhealthy_nodes': {'key': 'maxPercentDeltaUnhealthyNodes', 'type': 'int'}, + 'max_percent_upgrade_domain_delta_unhealthy_nodes': {'key': 'maxPercentUpgradeDomainDeltaUnhealthyNodes', 'type': 'int'}, + 'max_percent_delta_unhealthy_applications': {'key': 'maxPercentDeltaUnhealthyApplications', 'type': 'int'}, + 'application_delta_health_policies': {'key': 'applicationDeltaHealthPolicies', 'type': '{ApplicationDeltaHealthPolicy}'}, + } + + def __init__(self, **kwargs): + super(ClusterUpgradeDeltaHealthPolicy, self).__init__(**kwargs) + self.max_percent_delta_unhealthy_nodes = kwargs.get('max_percent_delta_unhealthy_nodes', None) + self.max_percent_upgrade_domain_delta_unhealthy_nodes = kwargs.get('max_percent_upgrade_domain_delta_unhealthy_nodes', None) + self.max_percent_delta_unhealthy_applications = kwargs.get('max_percent_delta_unhealthy_applications', None) + self.application_delta_health_policies = kwargs.get('application_delta_health_policies', None) + + +class ClusterUpgradePolicy(Model): + """Describes the policy used when upgrading the cluster. + + All required parameters must be populated in order to send to Azure. + + :param force_restart: If true, then processes are forcefully restarted + during upgrade even when the code version has not changed (the upgrade + only changes configuration or data). + :type force_restart: bool + :param upgrade_replica_set_check_timeout: Required. The maximum amount of + time to block processing of an upgrade domain and prevent loss of + availability when there are unexpected issues. When this timeout expires, + processing of the upgrade domain will proceed regardless of availability + loss issues. The timeout is reset at the start of each upgrade domain. The + timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. + :type upgrade_replica_set_check_timeout: str + :param health_check_wait_duration: Required. The length of time to wait + after completing an upgrade domain before performing health checks. The + duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. + :type health_check_wait_duration: str + :param health_check_stable_duration: Required. The amount of time that the + application or cluster must remain healthy before the upgrade proceeds to + the next upgrade domain. The duration can be in either hh:mm:ss or in + d.hh:mm:ss.ms format. + :type health_check_stable_duration: str + :param health_check_retry_timeout: Required. The amount of time to retry + health evaluation when the application or cluster is unhealthy before the + upgrade rolls back. The timeout can be in either hh:mm:ss or in + d.hh:mm:ss.ms format. + :type health_check_retry_timeout: str + :param upgrade_timeout: Required. The amount of time the overall upgrade + has to complete before the upgrade rolls back. The timeout can be in + either hh:mm:ss or in d.hh:mm:ss.ms format. + :type upgrade_timeout: str + :param upgrade_domain_timeout: Required. The amount of time each upgrade + domain has to complete before the upgrade rolls back. The timeout can be + in either hh:mm:ss or in d.hh:mm:ss.ms format. + :type upgrade_domain_timeout: str + :param health_policy: Required. The cluster health policy used when + upgrading the cluster. + :type health_policy: ~azure.mgmt.servicefabric.models.ClusterHealthPolicy + :param delta_health_policy: The cluster delta health policy used when + upgrading the cluster. + :type delta_health_policy: + ~azure.mgmt.servicefabric.models.ClusterUpgradeDeltaHealthPolicy + """ + + _validation = { + 'upgrade_replica_set_check_timeout': {'required': True}, + 'health_check_wait_duration': {'required': True}, + 'health_check_stable_duration': {'required': True}, + 'health_check_retry_timeout': {'required': True}, + 'upgrade_timeout': {'required': True}, + 'upgrade_domain_timeout': {'required': True}, + 'health_policy': {'required': True}, + } + + _attribute_map = { + 'force_restart': {'key': 'forceRestart', 'type': 'bool'}, + 'upgrade_replica_set_check_timeout': {'key': 'upgradeReplicaSetCheckTimeout', 'type': 'str'}, + 'health_check_wait_duration': {'key': 'healthCheckWaitDuration', 'type': 'str'}, + 'health_check_stable_duration': {'key': 'healthCheckStableDuration', 'type': 'str'}, + 'health_check_retry_timeout': {'key': 'healthCheckRetryTimeout', 'type': 'str'}, + 'upgrade_timeout': {'key': 'upgradeTimeout', 'type': 'str'}, + 'upgrade_domain_timeout': {'key': 'upgradeDomainTimeout', 'type': 'str'}, + 'health_policy': {'key': 'healthPolicy', 'type': 'ClusterHealthPolicy'}, + 'delta_health_policy': {'key': 'deltaHealthPolicy', 'type': 'ClusterUpgradeDeltaHealthPolicy'}, + } + + def __init__(self, **kwargs): + super(ClusterUpgradePolicy, self).__init__(**kwargs) + self.force_restart = kwargs.get('force_restart', None) + self.upgrade_replica_set_check_timeout = kwargs.get('upgrade_replica_set_check_timeout', None) + self.health_check_wait_duration = kwargs.get('health_check_wait_duration', None) + self.health_check_stable_duration = kwargs.get('health_check_stable_duration', None) + self.health_check_retry_timeout = kwargs.get('health_check_retry_timeout', None) + self.upgrade_timeout = kwargs.get('upgrade_timeout', None) + self.upgrade_domain_timeout = kwargs.get('upgrade_domain_timeout', None) + self.health_policy = kwargs.get('health_policy', None) + self.delta_health_policy = kwargs.get('delta_health_policy', None) + + +class ClusterVersionDetails(Model): + """The detail of the Service Fabric runtime version result. + + :param code_version: The Service Fabric runtime version of the cluster. + :type code_version: str + :param support_expiry_utc: The date of expiry of support of the version. + :type support_expiry_utc: str + :param environment: Indicates if this version is for Windows or Linux + operating system. Possible values include: 'Windows', 'Linux' + :type environment: str or ~azure.mgmt.servicefabric.models.enum + """ + + _attribute_map = { + 'code_version': {'key': 'codeVersion', 'type': 'str'}, + 'support_expiry_utc': {'key': 'supportExpiryUtc', 'type': 'str'}, + 'environment': {'key': 'environment', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterVersionDetails, self).__init__(**kwargs) + self.code_version = kwargs.get('code_version', None) + self.support_expiry_utc = kwargs.get('support_expiry_utc', None) + self.environment = kwargs.get('environment', None) + + +class DiagnosticsStorageAccountConfig(Model): + """The storage account information for storing Service Fabric diagnostic logs. + + All required parameters must be populated in order to send to Azure. + + :param storage_account_name: Required. The Azure storage account name. + :type storage_account_name: str + :param protected_account_key_name: Required. The protected diagnostics + storage key name. + :type protected_account_key_name: str + :param blob_endpoint: Required. The blob endpoint of the azure storage + account. + :type blob_endpoint: str + :param queue_endpoint: Required. The queue endpoint of the azure storage + account. + :type queue_endpoint: str + :param table_endpoint: Required. The table endpoint of the azure storage + account. + :type table_endpoint: str + """ + + _validation = { + 'storage_account_name': {'required': True}, + 'protected_account_key_name': {'required': True}, + 'blob_endpoint': {'required': True}, + 'queue_endpoint': {'required': True}, + 'table_endpoint': {'required': True}, + } + + _attribute_map = { + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'protected_account_key_name': {'key': 'protectedAccountKeyName', 'type': 'str'}, + 'blob_endpoint': {'key': 'blobEndpoint', 'type': 'str'}, + 'queue_endpoint': {'key': 'queueEndpoint', 'type': 'str'}, + 'table_endpoint': {'key': 'tableEndpoint', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DiagnosticsStorageAccountConfig, self).__init__(**kwargs) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.protected_account_key_name = kwargs.get('protected_account_key_name', None) + self.blob_endpoint = kwargs.get('blob_endpoint', None) + self.queue_endpoint = kwargs.get('queue_endpoint', None) + self.table_endpoint = kwargs.get('table_endpoint', None) + + +class EndpointRangeDescription(Model): + """Port range details. + + All required parameters must be populated in order to send to Azure. + + :param start_port: Required. Starting port of a range of ports + :type start_port: int + :param end_port: Required. End port of a range of ports + :type end_port: int + """ + + _validation = { + 'start_port': {'required': True}, + 'end_port': {'required': True}, + } + + _attribute_map = { + 'start_port': {'key': 'startPort', 'type': 'int'}, + 'end_port': {'key': 'endPort', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(EndpointRangeDescription, self).__init__(**kwargs) + self.start_port = kwargs.get('start_port', None) + self.end_port = kwargs.get('end_port', None) + + +class ErrorModel(Model): + """The structure of the error. + + :param error: The error details. + :type error: ~azure.mgmt.servicefabric.models.ErrorModelError + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorModelError'}, + } + + def __init__(self, **kwargs): + super(ErrorModel, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class ErrorModelException(HttpOperationError): + """Server responsed with exception of type: 'ErrorModel'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorModelException, self).__init__(deserialize, response, 'ErrorModel', *args) + + +class ErrorModelError(Model): + """The error details. + + :param code: The error code. + :type code: str + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorModelError, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class PartitionSchemeDescription(Model): + """Describes how the service is partitioned. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: NamedPartitionSchemeDescription, + SingletonPartitionSchemeDescription, + UniformInt64RangePartitionSchemeDescription + + All required parameters must be populated in order to send to Azure. + + :param partition_scheme: Required. Constant filled by server. + :type partition_scheme: str + """ + + _validation = { + 'partition_scheme': {'required': True}, + } + + _attribute_map = { + 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, + } + + _subtype_map = { + 'partition_scheme': {'Named': 'NamedPartitionSchemeDescription', 'Singleton': 'SingletonPartitionSchemeDescription', 'UniformInt64Range': 'UniformInt64RangePartitionSchemeDescription'} + } + + def __init__(self, **kwargs): + super(PartitionSchemeDescription, self).__init__(**kwargs) + self.partition_scheme = None + + +class NamedPartitionSchemeDescription(PartitionSchemeDescription): + """Describes the named partition scheme of the service. + + All required parameters must be populated in order to send to Azure. + + :param partition_scheme: Required. Constant filled by server. + :type partition_scheme: str + :param count: Required. The number of partitions. + :type count: int + :param names: Required. Array of size specified by the ‘Count’ parameter, + for the names of the partitions. + :type names: list[str] + """ + + _validation = { + 'partition_scheme': {'required': True}, + 'count': {'required': True}, + 'names': {'required': True}, + } + + _attribute_map = { + 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, + 'count': {'key': 'Count', 'type': 'int'}, + 'names': {'key': 'Names', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(NamedPartitionSchemeDescription, self).__init__(**kwargs) + self.count = kwargs.get('count', None) + self.names = kwargs.get('names', None) + self.partition_scheme = 'Named' + + +class NodeTypeDescription(Model): + """Describes a node type in the cluster, each node type represents sub set of + nodes in the cluster. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the node type. + :type name: str + :param placement_properties: The placement tags applied to nodes in the + node type, which can be used to indicate where certain services (workload) + should run. + :type placement_properties: dict[str, str] + :param capacities: The capacity tags applied to the nodes in the node + type, the cluster resource manager uses these tags to understand how much + resource a node has. + :type capacities: dict[str, str] + :param client_connection_endpoint_port: Required. The TCP cluster + management endpoint port. + :type client_connection_endpoint_port: int + :param http_gateway_endpoint_port: Required. The HTTP cluster management + endpoint port. + :type http_gateway_endpoint_port: int + :param durability_level: The durability level of the node type. Learn + about + [DurabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). + - Bronze - No privileges. This is the default. + - Silver - The infrastructure jobs can be paused for a duration of 10 + minutes per UD. + - Gold - The infrastructure jobs can be paused for a duration of 2 hours + per UD. Gold durability can be enabled only on full node VM skus like + D15_V2, G5 etc. + . Possible values include: 'Bronze', 'Silver', 'Gold' + :type durability_level: str or ~azure.mgmt.servicefabric.models.enum + :param application_ports: The range of ports from which cluster assigned + port to Service Fabric applications. + :type application_ports: + ~azure.mgmt.servicefabric.models.EndpointRangeDescription + :param ephemeral_ports: The range of ephemeral ports that nodes in this + node type should be configured with. + :type ephemeral_ports: + ~azure.mgmt.servicefabric.models.EndpointRangeDescription + :param is_primary: Required. The node type on which system services will + run. Only one node type should be marked as primary. Primary node type + cannot be deleted or changed for existing clusters. + :type is_primary: bool + :param vm_instance_count: Required. The number of nodes in the node type. + This count should match the capacity property in the corresponding + VirtualMachineScaleSet resource. + :type vm_instance_count: int + :param reverse_proxy_endpoint_port: The endpoint used by reverse proxy. + :type reverse_proxy_endpoint_port: int + """ + + _validation = { + 'name': {'required': True}, + 'client_connection_endpoint_port': {'required': True}, + 'http_gateway_endpoint_port': {'required': True}, + 'is_primary': {'required': True}, + 'vm_instance_count': {'required': True, 'maximum': 2147483647, 'minimum': 1}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'placement_properties': {'key': 'placementProperties', 'type': '{str}'}, + 'capacities': {'key': 'capacities', 'type': '{str}'}, + 'client_connection_endpoint_port': {'key': 'clientConnectionEndpointPort', 'type': 'int'}, + 'http_gateway_endpoint_port': {'key': 'httpGatewayEndpointPort', 'type': 'int'}, + 'durability_level': {'key': 'durabilityLevel', 'type': 'str'}, + 'application_ports': {'key': 'applicationPorts', 'type': 'EndpointRangeDescription'}, + 'ephemeral_ports': {'key': 'ephemeralPorts', 'type': 'EndpointRangeDescription'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'vm_instance_count': {'key': 'vmInstanceCount', 'type': 'int'}, + 'reverse_proxy_endpoint_port': {'key': 'reverseProxyEndpointPort', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(NodeTypeDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.placement_properties = kwargs.get('placement_properties', None) + self.capacities = kwargs.get('capacities', None) + self.client_connection_endpoint_port = kwargs.get('client_connection_endpoint_port', None) + self.http_gateway_endpoint_port = kwargs.get('http_gateway_endpoint_port', None) + self.durability_level = kwargs.get('durability_level', None) + self.application_ports = kwargs.get('application_ports', None) + self.ephemeral_ports = kwargs.get('ephemeral_ports', None) + self.is_primary = kwargs.get('is_primary', None) + self.vm_instance_count = kwargs.get('vm_instance_count', None) + self.reverse_proxy_endpoint_port = kwargs.get('reverse_proxy_endpoint_port', None) + + +class OperationResult(Model): + """Available operation list result. + + :param name: The name of the operation. + :type name: str + :param display: The object that represents the operation. + :type display: ~azure.mgmt.servicefabric.models.AvailableOperationDisplay + :param origin: Origin result + :type origin: str + :param next_link: The URL to use for getting the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'AvailableOperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationResult, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.next_link = kwargs.get('next_link', None) + + +class ServerCertificateCommonName(Model): + """Describes the server certificate details using common name. + + All required parameters must be populated in order to send to Azure. + + :param certificate_common_name: Required. The common name of the server + certificate. + :type certificate_common_name: str + :param certificate_issuer_thumbprint: Required. The issuer thumbprint of + the server certificate. + :type certificate_issuer_thumbprint: str + """ + + _validation = { + 'certificate_common_name': {'required': True}, + 'certificate_issuer_thumbprint': {'required': True}, + } + + _attribute_map = { + 'certificate_common_name': {'key': 'certificateCommonName', 'type': 'str'}, + 'certificate_issuer_thumbprint': {'key': 'certificateIssuerThumbprint', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServerCertificateCommonName, self).__init__(**kwargs) + self.certificate_common_name = kwargs.get('certificate_common_name', None) + self.certificate_issuer_thumbprint = kwargs.get('certificate_issuer_thumbprint', None) + + +class ServerCertificateCommonNames(Model): + """Describes a list of server certificates referenced by common name that are + used to secure the cluster. + + :param common_names: The list of server certificates referenced by common + name that are used to secure the cluster. + :type common_names: + list[~azure.mgmt.servicefabric.models.ServerCertificateCommonName] + :param x509_store_name: The local certificate store location. Possible + values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', + 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' + :type x509_store_name: str or ~azure.mgmt.servicefabric.models.enum + """ + + _attribute_map = { + 'common_names': {'key': 'commonNames', 'type': '[ServerCertificateCommonName]'}, + 'x509_store_name': {'key': 'x509StoreName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServerCertificateCommonNames, self).__init__(**kwargs) + self.common_names = kwargs.get('common_names', None) + self.x509_store_name = kwargs.get('x509_store_name', None) + + +class ServiceCorrelationDescription(Model): + """Creates a particular correlation between services. + + All required parameters must be populated in order to send to Azure. + + :param scheme: Required. The ServiceCorrelationScheme which describes the + relationship between this service and the service specified via + ServiceName. Possible values include: 'Invalid', 'Affinity', + 'AlignedAffinity', 'NonAlignedAffinity' + :type scheme: str or + ~azure.mgmt.servicefabric.models.ServiceCorrelationScheme + :param service_name: Required. The name of the service that the + correlation relationship is established with. + :type service_name: str + """ + + _validation = { + 'scheme': {'required': True}, + 'service_name': {'required': True}, + } + + _attribute_map = { + 'scheme': {'key': 'scheme', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceCorrelationDescription, self).__init__(**kwargs) + self.scheme = kwargs.get('scheme', None) + self.service_name = kwargs.get('service_name', None) + + +class ServiceLoadMetricDescription(Model): + """Specifies a metric to load balance a service during runtime. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the metric. If the service chooses to + report load during runtime, the load metric name should match the name + that is specified in Name exactly. Note that metric names are case + sensitive. + :type name: str + :param weight: The service load metric relative weight, compared to other + metrics configured for this service, as a number. Possible values include: + 'Zero', 'Low', 'Medium', 'High' + :type weight: str or + ~azure.mgmt.servicefabric.models.ServiceLoadMetricWeight + :param primary_default_load: Used only for Stateful services. The default + amount of load, as a number, that this service creates for this metric + when it is a Primary replica. + :type primary_default_load: int + :param secondary_default_load: Used only for Stateful services. The + default amount of load, as a number, that this service creates for this + metric when it is a Secondary replica. + :type secondary_default_load: int + :param default_load: Used only for Stateless services. The default amount + of load, as a number, that this service creates for this metric. + :type default_load: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'weight': {'key': 'weight', 'type': 'str'}, + 'primary_default_load': {'key': 'primaryDefaultLoad', 'type': 'int'}, + 'secondary_default_load': {'key': 'secondaryDefaultLoad', 'type': 'int'}, + 'default_load': {'key': 'defaultLoad', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ServiceLoadMetricDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.weight = kwargs.get('weight', None) + self.primary_default_load = kwargs.get('primary_default_load', None) + self.secondary_default_load = kwargs.get('secondary_default_load', None) + self.default_load = kwargs.get('default_load', None) + + +class ServicePlacementPolicyDescription(Model): + """Describes the policy to be used for placement of a Service Fabric service. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Constant filled by server. + :type type: str + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'Type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServicePlacementPolicyDescription, self).__init__(**kwargs) + self.type = None + + +class ServiceResource(ProxyResource): + """The service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param service_type_name: The name of the service type + :type service_type_name: str + :param partition_description: Describes how the service is partitioned. + :type partition_description: + ~azure.mgmt.servicefabric.models.PartitionSchemeDescription + :param service_package_activation_mode: The activation Mode of the service + package. Possible values include: 'SharedProcess', 'ExclusiveProcess' + :type service_package_activation_mode: str or + ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'placement_constraints': {'key': 'properties.placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'properties.correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'properties.serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'properties.servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'properties.defaultMoveCost', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'service_type_name': {'key': 'properties.serviceTypeName', 'type': 'str'}, + 'partition_description': {'key': 'properties.partitionDescription', 'type': 'PartitionSchemeDescription'}, + 'service_package_activation_mode': {'key': 'properties.servicePackageActivationMode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceResource, self).__init__(**kwargs) + self.placement_constraints = kwargs.get('placement_constraints', None) + self.correlation_scheme = kwargs.get('correlation_scheme', None) + self.service_load_metrics = kwargs.get('service_load_metrics', None) + self.service_placement_policies = kwargs.get('service_placement_policies', None) + self.default_move_cost = kwargs.get('default_move_cost', None) + self.provisioning_state = None + self.service_type_name = kwargs.get('service_type_name', None) + self.partition_description = kwargs.get('partition_description', None) + self.service_package_activation_mode = kwargs.get('service_package_activation_mode', None) + + +class ServiceResourceList(Model): + """The list of service resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: + :type value: list[~azure.mgmt.servicefabric.models.ServiceResource] + :ivar next_link: URL to get the next set of service list results if there + are any. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServiceResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceResourceList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None + + +class ServiceResourcePropertiesBase(Model): + """The common service resource properties. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + """ + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceResourcePropertiesBase, self).__init__(**kwargs) + self.placement_constraints = kwargs.get('placement_constraints', None) + self.correlation_scheme = kwargs.get('correlation_scheme', None) + self.service_load_metrics = kwargs.get('service_load_metrics', None) + self.service_placement_policies = kwargs.get('service_placement_policies', None) + self.default_move_cost = kwargs.get('default_move_cost', None) + + +class ServiceResourceProperties(ServiceResourcePropertiesBase): + """The service resource properties. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: StatefulServiceProperties, StatelessServiceProperties + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param service_type_name: The name of the service type + :type service_type_name: str + :param partition_description: Describes how the service is partitioned. + :type partition_description: + ~azure.mgmt.servicefabric.models.PartitionSchemeDescription + :param service_package_activation_mode: The activation Mode of the service + package. Possible values include: 'SharedProcess', 'ExclusiveProcess' + :type service_package_activation_mode: str or + ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode + :param service_kind: Required. Constant filled by server. + :type service_kind: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'service_kind': {'required': True}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, + 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, + 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + } + + _subtype_map = { + 'service_kind': {'Stateful': 'StatefulServiceProperties', 'Stateless': 'StatelessServiceProperties'} + } + + def __init__(self, **kwargs): + super(ServiceResourceProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.service_type_name = kwargs.get('service_type_name', None) + self.partition_description = kwargs.get('partition_description', None) + self.service_package_activation_mode = kwargs.get('service_package_activation_mode', None) + self.service_kind = None + self.service_kind = 'ServiceResourceProperties' + + +class ServiceResourceUpdate(ProxyResource): + """The service resource for patch operations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'placement_constraints': {'key': 'properties.placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'properties.correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'properties.serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'properties.servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'properties.defaultMoveCost', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceResourceUpdate, self).__init__(**kwargs) + self.placement_constraints = kwargs.get('placement_constraints', None) + self.correlation_scheme = kwargs.get('correlation_scheme', None) + self.service_load_metrics = kwargs.get('service_load_metrics', None) + self.service_placement_policies = kwargs.get('service_placement_policies', None) + self.default_move_cost = kwargs.get('default_move_cost', None) + + +class ServiceResourceUpdateProperties(ServiceResourcePropertiesBase): + """The service resource properties for patch operations. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: StatefulServiceUpdateProperties, + StatelessServiceUpdateProperties + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :param service_kind: Required. Constant filled by server. + :type service_kind: str + """ + + _validation = { + 'service_kind': {'required': True}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + } + + _subtype_map = { + 'service_kind': {'Stateful': 'StatefulServiceUpdateProperties', 'Stateless': 'StatelessServiceUpdateProperties'} + } + + def __init__(self, **kwargs): + super(ServiceResourceUpdateProperties, self).__init__(**kwargs) + self.service_kind = None + self.service_kind = 'ServiceResourceUpdateProperties' + + +class ServiceTypeDeltaHealthPolicy(Model): + """Represents the delta health policy used to evaluate the health of services + belonging to a service type when upgrading the cluster. + . + + :param max_percent_delta_unhealthy_services: The maximum allowed + percentage of services health degradation allowed during cluster upgrades. + The delta is measured between the state of the services at the beginning + of upgrade and the state of the services at the time of the health + evaluation. + The check is performed after every upgrade domain upgrade completion to + make sure the global state of the cluster is within tolerated limits. + . Default value: 0 . + :type max_percent_delta_unhealthy_services: int + """ + + _validation = { + 'max_percent_delta_unhealthy_services': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_delta_unhealthy_services': {'key': 'maxPercentDeltaUnhealthyServices', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ServiceTypeDeltaHealthPolicy, self).__init__(**kwargs) + self.max_percent_delta_unhealthy_services = kwargs.get('max_percent_delta_unhealthy_services', 0) + + +class ServiceTypeHealthPolicy(Model): + """Represents the health policy used to evaluate the health of services + belonging to a service type. + . + + :param max_percent_unhealthy_services: The maximum percentage of services + allowed to be unhealthy before your application is considered in error. + . Default value: 0 . + :type max_percent_unhealthy_services: int + """ + + _validation = { + 'max_percent_unhealthy_services': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_unhealthy_services': {'key': 'maxPercentUnhealthyServices', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ServiceTypeHealthPolicy, self).__init__(**kwargs) + self.max_percent_unhealthy_services = kwargs.get('max_percent_unhealthy_services', 0) + + +class SettingsParameterDescription(Model): + """Describes a parameter in fabric settings of the cluster. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name of fabric setting. + :type name: str + :param value: Required. The parameter value of fabric setting. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SettingsParameterDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) + + +class SettingsSectionDescription(Model): + """Describes a section in the fabric settings of the cluster. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The section name of the fabric settings. + :type name: str + :param parameters: Required. The collection of parameters in the section. + :type parameters: + list[~azure.mgmt.servicefabric.models.SettingsParameterDescription] + """ + + _validation = { + 'name': {'required': True}, + 'parameters': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[SettingsParameterDescription]'}, + } + + def __init__(self, **kwargs): + super(SettingsSectionDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.parameters = kwargs.get('parameters', None) + + +class SingletonPartitionSchemeDescription(PartitionSchemeDescription): + """Describes the partition scheme of a singleton-partitioned, or + non-partitioned service. + + All required parameters must be populated in order to send to Azure. + + :param partition_scheme: Required. Constant filled by server. + :type partition_scheme: str + """ + + _validation = { + 'partition_scheme': {'required': True}, + } + + _attribute_map = { + 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SingletonPartitionSchemeDescription, self).__init__(**kwargs) + self.partition_scheme = 'Singleton' + + +class StatefulServiceProperties(ServiceResourceProperties): + """The properties of a stateful service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param service_type_name: The name of the service type + :type service_type_name: str + :param partition_description: Describes how the service is partitioned. + :type partition_description: + ~azure.mgmt.servicefabric.models.PartitionSchemeDescription + :param service_package_activation_mode: The activation Mode of the service + package. Possible values include: 'SharedProcess', 'ExclusiveProcess' + :type service_package_activation_mode: str or + ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode + :param service_kind: Required. Constant filled by server. + :type service_kind: str + :param has_persisted_state: A flag indicating whether this is a persistent + service which stores states on the local disk. If it is then the value of + this property is true, if not it is false. + :type has_persisted_state: bool + :param target_replica_set_size: The target replica set size as a number. + :type target_replica_set_size: int + :param min_replica_set_size: The minimum replica set size as a number. + :type min_replica_set_size: int + :param replica_restart_wait_duration: The duration between when a replica + goes down and when a new replica is created, represented in ISO 8601 + format (hh:mm:ss.s). + :type replica_restart_wait_duration: datetime + :param quorum_loss_wait_duration: The maximum duration for which a + partition is allowed to be in a state of quorum loss, represented in ISO + 8601 format (hh:mm:ss.s). + :type quorum_loss_wait_duration: datetime + :param stand_by_replica_keep_duration: The definition on how long StandBy + replicas should be maintained before being removed, represented in ISO + 8601 format (hh:mm:ss.s). + :type stand_by_replica_keep_duration: datetime + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'service_kind': {'required': True}, + 'target_replica_set_size': {'minimum': 1}, + 'min_replica_set_size': {'minimum': 1}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, + 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, + 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + 'has_persisted_state': {'key': 'hasPersistedState', 'type': 'bool'}, + 'target_replica_set_size': {'key': 'targetReplicaSetSize', 'type': 'int'}, + 'min_replica_set_size': {'key': 'minReplicaSetSize', 'type': 'int'}, + 'replica_restart_wait_duration': {'key': 'replicaRestartWaitDuration', 'type': 'iso-8601'}, + 'quorum_loss_wait_duration': {'key': 'quorumLossWaitDuration', 'type': 'iso-8601'}, + 'stand_by_replica_keep_duration': {'key': 'standByReplicaKeepDuration', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(StatefulServiceProperties, self).__init__(**kwargs) + self.has_persisted_state = kwargs.get('has_persisted_state', None) + self.target_replica_set_size = kwargs.get('target_replica_set_size', None) + self.min_replica_set_size = kwargs.get('min_replica_set_size', None) + self.replica_restart_wait_duration = kwargs.get('replica_restart_wait_duration', None) + self.quorum_loss_wait_duration = kwargs.get('quorum_loss_wait_duration', None) + self.stand_by_replica_keep_duration = kwargs.get('stand_by_replica_keep_duration', None) + self.service_kind = 'Stateful' + + +class StatefulServiceUpdateProperties(ServiceResourceUpdateProperties): + """The properties of a stateful service resource for patch operations. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :param service_kind: Required. Constant filled by server. + :type service_kind: str + :param target_replica_set_size: The target replica set size as a number. + :type target_replica_set_size: int + :param min_replica_set_size: The minimum replica set size as a number. + :type min_replica_set_size: int + :param replica_restart_wait_duration: The duration between when a replica + goes down and when a new replica is created, represented in ISO 8601 + format (hh:mm:ss.s). + :type replica_restart_wait_duration: datetime + :param quorum_loss_wait_duration: The maximum duration for which a + partition is allowed to be in a state of quorum loss, represented in ISO + 8601 format (hh:mm:ss.s). + :type quorum_loss_wait_duration: datetime + :param stand_by_replica_keep_duration: The definition on how long StandBy + replicas should be maintained before being removed, represented in ISO + 8601 format (hh:mm:ss.s). + :type stand_by_replica_keep_duration: datetime + """ + + _validation = { + 'service_kind': {'required': True}, + 'target_replica_set_size': {'minimum': 1}, + 'min_replica_set_size': {'minimum': 1}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + 'target_replica_set_size': {'key': 'targetReplicaSetSize', 'type': 'int'}, + 'min_replica_set_size': {'key': 'minReplicaSetSize', 'type': 'int'}, + 'replica_restart_wait_duration': {'key': 'replicaRestartWaitDuration', 'type': 'iso-8601'}, + 'quorum_loss_wait_duration': {'key': 'quorumLossWaitDuration', 'type': 'iso-8601'}, + 'stand_by_replica_keep_duration': {'key': 'standByReplicaKeepDuration', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(StatefulServiceUpdateProperties, self).__init__(**kwargs) + self.target_replica_set_size = kwargs.get('target_replica_set_size', None) + self.min_replica_set_size = kwargs.get('min_replica_set_size', None) + self.replica_restart_wait_duration = kwargs.get('replica_restart_wait_duration', None) + self.quorum_loss_wait_duration = kwargs.get('quorum_loss_wait_duration', None) + self.stand_by_replica_keep_duration = kwargs.get('stand_by_replica_keep_duration', None) + self.service_kind = 'Stateful' + + +class StatelessServiceProperties(ServiceResourceProperties): + """The properties of a stateless service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param service_type_name: The name of the service type + :type service_type_name: str + :param partition_description: Describes how the service is partitioned. + :type partition_description: + ~azure.mgmt.servicefabric.models.PartitionSchemeDescription + :param service_package_activation_mode: The activation Mode of the service + package. Possible values include: 'SharedProcess', 'ExclusiveProcess' + :type service_package_activation_mode: str or + ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode + :param service_kind: Required. Constant filled by server. + :type service_kind: str + :param instance_count: The instance count. + :type instance_count: int + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'service_kind': {'required': True}, + 'instance_count': {'minimum': -1}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, + 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, + 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + 'instance_count': {'key': 'instanceCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(StatelessServiceProperties, self).__init__(**kwargs) + self.instance_count = kwargs.get('instance_count', None) + self.service_kind = 'Stateless' + + +class StatelessServiceUpdateProperties(ServiceResourceUpdateProperties): + """The properties of a stateless service resource for patch operations. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :param service_kind: Required. Constant filled by server. + :type service_kind: str + :param instance_count: The instance count. + :type instance_count: int + """ + + _validation = { + 'service_kind': {'required': True}, + 'instance_count': {'minimum': -1}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + 'instance_count': {'key': 'instanceCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(StatelessServiceUpdateProperties, self).__init__(**kwargs) + self.instance_count = kwargs.get('instance_count', None) + self.service_kind = 'Stateless' + + +class UniformInt64RangePartitionSchemeDescription(PartitionSchemeDescription): + """Describes a partitioning scheme where an integer range is allocated evenly + across a number of partitions. + + All required parameters must be populated in order to send to Azure. + + :param partition_scheme: Required. Constant filled by server. + :type partition_scheme: str + :param count: Required. The number of partitions. + :type count: int + :param low_key: Required. String indicating the lower bound of the + partition key range that + should be split between the partition ‘Count’ + :type low_key: str + :param high_key: Required. String indicating the upper bound of the + partition key range that + should be split between the partition ‘Count’ + :type high_key: str + """ + + _validation = { + 'partition_scheme': {'required': True}, + 'count': {'required': True}, + 'low_key': {'required': True}, + 'high_key': {'required': True}, + } + + _attribute_map = { + 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, + 'count': {'key': 'Count', 'type': 'int'}, + 'low_key': {'key': 'LowKey', 'type': 'str'}, + 'high_key': {'key': 'HighKey', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UniformInt64RangePartitionSchemeDescription, self).__init__(**kwargs) + self.count = kwargs.get('count', None) + self.low_key = kwargs.get('low_key', None) + self.high_key = kwargs.get('high_key', None) + self.partition_scheme = 'UniformInt64Range' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models_py3.py new file mode 100644 index 000000000000..40255dab3990 --- /dev/null +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_models_py3.py @@ -0,0 +1,2887 @@ +# 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 +from msrest.exceptions import HttpOperationError + + +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 + + +class ApplicationHealthPolicy(Model): + """Defines a health policy used to evaluate the health of an application or + one of its children entities. + . + + :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_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 = { + 'default_service_type_health_policy': {'key': 'defaultServiceTypeHealthPolicy', 'type': 'ServiceTypeHealthPolicy'}, + 'service_type_health_policies': {'key': 'serviceTypeHealthPolicies', 'type': '{ServiceTypeHealthPolicy}'}, + } + + def __init__(self, *, default_service_type_health_policy=None, service_type_health_policies=None, **kwargs) -> None: + super(ApplicationHealthPolicy, self).__init__(**kwargs) + self.default_service_type_health_policy = default_service_type_health_policy + self.service_type_health_policies = service_type_health_policies + + +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: str=None, maximum_capacity: int=None, reservation_capacity: int=None, total_application_capacity: int=None, **kwargs) -> None: + super(ApplicationMetricDescription, self).__init__(**kwargs) + self.name = name + self.maximum_capacity = maximum_capacity + self.reservation_capacity = reservation_capacity + self.total_application_capacity = total_application_capacity + + +class ProxyResource(Model): + """The resource model definition for proxy-only resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(ProxyResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + self.etag = None + + +class ApplicationResource(ProxyResource): + """The application resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param type_version: The version of the application type as defined in the + application manifest. + :type type_version: str + :param parameters: List of application parameters with overridden values + from their default values specified in the application manifest. + :type parameters: dict[str, str] + :param upgrade_policy: Describes the policy for a monitored application + upgrade. + :type upgrade_policy: + ~azure.mgmt.servicefabric.models.ApplicationUpgradePolicy + :param minimum_nodes: The minimum number of nodes where Service Fabric + will reserve capacity for this application. Note that this does not mean + that the services of this application will be placed on all of those + nodes. If this property is set to zero, no capacity will be reserved. The + value of this property cannot be more than the value of the MaximumNodes + property. + :type minimum_nodes: long + :param maximum_nodes: The maximum number of nodes where Service Fabric + will reserve capacity for this application. Note that this does not mean + that the services of this application will be placed on all of those + nodes. By default, the value of this property is zero and it means that + the services can be placed on any node. Default value: 0 . + :type maximum_nodes: long + :param remove_application_capacity: Remove the current application + capacity settings. + :type remove_application_capacity: bool + :param metrics: List of application capacity metric description. + :type metrics: + list[~azure.mgmt.servicefabric.models.ApplicationMetricDescription] + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param type_name: The application type name as defined in the application + manifest. + :type type_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'minimum_nodes': {'minimum': 0}, + 'maximum_nodes': {'minimum': 0}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type_version': {'key': 'properties.typeVersion', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '{str}'}, + 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'ApplicationUpgradePolicy'}, + 'minimum_nodes': {'key': 'properties.minimumNodes', 'type': 'long'}, + 'maximum_nodes': {'key': 'properties.maximumNodes', 'type': 'long'}, + 'remove_application_capacity': {'key': 'properties.removeApplicationCapacity', 'type': 'bool'}, + 'metrics': {'key': 'properties.metrics', 'type': '[ApplicationMetricDescription]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'type_name': {'key': 'properties.typeName', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, type_version: str=None, parameters=None, upgrade_policy=None, minimum_nodes: int=None, maximum_nodes: int=0, remove_application_capacity: bool=None, metrics=None, type_name: str=None, **kwargs) -> None: + super(ApplicationResource, self).__init__(location=location, tags=tags, **kwargs) + self.type_version = type_version + self.parameters = parameters + self.upgrade_policy = upgrade_policy + self.minimum_nodes = minimum_nodes + self.maximum_nodes = maximum_nodes + self.remove_application_capacity = remove_application_capacity + self.metrics = metrics + self.provisioning_state = None + self.type_name = type_name + + +class ApplicationResourceList(Model): + """The list of application resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: + :type value: list[~azure.mgmt.servicefabric.models.ApplicationResource] + :ivar next_link: URL to get the next set of application list results if + there are any. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ApplicationResourceList, self).__init__(**kwargs) + self.value = value + self.next_link = None + + +class ApplicationResourceUpdate(ProxyResource): + """The application resource for patch operations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param type_version: The version of the application type as defined in the + application manifest. + :type type_version: str + :param parameters: List of application parameters with overridden values + from their default values specified in the application manifest. + :type parameters: dict[str, str] + :param upgrade_policy: Describes the policy for a monitored application + upgrade. + :type upgrade_policy: + ~azure.mgmt.servicefabric.models.ApplicationUpgradePolicy + :param minimum_nodes: The minimum number of nodes where Service Fabric + will reserve capacity for this application. Note that this does not mean + that the services of this application will be placed on all of those + nodes. If this property is set to zero, no capacity will be reserved. The + value of this property cannot be more than the value of the MaximumNodes + property. + :type minimum_nodes: long + :param maximum_nodes: The maximum number of nodes where Service Fabric + will reserve capacity for this application. Note that this does not mean + that the services of this application will be placed on all of those + nodes. By default, the value of this property is zero and it means that + the services can be placed on any node. Default value: 0 . + :type maximum_nodes: long + :param remove_application_capacity: Remove the current application + capacity settings. + :type remove_application_capacity: bool + :param metrics: List of application capacity metric description. + :type metrics: + list[~azure.mgmt.servicefabric.models.ApplicationMetricDescription] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'minimum_nodes': {'minimum': 0}, + 'maximum_nodes': {'minimum': 0}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type_version': {'key': 'properties.typeVersion', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '{str}'}, + 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'ApplicationUpgradePolicy'}, + 'minimum_nodes': {'key': 'properties.minimumNodes', 'type': 'long'}, + 'maximum_nodes': {'key': 'properties.maximumNodes', 'type': 'long'}, + 'remove_application_capacity': {'key': 'properties.removeApplicationCapacity', 'type': 'bool'}, + 'metrics': {'key': 'properties.metrics', 'type': '[ApplicationMetricDescription]'}, + } + + def __init__(self, *, location: str=None, tags=None, type_version: str=None, parameters=None, upgrade_policy=None, minimum_nodes: int=None, maximum_nodes: int=0, remove_application_capacity: bool=None, metrics=None, **kwargs) -> None: + super(ApplicationResourceUpdate, self).__init__(location=location, tags=tags, **kwargs) + self.type_version = type_version + self.parameters = parameters + self.upgrade_policy = upgrade_policy + self.minimum_nodes = minimum_nodes + self.maximum_nodes = maximum_nodes + self.remove_application_capacity = remove_application_capacity + self.metrics = metrics + + +class ApplicationTypeResource(ProxyResource): + """The application type name resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response. + :vartype provisioning_state: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(ApplicationTypeResource, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + + +class ApplicationTypeResourceList(Model): + """The list of application type names. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: + :type value: + list[~azure.mgmt.servicefabric.models.ApplicationTypeResource] + :ivar next_link: URL to get the next set of application type list results + if there are any. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationTypeResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ApplicationTypeResourceList, self).__init__(**kwargs) + self.value = value + self.next_link = None + + +class ApplicationTypeVersionResource(ProxyResource): + """An application type version resource for the specified application type + name resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param app_package_url: Required. The URL to the application package + :type app_package_url: str + :ivar default_parameter_list: List of application type parameters that can + be overridden when creating or updating the application. + :vartype default_parameter_list: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'app_package_url': {'required': True}, + 'default_parameter_list': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'app_package_url': {'key': 'properties.appPackageUrl', 'type': 'str'}, + 'default_parameter_list': {'key': 'properties.defaultParameterList', 'type': '{str}'}, + } + + def __init__(self, *, app_package_url: str, location: str=None, tags=None, **kwargs) -> None: + super(ApplicationTypeVersionResource, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.app_package_url = app_package_url + self.default_parameter_list = None + + +class ApplicationTypeVersionResourceList(Model): + """The list of application type version resources for the specified + application type name resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: + :type value: + list[~azure.mgmt.servicefabric.models.ApplicationTypeVersionResource] + :ivar next_link: URL to get the next set of application type version list + results if there are any. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationTypeVersionResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ApplicationTypeVersionResourceList, self).__init__(**kwargs) + self.value = value + self.next_link = None + + +class ApplicationUpgradePolicy(Model): + """Describes the policy for a monitored application upgrade. + + :param upgrade_replica_set_check_timeout: The maximum amount of time to + block processing of an upgrade domain and prevent loss of availability + when there are unexpected issues. When this timeout expires, processing of + the upgrade domain will proceed regardless of availability loss issues. + The timeout is reset at the start of each upgrade domain. Valid values are + between 0 and 42949672925 inclusive. (unsigned 32-bit integer). + :type upgrade_replica_set_check_timeout: str + :param force_restart: If true, then processes are forcefully restarted + during upgrade even when the code version has not changed (the upgrade + only changes configuration or data). + :type force_restart: bool + :param rolling_upgrade_monitoring_policy: The policy used for monitoring + the application upgrade + :type rolling_upgrade_monitoring_policy: + ~azure.mgmt.servicefabric.models.ArmRollingUpgradeMonitoringPolicy + :param application_health_policy: Defines a health policy used to evaluate + the health of an application or one of its children entities. + :type application_health_policy: + ~azure.mgmt.servicefabric.models.ArmApplicationHealthPolicy + """ + + _attribute_map = { + 'upgrade_replica_set_check_timeout': {'key': 'upgradeReplicaSetCheckTimeout', 'type': 'str'}, + 'force_restart': {'key': 'forceRestart', 'type': 'bool'}, + 'rolling_upgrade_monitoring_policy': {'key': 'rollingUpgradeMonitoringPolicy', 'type': 'ArmRollingUpgradeMonitoringPolicy'}, + 'application_health_policy': {'key': 'applicationHealthPolicy', 'type': 'ArmApplicationHealthPolicy'}, + } + + def __init__(self, *, upgrade_replica_set_check_timeout: str=None, force_restart: bool=None, rolling_upgrade_monitoring_policy=None, application_health_policy=None, **kwargs) -> None: + super(ApplicationUpgradePolicy, self).__init__(**kwargs) + self.upgrade_replica_set_check_timeout = upgrade_replica_set_check_timeout + self.force_restart = force_restart + self.rolling_upgrade_monitoring_policy = rolling_upgrade_monitoring_policy + self.application_health_policy = application_health_policy + + +class ArmApplicationHealthPolicy(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: The health policy used by + default to evaluate the health of a service type. + :type default_service_type_health_policy: + ~azure.mgmt.servicefabric.models.ArmServiceTypeHealthPolicy + :param service_type_health_policy_map: The map with service type health + policy per service type name. The map is empty by default. + :type service_type_health_policy_map: dict[str, + ~azure.mgmt.servicefabric.models.ArmServiceTypeHealthPolicy] + """ + + _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': 'ArmServiceTypeHealthPolicy'}, + 'service_type_health_policy_map': {'key': 'serviceTypeHealthPolicyMap', 'type': '{ArmServiceTypeHealthPolicy}'}, + } + + 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: + super(ArmApplicationHealthPolicy, 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 + + +class ArmRollingUpgradeMonitoringPolicy(Model): + """The policy used for monitoring the application upgrade. + + :param failure_action: The activation Mode of the service package. + Possible values include: 'Rollback', 'Manual' + :type failure_action: str or + ~azure.mgmt.servicefabric.models.ArmUpgradeFailureAction + :param health_check_wait_duration: The amount of time to wait after + completing an upgrade domain before applying health policies. It is first + interpreted as a string representing an ISO 8601 duration. If that fails, + then it is interpreted as a number representing the total number of + milliseconds. + :type health_check_wait_duration: str + :param health_check_stable_duration: The amount of time that the + application or cluster must remain healthy before the upgrade proceeds to + the next upgrade domain. It is first interpreted as a string representing + an ISO 8601 duration. If that fails, then it is interpreted as a number + representing the total number of milliseconds. + :type health_check_stable_duration: str + :param health_check_retry_timeout: The amount of time to retry health + evaluation when the application or cluster is unhealthy before + FailureAction is executed. It is first interpreted as a string + representing an ISO 8601 duration. If that fails, then it is interpreted + as a number representing the total number of milliseconds. + :type health_check_retry_timeout: str + :param upgrade_timeout: The amount of time the overall upgrade has to + complete before FailureAction is executed. It is first interpreted as a + string representing an ISO 8601 duration. If that fails, then it is + interpreted as a number representing the total number of milliseconds. + :type upgrade_timeout: str + :param upgrade_domain_timeout: The amount of time each upgrade domain has + to complete before FailureAction is executed. It is first interpreted as a + string representing an ISO 8601 duration. If that fails, then it is + interpreted as a number representing the total number of milliseconds. + :type upgrade_domain_timeout: str + """ + + _attribute_map = { + 'failure_action': {'key': 'failureAction', 'type': 'str'}, + 'health_check_wait_duration': {'key': 'healthCheckWaitDuration', 'type': 'str'}, + 'health_check_stable_duration': {'key': 'healthCheckStableDuration', 'type': 'str'}, + 'health_check_retry_timeout': {'key': 'healthCheckRetryTimeout', 'type': 'str'}, + 'upgrade_timeout': {'key': 'upgradeTimeout', 'type': 'str'}, + 'upgrade_domain_timeout': {'key': 'upgradeDomainTimeout', 'type': 'str'}, + } + + def __init__(self, *, failure_action=None, health_check_wait_duration: str=None, health_check_stable_duration: str=None, health_check_retry_timeout: str=None, upgrade_timeout: str=None, upgrade_domain_timeout: str=None, **kwargs) -> None: + super(ArmRollingUpgradeMonitoringPolicy, self).__init__(**kwargs) + self.failure_action = failure_action + self.health_check_wait_duration = health_check_wait_duration + self.health_check_stable_duration = health_check_stable_duration + self.health_check_retry_timeout = health_check_retry_timeout + self.upgrade_timeout = upgrade_timeout + self.upgrade_domain_timeout = upgrade_domain_timeout + + +class ArmServiceTypeHealthPolicy(Model): + """Represents the health policy used to evaluate the health of services + belonging to a service type. + . + + :param max_percent_unhealthy_services: The maximum percentage of services + allowed to be unhealthy before your application is considered in error. + . Default value: 0 . + :type max_percent_unhealthy_services: int + :param max_percent_unhealthy_partitions_per_service: The maximum + percentage of partitions per service allowed to be unhealthy before your + application is considered in error. + . Default value: 0 . + :type max_percent_unhealthy_partitions_per_service: int + :param max_percent_unhealthy_replicas_per_partition: The maximum + percentage of replicas per partition allowed to be unhealthy before your + application is considered in error. + . Default value: 0 . + :type max_percent_unhealthy_replicas_per_partition: int + """ + + _validation = { + 'max_percent_unhealthy_services': {'maximum': 100, 'minimum': 0}, + 'max_percent_unhealthy_partitions_per_service': {'maximum': 100, 'minimum': 0}, + 'max_percent_unhealthy_replicas_per_partition': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_unhealthy_services': {'key': 'maxPercentUnhealthyServices', 'type': 'int'}, + 'max_percent_unhealthy_partitions_per_service': {'key': 'maxPercentUnhealthyPartitionsPerService', 'type': 'int'}, + 'max_percent_unhealthy_replicas_per_partition': {'key': 'maxPercentUnhealthyReplicasPerPartition', 'type': 'int'}, + } + + def __init__(self, *, max_percent_unhealthy_services: int=0, max_percent_unhealthy_partitions_per_service: int=0, max_percent_unhealthy_replicas_per_partition: int=0, **kwargs) -> None: + super(ArmServiceTypeHealthPolicy, self).__init__(**kwargs) + self.max_percent_unhealthy_services = max_percent_unhealthy_services + self.max_percent_unhealthy_partitions_per_service = max_percent_unhealthy_partitions_per_service + self.max_percent_unhealthy_replicas_per_partition = max_percent_unhealthy_replicas_per_partition + + +class AvailableOperationDisplay(Model): + """Operation supported by the Service Fabric resource provider. + + :param provider: The name of the provider. + :type provider: str + :param resource: The resource on which the operation is performed + :type resource: str + :param operation: The operation that can be performed. + :type operation: str + :param description: Operation description + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(AvailableOperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class AzureActiveDirectory(Model): + """The settings to enable AAD authentication on the cluster. + + :param tenant_id: Azure active directory tenant id. + :type tenant_id: str + :param cluster_application: Azure active directory cluster application id. + :type cluster_application: str + :param client_application: Azure active directory client application id. + :type client_application: str + """ + + _attribute_map = { + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'cluster_application': {'key': 'clusterApplication', 'type': 'str'}, + 'client_application': {'key': 'clientApplication', 'type': 'str'}, + } + + def __init__(self, *, tenant_id: str=None, cluster_application: str=None, client_application: str=None, **kwargs) -> None: + super(AzureActiveDirectory, self).__init__(**kwargs) + self.tenant_id = tenant_id + self.cluster_application = cluster_application + self.client_application = client_application + + +class CertificateDescription(Model): + """Describes the certificate details. + + All required parameters must be populated in order to send to Azure. + + :param thumbprint: Required. Thumbprint of the primary certificate. + :type thumbprint: str + :param thumbprint_secondary: Thumbprint of the secondary certificate. + :type thumbprint_secondary: str + :param x509_store_name: The local certificate store location. Possible + values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', + 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' + :type x509_store_name: str or ~azure.mgmt.servicefabric.models.enum + """ + + _validation = { + 'thumbprint': {'required': True}, + } + + _attribute_map = { + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'thumbprint_secondary': {'key': 'thumbprintSecondary', 'type': 'str'}, + 'x509_store_name': {'key': 'x509StoreName', 'type': 'str'}, + } + + def __init__(self, *, thumbprint: str, thumbprint_secondary: str=None, x509_store_name=None, **kwargs) -> None: + super(CertificateDescription, self).__init__(**kwargs) + self.thumbprint = thumbprint + self.thumbprint_secondary = thumbprint_secondary + self.x509_store_name = x509_store_name + + +class ClientCertificateCommonName(Model): + """Describes the client certificate details using common name. + + All required parameters must be populated in order to send to Azure. + + :param is_admin: Required. Indicates if the client certificate has admin + access to the cluster. Non admin clients can perform only read only + operations on the cluster. + :type is_admin: bool + :param certificate_common_name: Required. The common name of the client + certificate. + :type certificate_common_name: str + :param certificate_issuer_thumbprint: Required. The issuer thumbprint of + the client certificate. + :type certificate_issuer_thumbprint: str + """ + + _validation = { + 'is_admin': {'required': True}, + 'certificate_common_name': {'required': True}, + 'certificate_issuer_thumbprint': {'required': True}, + } + + _attribute_map = { + 'is_admin': {'key': 'isAdmin', 'type': 'bool'}, + 'certificate_common_name': {'key': 'certificateCommonName', 'type': 'str'}, + 'certificate_issuer_thumbprint': {'key': 'certificateIssuerThumbprint', 'type': 'str'}, + } + + def __init__(self, *, is_admin: bool, certificate_common_name: str, certificate_issuer_thumbprint: str, **kwargs) -> None: + super(ClientCertificateCommonName, self).__init__(**kwargs) + self.is_admin = is_admin + self.certificate_common_name = certificate_common_name + self.certificate_issuer_thumbprint = certificate_issuer_thumbprint + + +class ClientCertificateThumbprint(Model): + """Describes the client certificate details using thumbprint. + + All required parameters must be populated in order to send to Azure. + + :param is_admin: Required. Indicates if the client certificate has admin + access to the cluster. Non admin clients can perform only read only + operations on the cluster. + :type is_admin: bool + :param certificate_thumbprint: Required. The thumbprint of the client + certificate. + :type certificate_thumbprint: str + """ + + _validation = { + 'is_admin': {'required': True}, + 'certificate_thumbprint': {'required': True}, + } + + _attribute_map = { + 'is_admin': {'key': 'isAdmin', 'type': 'bool'}, + 'certificate_thumbprint': {'key': 'certificateThumbprint', 'type': 'str'}, + } + + def __init__(self, *, is_admin: bool, certificate_thumbprint: str, **kwargs) -> None: + super(ClientCertificateThumbprint, self).__init__(**kwargs) + self.is_admin = is_admin + self.certificate_thumbprint = certificate_thumbprint + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Resource(Model): + """The resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: Required. Azure resource location. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + self.etag = None + + +class Cluster(Resource): + """The cluster resource + . + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: Required. Azure resource location. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param add_on_features: The list of add-on features to enable in the + cluster. + :type add_on_features: list[str] + :ivar available_cluster_versions: The Service Fabric runtime versions + available for this cluster. + :vartype available_cluster_versions: + list[~azure.mgmt.servicefabric.models.ClusterVersionDetails] + :param azure_active_directory: The AAD authentication settings of the + cluster. + :type azure_active_directory: + ~azure.mgmt.servicefabric.models.AzureActiveDirectory + :param certificate: The certificate to use for securing the cluster. The + certificate provided will be used for node to node security within the + cluster, SSL certificate for cluster management endpoint and default admin + client. + :type certificate: ~azure.mgmt.servicefabric.models.CertificateDescription + :param certificate_common_names: Describes a list of server certificates + referenced by common name that are used to secure the cluster. + :type certificate_common_names: + ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames + :param client_certificate_common_names: The list of client certificates + referenced by common name that are allowed to manage the cluster. + :type client_certificate_common_names: + list[~azure.mgmt.servicefabric.models.ClientCertificateCommonName] + :param client_certificate_thumbprints: The list of client certificates + referenced by thumbprint that are allowed to manage the cluster. + :type client_certificate_thumbprints: + list[~azure.mgmt.servicefabric.models.ClientCertificateThumbprint] + :param cluster_code_version: The Service Fabric runtime version of the + cluster. This property can only by set the user when **upgradeMode** is + set to 'Manual'. To get list of available Service Fabric versions for new + clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of + available version for existing clusters use **availableClusterVersions**. + :type cluster_code_version: str + :ivar cluster_endpoint: The Azure Resource Provider endpoint. A system + service in the cluster connects to this endpoint. + :vartype cluster_endpoint: str + :ivar cluster_id: A service generated unique identifier for the cluster + resource. + :vartype cluster_id: str + :ivar cluster_state: The current state of the cluster. + - WaitingForNodes - Indicates that the cluster resource is created and the + resource provider is waiting for Service Fabric VM extension to boot up + and report to it. + - Deploying - Indicates that the Service Fabric runtime is being installed + on the VMs. Cluster resource will be in this state until the cluster boots + up and system services are up. + - BaselineUpgrade - Indicates that the cluster is upgrading to establishes + the cluster version. This upgrade is automatically initiated when the + cluster boots up for the first time. + - UpdatingUserConfiguration - Indicates that the cluster is being upgraded + with the user provided configuration. + - UpdatingUserCertificate - Indicates that the cluster is being upgraded + with the user provided certificate. + - UpdatingInfrastructure - Indicates that the cluster is being upgraded + with the latest Service Fabric runtime version. This happens only when the + **upgradeMode** is set to 'Automatic'. + - EnforcingClusterVersion - Indicates that cluster is on a different + version than expected and the cluster is being upgraded to the expected + version. + - UpgradeServiceUnreachable - Indicates that the system service in the + cluster is no longer polling the Resource Provider. Clusters in this state + cannot be managed by the Resource Provider. + - AutoScale - Indicates that the ReliabilityLevel of the cluster is being + adjusted. + - Ready - Indicates that the cluster is in a stable state. + . Possible values include: 'WaitingForNodes', 'Deploying', + 'BaselineUpgrade', 'UpdatingUserConfiguration', 'UpdatingUserCertificate', + 'UpdatingInfrastructure', 'EnforcingClusterVersion', + 'UpgradeServiceUnreachable', 'AutoScale', 'Ready' + :vartype cluster_state: str or ~azure.mgmt.servicefabric.models.enum + :param diagnostics_storage_account_config: The storage account information + for storing Service Fabric diagnostic logs. + :type diagnostics_storage_account_config: + ~azure.mgmt.servicefabric.models.DiagnosticsStorageAccountConfig + :param event_store_service_enabled: Indicates if the event store service + is enabled. + :type event_store_service_enabled: bool + :param fabric_settings: The list of custom fabric settings to configure + the cluster. + :type fabric_settings: + list[~azure.mgmt.servicefabric.models.SettingsSectionDescription] + :param management_endpoint: Required. The http management endpoint of the + cluster. + :type management_endpoint: str + :param node_types: Required. The list of node types in the cluster. + :type node_types: + list[~azure.mgmt.servicefabric.models.NodeTypeDescription] + :ivar provisioning_state: The provisioning state of the cluster resource. + Possible values include: 'Updating', 'Succeeded', 'Failed', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.servicefabric.models.ProvisioningState + :param reliability_level: The reliability level sets the replica set size + of system services. Learn about + [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). + - None - Run the System services with a target replica set count of 1. + This should only be used for test clusters. + - Bronze - Run the System services with a target replica set count of 3. + This should only be used for test clusters. + - Silver - Run the System services with a target replica set count of 5. + - Gold - Run the System services with a target replica set count of 7. + - Platinum - Run the System services with a target replica set count of 9. + . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', 'Platinum' + :type reliability_level: str or ~azure.mgmt.servicefabric.models.enum + :param reverse_proxy_certificate: The server certificate used by reverse + proxy. + :type reverse_proxy_certificate: + ~azure.mgmt.servicefabric.models.CertificateDescription + :param reverse_proxy_certificate_common_names: Describes a list of server + certificates referenced by common name that are used to secure the + cluster. + :type reverse_proxy_certificate_common_names: + ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames + :param upgrade_description: The policy to use when upgrading the cluster. + :type upgrade_description: + ~azure.mgmt.servicefabric.models.ClusterUpgradePolicy + :param upgrade_mode: The upgrade mode of the cluster when new Service + Fabric runtime version is available. + - Automatic - The cluster will be automatically upgraded to the latest + Service Fabric runtime version as soon as it is available. + - Manual - The cluster will not be automatically upgraded to the latest + Service Fabric runtime version. The cluster is upgraded by setting the + **clusterCodeVersion** property in the cluster resource. + . Possible values include: 'Automatic', 'Manual' + :type upgrade_mode: str or ~azure.mgmt.servicefabric.models.enum + :param vm_image: The VM image VMSS has been configured with. Generic names + such as Windows or Linux can be used. + :type vm_image: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'etag': {'readonly': True}, + 'available_cluster_versions': {'readonly': True}, + 'cluster_endpoint': {'readonly': True}, + 'cluster_id': {'readonly': True}, + 'cluster_state': {'readonly': True}, + 'management_endpoint': {'required': True}, + 'node_types': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'add_on_features': {'key': 'properties.addOnFeatures', 'type': '[str]'}, + 'available_cluster_versions': {'key': 'properties.availableClusterVersions', 'type': '[ClusterVersionDetails]'}, + 'azure_active_directory': {'key': 'properties.azureActiveDirectory', 'type': 'AzureActiveDirectory'}, + 'certificate': {'key': 'properties.certificate', 'type': 'CertificateDescription'}, + 'certificate_common_names': {'key': 'properties.certificateCommonNames', 'type': 'ServerCertificateCommonNames'}, + 'client_certificate_common_names': {'key': 'properties.clientCertificateCommonNames', 'type': '[ClientCertificateCommonName]'}, + 'client_certificate_thumbprints': {'key': 'properties.clientCertificateThumbprints', 'type': '[ClientCertificateThumbprint]'}, + 'cluster_code_version': {'key': 'properties.clusterCodeVersion', 'type': 'str'}, + 'cluster_endpoint': {'key': 'properties.clusterEndpoint', 'type': 'str'}, + 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, + 'cluster_state': {'key': 'properties.clusterState', 'type': 'str'}, + 'diagnostics_storage_account_config': {'key': 'properties.diagnosticsStorageAccountConfig', 'type': 'DiagnosticsStorageAccountConfig'}, + 'event_store_service_enabled': {'key': 'properties.eventStoreServiceEnabled', 'type': 'bool'}, + 'fabric_settings': {'key': 'properties.fabricSettings', 'type': '[SettingsSectionDescription]'}, + 'management_endpoint': {'key': 'properties.managementEndpoint', 'type': 'str'}, + 'node_types': {'key': 'properties.nodeTypes', 'type': '[NodeTypeDescription]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'reliability_level': {'key': 'properties.reliabilityLevel', 'type': 'str'}, + 'reverse_proxy_certificate': {'key': 'properties.reverseProxyCertificate', 'type': 'CertificateDescription'}, + 'reverse_proxy_certificate_common_names': {'key': 'properties.reverseProxyCertificateCommonNames', 'type': 'ServerCertificateCommonNames'}, + 'upgrade_description': {'key': 'properties.upgradeDescription', 'type': 'ClusterUpgradePolicy'}, + 'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'str'}, + 'vm_image': {'key': 'properties.vmImage', 'type': 'str'}, + } + + def __init__(self, *, location: str, management_endpoint: str, node_types, tags=None, add_on_features=None, azure_active_directory=None, certificate=None, certificate_common_names=None, client_certificate_common_names=None, client_certificate_thumbprints=None, cluster_code_version: str=None, diagnostics_storage_account_config=None, event_store_service_enabled: bool=None, fabric_settings=None, reliability_level=None, reverse_proxy_certificate=None, reverse_proxy_certificate_common_names=None, upgrade_description=None, upgrade_mode=None, vm_image: str=None, **kwargs) -> None: + super(Cluster, self).__init__(location=location, tags=tags, **kwargs) + self.add_on_features = add_on_features + self.available_cluster_versions = None + self.azure_active_directory = azure_active_directory + self.certificate = certificate + self.certificate_common_names = certificate_common_names + self.client_certificate_common_names = client_certificate_common_names + self.client_certificate_thumbprints = client_certificate_thumbprints + self.cluster_code_version = cluster_code_version + self.cluster_endpoint = None + self.cluster_id = None + self.cluster_state = None + self.diagnostics_storage_account_config = diagnostics_storage_account_config + self.event_store_service_enabled = event_store_service_enabled + self.fabric_settings = fabric_settings + self.management_endpoint = management_endpoint + self.node_types = node_types + self.provisioning_state = None + self.reliability_level = reliability_level + self.reverse_proxy_certificate = reverse_proxy_certificate + self.reverse_proxy_certificate_common_names = reverse_proxy_certificate_common_names + self.upgrade_description = upgrade_description + self.upgrade_mode = upgrade_mode + self.vm_image = vm_image + + +class ClusterCodeVersionsListResult(Model): + """The list results of the Service Fabric runtime versions. + + :param value: + :type value: + list[~azure.mgmt.servicefabric.models.ClusterCodeVersionsResult] + :param next_link: The URL to use for getting the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ClusterCodeVersionsResult]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: + super(ClusterCodeVersionsListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ClusterCodeVersionsResult(Model): + """The result of the Service Fabric runtime versions. + + :param id: The identification of the result + :type id: str + :param name: The name of the result + :type name: str + :param type: The result resource type + :type type: str + :param code_version: The Service Fabric runtime version of the cluster. + :type code_version: str + :param support_expiry_utc: The date of expiry of support of the version. + :type support_expiry_utc: str + :param environment: Indicates if this version is for Windows or Linux + operating system. Possible values include: 'Windows', 'Linux' + :type environment: str or ~azure.mgmt.servicefabric.models.enum + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'code_version': {'key': 'properties.codeVersion', 'type': 'str'}, + 'support_expiry_utc': {'key': 'properties.supportExpiryUtc', 'type': 'str'}, + 'environment': {'key': 'properties.environment', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, name: str=None, type: str=None, code_version: str=None, support_expiry_utc: str=None, environment=None, **kwargs) -> None: + super(ClusterCodeVersionsResult, self).__init__(**kwargs) + self.id = id + self.name = name + self.type = type + self.code_version = code_version + self.support_expiry_utc = support_expiry_utc + self.environment = environment + + +class ClusterHealthPolicy(Model): + """Defines a health policy used to evaluate the health of the cluster or of a + cluster node. + . + + :param max_percent_unhealthy_nodes: The maximum allowed percentage of + unhealthy nodes before reporting an error. For example, to allow 10% of + nodes to be unhealthy, this value would be 10. + The percentage represents the maximum tolerated percentage of nodes that + can be unhealthy before the cluster is considered in error. + If the percentage is respected but there is at least one unhealthy node, + the health is evaluated as Warning. + The percentage is calculated by dividing the number of unhealthy nodes + over the total number of nodes in the cluster. + The computation rounds up to tolerate one failure on small numbers of + nodes. Default percentage is zero. + In large clusters, some nodes will always be down or out for repairs, so + this percentage should be configured to tolerate that. + . Default value: 0 . + :type max_percent_unhealthy_nodes: int + :param max_percent_unhealthy_applications: The maximum allowed percentage + of unhealthy applications before reporting an error. For example, to allow + 10% of applications to be unhealthy, this value would be 10. + The percentage represents the maximum tolerated percentage of applications + that can be unhealthy before the cluster is considered in error. + If the percentage is respected but there is at least one unhealthy + application, the health is evaluated as Warning. + This is calculated by dividing the number of unhealthy applications over + the total number of application instances in the cluster, excluding + applications of application types that are included in the + ApplicationTypeHealthPolicyMap. + The computation rounds up to tolerate one failure on small numbers of + applications. Default percentage is zero. + . Default value: 0 . + :type max_percent_unhealthy_applications: int + :param application_health_policies: Defines the application health policy + map used to evaluate the health of an application or one of its children + entities. + :type application_health_policies: dict[str, + ~azure.mgmt.servicefabric.models.ApplicationHealthPolicy] + """ + + _validation = { + 'max_percent_unhealthy_nodes': {'maximum': 100, 'minimum': 0}, + 'max_percent_unhealthy_applications': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_unhealthy_nodes': {'key': 'maxPercentUnhealthyNodes', 'type': 'int'}, + 'max_percent_unhealthy_applications': {'key': 'maxPercentUnhealthyApplications', 'type': 'int'}, + 'application_health_policies': {'key': 'applicationHealthPolicies', 'type': '{ApplicationHealthPolicy}'}, + } + + def __init__(self, *, max_percent_unhealthy_nodes: int=0, max_percent_unhealthy_applications: int=0, application_health_policies=None, **kwargs) -> None: + super(ClusterHealthPolicy, self).__init__(**kwargs) + self.max_percent_unhealthy_nodes = max_percent_unhealthy_nodes + self.max_percent_unhealthy_applications = max_percent_unhealthy_applications + self.application_health_policies = application_health_policies + + +class ClusterListResult(Model): + """Cluster list results. + + :param value: + :type value: list[~azure.mgmt.servicefabric.models.Cluster] + :param next_link: The URL to use for getting the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Cluster]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: + super(ClusterListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ClusterUpdateParameters(Model): + """Cluster update request. + + :param add_on_features: The list of add-on features to enable in the + cluster. + :type add_on_features: list[str] + :param certificate: The certificate to use for securing the cluster. The + certificate provided will be used for node to node security within the + cluster, SSL certificate for cluster management endpoint and default + admin client. + :type certificate: ~azure.mgmt.servicefabric.models.CertificateDescription + :param certificate_common_names: Describes a list of server certificates + referenced by common name that are used to secure the cluster. + :type certificate_common_names: + ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames + :param client_certificate_common_names: The list of client certificates + referenced by common name that are allowed to manage the cluster. This + will overwrite the existing list. + :type client_certificate_common_names: + list[~azure.mgmt.servicefabric.models.ClientCertificateCommonName] + :param client_certificate_thumbprints: The list of client certificates + referenced by thumbprint that are allowed to manage the cluster. This will + overwrite the existing list. + :type client_certificate_thumbprints: + list[~azure.mgmt.servicefabric.models.ClientCertificateThumbprint] + :param cluster_code_version: The Service Fabric runtime version of the + cluster. This property can only by set the user when **upgradeMode** is + set to 'Manual'. To get list of available Service Fabric versions for new + clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of + available version for existing clusters use **availableClusterVersions**. + :type cluster_code_version: str + :param event_store_service_enabled: Indicates if the event store service + is enabled. + :type event_store_service_enabled: bool + :param fabric_settings: The list of custom fabric settings to configure + the cluster. This will overwrite the existing list. + :type fabric_settings: + list[~azure.mgmt.servicefabric.models.SettingsSectionDescription] + :param node_types: The list of node types in the cluster. This will + overwrite the existing list. + :type node_types: + list[~azure.mgmt.servicefabric.models.NodeTypeDescription] + :param reliability_level: The reliability level sets the replica set size + of system services. Learn about + [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). + - None - Run the System services with a target replica set count of 1. + This should only be used for test clusters. + - Bronze - Run the System services with a target replica set count of 3. + This should only be used for test clusters. + - Silver - Run the System services with a target replica set count of 5. + - Gold - Run the System services with a target replica set count of 7. + - Platinum - Run the System services with a target replica set count of 9. + . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', 'Platinum' + :type reliability_level: str or ~azure.mgmt.servicefabric.models.enum + :param reverse_proxy_certificate: The server certificate used by reverse + proxy. + :type reverse_proxy_certificate: + ~azure.mgmt.servicefabric.models.CertificateDescription + :param upgrade_description: The policy to use when upgrading the cluster. + :type upgrade_description: + ~azure.mgmt.servicefabric.models.ClusterUpgradePolicy + :param upgrade_mode: The upgrade mode of the cluster when new Service + Fabric runtime version is available. + - Automatic - The cluster will be automatically upgraded to the latest + Service Fabric runtime version as soon as it is available. + - Manual - The cluster will not be automatically upgraded to the latest + Service Fabric runtime version. The cluster is upgraded by setting the + **clusterCodeVersion** property in the cluster resource. + . Possible values include: 'Automatic', 'Manual' + :type upgrade_mode: str or ~azure.mgmt.servicefabric.models.enum + :param tags: Cluster update parameters + :type tags: dict[str, str] + """ + + _attribute_map = { + 'add_on_features': {'key': 'properties.addOnFeatures', 'type': '[str]'}, + 'certificate': {'key': 'properties.certificate', 'type': 'CertificateDescription'}, + 'certificate_common_names': {'key': 'properties.certificateCommonNames', 'type': 'ServerCertificateCommonNames'}, + 'client_certificate_common_names': {'key': 'properties.clientCertificateCommonNames', 'type': '[ClientCertificateCommonName]'}, + 'client_certificate_thumbprints': {'key': 'properties.clientCertificateThumbprints', 'type': '[ClientCertificateThumbprint]'}, + 'cluster_code_version': {'key': 'properties.clusterCodeVersion', 'type': 'str'}, + 'event_store_service_enabled': {'key': 'properties.eventStoreServiceEnabled', 'type': 'bool'}, + 'fabric_settings': {'key': 'properties.fabricSettings', 'type': '[SettingsSectionDescription]'}, + 'node_types': {'key': 'properties.nodeTypes', 'type': '[NodeTypeDescription]'}, + 'reliability_level': {'key': 'properties.reliabilityLevel', 'type': 'str'}, + 'reverse_proxy_certificate': {'key': 'properties.reverseProxyCertificate', 'type': 'CertificateDescription'}, + 'upgrade_description': {'key': 'properties.upgradeDescription', 'type': 'ClusterUpgradePolicy'}, + 'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, add_on_features=None, certificate=None, certificate_common_names=None, client_certificate_common_names=None, client_certificate_thumbprints=None, cluster_code_version: str=None, event_store_service_enabled: bool=None, fabric_settings=None, node_types=None, reliability_level=None, reverse_proxy_certificate=None, upgrade_description=None, upgrade_mode=None, tags=None, **kwargs) -> None: + super(ClusterUpdateParameters, self).__init__(**kwargs) + self.add_on_features = add_on_features + self.certificate = certificate + self.certificate_common_names = certificate_common_names + self.client_certificate_common_names = client_certificate_common_names + self.client_certificate_thumbprints = client_certificate_thumbprints + self.cluster_code_version = cluster_code_version + self.event_store_service_enabled = event_store_service_enabled + self.fabric_settings = fabric_settings + self.node_types = node_types + self.reliability_level = reliability_level + self.reverse_proxy_certificate = reverse_proxy_certificate + self.upgrade_description = upgrade_description + self.upgrade_mode = upgrade_mode + self.tags = tags + + +class ClusterUpgradeDeltaHealthPolicy(Model): + """Describes the delta health policies for the cluster upgrade. + + All required parameters must be populated in order to send to Azure. + + :param max_percent_delta_unhealthy_nodes: Required. The maximum allowed + percentage of nodes health degradation allowed during cluster upgrades. + The delta is measured between the state of the nodes at the beginning of + upgrade and the state of the nodes at the time of the health evaluation. + The check is performed after every upgrade domain upgrade completion to + make sure the global state of the cluster is within tolerated limits. + :type max_percent_delta_unhealthy_nodes: int + :param max_percent_upgrade_domain_delta_unhealthy_nodes: Required. The + maximum allowed percentage of upgrade domain nodes health degradation + allowed during cluster upgrades. + The delta is measured between the state of the upgrade domain nodes at the + beginning of upgrade and the state of the upgrade domain nodes at the time + of the health evaluation. + The check is performed after every upgrade domain upgrade completion for + all completed upgrade domains to make sure the state of the upgrade + domains is within tolerated limits. + :type max_percent_upgrade_domain_delta_unhealthy_nodes: int + :param max_percent_delta_unhealthy_applications: Required. The maximum + allowed percentage of applications health degradation allowed during + cluster upgrades. + The delta is measured between the state of the applications at the + beginning of upgrade and the state of the applications at the time of the + health evaluation. + The check is performed after every upgrade domain upgrade completion to + make sure the global state of the cluster is within tolerated limits. + System services are not included in this. + :type max_percent_delta_unhealthy_applications: int + :param application_delta_health_policies: Defines the application delta + health policy map used to evaluate the health of an application or one of + its child entities when upgrading the cluster. + :type application_delta_health_policies: dict[str, + ~azure.mgmt.servicefabric.models.ApplicationDeltaHealthPolicy] + """ + + _validation = { + 'max_percent_delta_unhealthy_nodes': {'required': True, 'maximum': 100, 'minimum': 0}, + 'max_percent_upgrade_domain_delta_unhealthy_nodes': {'required': True, 'maximum': 100, 'minimum': 0}, + 'max_percent_delta_unhealthy_applications': {'required': True, 'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_delta_unhealthy_nodes': {'key': 'maxPercentDeltaUnhealthyNodes', 'type': 'int'}, + 'max_percent_upgrade_domain_delta_unhealthy_nodes': {'key': 'maxPercentUpgradeDomainDeltaUnhealthyNodes', 'type': 'int'}, + 'max_percent_delta_unhealthy_applications': {'key': 'maxPercentDeltaUnhealthyApplications', 'type': 'int'}, + 'application_delta_health_policies': {'key': 'applicationDeltaHealthPolicies', 'type': '{ApplicationDeltaHealthPolicy}'}, + } + + def __init__(self, *, max_percent_delta_unhealthy_nodes: int, max_percent_upgrade_domain_delta_unhealthy_nodes: int, max_percent_delta_unhealthy_applications: int, application_delta_health_policies=None, **kwargs) -> None: + super(ClusterUpgradeDeltaHealthPolicy, self).__init__(**kwargs) + self.max_percent_delta_unhealthy_nodes = max_percent_delta_unhealthy_nodes + self.max_percent_upgrade_domain_delta_unhealthy_nodes = max_percent_upgrade_domain_delta_unhealthy_nodes + self.max_percent_delta_unhealthy_applications = max_percent_delta_unhealthy_applications + self.application_delta_health_policies = application_delta_health_policies + + +class ClusterUpgradePolicy(Model): + """Describes the policy used when upgrading the cluster. + + All required parameters must be populated in order to send to Azure. + + :param force_restart: If true, then processes are forcefully restarted + during upgrade even when the code version has not changed (the upgrade + only changes configuration or data). + :type force_restart: bool + :param upgrade_replica_set_check_timeout: Required. The maximum amount of + time to block processing of an upgrade domain and prevent loss of + availability when there are unexpected issues. When this timeout expires, + processing of the upgrade domain will proceed regardless of availability + loss issues. The timeout is reset at the start of each upgrade domain. The + timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. + :type upgrade_replica_set_check_timeout: str + :param health_check_wait_duration: Required. The length of time to wait + after completing an upgrade domain before performing health checks. The + duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. + :type health_check_wait_duration: str + :param health_check_stable_duration: Required. The amount of time that the + application or cluster must remain healthy before the upgrade proceeds to + the next upgrade domain. The duration can be in either hh:mm:ss or in + d.hh:mm:ss.ms format. + :type health_check_stable_duration: str + :param health_check_retry_timeout: Required. The amount of time to retry + health evaluation when the application or cluster is unhealthy before the + upgrade rolls back. The timeout can be in either hh:mm:ss or in + d.hh:mm:ss.ms format. + :type health_check_retry_timeout: str + :param upgrade_timeout: Required. The amount of time the overall upgrade + has to complete before the upgrade rolls back. The timeout can be in + either hh:mm:ss or in d.hh:mm:ss.ms format. + :type upgrade_timeout: str + :param upgrade_domain_timeout: Required. The amount of time each upgrade + domain has to complete before the upgrade rolls back. The timeout can be + in either hh:mm:ss or in d.hh:mm:ss.ms format. + :type upgrade_domain_timeout: str + :param health_policy: Required. The cluster health policy used when + upgrading the cluster. + :type health_policy: ~azure.mgmt.servicefabric.models.ClusterHealthPolicy + :param delta_health_policy: The cluster delta health policy used when + upgrading the cluster. + :type delta_health_policy: + ~azure.mgmt.servicefabric.models.ClusterUpgradeDeltaHealthPolicy + """ + + _validation = { + 'upgrade_replica_set_check_timeout': {'required': True}, + 'health_check_wait_duration': {'required': True}, + 'health_check_stable_duration': {'required': True}, + 'health_check_retry_timeout': {'required': True}, + 'upgrade_timeout': {'required': True}, + 'upgrade_domain_timeout': {'required': True}, + 'health_policy': {'required': True}, + } + + _attribute_map = { + 'force_restart': {'key': 'forceRestart', 'type': 'bool'}, + 'upgrade_replica_set_check_timeout': {'key': 'upgradeReplicaSetCheckTimeout', 'type': 'str'}, + 'health_check_wait_duration': {'key': 'healthCheckWaitDuration', 'type': 'str'}, + 'health_check_stable_duration': {'key': 'healthCheckStableDuration', 'type': 'str'}, + 'health_check_retry_timeout': {'key': 'healthCheckRetryTimeout', 'type': 'str'}, + 'upgrade_timeout': {'key': 'upgradeTimeout', 'type': 'str'}, + 'upgrade_domain_timeout': {'key': 'upgradeDomainTimeout', 'type': 'str'}, + 'health_policy': {'key': 'healthPolicy', 'type': 'ClusterHealthPolicy'}, + 'delta_health_policy': {'key': 'deltaHealthPolicy', 'type': 'ClusterUpgradeDeltaHealthPolicy'}, + } + + def __init__(self, *, upgrade_replica_set_check_timeout: str, health_check_wait_duration: str, health_check_stable_duration: str, health_check_retry_timeout: str, upgrade_timeout: str, upgrade_domain_timeout: str, health_policy, force_restart: bool=None, delta_health_policy=None, **kwargs) -> None: + super(ClusterUpgradePolicy, self).__init__(**kwargs) + self.force_restart = force_restart + self.upgrade_replica_set_check_timeout = upgrade_replica_set_check_timeout + self.health_check_wait_duration = health_check_wait_duration + self.health_check_stable_duration = health_check_stable_duration + self.health_check_retry_timeout = health_check_retry_timeout + self.upgrade_timeout = upgrade_timeout + self.upgrade_domain_timeout = upgrade_domain_timeout + self.health_policy = health_policy + self.delta_health_policy = delta_health_policy + + +class ClusterVersionDetails(Model): + """The detail of the Service Fabric runtime version result. + + :param code_version: The Service Fabric runtime version of the cluster. + :type code_version: str + :param support_expiry_utc: The date of expiry of support of the version. + :type support_expiry_utc: str + :param environment: Indicates if this version is for Windows or Linux + operating system. Possible values include: 'Windows', 'Linux' + :type environment: str or ~azure.mgmt.servicefabric.models.enum + """ + + _attribute_map = { + 'code_version': {'key': 'codeVersion', 'type': 'str'}, + 'support_expiry_utc': {'key': 'supportExpiryUtc', 'type': 'str'}, + 'environment': {'key': 'environment', 'type': 'str'}, + } + + def __init__(self, *, code_version: str=None, support_expiry_utc: str=None, environment=None, **kwargs) -> None: + super(ClusterVersionDetails, self).__init__(**kwargs) + self.code_version = code_version + self.support_expiry_utc = support_expiry_utc + self.environment = environment + + +class DiagnosticsStorageAccountConfig(Model): + """The storage account information for storing Service Fabric diagnostic logs. + + All required parameters must be populated in order to send to Azure. + + :param storage_account_name: Required. The Azure storage account name. + :type storage_account_name: str + :param protected_account_key_name: Required. The protected diagnostics + storage key name. + :type protected_account_key_name: str + :param blob_endpoint: Required. The blob endpoint of the azure storage + account. + :type blob_endpoint: str + :param queue_endpoint: Required. The queue endpoint of the azure storage + account. + :type queue_endpoint: str + :param table_endpoint: Required. The table endpoint of the azure storage + account. + :type table_endpoint: str + """ + + _validation = { + 'storage_account_name': {'required': True}, + 'protected_account_key_name': {'required': True}, + 'blob_endpoint': {'required': True}, + 'queue_endpoint': {'required': True}, + 'table_endpoint': {'required': True}, + } + + _attribute_map = { + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'protected_account_key_name': {'key': 'protectedAccountKeyName', 'type': 'str'}, + 'blob_endpoint': {'key': 'blobEndpoint', 'type': 'str'}, + 'queue_endpoint': {'key': 'queueEndpoint', 'type': 'str'}, + 'table_endpoint': {'key': 'tableEndpoint', 'type': 'str'}, + } + + def __init__(self, *, storage_account_name: str, protected_account_key_name: str, blob_endpoint: str, queue_endpoint: str, table_endpoint: str, **kwargs) -> None: + super(DiagnosticsStorageAccountConfig, self).__init__(**kwargs) + self.storage_account_name = storage_account_name + self.protected_account_key_name = protected_account_key_name + self.blob_endpoint = blob_endpoint + self.queue_endpoint = queue_endpoint + self.table_endpoint = table_endpoint + + +class EndpointRangeDescription(Model): + """Port range details. + + All required parameters must be populated in order to send to Azure. + + :param start_port: Required. Starting port of a range of ports + :type start_port: int + :param end_port: Required. End port of a range of ports + :type end_port: int + """ + + _validation = { + 'start_port': {'required': True}, + 'end_port': {'required': True}, + } + + _attribute_map = { + 'start_port': {'key': 'startPort', 'type': 'int'}, + 'end_port': {'key': 'endPort', 'type': 'int'}, + } + + def __init__(self, *, start_port: int, end_port: int, **kwargs) -> None: + super(EndpointRangeDescription, self).__init__(**kwargs) + self.start_port = start_port + self.end_port = end_port + + +class ErrorModel(Model): + """The structure of the error. + + :param error: The error details. + :type error: ~azure.mgmt.servicefabric.models.ErrorModelError + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorModelError'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(ErrorModel, self).__init__(**kwargs) + self.error = error + + +class ErrorModelException(HttpOperationError): + """Server responsed with exception of type: 'ErrorModel'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorModelException, self).__init__(deserialize, response, 'ErrorModel', *args) + + +class ErrorModelError(Model): + """The error details. + + :param code: The error code. + :type code: str + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + super(ErrorModelError, self).__init__(**kwargs) + self.code = code + self.message = message + + +class PartitionSchemeDescription(Model): + """Describes how the service is partitioned. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: NamedPartitionSchemeDescription, + SingletonPartitionSchemeDescription, + UniformInt64RangePartitionSchemeDescription + + All required parameters must be populated in order to send to Azure. + + :param partition_scheme: Required. Constant filled by server. + :type partition_scheme: str + """ + + _validation = { + 'partition_scheme': {'required': True}, + } + + _attribute_map = { + 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, + } + + _subtype_map = { + 'partition_scheme': {'Named': 'NamedPartitionSchemeDescription', 'Singleton': 'SingletonPartitionSchemeDescription', 'UniformInt64Range': 'UniformInt64RangePartitionSchemeDescription'} + } + + def __init__(self, **kwargs) -> None: + super(PartitionSchemeDescription, self).__init__(**kwargs) + self.partition_scheme = None + + +class NamedPartitionSchemeDescription(PartitionSchemeDescription): + """Describes the named partition scheme of the service. + + All required parameters must be populated in order to send to Azure. + + :param partition_scheme: Required. Constant filled by server. + :type partition_scheme: str + :param count: Required. The number of partitions. + :type count: int + :param names: Required. Array of size specified by the ‘Count’ parameter, + for the names of the partitions. + :type names: list[str] + """ + + _validation = { + 'partition_scheme': {'required': True}, + 'count': {'required': True}, + 'names': {'required': True}, + } + + _attribute_map = { + 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, + 'count': {'key': 'Count', 'type': 'int'}, + 'names': {'key': 'Names', 'type': '[str]'}, + } + + def __init__(self, *, count: int, names, **kwargs) -> None: + super(NamedPartitionSchemeDescription, self).__init__(**kwargs) + self.count = count + self.names = names + self.partition_scheme = 'Named' + + +class NodeTypeDescription(Model): + """Describes a node type in the cluster, each node type represents sub set of + nodes in the cluster. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the node type. + :type name: str + :param placement_properties: The placement tags applied to nodes in the + node type, which can be used to indicate where certain services (workload) + should run. + :type placement_properties: dict[str, str] + :param capacities: The capacity tags applied to the nodes in the node + type, the cluster resource manager uses these tags to understand how much + resource a node has. + :type capacities: dict[str, str] + :param client_connection_endpoint_port: Required. The TCP cluster + management endpoint port. + :type client_connection_endpoint_port: int + :param http_gateway_endpoint_port: Required. The HTTP cluster management + endpoint port. + :type http_gateway_endpoint_port: int + :param durability_level: The durability level of the node type. Learn + about + [DurabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). + - Bronze - No privileges. This is the default. + - Silver - The infrastructure jobs can be paused for a duration of 10 + minutes per UD. + - Gold - The infrastructure jobs can be paused for a duration of 2 hours + per UD. Gold durability can be enabled only on full node VM skus like + D15_V2, G5 etc. + . Possible values include: 'Bronze', 'Silver', 'Gold' + :type durability_level: str or ~azure.mgmt.servicefabric.models.enum + :param application_ports: The range of ports from which cluster assigned + port to Service Fabric applications. + :type application_ports: + ~azure.mgmt.servicefabric.models.EndpointRangeDescription + :param ephemeral_ports: The range of ephemeral ports that nodes in this + node type should be configured with. + :type ephemeral_ports: + ~azure.mgmt.servicefabric.models.EndpointRangeDescription + :param is_primary: Required. The node type on which system services will + run. Only one node type should be marked as primary. Primary node type + cannot be deleted or changed for existing clusters. + :type is_primary: bool + :param vm_instance_count: Required. The number of nodes in the node type. + This count should match the capacity property in the corresponding + VirtualMachineScaleSet resource. + :type vm_instance_count: int + :param reverse_proxy_endpoint_port: The endpoint used by reverse proxy. + :type reverse_proxy_endpoint_port: int + """ + + _validation = { + 'name': {'required': True}, + 'client_connection_endpoint_port': {'required': True}, + 'http_gateway_endpoint_port': {'required': True}, + 'is_primary': {'required': True}, + 'vm_instance_count': {'required': True, 'maximum': 2147483647, 'minimum': 1}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'placement_properties': {'key': 'placementProperties', 'type': '{str}'}, + 'capacities': {'key': 'capacities', 'type': '{str}'}, + 'client_connection_endpoint_port': {'key': 'clientConnectionEndpointPort', 'type': 'int'}, + 'http_gateway_endpoint_port': {'key': 'httpGatewayEndpointPort', 'type': 'int'}, + 'durability_level': {'key': 'durabilityLevel', 'type': 'str'}, + 'application_ports': {'key': 'applicationPorts', 'type': 'EndpointRangeDescription'}, + 'ephemeral_ports': {'key': 'ephemeralPorts', 'type': 'EndpointRangeDescription'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'vm_instance_count': {'key': 'vmInstanceCount', 'type': 'int'}, + 'reverse_proxy_endpoint_port': {'key': 'reverseProxyEndpointPort', 'type': 'int'}, + } + + def __init__(self, *, name: str, client_connection_endpoint_port: int, http_gateway_endpoint_port: int, is_primary: bool, vm_instance_count: int, placement_properties=None, capacities=None, durability_level=None, application_ports=None, ephemeral_ports=None, reverse_proxy_endpoint_port: int=None, **kwargs) -> None: + super(NodeTypeDescription, self).__init__(**kwargs) + self.name = name + self.placement_properties = placement_properties + self.capacities = capacities + self.client_connection_endpoint_port = client_connection_endpoint_port + self.http_gateway_endpoint_port = http_gateway_endpoint_port + self.durability_level = durability_level + self.application_ports = application_ports + self.ephemeral_ports = ephemeral_ports + self.is_primary = is_primary + self.vm_instance_count = vm_instance_count + self.reverse_proxy_endpoint_port = reverse_proxy_endpoint_port + + +class OperationResult(Model): + """Available operation list result. + + :param name: The name of the operation. + :type name: str + :param display: The object that represents the operation. + :type display: ~azure.mgmt.servicefabric.models.AvailableOperationDisplay + :param origin: Origin result + :type origin: str + :param next_link: The URL to use for getting the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'AvailableOperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, next_link: str=None, **kwargs) -> None: + super(OperationResult, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.next_link = next_link + + +class ServerCertificateCommonName(Model): + """Describes the server certificate details using common name. + + All required parameters must be populated in order to send to Azure. + + :param certificate_common_name: Required. The common name of the server + certificate. + :type certificate_common_name: str + :param certificate_issuer_thumbprint: Required. The issuer thumbprint of + the server certificate. + :type certificate_issuer_thumbprint: str + """ + + _validation = { + 'certificate_common_name': {'required': True}, + 'certificate_issuer_thumbprint': {'required': True}, + } + + _attribute_map = { + 'certificate_common_name': {'key': 'certificateCommonName', 'type': 'str'}, + 'certificate_issuer_thumbprint': {'key': 'certificateIssuerThumbprint', 'type': 'str'}, + } + + def __init__(self, *, certificate_common_name: str, certificate_issuer_thumbprint: str, **kwargs) -> None: + super(ServerCertificateCommonName, self).__init__(**kwargs) + self.certificate_common_name = certificate_common_name + self.certificate_issuer_thumbprint = certificate_issuer_thumbprint + + +class ServerCertificateCommonNames(Model): + """Describes a list of server certificates referenced by common name that are + used to secure the cluster. + + :param common_names: The list of server certificates referenced by common + name that are used to secure the cluster. + :type common_names: + list[~azure.mgmt.servicefabric.models.ServerCertificateCommonName] + :param x509_store_name: The local certificate store location. Possible + values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', + 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' + :type x509_store_name: str or ~azure.mgmt.servicefabric.models.enum + """ + + _attribute_map = { + 'common_names': {'key': 'commonNames', 'type': '[ServerCertificateCommonName]'}, + 'x509_store_name': {'key': 'x509StoreName', 'type': 'str'}, + } + + def __init__(self, *, common_names=None, x509_store_name=None, **kwargs) -> None: + super(ServerCertificateCommonNames, self).__init__(**kwargs) + self.common_names = common_names + self.x509_store_name = x509_store_name + + +class ServiceCorrelationDescription(Model): + """Creates a particular correlation between services. + + All required parameters must be populated in order to send to Azure. + + :param scheme: Required. The ServiceCorrelationScheme which describes the + relationship between this service and the service specified via + ServiceName. Possible values include: 'Invalid', 'Affinity', + 'AlignedAffinity', 'NonAlignedAffinity' + :type scheme: str or + ~azure.mgmt.servicefabric.models.ServiceCorrelationScheme + :param service_name: Required. The name of the service that the + correlation relationship is established with. + :type service_name: str + """ + + _validation = { + 'scheme': {'required': True}, + 'service_name': {'required': True}, + } + + _attribute_map = { + 'scheme': {'key': 'scheme', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + } + + def __init__(self, *, scheme, service_name: str, **kwargs) -> None: + super(ServiceCorrelationDescription, self).__init__(**kwargs) + self.scheme = scheme + self.service_name = service_name + + +class ServiceLoadMetricDescription(Model): + """Specifies a metric to load balance a service during runtime. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the metric. If the service chooses to + report load during runtime, the load metric name should match the name + that is specified in Name exactly. Note that metric names are case + sensitive. + :type name: str + :param weight: The service load metric relative weight, compared to other + metrics configured for this service, as a number. Possible values include: + 'Zero', 'Low', 'Medium', 'High' + :type weight: str or + ~azure.mgmt.servicefabric.models.ServiceLoadMetricWeight + :param primary_default_load: Used only for Stateful services. The default + amount of load, as a number, that this service creates for this metric + when it is a Primary replica. + :type primary_default_load: int + :param secondary_default_load: Used only for Stateful services. The + default amount of load, as a number, that this service creates for this + metric when it is a Secondary replica. + :type secondary_default_load: int + :param default_load: Used only for Stateless services. The default amount + of load, as a number, that this service creates for this metric. + :type default_load: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'weight': {'key': 'weight', 'type': 'str'}, + 'primary_default_load': {'key': 'primaryDefaultLoad', 'type': 'int'}, + 'secondary_default_load': {'key': 'secondaryDefaultLoad', 'type': 'int'}, + 'default_load': {'key': 'defaultLoad', 'type': 'int'}, + } + + def __init__(self, *, name: str, weight=None, primary_default_load: int=None, secondary_default_load: int=None, default_load: int=None, **kwargs) -> None: + super(ServiceLoadMetricDescription, self).__init__(**kwargs) + self.name = name + self.weight = weight + self.primary_default_load = primary_default_load + self.secondary_default_load = secondary_default_load + self.default_load = default_load + + +class ServicePlacementPolicyDescription(Model): + """Describes the policy to be used for placement of a Service Fabric service. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Constant filled by server. + :type type: str + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'Type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ServicePlacementPolicyDescription, self).__init__(**kwargs) + self.type = None + + +class ServiceResource(ProxyResource): + """The service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param service_type_name: The name of the service type + :type service_type_name: str + :param partition_description: Describes how the service is partitioned. + :type partition_description: + ~azure.mgmt.servicefabric.models.PartitionSchemeDescription + :param service_package_activation_mode: The activation Mode of the service + package. Possible values include: 'SharedProcess', 'ExclusiveProcess' + :type service_package_activation_mode: str or + ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'placement_constraints': {'key': 'properties.placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'properties.correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'properties.serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'properties.servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'properties.defaultMoveCost', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'service_type_name': {'key': 'properties.serviceTypeName', 'type': 'str'}, + 'partition_description': {'key': 'properties.partitionDescription', 'type': 'PartitionSchemeDescription'}, + 'service_package_activation_mode': {'key': 'properties.servicePackageActivationMode', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, service_type_name: str=None, partition_description=None, service_package_activation_mode=None, **kwargs) -> None: + super(ServiceResource, self).__init__(location=location, tags=tags, **kwargs) + self.placement_constraints = placement_constraints + self.correlation_scheme = correlation_scheme + self.service_load_metrics = service_load_metrics + self.service_placement_policies = service_placement_policies + self.default_move_cost = default_move_cost + self.provisioning_state = None + self.service_type_name = service_type_name + self.partition_description = partition_description + self.service_package_activation_mode = service_package_activation_mode + + +class ServiceResourceList(Model): + """The list of service resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: + :type value: list[~azure.mgmt.servicefabric.models.ServiceResource] + :ivar next_link: URL to get the next set of service list results if there + are any. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServiceResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ServiceResourceList, self).__init__(**kwargs) + self.value = value + self.next_link = None + + +class ServiceResourcePropertiesBase(Model): + """The common service resource properties. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + """ + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + } + + def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, **kwargs) -> None: + super(ServiceResourcePropertiesBase, self).__init__(**kwargs) + self.placement_constraints = placement_constraints + self.correlation_scheme = correlation_scheme + self.service_load_metrics = service_load_metrics + self.service_placement_policies = service_placement_policies + self.default_move_cost = default_move_cost + + +class ServiceResourceProperties(ServiceResourcePropertiesBase): + """The service resource properties. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: StatefulServiceProperties, StatelessServiceProperties + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param service_type_name: The name of the service type + :type service_type_name: str + :param partition_description: Describes how the service is partitioned. + :type partition_description: + ~azure.mgmt.servicefabric.models.PartitionSchemeDescription + :param service_package_activation_mode: The activation Mode of the service + package. Possible values include: 'SharedProcess', 'ExclusiveProcess' + :type service_package_activation_mode: str or + ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode + :param service_kind: Required. Constant filled by server. + :type service_kind: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'service_kind': {'required': True}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, + 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, + 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + } + + _subtype_map = { + 'service_kind': {'Stateful': 'StatefulServiceProperties', 'Stateless': 'StatelessServiceProperties'} + } + + def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, service_type_name: str=None, partition_description=None, service_package_activation_mode=None, **kwargs) -> None: + super(ServiceResourceProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, **kwargs) + self.provisioning_state = None + self.service_type_name = service_type_name + self.partition_description = partition_description + self.service_package_activation_mode = service_package_activation_mode + self.service_kind = None + self.service_kind = 'ServiceResourceProperties' + + +class ServiceResourceUpdate(ProxyResource): + """The service resource for patch operations. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Azure resource identifier. + :vartype id: str + :ivar name: Azure resource name. + :vartype name: str + :ivar type: Azure resource type. + :vartype type: str + :param location: It will be deprecated in New API, resource location + depends on the parent resource. + :type location: str + :param tags: Azure resource tags. + :type tags: dict[str, str] + :ivar etag: Azure resource etag. + :vartype etag: str + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'placement_constraints': {'key': 'properties.placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'properties.correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'properties.serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'properties.servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'properties.defaultMoveCost', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, **kwargs) -> None: + super(ServiceResourceUpdate, self).__init__(location=location, tags=tags, **kwargs) + self.placement_constraints = placement_constraints + self.correlation_scheme = correlation_scheme + self.service_load_metrics = service_load_metrics + self.service_placement_policies = service_placement_policies + self.default_move_cost = default_move_cost + + +class ServiceResourceUpdateProperties(ServiceResourcePropertiesBase): + """The service resource properties for patch operations. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: StatefulServiceUpdateProperties, + StatelessServiceUpdateProperties + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :param service_kind: Required. Constant filled by server. + :type service_kind: str + """ + + _validation = { + 'service_kind': {'required': True}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + } + + _subtype_map = { + 'service_kind': {'Stateful': 'StatefulServiceUpdateProperties', 'Stateless': 'StatelessServiceUpdateProperties'} + } + + def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, **kwargs) -> None: + super(ServiceResourceUpdateProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, **kwargs) + self.service_kind = None + self.service_kind = 'ServiceResourceUpdateProperties' + + +class ServiceTypeDeltaHealthPolicy(Model): + """Represents the delta health policy used to evaluate the health of services + belonging to a service type when upgrading the cluster. + . + + :param max_percent_delta_unhealthy_services: The maximum allowed + percentage of services health degradation allowed during cluster upgrades. + The delta is measured between the state of the services at the beginning + of upgrade and the state of the services at the time of the health + evaluation. + The check is performed after every upgrade domain upgrade completion to + make sure the global state of the cluster is within tolerated limits. + . Default value: 0 . + :type max_percent_delta_unhealthy_services: int + """ + + _validation = { + 'max_percent_delta_unhealthy_services': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_delta_unhealthy_services': {'key': 'maxPercentDeltaUnhealthyServices', 'type': 'int'}, + } + + def __init__(self, *, max_percent_delta_unhealthy_services: int=0, **kwargs) -> None: + super(ServiceTypeDeltaHealthPolicy, self).__init__(**kwargs) + self.max_percent_delta_unhealthy_services = max_percent_delta_unhealthy_services + + +class ServiceTypeHealthPolicy(Model): + """Represents the health policy used to evaluate the health of services + belonging to a service type. + . + + :param max_percent_unhealthy_services: The maximum percentage of services + allowed to be unhealthy before your application is considered in error. + . Default value: 0 . + :type max_percent_unhealthy_services: int + """ + + _validation = { + 'max_percent_unhealthy_services': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_percent_unhealthy_services': {'key': 'maxPercentUnhealthyServices', 'type': 'int'}, + } + + def __init__(self, *, max_percent_unhealthy_services: int=0, **kwargs) -> None: + super(ServiceTypeHealthPolicy, self).__init__(**kwargs) + self.max_percent_unhealthy_services = max_percent_unhealthy_services + + +class SettingsParameterDescription(Model): + """Describes a parameter in fabric settings of the cluster. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name of fabric setting. + :type name: str + :param value: Required. The parameter value of fabric setting. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str, value: str, **kwargs) -> None: + super(SettingsParameterDescription, self).__init__(**kwargs) + self.name = name + self.value = value + + +class SettingsSectionDescription(Model): + """Describes a section in the fabric settings of the cluster. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The section name of the fabric settings. + :type name: str + :param parameters: Required. The collection of parameters in the section. + :type parameters: + list[~azure.mgmt.servicefabric.models.SettingsParameterDescription] + """ + + _validation = { + 'name': {'required': True}, + 'parameters': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': '[SettingsParameterDescription]'}, + } + + def __init__(self, *, name: str, parameters, **kwargs) -> None: + super(SettingsSectionDescription, self).__init__(**kwargs) + self.name = name + self.parameters = parameters + + +class SingletonPartitionSchemeDescription(PartitionSchemeDescription): + """Describes the partition scheme of a singleton-partitioned, or + non-partitioned service. + + All required parameters must be populated in order to send to Azure. + + :param partition_scheme: Required. Constant filled by server. + :type partition_scheme: str + """ + + _validation = { + 'partition_scheme': {'required': True}, + } + + _attribute_map = { + 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(SingletonPartitionSchemeDescription, self).__init__(**kwargs) + self.partition_scheme = 'Singleton' + + +class StatefulServiceProperties(ServiceResourceProperties): + """The properties of a stateful service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param service_type_name: The name of the service type + :type service_type_name: str + :param partition_description: Describes how the service is partitioned. + :type partition_description: + ~azure.mgmt.servicefabric.models.PartitionSchemeDescription + :param service_package_activation_mode: The activation Mode of the service + package. Possible values include: 'SharedProcess', 'ExclusiveProcess' + :type service_package_activation_mode: str or + ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode + :param service_kind: Required. Constant filled by server. + :type service_kind: str + :param has_persisted_state: A flag indicating whether this is a persistent + service which stores states on the local disk. If it is then the value of + this property is true, if not it is false. + :type has_persisted_state: bool + :param target_replica_set_size: The target replica set size as a number. + :type target_replica_set_size: int + :param min_replica_set_size: The minimum replica set size as a number. + :type min_replica_set_size: int + :param replica_restart_wait_duration: The duration between when a replica + goes down and when a new replica is created, represented in ISO 8601 + format (hh:mm:ss.s). + :type replica_restart_wait_duration: datetime + :param quorum_loss_wait_duration: The maximum duration for which a + partition is allowed to be in a state of quorum loss, represented in ISO + 8601 format (hh:mm:ss.s). + :type quorum_loss_wait_duration: datetime + :param stand_by_replica_keep_duration: The definition on how long StandBy + replicas should be maintained before being removed, represented in ISO + 8601 format (hh:mm:ss.s). + :type stand_by_replica_keep_duration: datetime + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'service_kind': {'required': True}, + 'target_replica_set_size': {'minimum': 1}, + 'min_replica_set_size': {'minimum': 1}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, + 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, + 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + 'has_persisted_state': {'key': 'hasPersistedState', 'type': 'bool'}, + 'target_replica_set_size': {'key': 'targetReplicaSetSize', 'type': 'int'}, + 'min_replica_set_size': {'key': 'minReplicaSetSize', 'type': 'int'}, + 'replica_restart_wait_duration': {'key': 'replicaRestartWaitDuration', 'type': 'iso-8601'}, + 'quorum_loss_wait_duration': {'key': 'quorumLossWaitDuration', 'type': 'iso-8601'}, + 'stand_by_replica_keep_duration': {'key': 'standByReplicaKeepDuration', 'type': 'iso-8601'}, + } + + def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, service_type_name: str=None, partition_description=None, service_package_activation_mode=None, has_persisted_state: bool=None, target_replica_set_size: int=None, min_replica_set_size: int=None, replica_restart_wait_duration=None, quorum_loss_wait_duration=None, stand_by_replica_keep_duration=None, **kwargs) -> None: + super(StatefulServiceProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, service_type_name=service_type_name, partition_description=partition_description, service_package_activation_mode=service_package_activation_mode, **kwargs) + self.has_persisted_state = has_persisted_state + self.target_replica_set_size = target_replica_set_size + self.min_replica_set_size = min_replica_set_size + self.replica_restart_wait_duration = replica_restart_wait_duration + self.quorum_loss_wait_duration = quorum_loss_wait_duration + self.stand_by_replica_keep_duration = stand_by_replica_keep_duration + self.service_kind = 'Stateful' + + +class StatefulServiceUpdateProperties(ServiceResourceUpdateProperties): + """The properties of a stateful service resource for patch operations. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :param service_kind: Required. Constant filled by server. + :type service_kind: str + :param target_replica_set_size: The target replica set size as a number. + :type target_replica_set_size: int + :param min_replica_set_size: The minimum replica set size as a number. + :type min_replica_set_size: int + :param replica_restart_wait_duration: The duration between when a replica + goes down and when a new replica is created, represented in ISO 8601 + format (hh:mm:ss.s). + :type replica_restart_wait_duration: datetime + :param quorum_loss_wait_duration: The maximum duration for which a + partition is allowed to be in a state of quorum loss, represented in ISO + 8601 format (hh:mm:ss.s). + :type quorum_loss_wait_duration: datetime + :param stand_by_replica_keep_duration: The definition on how long StandBy + replicas should be maintained before being removed, represented in ISO + 8601 format (hh:mm:ss.s). + :type stand_by_replica_keep_duration: datetime + """ + + _validation = { + 'service_kind': {'required': True}, + 'target_replica_set_size': {'minimum': 1}, + 'min_replica_set_size': {'minimum': 1}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + 'target_replica_set_size': {'key': 'targetReplicaSetSize', 'type': 'int'}, + 'min_replica_set_size': {'key': 'minReplicaSetSize', 'type': 'int'}, + 'replica_restart_wait_duration': {'key': 'replicaRestartWaitDuration', 'type': 'iso-8601'}, + 'quorum_loss_wait_duration': {'key': 'quorumLossWaitDuration', 'type': 'iso-8601'}, + 'stand_by_replica_keep_duration': {'key': 'standByReplicaKeepDuration', 'type': 'iso-8601'}, + } + + def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, target_replica_set_size: int=None, min_replica_set_size: int=None, replica_restart_wait_duration=None, quorum_loss_wait_duration=None, stand_by_replica_keep_duration=None, **kwargs) -> None: + super(StatefulServiceUpdateProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, **kwargs) + self.target_replica_set_size = target_replica_set_size + self.min_replica_set_size = min_replica_set_size + self.replica_restart_wait_duration = replica_restart_wait_duration + self.quorum_loss_wait_duration = quorum_loss_wait_duration + self.stand_by_replica_keep_duration = stand_by_replica_keep_duration + self.service_kind = 'Stateful' + + +class StatelessServiceProperties(ServiceResourceProperties): + """The properties of a stateless service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response + :vartype provisioning_state: str + :param service_type_name: The name of the service type + :type service_type_name: str + :param partition_description: Describes how the service is partitioned. + :type partition_description: + ~azure.mgmt.servicefabric.models.PartitionSchemeDescription + :param service_package_activation_mode: The activation Mode of the service + package. Possible values include: 'SharedProcess', 'ExclusiveProcess' + :type service_package_activation_mode: str or + ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode + :param service_kind: Required. Constant filled by server. + :type service_kind: str + :param instance_count: The instance count. + :type instance_count: int + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'service_kind': {'required': True}, + 'instance_count': {'minimum': -1}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, + 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, + 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + 'instance_count': {'key': 'instanceCount', 'type': 'int'}, + } + + def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, service_type_name: str=None, partition_description=None, service_package_activation_mode=None, instance_count: int=None, **kwargs) -> None: + super(StatelessServiceProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, service_type_name=service_type_name, partition_description=partition_description, service_package_activation_mode=service_package_activation_mode, **kwargs) + self.instance_count = instance_count + self.service_kind = 'Stateless' + + +class StatelessServiceUpdateProperties(ServiceResourceUpdateProperties): + """The properties of a stateless service resource for patch operations. + + All required parameters must be populated in order to send to Azure. + + :param placement_constraints: The placement constraints as a string. + Placement constraints are boolean expressions on node properties and allow + for restricting a service to particular nodes based on the service + requirements. For example, to place a service on nodes where NodeType is + blue specify the following: "NodeColor == blue)". + :type placement_constraints: str + :param correlation_scheme: A list that describes the correlation of the + service with other services. + :type correlation_scheme: + list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] + :param service_load_metrics: The service load metrics is given as an array + of ServiceLoadMetricDescription objects. + :type service_load_metrics: + list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] + :param service_placement_policies: A list that describes the correlation + of the service with other services. + :type service_placement_policies: + list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] + :param default_move_cost: Specifies the move cost for the service. + Possible values include: 'Zero', 'Low', 'Medium', 'High' + :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost + :param service_kind: Required. Constant filled by server. + :type service_kind: str + :param instance_count: The instance count. + :type instance_count: int + """ + + _validation = { + 'service_kind': {'required': True}, + 'instance_count': {'minimum': -1}, + } + + _attribute_map = { + 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, + 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, + 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, + 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, + 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, + 'service_kind': {'key': 'serviceKind', 'type': 'str'}, + 'instance_count': {'key': 'instanceCount', 'type': 'int'}, + } + + def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, instance_count: int=None, **kwargs) -> None: + super(StatelessServiceUpdateProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, **kwargs) + self.instance_count = instance_count + self.service_kind = 'Stateless' + + +class UniformInt64RangePartitionSchemeDescription(PartitionSchemeDescription): + """Describes a partitioning scheme where an integer range is allocated evenly + across a number of partitions. + + All required parameters must be populated in order to send to Azure. + + :param partition_scheme: Required. Constant filled by server. + :type partition_scheme: str + :param count: Required. The number of partitions. + :type count: int + :param low_key: Required. String indicating the lower bound of the + partition key range that + should be split between the partition ‘Count’ + :type low_key: str + :param high_key: Required. String indicating the upper bound of the + partition key range that + should be split between the partition ‘Count’ + :type high_key: str + """ + + _validation = { + 'partition_scheme': {'required': True}, + 'count': {'required': True}, + 'low_key': {'required': True}, + 'high_key': {'required': True}, + } + + _attribute_map = { + 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, + 'count': {'key': 'Count', 'type': 'int'}, + 'low_key': {'key': 'LowKey', 'type': 'str'}, + 'high_key': {'key': 'HighKey', 'type': 'str'}, + } + + def __init__(self, *, count: int, low_key: str, high_key: str, **kwargs) -> None: + super(UniformInt64RangePartitionSchemeDescription, self).__init__(**kwargs) + self.count = count + self.low_key = low_key + self.high_key = high_key + self.partition_scheme = 'UniformInt64Range' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/operation_result_paged.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_paged_models.py similarity index 100% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/operation_result_paged.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_paged_models.py diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_fabric_management_client_enums.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_service_fabric_management_client_enums.py similarity index 100% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_fabric_management_client_enums.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/_service_fabric_management_client_enums.py diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_delta_health_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_delta_health_policy.py deleted file mode 100644 index 92c0e09692d0..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_delta_health_policy.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_delta_health_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_delta_health_policy_py3.py deleted file mode 100644 index d12178625499..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_delta_health_policy_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_health_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_health_policy.py deleted file mode 100644 index 155d5d325b03..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_health_policy.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 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_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 = { - '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.default_service_type_health_policy = kwargs.get('default_service_type_health_policy', None) - self.service_type_health_policies = kwargs.get('service_type_health_policies', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_health_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_health_policy_py3.py deleted file mode 100644 index 6f2fd6a2411c..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_health_policy_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 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_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 = { - 'default_service_type_health_policy': {'key': 'defaultServiceTypeHealthPolicy', 'type': 'ServiceTypeHealthPolicy'}, - 'service_type_health_policies': {'key': 'serviceTypeHealthPolicies', 'type': '{ServiceTypeHealthPolicy}'}, - } - - def __init__(self, *, default_service_type_health_policy=None, service_type_health_policies=None, **kwargs) -> None: - super(ApplicationHealthPolicy, self).__init__(**kwargs) - self.default_service_type_health_policy = default_service_type_health_policy - self.service_type_health_policies = service_type_health_policies diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_metric_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_metric_description.py deleted file mode 100644 index 55a7dcb9cb1b..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_metric_description.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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, **kwargs): - super(ApplicationMetricDescription, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.maximum_capacity = kwargs.get('maximum_capacity', None) - self.reservation_capacity = kwargs.get('reservation_capacity', None) - self.total_application_capacity = kwargs.get('total_application_capacity', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_metric_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_metric_description_py3.py deleted file mode 100644 index 5ef7898ba703..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_metric_description_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# 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: str=None, maximum_capacity: int=None, reservation_capacity: int=None, total_application_capacity: int=None, **kwargs) -> None: - super(ApplicationMetricDescription, self).__init__(**kwargs) - self.name = name - self.maximum_capacity = maximum_capacity - self.reservation_capacity = reservation_capacity - self.total_application_capacity = total_application_capacity diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource.py deleted file mode 100644 index 717f9d041259..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class ApplicationResource(ProxyResource): - """The application resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param type_version: The version of the application type as defined in the - application manifest. - :type type_version: str - :param parameters: List of application parameters with overridden values - from their default values specified in the application manifest. - :type parameters: dict[str, str] - :param upgrade_policy: Describes the policy for a monitored application - upgrade. - :type upgrade_policy: - ~azure.mgmt.servicefabric.models.ApplicationUpgradePolicy - :param minimum_nodes: The minimum number of nodes where Service Fabric - will reserve capacity for this application. Note that this does not mean - that the services of this application will be placed on all of those - nodes. If this property is set to zero, no capacity will be reserved. The - value of this property cannot be more than the value of the MaximumNodes - property. - :type minimum_nodes: long - :param maximum_nodes: The maximum number of nodes where Service Fabric - will reserve capacity for this application. Note that this does not mean - that the services of this application will be placed on all of those - nodes. By default, the value of this property is zero and it means that - the services can be placed on any node. Default value: 0 . - :type maximum_nodes: long - :param remove_application_capacity: Remove the current application - capacity settings. - :type remove_application_capacity: bool - :param metrics: List of application capacity metric description. - :type metrics: - list[~azure.mgmt.servicefabric.models.ApplicationMetricDescription] - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param type_name: The application type name as defined in the application - manifest. - :type type_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'minimum_nodes': {'minimum': 0}, - 'maximum_nodes': {'minimum': 0}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'type_version': {'key': 'properties.typeVersion', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': '{str}'}, - 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'ApplicationUpgradePolicy'}, - 'minimum_nodes': {'key': 'properties.minimumNodes', 'type': 'long'}, - 'maximum_nodes': {'key': 'properties.maximumNodes', 'type': 'long'}, - 'remove_application_capacity': {'key': 'properties.removeApplicationCapacity', 'type': 'bool'}, - 'metrics': {'key': 'properties.metrics', 'type': '[ApplicationMetricDescription]'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'type_name': {'key': 'properties.typeName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ApplicationResource, self).__init__(**kwargs) - self.type_version = kwargs.get('type_version', None) - self.parameters = kwargs.get('parameters', None) - self.upgrade_policy = kwargs.get('upgrade_policy', None) - self.minimum_nodes = kwargs.get('minimum_nodes', None) - self.maximum_nodes = kwargs.get('maximum_nodes', 0) - self.remove_application_capacity = kwargs.get('remove_application_capacity', None) - self.metrics = kwargs.get('metrics', None) - self.provisioning_state = None - self.type_name = kwargs.get('type_name', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_list.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_list.py deleted file mode 100644 index 6bce9a2e85e6..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ApplicationResourceList(Model): - """The list of application resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: - :type value: list[~azure.mgmt.servicefabric.models.ApplicationResource] - :ivar next_link: URL to get the next set of application list results if - there are any. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ApplicationResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ApplicationResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_list_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_list_py3.py deleted file mode 100644 index 61cb59fcf08c..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_list_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ApplicationResourceList(Model): - """The list of application resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: - :type value: list[~azure.mgmt.servicefabric.models.ApplicationResource] - :ivar next_link: URL to get the next set of application list results if - there are any. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ApplicationResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ApplicationResourceList, self).__init__(**kwargs) - self.value = value - self.next_link = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_py3.py deleted file mode 100644 index a89325ad256e..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_py3.py +++ /dev/null @@ -1,108 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class ApplicationResource(ProxyResource): - """The application resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param type_version: The version of the application type as defined in the - application manifest. - :type type_version: str - :param parameters: List of application parameters with overridden values - from their default values specified in the application manifest. - :type parameters: dict[str, str] - :param upgrade_policy: Describes the policy for a monitored application - upgrade. - :type upgrade_policy: - ~azure.mgmt.servicefabric.models.ApplicationUpgradePolicy - :param minimum_nodes: The minimum number of nodes where Service Fabric - will reserve capacity for this application. Note that this does not mean - that the services of this application will be placed on all of those - nodes. If this property is set to zero, no capacity will be reserved. The - value of this property cannot be more than the value of the MaximumNodes - property. - :type minimum_nodes: long - :param maximum_nodes: The maximum number of nodes where Service Fabric - will reserve capacity for this application. Note that this does not mean - that the services of this application will be placed on all of those - nodes. By default, the value of this property is zero and it means that - the services can be placed on any node. Default value: 0 . - :type maximum_nodes: long - :param remove_application_capacity: Remove the current application - capacity settings. - :type remove_application_capacity: bool - :param metrics: List of application capacity metric description. - :type metrics: - list[~azure.mgmt.servicefabric.models.ApplicationMetricDescription] - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param type_name: The application type name as defined in the application - manifest. - :type type_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'minimum_nodes': {'minimum': 0}, - 'maximum_nodes': {'minimum': 0}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'type_version': {'key': 'properties.typeVersion', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': '{str}'}, - 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'ApplicationUpgradePolicy'}, - 'minimum_nodes': {'key': 'properties.minimumNodes', 'type': 'long'}, - 'maximum_nodes': {'key': 'properties.maximumNodes', 'type': 'long'}, - 'remove_application_capacity': {'key': 'properties.removeApplicationCapacity', 'type': 'bool'}, - 'metrics': {'key': 'properties.metrics', 'type': '[ApplicationMetricDescription]'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'type_name': {'key': 'properties.typeName', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, type_version: str=None, parameters=None, upgrade_policy=None, minimum_nodes: int=None, maximum_nodes: int=0, remove_application_capacity: bool=None, metrics=None, type_name: str=None, **kwargs) -> None: - super(ApplicationResource, self).__init__(location=location, tags=tags, **kwargs) - self.type_version = type_version - self.parameters = parameters - self.upgrade_policy = upgrade_policy - self.minimum_nodes = minimum_nodes - self.maximum_nodes = maximum_nodes - self.remove_application_capacity = remove_application_capacity - self.metrics = metrics - self.provisioning_state = None - self.type_name = type_name diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_update.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_update.py deleted file mode 100644 index 65c5956e192e..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_update.py +++ /dev/null @@ -1,97 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class ApplicationResourceUpdate(ProxyResource): - """The application resource for patch operations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param type_version: The version of the application type as defined in the - application manifest. - :type type_version: str - :param parameters: List of application parameters with overridden values - from their default values specified in the application manifest. - :type parameters: dict[str, str] - :param upgrade_policy: Describes the policy for a monitored application - upgrade. - :type upgrade_policy: - ~azure.mgmt.servicefabric.models.ApplicationUpgradePolicy - :param minimum_nodes: The minimum number of nodes where Service Fabric - will reserve capacity for this application. Note that this does not mean - that the services of this application will be placed on all of those - nodes. If this property is set to zero, no capacity will be reserved. The - value of this property cannot be more than the value of the MaximumNodes - property. - :type minimum_nodes: long - :param maximum_nodes: The maximum number of nodes where Service Fabric - will reserve capacity for this application. Note that this does not mean - that the services of this application will be placed on all of those - nodes. By default, the value of this property is zero and it means that - the services can be placed on any node. Default value: 0 . - :type maximum_nodes: long - :param remove_application_capacity: Remove the current application - capacity settings. - :type remove_application_capacity: bool - :param metrics: List of application capacity metric description. - :type metrics: - list[~azure.mgmt.servicefabric.models.ApplicationMetricDescription] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'minimum_nodes': {'minimum': 0}, - 'maximum_nodes': {'minimum': 0}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'type_version': {'key': 'properties.typeVersion', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': '{str}'}, - 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'ApplicationUpgradePolicy'}, - 'minimum_nodes': {'key': 'properties.minimumNodes', 'type': 'long'}, - 'maximum_nodes': {'key': 'properties.maximumNodes', 'type': 'long'}, - 'remove_application_capacity': {'key': 'properties.removeApplicationCapacity', 'type': 'bool'}, - 'metrics': {'key': 'properties.metrics', 'type': '[ApplicationMetricDescription]'}, - } - - def __init__(self, **kwargs): - super(ApplicationResourceUpdate, self).__init__(**kwargs) - self.type_version = kwargs.get('type_version', None) - self.parameters = kwargs.get('parameters', None) - self.upgrade_policy = kwargs.get('upgrade_policy', None) - self.minimum_nodes = kwargs.get('minimum_nodes', None) - self.maximum_nodes = kwargs.get('maximum_nodes', 0) - self.remove_application_capacity = kwargs.get('remove_application_capacity', None) - self.metrics = kwargs.get('metrics', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_update_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_update_py3.py deleted file mode 100644 index b0c5d872ae67..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_resource_update_py3.py +++ /dev/null @@ -1,97 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class ApplicationResourceUpdate(ProxyResource): - """The application resource for patch operations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param type_version: The version of the application type as defined in the - application manifest. - :type type_version: str - :param parameters: List of application parameters with overridden values - from their default values specified in the application manifest. - :type parameters: dict[str, str] - :param upgrade_policy: Describes the policy for a monitored application - upgrade. - :type upgrade_policy: - ~azure.mgmt.servicefabric.models.ApplicationUpgradePolicy - :param minimum_nodes: The minimum number of nodes where Service Fabric - will reserve capacity for this application. Note that this does not mean - that the services of this application will be placed on all of those - nodes. If this property is set to zero, no capacity will be reserved. The - value of this property cannot be more than the value of the MaximumNodes - property. - :type minimum_nodes: long - :param maximum_nodes: The maximum number of nodes where Service Fabric - will reserve capacity for this application. Note that this does not mean - that the services of this application will be placed on all of those - nodes. By default, the value of this property is zero and it means that - the services can be placed on any node. Default value: 0 . - :type maximum_nodes: long - :param remove_application_capacity: Remove the current application - capacity settings. - :type remove_application_capacity: bool - :param metrics: List of application capacity metric description. - :type metrics: - list[~azure.mgmt.servicefabric.models.ApplicationMetricDescription] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'minimum_nodes': {'minimum': 0}, - 'maximum_nodes': {'minimum': 0}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'type_version': {'key': 'properties.typeVersion', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': '{str}'}, - 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'ApplicationUpgradePolicy'}, - 'minimum_nodes': {'key': 'properties.minimumNodes', 'type': 'long'}, - 'maximum_nodes': {'key': 'properties.maximumNodes', 'type': 'long'}, - 'remove_application_capacity': {'key': 'properties.removeApplicationCapacity', 'type': 'bool'}, - 'metrics': {'key': 'properties.metrics', 'type': '[ApplicationMetricDescription]'}, - } - - def __init__(self, *, location: str=None, tags=None, type_version: str=None, parameters=None, upgrade_policy=None, minimum_nodes: int=None, maximum_nodes: int=0, remove_application_capacity: bool=None, metrics=None, **kwargs) -> None: - super(ApplicationResourceUpdate, self).__init__(location=location, tags=tags, **kwargs) - self.type_version = type_version - self.parameters = parameters - self.upgrade_policy = upgrade_policy - self.minimum_nodes = minimum_nodes - self.maximum_nodes = maximum_nodes - self.remove_application_capacity = remove_application_capacity - self.metrics = metrics diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource.py deleted file mode 100644 index 67500bec534f..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class ApplicationTypeResource(ProxyResource): - """The application type name resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response. - :vartype provisioning_state: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ApplicationTypeResource, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_list.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_list.py deleted file mode 100644 index dfd7af144079..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_list.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 ApplicationTypeResourceList(Model): - """The list of application type names. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: - :type value: - list[~azure.mgmt.servicefabric.models.ApplicationTypeResource] - :ivar next_link: URL to get the next set of application type list results - if there are any. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ApplicationTypeResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ApplicationTypeResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_list_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_list_py3.py deleted file mode 100644 index 30e7b7eff571..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_list_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 ApplicationTypeResourceList(Model): - """The list of application type names. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: - :type value: - list[~azure.mgmt.servicefabric.models.ApplicationTypeResource] - :ivar next_link: URL to get the next set of application type list results - if there are any. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ApplicationTypeResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ApplicationTypeResourceList, self).__init__(**kwargs) - self.value = value - self.next_link = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_py3.py deleted file mode 100644 index efcec3b14f62..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class ApplicationTypeResource(ProxyResource): - """The application type name resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response. - :vartype provisioning_state: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(ApplicationTypeResource, self).__init__(location=location, tags=tags, **kwargs) - self.provisioning_state = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource.py deleted file mode 100644 index 6fd3bb35b2d0..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class ApplicationTypeVersionResource(ProxyResource): - """An application type version resource for the specified application type - name resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param app_package_url: Required. The URL to the application package - :type app_package_url: str - :ivar default_parameter_list: List of application type parameters that can - be overridden when creating or updating the application. - :vartype default_parameter_list: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'app_package_url': {'required': True}, - 'default_parameter_list': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'app_package_url': {'key': 'properties.appPackageUrl', 'type': 'str'}, - 'default_parameter_list': {'key': 'properties.defaultParameterList', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ApplicationTypeVersionResource, self).__init__(**kwargs) - self.provisioning_state = None - self.app_package_url = kwargs.get('app_package_url', None) - self.default_parameter_list = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_list.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_list.py deleted file mode 100644 index a472b5436b9a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ApplicationTypeVersionResourceList(Model): - """The list of application type version resources for the specified - application type name resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: - :type value: - list[~azure.mgmt.servicefabric.models.ApplicationTypeVersionResource] - :ivar next_link: URL to get the next set of application type version list - results if there are any. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ApplicationTypeVersionResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ApplicationTypeVersionResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_list_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_list_py3.py deleted file mode 100644 index 6b867211fd7d..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_list_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ApplicationTypeVersionResourceList(Model): - """The list of application type version resources for the specified - application type name resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: - :type value: - list[~azure.mgmt.servicefabric.models.ApplicationTypeVersionResource] - :ivar next_link: URL to get the next set of application type version list - results if there are any. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ApplicationTypeVersionResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ApplicationTypeVersionResourceList, self).__init__(**kwargs) - self.value = value - self.next_link = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_py3.py deleted file mode 100644 index 5bf6ec7bcde8..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_type_version_resource_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class ApplicationTypeVersionResource(ProxyResource): - """An application type version resource for the specified application type - name resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param app_package_url: Required. The URL to the application package - :type app_package_url: str - :ivar default_parameter_list: List of application type parameters that can - be overridden when creating or updating the application. - :vartype default_parameter_list: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'app_package_url': {'required': True}, - 'default_parameter_list': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'app_package_url': {'key': 'properties.appPackageUrl', 'type': 'str'}, - 'default_parameter_list': {'key': 'properties.defaultParameterList', 'type': '{str}'}, - } - - def __init__(self, *, app_package_url: str, location: str=None, tags=None, **kwargs) -> None: - super(ApplicationTypeVersionResource, self).__init__(location=location, tags=tags, **kwargs) - self.provisioning_state = None - self.app_package_url = app_package_url - self.default_parameter_list = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_upgrade_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_upgrade_policy.py deleted file mode 100644 index 696d69ac94f7..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_upgrade_policy.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 ApplicationUpgradePolicy(Model): - """Describes the policy for a monitored application upgrade. - - :param upgrade_replica_set_check_timeout: The maximum amount of time to - block processing of an upgrade domain and prevent loss of availability - when there are unexpected issues. When this timeout expires, processing of - the upgrade domain will proceed regardless of availability loss issues. - The timeout is reset at the start of each upgrade domain. Valid values are - between 0 and 42949672925 inclusive. (unsigned 32-bit integer). - :type upgrade_replica_set_check_timeout: str - :param force_restart: If true, then processes are forcefully restarted - during upgrade even when the code version has not changed (the upgrade - only changes configuration or data). - :type force_restart: bool - :param rolling_upgrade_monitoring_policy: The policy used for monitoring - the application upgrade - :type rolling_upgrade_monitoring_policy: - ~azure.mgmt.servicefabric.models.ArmRollingUpgradeMonitoringPolicy - :param application_health_policy: Defines a health policy used to evaluate - the health of an application or one of its children entities. - :type application_health_policy: - ~azure.mgmt.servicefabric.models.ArmApplicationHealthPolicy - """ - - _attribute_map = { - 'upgrade_replica_set_check_timeout': {'key': 'upgradeReplicaSetCheckTimeout', 'type': 'str'}, - 'force_restart': {'key': 'forceRestart', 'type': 'bool'}, - 'rolling_upgrade_monitoring_policy': {'key': 'rollingUpgradeMonitoringPolicy', 'type': 'ArmRollingUpgradeMonitoringPolicy'}, - 'application_health_policy': {'key': 'applicationHealthPolicy', 'type': 'ArmApplicationHealthPolicy'}, - } - - def __init__(self, **kwargs): - super(ApplicationUpgradePolicy, self).__init__(**kwargs) - self.upgrade_replica_set_check_timeout = kwargs.get('upgrade_replica_set_check_timeout', None) - self.force_restart = kwargs.get('force_restart', None) - self.rolling_upgrade_monitoring_policy = kwargs.get('rolling_upgrade_monitoring_policy', None) - self.application_health_policy = kwargs.get('application_health_policy', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_upgrade_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_upgrade_policy_py3.py deleted file mode 100644 index 97d06aded044..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/application_upgrade_policy_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 ApplicationUpgradePolicy(Model): - """Describes the policy for a monitored application upgrade. - - :param upgrade_replica_set_check_timeout: The maximum amount of time to - block processing of an upgrade domain and prevent loss of availability - when there are unexpected issues. When this timeout expires, processing of - the upgrade domain will proceed regardless of availability loss issues. - The timeout is reset at the start of each upgrade domain. Valid values are - between 0 and 42949672925 inclusive. (unsigned 32-bit integer). - :type upgrade_replica_set_check_timeout: str - :param force_restart: If true, then processes are forcefully restarted - during upgrade even when the code version has not changed (the upgrade - only changes configuration or data). - :type force_restart: bool - :param rolling_upgrade_monitoring_policy: The policy used for monitoring - the application upgrade - :type rolling_upgrade_monitoring_policy: - ~azure.mgmt.servicefabric.models.ArmRollingUpgradeMonitoringPolicy - :param application_health_policy: Defines a health policy used to evaluate - the health of an application or one of its children entities. - :type application_health_policy: - ~azure.mgmt.servicefabric.models.ArmApplicationHealthPolicy - """ - - _attribute_map = { - 'upgrade_replica_set_check_timeout': {'key': 'upgradeReplicaSetCheckTimeout', 'type': 'str'}, - 'force_restart': {'key': 'forceRestart', 'type': 'bool'}, - 'rolling_upgrade_monitoring_policy': {'key': 'rollingUpgradeMonitoringPolicy', 'type': 'ArmRollingUpgradeMonitoringPolicy'}, - 'application_health_policy': {'key': 'applicationHealthPolicy', 'type': 'ArmApplicationHealthPolicy'}, - } - - def __init__(self, *, upgrade_replica_set_check_timeout: str=None, force_restart: bool=None, rolling_upgrade_monitoring_policy=None, application_health_policy=None, **kwargs) -> None: - super(ApplicationUpgradePolicy, self).__init__(**kwargs) - self.upgrade_replica_set_check_timeout = upgrade_replica_set_check_timeout - self.force_restart = force_restart - self.rolling_upgrade_monitoring_policy = rolling_upgrade_monitoring_policy - self.application_health_policy = application_health_policy diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_application_health_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_application_health_policy.py deleted file mode 100644 index d0285335a62a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_application_health_policy.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 ArmApplicationHealthPolicy(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: The health policy used by - default to evaluate the health of a service type. - :type default_service_type_health_policy: - ~azure.mgmt.servicefabric.models.ArmServiceTypeHealthPolicy - :param service_type_health_policy_map: The map with service type health - policy per service type name. The map is empty by default. - :type service_type_health_policy_map: dict[str, - ~azure.mgmt.servicefabric.models.ArmServiceTypeHealthPolicy] - """ - - _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': 'ArmServiceTypeHealthPolicy'}, - 'service_type_health_policy_map': {'key': 'serviceTypeHealthPolicyMap', 'type': '{ArmServiceTypeHealthPolicy}'}, - } - - def __init__(self, **kwargs): - super(ArmApplicationHealthPolicy, 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) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_application_health_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_application_health_policy_py3.py deleted file mode 100644 index 36b7aab39fda..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_application_health_policy_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 ArmApplicationHealthPolicy(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: The health policy used by - default to evaluate the health of a service type. - :type default_service_type_health_policy: - ~azure.mgmt.servicefabric.models.ArmServiceTypeHealthPolicy - :param service_type_health_policy_map: The map with service type health - policy per service type name. The map is empty by default. - :type service_type_health_policy_map: dict[str, - ~azure.mgmt.servicefabric.models.ArmServiceTypeHealthPolicy] - """ - - _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': 'ArmServiceTypeHealthPolicy'}, - 'service_type_health_policy_map': {'key': 'serviceTypeHealthPolicyMap', 'type': '{ArmServiceTypeHealthPolicy}'}, - } - - 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: - super(ArmApplicationHealthPolicy, 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 diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_rolling_upgrade_monitoring_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_rolling_upgrade_monitoring_policy.py deleted file mode 100644 index c44bf130afbc..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_rolling_upgrade_monitoring_policy.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ArmRollingUpgradeMonitoringPolicy(Model): - """The policy used for monitoring the application upgrade. - - :param failure_action: The activation Mode of the service package. - Possible values include: 'Rollback', 'Manual' - :type failure_action: str or - ~azure.mgmt.servicefabric.models.ArmUpgradeFailureAction - :param health_check_wait_duration: The amount of time to wait after - completing an upgrade domain before applying health policies. It is first - interpreted as a string representing an ISO 8601 duration. If that fails, - then it is interpreted as a number representing the total number of - milliseconds. - :type health_check_wait_duration: str - :param health_check_stable_duration: The amount of time that the - application or cluster must remain healthy before the upgrade proceeds to - the next upgrade domain. It is first interpreted as a string representing - an ISO 8601 duration. If that fails, then it is interpreted as a number - representing the total number of milliseconds. - :type health_check_stable_duration: str - :param health_check_retry_timeout: The amount of time to retry health - evaluation when the application or cluster is unhealthy before - FailureAction is executed. It is first interpreted as a string - representing an ISO 8601 duration. If that fails, then it is interpreted - as a number representing the total number of milliseconds. - :type health_check_retry_timeout: str - :param upgrade_timeout: The amount of time the overall upgrade has to - complete before FailureAction is executed. It is first interpreted as a - string representing an ISO 8601 duration. If that fails, then it is - interpreted as a number representing the total number of milliseconds. - :type upgrade_timeout: str - :param upgrade_domain_timeout: The amount of time each upgrade domain has - to complete before FailureAction is executed. It is first interpreted as a - string representing an ISO 8601 duration. If that fails, then it is - interpreted as a number representing the total number of milliseconds. - :type upgrade_domain_timeout: str - """ - - _attribute_map = { - 'failure_action': {'key': 'failureAction', 'type': 'str'}, - 'health_check_wait_duration': {'key': 'healthCheckWaitDuration', 'type': 'str'}, - 'health_check_stable_duration': {'key': 'healthCheckStableDuration', 'type': 'str'}, - 'health_check_retry_timeout': {'key': 'healthCheckRetryTimeout', 'type': 'str'}, - 'upgrade_timeout': {'key': 'upgradeTimeout', 'type': 'str'}, - 'upgrade_domain_timeout': {'key': 'upgradeDomainTimeout', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ArmRollingUpgradeMonitoringPolicy, self).__init__(**kwargs) - self.failure_action = kwargs.get('failure_action', None) - self.health_check_wait_duration = kwargs.get('health_check_wait_duration', None) - self.health_check_stable_duration = kwargs.get('health_check_stable_duration', None) - self.health_check_retry_timeout = kwargs.get('health_check_retry_timeout', None) - self.upgrade_timeout = kwargs.get('upgrade_timeout', None) - self.upgrade_domain_timeout = kwargs.get('upgrade_domain_timeout', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_rolling_upgrade_monitoring_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_rolling_upgrade_monitoring_policy_py3.py deleted file mode 100644 index 377fa603ed6e..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_rolling_upgrade_monitoring_policy_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ArmRollingUpgradeMonitoringPolicy(Model): - """The policy used for monitoring the application upgrade. - - :param failure_action: The activation Mode of the service package. - Possible values include: 'Rollback', 'Manual' - :type failure_action: str or - ~azure.mgmt.servicefabric.models.ArmUpgradeFailureAction - :param health_check_wait_duration: The amount of time to wait after - completing an upgrade domain before applying health policies. It is first - interpreted as a string representing an ISO 8601 duration. If that fails, - then it is interpreted as a number representing the total number of - milliseconds. - :type health_check_wait_duration: str - :param health_check_stable_duration: The amount of time that the - application or cluster must remain healthy before the upgrade proceeds to - the next upgrade domain. It is first interpreted as a string representing - an ISO 8601 duration. If that fails, then it is interpreted as a number - representing the total number of milliseconds. - :type health_check_stable_duration: str - :param health_check_retry_timeout: The amount of time to retry health - evaluation when the application or cluster is unhealthy before - FailureAction is executed. It is first interpreted as a string - representing an ISO 8601 duration. If that fails, then it is interpreted - as a number representing the total number of milliseconds. - :type health_check_retry_timeout: str - :param upgrade_timeout: The amount of time the overall upgrade has to - complete before FailureAction is executed. It is first interpreted as a - string representing an ISO 8601 duration. If that fails, then it is - interpreted as a number representing the total number of milliseconds. - :type upgrade_timeout: str - :param upgrade_domain_timeout: The amount of time each upgrade domain has - to complete before FailureAction is executed. It is first interpreted as a - string representing an ISO 8601 duration. If that fails, then it is - interpreted as a number representing the total number of milliseconds. - :type upgrade_domain_timeout: str - """ - - _attribute_map = { - 'failure_action': {'key': 'failureAction', 'type': 'str'}, - 'health_check_wait_duration': {'key': 'healthCheckWaitDuration', 'type': 'str'}, - 'health_check_stable_duration': {'key': 'healthCheckStableDuration', 'type': 'str'}, - 'health_check_retry_timeout': {'key': 'healthCheckRetryTimeout', 'type': 'str'}, - 'upgrade_timeout': {'key': 'upgradeTimeout', 'type': 'str'}, - 'upgrade_domain_timeout': {'key': 'upgradeDomainTimeout', 'type': 'str'}, - } - - def __init__(self, *, failure_action=None, health_check_wait_duration: str=None, health_check_stable_duration: str=None, health_check_retry_timeout: str=None, upgrade_timeout: str=None, upgrade_domain_timeout: str=None, **kwargs) -> None: - super(ArmRollingUpgradeMonitoringPolicy, self).__init__(**kwargs) - self.failure_action = failure_action - self.health_check_wait_duration = health_check_wait_duration - self.health_check_stable_duration = health_check_stable_duration - self.health_check_retry_timeout = health_check_retry_timeout - self.upgrade_timeout = upgrade_timeout - self.upgrade_domain_timeout = upgrade_domain_timeout diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_service_type_health_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_service_type_health_policy.py deleted file mode 100644 index 980fdb596e20..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_service_type_health_policy.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 ArmServiceTypeHealthPolicy(Model): - """Represents the health policy used to evaluate the health of services - belonging to a service type. - . - - :param max_percent_unhealthy_services: The maximum percentage of services - allowed to be unhealthy before your application is considered in error. - . Default value: 0 . - :type max_percent_unhealthy_services: int - :param max_percent_unhealthy_partitions_per_service: The maximum - percentage of partitions per service allowed to be unhealthy before your - application is considered in error. - . Default value: 0 . - :type max_percent_unhealthy_partitions_per_service: int - :param max_percent_unhealthy_replicas_per_partition: The maximum - percentage of replicas per partition allowed to be unhealthy before your - application is considered in error. - . Default value: 0 . - :type max_percent_unhealthy_replicas_per_partition: int - """ - - _validation = { - 'max_percent_unhealthy_services': {'maximum': 100, 'minimum': 0}, - 'max_percent_unhealthy_partitions_per_service': {'maximum': 100, 'minimum': 0}, - 'max_percent_unhealthy_replicas_per_partition': {'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_unhealthy_services': {'key': 'maxPercentUnhealthyServices', 'type': 'int'}, - 'max_percent_unhealthy_partitions_per_service': {'key': 'maxPercentUnhealthyPartitionsPerService', 'type': 'int'}, - 'max_percent_unhealthy_replicas_per_partition': {'key': 'maxPercentUnhealthyReplicasPerPartition', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ArmServiceTypeHealthPolicy, self).__init__(**kwargs) - self.max_percent_unhealthy_services = kwargs.get('max_percent_unhealthy_services', 0) - self.max_percent_unhealthy_partitions_per_service = kwargs.get('max_percent_unhealthy_partitions_per_service', 0) - self.max_percent_unhealthy_replicas_per_partition = kwargs.get('max_percent_unhealthy_replicas_per_partition', 0) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_service_type_health_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_service_type_health_policy_py3.py deleted file mode 100644 index de542a6772d4..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/arm_service_type_health_policy_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 ArmServiceTypeHealthPolicy(Model): - """Represents the health policy used to evaluate the health of services - belonging to a service type. - . - - :param max_percent_unhealthy_services: The maximum percentage of services - allowed to be unhealthy before your application is considered in error. - . Default value: 0 . - :type max_percent_unhealthy_services: int - :param max_percent_unhealthy_partitions_per_service: The maximum - percentage of partitions per service allowed to be unhealthy before your - application is considered in error. - . Default value: 0 . - :type max_percent_unhealthy_partitions_per_service: int - :param max_percent_unhealthy_replicas_per_partition: The maximum - percentage of replicas per partition allowed to be unhealthy before your - application is considered in error. - . Default value: 0 . - :type max_percent_unhealthy_replicas_per_partition: int - """ - - _validation = { - 'max_percent_unhealthy_services': {'maximum': 100, 'minimum': 0}, - 'max_percent_unhealthy_partitions_per_service': {'maximum': 100, 'minimum': 0}, - 'max_percent_unhealthy_replicas_per_partition': {'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_unhealthy_services': {'key': 'maxPercentUnhealthyServices', 'type': 'int'}, - 'max_percent_unhealthy_partitions_per_service': {'key': 'maxPercentUnhealthyPartitionsPerService', 'type': 'int'}, - 'max_percent_unhealthy_replicas_per_partition': {'key': 'maxPercentUnhealthyReplicasPerPartition', 'type': 'int'}, - } - - def __init__(self, *, max_percent_unhealthy_services: int=0, max_percent_unhealthy_partitions_per_service: int=0, max_percent_unhealthy_replicas_per_partition: int=0, **kwargs) -> None: - super(ArmServiceTypeHealthPolicy, self).__init__(**kwargs) - self.max_percent_unhealthy_services = max_percent_unhealthy_services - self.max_percent_unhealthy_partitions_per_service = max_percent_unhealthy_partitions_per_service - self.max_percent_unhealthy_replicas_per_partition = max_percent_unhealthy_replicas_per_partition diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/available_operation_display.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/available_operation_display.py deleted file mode 100644 index e43cfb3bfd48..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/available_operation_display.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 AvailableOperationDisplay(Model): - """Operation supported by the Service Fabric resource provider. - - :param provider: The name of the provider. - :type provider: str - :param resource: The resource on which the operation is performed - :type resource: str - :param operation: The operation that can be performed. - :type operation: str - :param description: Operation description - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AvailableOperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/available_operation_display_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/available_operation_display_py3.py deleted file mode 100644 index 272920503071..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/available_operation_display_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 AvailableOperationDisplay(Model): - """Operation supported by the Service Fabric resource provider. - - :param provider: The name of the provider. - :type provider: str - :param resource: The resource on which the operation is performed - :type resource: str - :param operation: The operation that can be performed. - :type operation: str - :param description: Operation description - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(AvailableOperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/azure_active_directory.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/azure_active_directory.py deleted file mode 100644 index c112a9a87cd3..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/azure_active_directory.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 AzureActiveDirectory(Model): - """The settings to enable AAD authentication on the cluster. - - :param tenant_id: Azure active directory tenant id. - :type tenant_id: str - :param cluster_application: Azure active directory cluster application id. - :type cluster_application: str - :param client_application: Azure active directory client application id. - :type client_application: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'cluster_application': {'key': 'clusterApplication', 'type': 'str'}, - 'client_application': {'key': 'clientApplication', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureActiveDirectory, self).__init__(**kwargs) - self.tenant_id = kwargs.get('tenant_id', None) - self.cluster_application = kwargs.get('cluster_application', None) - self.client_application = kwargs.get('client_application', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/azure_active_directory_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/azure_active_directory_py3.py deleted file mode 100644 index ebfdf529361c..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/azure_active_directory_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 AzureActiveDirectory(Model): - """The settings to enable AAD authentication on the cluster. - - :param tenant_id: Azure active directory tenant id. - :type tenant_id: str - :param cluster_application: Azure active directory cluster application id. - :type cluster_application: str - :param client_application: Azure active directory client application id. - :type client_application: str - """ - - _attribute_map = { - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'cluster_application': {'key': 'clusterApplication', 'type': 'str'}, - 'client_application': {'key': 'clientApplication', 'type': 'str'}, - } - - def __init__(self, *, tenant_id: str=None, cluster_application: str=None, client_application: str=None, **kwargs) -> None: - super(AzureActiveDirectory, self).__init__(**kwargs) - self.tenant_id = tenant_id - self.cluster_application = cluster_application - self.client_application = client_application diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/certificate_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/certificate_description.py deleted file mode 100644 index 51a729b78164..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/certificate_description.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 CertificateDescription(Model): - """Describes the certificate details. - - All required parameters must be populated in order to send to Azure. - - :param thumbprint: Required. Thumbprint of the primary certificate. - :type thumbprint: str - :param thumbprint_secondary: Thumbprint of the secondary certificate. - :type thumbprint_secondary: str - :param x509_store_name: The local certificate store location. Possible - values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', - 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' - :type x509_store_name: str or ~azure.mgmt.servicefabric.models.enum - """ - - _validation = { - 'thumbprint': {'required': True}, - } - - _attribute_map = { - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, - 'thumbprint_secondary': {'key': 'thumbprintSecondary', 'type': 'str'}, - 'x509_store_name': {'key': 'x509StoreName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CertificateDescription, self).__init__(**kwargs) - self.thumbprint = kwargs.get('thumbprint', None) - self.thumbprint_secondary = kwargs.get('thumbprint_secondary', None) - self.x509_store_name = kwargs.get('x509_store_name', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/certificate_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/certificate_description_py3.py deleted file mode 100644 index 7a9dbd958b15..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/certificate_description_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 CertificateDescription(Model): - """Describes the certificate details. - - All required parameters must be populated in order to send to Azure. - - :param thumbprint: Required. Thumbprint of the primary certificate. - :type thumbprint: str - :param thumbprint_secondary: Thumbprint of the secondary certificate. - :type thumbprint_secondary: str - :param x509_store_name: The local certificate store location. Possible - values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', - 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' - :type x509_store_name: str or ~azure.mgmt.servicefabric.models.enum - """ - - _validation = { - 'thumbprint': {'required': True}, - } - - _attribute_map = { - 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, - 'thumbprint_secondary': {'key': 'thumbprintSecondary', 'type': 'str'}, - 'x509_store_name': {'key': 'x509StoreName', 'type': 'str'}, - } - - def __init__(self, *, thumbprint: str, thumbprint_secondary: str=None, x509_store_name=None, **kwargs) -> None: - super(CertificateDescription, self).__init__(**kwargs) - self.thumbprint = thumbprint - self.thumbprint_secondary = thumbprint_secondary - self.x509_store_name = x509_store_name diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_common_name.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_common_name.py deleted file mode 100644 index 038c3ea65e24..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_common_name.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 ClientCertificateCommonName(Model): - """Describes the client certificate details using common name. - - All required parameters must be populated in order to send to Azure. - - :param is_admin: Required. Indicates if the client certificate has admin - access to the cluster. Non admin clients can perform only read only - operations on the cluster. - :type is_admin: bool - :param certificate_common_name: Required. The common name of the client - certificate. - :type certificate_common_name: str - :param certificate_issuer_thumbprint: Required. The issuer thumbprint of - the client certificate. - :type certificate_issuer_thumbprint: str - """ - - _validation = { - 'is_admin': {'required': True}, - 'certificate_common_name': {'required': True}, - 'certificate_issuer_thumbprint': {'required': True}, - } - - _attribute_map = { - 'is_admin': {'key': 'isAdmin', 'type': 'bool'}, - 'certificate_common_name': {'key': 'certificateCommonName', 'type': 'str'}, - 'certificate_issuer_thumbprint': {'key': 'certificateIssuerThumbprint', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClientCertificateCommonName, self).__init__(**kwargs) - self.is_admin = kwargs.get('is_admin', None) - self.certificate_common_name = kwargs.get('certificate_common_name', None) - self.certificate_issuer_thumbprint = kwargs.get('certificate_issuer_thumbprint', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_common_name_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_common_name_py3.py deleted file mode 100644 index 96af833a550d..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_common_name_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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 ClientCertificateCommonName(Model): - """Describes the client certificate details using common name. - - All required parameters must be populated in order to send to Azure. - - :param is_admin: Required. Indicates if the client certificate has admin - access to the cluster. Non admin clients can perform only read only - operations on the cluster. - :type is_admin: bool - :param certificate_common_name: Required. The common name of the client - certificate. - :type certificate_common_name: str - :param certificate_issuer_thumbprint: Required. The issuer thumbprint of - the client certificate. - :type certificate_issuer_thumbprint: str - """ - - _validation = { - 'is_admin': {'required': True}, - 'certificate_common_name': {'required': True}, - 'certificate_issuer_thumbprint': {'required': True}, - } - - _attribute_map = { - 'is_admin': {'key': 'isAdmin', 'type': 'bool'}, - 'certificate_common_name': {'key': 'certificateCommonName', 'type': 'str'}, - 'certificate_issuer_thumbprint': {'key': 'certificateIssuerThumbprint', 'type': 'str'}, - } - - def __init__(self, *, is_admin: bool, certificate_common_name: str, certificate_issuer_thumbprint: str, **kwargs) -> None: - super(ClientCertificateCommonName, self).__init__(**kwargs) - self.is_admin = is_admin - self.certificate_common_name = certificate_common_name - self.certificate_issuer_thumbprint = certificate_issuer_thumbprint diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_thumbprint.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_thumbprint.py deleted file mode 100644 index c501a015d109..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_thumbprint.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ClientCertificateThumbprint(Model): - """Describes the client certificate details using thumbprint. - - All required parameters must be populated in order to send to Azure. - - :param is_admin: Required. Indicates if the client certificate has admin - access to the cluster. Non admin clients can perform only read only - operations on the cluster. - :type is_admin: bool - :param certificate_thumbprint: Required. The thumbprint of the client - certificate. - :type certificate_thumbprint: str - """ - - _validation = { - 'is_admin': {'required': True}, - 'certificate_thumbprint': {'required': True}, - } - - _attribute_map = { - 'is_admin': {'key': 'isAdmin', 'type': 'bool'}, - 'certificate_thumbprint': {'key': 'certificateThumbprint', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClientCertificateThumbprint, self).__init__(**kwargs) - self.is_admin = kwargs.get('is_admin', None) - self.certificate_thumbprint = kwargs.get('certificate_thumbprint', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_thumbprint_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_thumbprint_py3.py deleted file mode 100644 index 7c4e8938045c..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/client_certificate_thumbprint_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ClientCertificateThumbprint(Model): - """Describes the client certificate details using thumbprint. - - All required parameters must be populated in order to send to Azure. - - :param is_admin: Required. Indicates if the client certificate has admin - access to the cluster. Non admin clients can perform only read only - operations on the cluster. - :type is_admin: bool - :param certificate_thumbprint: Required. The thumbprint of the client - certificate. - :type certificate_thumbprint: str - """ - - _validation = { - 'is_admin': {'required': True}, - 'certificate_thumbprint': {'required': True}, - } - - _attribute_map = { - 'is_admin': {'key': 'isAdmin', 'type': 'bool'}, - 'certificate_thumbprint': {'key': 'certificateThumbprint', 'type': 'str'}, - } - - def __init__(self, *, is_admin: bool, certificate_thumbprint: str, **kwargs) -> None: - super(ClientCertificateThumbprint, self).__init__(**kwargs) - self.is_admin = is_admin - self.certificate_thumbprint = certificate_thumbprint diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster.py deleted file mode 100644 index 1daf2f7b4239..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster.py +++ /dev/null @@ -1,237 +0,0 @@ -# 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 .resource import Resource - - -class Cluster(Resource): - """The cluster resource - . - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Required. Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param add_on_features: The list of add-on features to enable in the - cluster. - :type add_on_features: list[str] - :ivar available_cluster_versions: The Service Fabric runtime versions - available for this cluster. - :vartype available_cluster_versions: - list[~azure.mgmt.servicefabric.models.ClusterVersionDetails] - :param azure_active_directory: The AAD authentication settings of the - cluster. - :type azure_active_directory: - ~azure.mgmt.servicefabric.models.AzureActiveDirectory - :param certificate: The certificate to use for securing the cluster. The - certificate provided will be used for node to node security within the - cluster, SSL certificate for cluster management endpoint and default admin - client. - :type certificate: ~azure.mgmt.servicefabric.models.CertificateDescription - :param certificate_common_names: Describes a list of server certificates - referenced by common name that are used to secure the cluster. - :type certificate_common_names: - ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames - :param client_certificate_common_names: The list of client certificates - referenced by common name that are allowed to manage the cluster. - :type client_certificate_common_names: - list[~azure.mgmt.servicefabric.models.ClientCertificateCommonName] - :param client_certificate_thumbprints: The list of client certificates - referenced by thumbprint that are allowed to manage the cluster. - :type client_certificate_thumbprints: - list[~azure.mgmt.servicefabric.models.ClientCertificateThumbprint] - :param cluster_code_version: The Service Fabric runtime version of the - cluster. This property can only by set the user when **upgradeMode** is - set to 'Manual'. To get list of available Service Fabric versions for new - clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of - available version for existing clusters use **availableClusterVersions**. - :type cluster_code_version: str - :ivar cluster_endpoint: The Azure Resource Provider endpoint. A system - service in the cluster connects to this endpoint. - :vartype cluster_endpoint: str - :ivar cluster_id: A service generated unique identifier for the cluster - resource. - :vartype cluster_id: str - :ivar cluster_state: The current state of the cluster. - - WaitingForNodes - Indicates that the cluster resource is created and the - resource provider is waiting for Service Fabric VM extension to boot up - and report to it. - - Deploying - Indicates that the Service Fabric runtime is being installed - on the VMs. Cluster resource will be in this state until the cluster boots - up and system services are up. - - BaselineUpgrade - Indicates that the cluster is upgrading to establishes - the cluster version. This upgrade is automatically initiated when the - cluster boots up for the first time. - - UpdatingUserConfiguration - Indicates that the cluster is being upgraded - with the user provided configuration. - - UpdatingUserCertificate - Indicates that the cluster is being upgraded - with the user provided certificate. - - UpdatingInfrastructure - Indicates that the cluster is being upgraded - with the latest Service Fabric runtime version. This happens only when the - **upgradeMode** is set to 'Automatic'. - - EnforcingClusterVersion - Indicates that cluster is on a different - version than expected and the cluster is being upgraded to the expected - version. - - UpgradeServiceUnreachable - Indicates that the system service in the - cluster is no longer polling the Resource Provider. Clusters in this state - cannot be managed by the Resource Provider. - - AutoScale - Indicates that the ReliabilityLevel of the cluster is being - adjusted. - - Ready - Indicates that the cluster is in a stable state. - . Possible values include: 'WaitingForNodes', 'Deploying', - 'BaselineUpgrade', 'UpdatingUserConfiguration', 'UpdatingUserCertificate', - 'UpdatingInfrastructure', 'EnforcingClusterVersion', - 'UpgradeServiceUnreachable', 'AutoScale', 'Ready' - :vartype cluster_state: str or ~azure.mgmt.servicefabric.models.enum - :param diagnostics_storage_account_config: The storage account information - for storing Service Fabric diagnostic logs. - :type diagnostics_storage_account_config: - ~azure.mgmt.servicefabric.models.DiagnosticsStorageAccountConfig - :param event_store_service_enabled: Indicates if the event store service - is enabled. - :type event_store_service_enabled: bool - :param fabric_settings: The list of custom fabric settings to configure - the cluster. - :type fabric_settings: - list[~azure.mgmt.servicefabric.models.SettingsSectionDescription] - :param management_endpoint: Required. The http management endpoint of the - cluster. - :type management_endpoint: str - :param node_types: Required. The list of node types in the cluster. - :type node_types: - list[~azure.mgmt.servicefabric.models.NodeTypeDescription] - :ivar provisioning_state: The provisioning state of the cluster resource. - Possible values include: 'Updating', 'Succeeded', 'Failed', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.servicefabric.models.ProvisioningState - :param reliability_level: The reliability level sets the replica set size - of system services. Learn about - [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). - - None - Run the System services with a target replica set count of 1. - This should only be used for test clusters. - - Bronze - Run the System services with a target replica set count of 3. - This should only be used for test clusters. - - Silver - Run the System services with a target replica set count of 5. - - Gold - Run the System services with a target replica set count of 7. - - Platinum - Run the System services with a target replica set count of 9. - . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', 'Platinum' - :type reliability_level: str or ~azure.mgmt.servicefabric.models.enum - :param reverse_proxy_certificate: The server certificate used by reverse - proxy. - :type reverse_proxy_certificate: - ~azure.mgmt.servicefabric.models.CertificateDescription - :param reverse_proxy_certificate_common_names: Describes a list of server - certificates referenced by common name that are used to secure the - cluster. - :type reverse_proxy_certificate_common_names: - ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames - :param upgrade_description: The policy to use when upgrading the cluster. - :type upgrade_description: - ~azure.mgmt.servicefabric.models.ClusterUpgradePolicy - :param upgrade_mode: The upgrade mode of the cluster when new Service - Fabric runtime version is available. - - Automatic - The cluster will be automatically upgraded to the latest - Service Fabric runtime version as soon as it is available. - - Manual - The cluster will not be automatically upgraded to the latest - Service Fabric runtime version. The cluster is upgraded by setting the - **clusterCodeVersion** property in the cluster resource. - . Possible values include: 'Automatic', 'Manual' - :type upgrade_mode: str or ~azure.mgmt.servicefabric.models.enum - :param vm_image: The VM image VMSS has been configured with. Generic names - such as Windows or Linux can be used. - :type vm_image: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'etag': {'readonly': True}, - 'available_cluster_versions': {'readonly': True}, - 'cluster_endpoint': {'readonly': True}, - 'cluster_id': {'readonly': True}, - 'cluster_state': {'readonly': True}, - 'management_endpoint': {'required': True}, - 'node_types': {'required': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'add_on_features': {'key': 'properties.addOnFeatures', 'type': '[str]'}, - 'available_cluster_versions': {'key': 'properties.availableClusterVersions', 'type': '[ClusterVersionDetails]'}, - 'azure_active_directory': {'key': 'properties.azureActiveDirectory', 'type': 'AzureActiveDirectory'}, - 'certificate': {'key': 'properties.certificate', 'type': 'CertificateDescription'}, - 'certificate_common_names': {'key': 'properties.certificateCommonNames', 'type': 'ServerCertificateCommonNames'}, - 'client_certificate_common_names': {'key': 'properties.clientCertificateCommonNames', 'type': '[ClientCertificateCommonName]'}, - 'client_certificate_thumbprints': {'key': 'properties.clientCertificateThumbprints', 'type': '[ClientCertificateThumbprint]'}, - 'cluster_code_version': {'key': 'properties.clusterCodeVersion', 'type': 'str'}, - 'cluster_endpoint': {'key': 'properties.clusterEndpoint', 'type': 'str'}, - 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, - 'cluster_state': {'key': 'properties.clusterState', 'type': 'str'}, - 'diagnostics_storage_account_config': {'key': 'properties.diagnosticsStorageAccountConfig', 'type': 'DiagnosticsStorageAccountConfig'}, - 'event_store_service_enabled': {'key': 'properties.eventStoreServiceEnabled', 'type': 'bool'}, - 'fabric_settings': {'key': 'properties.fabricSettings', 'type': '[SettingsSectionDescription]'}, - 'management_endpoint': {'key': 'properties.managementEndpoint', 'type': 'str'}, - 'node_types': {'key': 'properties.nodeTypes', 'type': '[NodeTypeDescription]'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'reliability_level': {'key': 'properties.reliabilityLevel', 'type': 'str'}, - 'reverse_proxy_certificate': {'key': 'properties.reverseProxyCertificate', 'type': 'CertificateDescription'}, - 'reverse_proxy_certificate_common_names': {'key': 'properties.reverseProxyCertificateCommonNames', 'type': 'ServerCertificateCommonNames'}, - 'upgrade_description': {'key': 'properties.upgradeDescription', 'type': 'ClusterUpgradePolicy'}, - 'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'str'}, - 'vm_image': {'key': 'properties.vmImage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Cluster, self).__init__(**kwargs) - self.add_on_features = kwargs.get('add_on_features', None) - self.available_cluster_versions = None - self.azure_active_directory = kwargs.get('azure_active_directory', None) - self.certificate = kwargs.get('certificate', None) - self.certificate_common_names = kwargs.get('certificate_common_names', None) - self.client_certificate_common_names = kwargs.get('client_certificate_common_names', None) - self.client_certificate_thumbprints = kwargs.get('client_certificate_thumbprints', None) - self.cluster_code_version = kwargs.get('cluster_code_version', None) - self.cluster_endpoint = None - self.cluster_id = None - self.cluster_state = None - self.diagnostics_storage_account_config = kwargs.get('diagnostics_storage_account_config', None) - self.event_store_service_enabled = kwargs.get('event_store_service_enabled', None) - self.fabric_settings = kwargs.get('fabric_settings', None) - self.management_endpoint = kwargs.get('management_endpoint', None) - self.node_types = kwargs.get('node_types', None) - self.provisioning_state = None - self.reliability_level = kwargs.get('reliability_level', None) - self.reverse_proxy_certificate = kwargs.get('reverse_proxy_certificate', None) - self.reverse_proxy_certificate_common_names = kwargs.get('reverse_proxy_certificate_common_names', None) - self.upgrade_description = kwargs.get('upgrade_description', None) - self.upgrade_mode = kwargs.get('upgrade_mode', None) - self.vm_image = kwargs.get('vm_image', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_list_result.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_list_result.py deleted file mode 100644 index a065d98e9310..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_list_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 ClusterCodeVersionsListResult(Model): - """The list results of the Service Fabric runtime versions. - - :param value: - :type value: - list[~azure.mgmt.servicefabric.models.ClusterCodeVersionsResult] - :param next_link: The URL to use for getting the next set of results. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ClusterCodeVersionsResult]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterCodeVersionsListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_list_result_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_list_result_py3.py deleted file mode 100644 index 3be466ff011f..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_list_result_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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 ClusterCodeVersionsListResult(Model): - """The list results of the Service Fabric runtime versions. - - :param value: - :type value: - list[~azure.mgmt.servicefabric.models.ClusterCodeVersionsResult] - :param next_link: The URL to use for getting the next set of results. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ClusterCodeVersionsResult]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: - super(ClusterCodeVersionsListResult, self).__init__(**kwargs) - self.value = value - self.next_link = next_link diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_result.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_result.py deleted file mode 100644 index 9f36df0d3a22..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_result.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ClusterCodeVersionsResult(Model): - """The result of the Service Fabric runtime versions. - - :param id: The identification of the result - :type id: str - :param name: The name of the result - :type name: str - :param type: The result resource type - :type type: str - :param code_version: The Service Fabric runtime version of the cluster. - :type code_version: str - :param support_expiry_utc: The date of expiry of support of the version. - :type support_expiry_utc: str - :param environment: Indicates if this version is for Windows or Linux - operating system. Possible values include: 'Windows', 'Linux' - :type environment: str or ~azure.mgmt.servicefabric.models.enum - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'code_version': {'key': 'properties.codeVersion', 'type': 'str'}, - 'support_expiry_utc': {'key': 'properties.supportExpiryUtc', 'type': 'str'}, - 'environment': {'key': 'properties.environment', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterCodeVersionsResult, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) - self.code_version = kwargs.get('code_version', None) - self.support_expiry_utc = kwargs.get('support_expiry_utc', None) - self.environment = kwargs.get('environment', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_result_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_result_py3.py deleted file mode 100644 index 3ccc94d30343..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_code_versions_result_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 ClusterCodeVersionsResult(Model): - """The result of the Service Fabric runtime versions. - - :param id: The identification of the result - :type id: str - :param name: The name of the result - :type name: str - :param type: The result resource type - :type type: str - :param code_version: The Service Fabric runtime version of the cluster. - :type code_version: str - :param support_expiry_utc: The date of expiry of support of the version. - :type support_expiry_utc: str - :param environment: Indicates if this version is for Windows or Linux - operating system. Possible values include: 'Windows', 'Linux' - :type environment: str or ~azure.mgmt.servicefabric.models.enum - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'code_version': {'key': 'properties.codeVersion', 'type': 'str'}, - 'support_expiry_utc': {'key': 'properties.supportExpiryUtc', 'type': 'str'}, - 'environment': {'key': 'properties.environment', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, name: str=None, type: str=None, code_version: str=None, support_expiry_utc: str=None, environment=None, **kwargs) -> None: - super(ClusterCodeVersionsResult, self).__init__(**kwargs) - self.id = id - self.name = name - self.type = type - self.code_version = code_version - self.support_expiry_utc = support_expiry_utc - self.environment = environment diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_health_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_health_policy.py deleted file mode 100644 index ab71593153eb..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_health_policy.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 ClusterHealthPolicy(Model): - """Defines a health policy used to evaluate the health of the cluster or of a - cluster node. - . - - :param max_percent_unhealthy_nodes: The maximum allowed percentage of - unhealthy nodes before reporting an error. For example, to allow 10% of - nodes to be unhealthy, this value would be 10. - The percentage represents the maximum tolerated percentage of nodes that - can be unhealthy before the cluster is considered in error. - If the percentage is respected but there is at least one unhealthy node, - the health is evaluated as Warning. - The percentage is calculated by dividing the number of unhealthy nodes - over the total number of nodes in the cluster. - The computation rounds up to tolerate one failure on small numbers of - nodes. Default percentage is zero. - In large clusters, some nodes will always be down or out for repairs, so - this percentage should be configured to tolerate that. - . Default value: 0 . - :type max_percent_unhealthy_nodes: int - :param max_percent_unhealthy_applications: The maximum allowed percentage - of unhealthy applications before reporting an error. For example, to allow - 10% of applications to be unhealthy, this value would be 10. - The percentage represents the maximum tolerated percentage of applications - that can be unhealthy before the cluster is considered in error. - If the percentage is respected but there is at least one unhealthy - application, the health is evaluated as Warning. - This is calculated by dividing the number of unhealthy applications over - the total number of application instances in the cluster, excluding - applications of application types that are included in the - ApplicationTypeHealthPolicyMap. - The computation rounds up to tolerate one failure on small numbers of - applications. Default percentage is zero. - . Default value: 0 . - :type max_percent_unhealthy_applications: int - :param application_health_policies: Defines the application health policy - map used to evaluate the health of an application or one of its children - entities. - :type application_health_policies: dict[str, - ~azure.mgmt.servicefabric.models.ApplicationHealthPolicy] - """ - - _validation = { - 'max_percent_unhealthy_nodes': {'maximum': 100, 'minimum': 0}, - 'max_percent_unhealthy_applications': {'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_unhealthy_nodes': {'key': 'maxPercentUnhealthyNodes', 'type': 'int'}, - 'max_percent_unhealthy_applications': {'key': 'maxPercentUnhealthyApplications', 'type': 'int'}, - 'application_health_policies': {'key': 'applicationHealthPolicies', 'type': '{ApplicationHealthPolicy}'}, - } - - def __init__(self, **kwargs): - super(ClusterHealthPolicy, self).__init__(**kwargs) - self.max_percent_unhealthy_nodes = kwargs.get('max_percent_unhealthy_nodes', 0) - self.max_percent_unhealthy_applications = kwargs.get('max_percent_unhealthy_applications', 0) - self.application_health_policies = kwargs.get('application_health_policies', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_health_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_health_policy_py3.py deleted file mode 100644 index fd60c2c4387e..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_health_policy_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 ClusterHealthPolicy(Model): - """Defines a health policy used to evaluate the health of the cluster or of a - cluster node. - . - - :param max_percent_unhealthy_nodes: The maximum allowed percentage of - unhealthy nodes before reporting an error. For example, to allow 10% of - nodes to be unhealthy, this value would be 10. - The percentage represents the maximum tolerated percentage of nodes that - can be unhealthy before the cluster is considered in error. - If the percentage is respected but there is at least one unhealthy node, - the health is evaluated as Warning. - The percentage is calculated by dividing the number of unhealthy nodes - over the total number of nodes in the cluster. - The computation rounds up to tolerate one failure on small numbers of - nodes. Default percentage is zero. - In large clusters, some nodes will always be down or out for repairs, so - this percentage should be configured to tolerate that. - . Default value: 0 . - :type max_percent_unhealthy_nodes: int - :param max_percent_unhealthy_applications: The maximum allowed percentage - of unhealthy applications before reporting an error. For example, to allow - 10% of applications to be unhealthy, this value would be 10. - The percentage represents the maximum tolerated percentage of applications - that can be unhealthy before the cluster is considered in error. - If the percentage is respected but there is at least one unhealthy - application, the health is evaluated as Warning. - This is calculated by dividing the number of unhealthy applications over - the total number of application instances in the cluster, excluding - applications of application types that are included in the - ApplicationTypeHealthPolicyMap. - The computation rounds up to tolerate one failure on small numbers of - applications. Default percentage is zero. - . Default value: 0 . - :type max_percent_unhealthy_applications: int - :param application_health_policies: Defines the application health policy - map used to evaluate the health of an application or one of its children - entities. - :type application_health_policies: dict[str, - ~azure.mgmt.servicefabric.models.ApplicationHealthPolicy] - """ - - _validation = { - 'max_percent_unhealthy_nodes': {'maximum': 100, 'minimum': 0}, - 'max_percent_unhealthy_applications': {'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_unhealthy_nodes': {'key': 'maxPercentUnhealthyNodes', 'type': 'int'}, - 'max_percent_unhealthy_applications': {'key': 'maxPercentUnhealthyApplications', 'type': 'int'}, - 'application_health_policies': {'key': 'applicationHealthPolicies', 'type': '{ApplicationHealthPolicy}'}, - } - - def __init__(self, *, max_percent_unhealthy_nodes: int=0, max_percent_unhealthy_applications: int=0, application_health_policies=None, **kwargs) -> None: - super(ClusterHealthPolicy, self).__init__(**kwargs) - self.max_percent_unhealthy_nodes = max_percent_unhealthy_nodes - self.max_percent_unhealthy_applications = max_percent_unhealthy_applications - self.application_health_policies = application_health_policies diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_list_result.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_list_result.py deleted file mode 100644 index 9be7f8a88a98..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_list_result.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 ClusterListResult(Model): - """Cluster list results. - - :param value: - :type value: list[~azure.mgmt.servicefabric.models.Cluster] - :param next_link: The URL to use for getting the next set of results. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Cluster]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_list_result_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_list_result_py3.py deleted file mode 100644 index 2d36d8f693c1..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_list_result_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 ClusterListResult(Model): - """Cluster list results. - - :param value: - :type value: list[~azure.mgmt.servicefabric.models.Cluster] - :param next_link: The URL to use for getting the next set of results. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Cluster]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: - super(ClusterListResult, self).__init__(**kwargs) - self.value = value - self.next_link = next_link diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_py3.py deleted file mode 100644 index 0a5cf3a7e2ef..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_py3.py +++ /dev/null @@ -1,237 +0,0 @@ -# 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 .resource_py3 import Resource - - -class Cluster(Resource): - """The cluster resource - . - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Required. Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param add_on_features: The list of add-on features to enable in the - cluster. - :type add_on_features: list[str] - :ivar available_cluster_versions: The Service Fabric runtime versions - available for this cluster. - :vartype available_cluster_versions: - list[~azure.mgmt.servicefabric.models.ClusterVersionDetails] - :param azure_active_directory: The AAD authentication settings of the - cluster. - :type azure_active_directory: - ~azure.mgmt.servicefabric.models.AzureActiveDirectory - :param certificate: The certificate to use for securing the cluster. The - certificate provided will be used for node to node security within the - cluster, SSL certificate for cluster management endpoint and default admin - client. - :type certificate: ~azure.mgmt.servicefabric.models.CertificateDescription - :param certificate_common_names: Describes a list of server certificates - referenced by common name that are used to secure the cluster. - :type certificate_common_names: - ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames - :param client_certificate_common_names: The list of client certificates - referenced by common name that are allowed to manage the cluster. - :type client_certificate_common_names: - list[~azure.mgmt.servicefabric.models.ClientCertificateCommonName] - :param client_certificate_thumbprints: The list of client certificates - referenced by thumbprint that are allowed to manage the cluster. - :type client_certificate_thumbprints: - list[~azure.mgmt.servicefabric.models.ClientCertificateThumbprint] - :param cluster_code_version: The Service Fabric runtime version of the - cluster. This property can only by set the user when **upgradeMode** is - set to 'Manual'. To get list of available Service Fabric versions for new - clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of - available version for existing clusters use **availableClusterVersions**. - :type cluster_code_version: str - :ivar cluster_endpoint: The Azure Resource Provider endpoint. A system - service in the cluster connects to this endpoint. - :vartype cluster_endpoint: str - :ivar cluster_id: A service generated unique identifier for the cluster - resource. - :vartype cluster_id: str - :ivar cluster_state: The current state of the cluster. - - WaitingForNodes - Indicates that the cluster resource is created and the - resource provider is waiting for Service Fabric VM extension to boot up - and report to it. - - Deploying - Indicates that the Service Fabric runtime is being installed - on the VMs. Cluster resource will be in this state until the cluster boots - up and system services are up. - - BaselineUpgrade - Indicates that the cluster is upgrading to establishes - the cluster version. This upgrade is automatically initiated when the - cluster boots up for the first time. - - UpdatingUserConfiguration - Indicates that the cluster is being upgraded - with the user provided configuration. - - UpdatingUserCertificate - Indicates that the cluster is being upgraded - with the user provided certificate. - - UpdatingInfrastructure - Indicates that the cluster is being upgraded - with the latest Service Fabric runtime version. This happens only when the - **upgradeMode** is set to 'Automatic'. - - EnforcingClusterVersion - Indicates that cluster is on a different - version than expected and the cluster is being upgraded to the expected - version. - - UpgradeServiceUnreachable - Indicates that the system service in the - cluster is no longer polling the Resource Provider. Clusters in this state - cannot be managed by the Resource Provider. - - AutoScale - Indicates that the ReliabilityLevel of the cluster is being - adjusted. - - Ready - Indicates that the cluster is in a stable state. - . Possible values include: 'WaitingForNodes', 'Deploying', - 'BaselineUpgrade', 'UpdatingUserConfiguration', 'UpdatingUserCertificate', - 'UpdatingInfrastructure', 'EnforcingClusterVersion', - 'UpgradeServiceUnreachable', 'AutoScale', 'Ready' - :vartype cluster_state: str or ~azure.mgmt.servicefabric.models.enum - :param diagnostics_storage_account_config: The storage account information - for storing Service Fabric diagnostic logs. - :type diagnostics_storage_account_config: - ~azure.mgmt.servicefabric.models.DiagnosticsStorageAccountConfig - :param event_store_service_enabled: Indicates if the event store service - is enabled. - :type event_store_service_enabled: bool - :param fabric_settings: The list of custom fabric settings to configure - the cluster. - :type fabric_settings: - list[~azure.mgmt.servicefabric.models.SettingsSectionDescription] - :param management_endpoint: Required. The http management endpoint of the - cluster. - :type management_endpoint: str - :param node_types: Required. The list of node types in the cluster. - :type node_types: - list[~azure.mgmt.servicefabric.models.NodeTypeDescription] - :ivar provisioning_state: The provisioning state of the cluster resource. - Possible values include: 'Updating', 'Succeeded', 'Failed', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.servicefabric.models.ProvisioningState - :param reliability_level: The reliability level sets the replica set size - of system services. Learn about - [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). - - None - Run the System services with a target replica set count of 1. - This should only be used for test clusters. - - Bronze - Run the System services with a target replica set count of 3. - This should only be used for test clusters. - - Silver - Run the System services with a target replica set count of 5. - - Gold - Run the System services with a target replica set count of 7. - - Platinum - Run the System services with a target replica set count of 9. - . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', 'Platinum' - :type reliability_level: str or ~azure.mgmt.servicefabric.models.enum - :param reverse_proxy_certificate: The server certificate used by reverse - proxy. - :type reverse_proxy_certificate: - ~azure.mgmt.servicefabric.models.CertificateDescription - :param reverse_proxy_certificate_common_names: Describes a list of server - certificates referenced by common name that are used to secure the - cluster. - :type reverse_proxy_certificate_common_names: - ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames - :param upgrade_description: The policy to use when upgrading the cluster. - :type upgrade_description: - ~azure.mgmt.servicefabric.models.ClusterUpgradePolicy - :param upgrade_mode: The upgrade mode of the cluster when new Service - Fabric runtime version is available. - - Automatic - The cluster will be automatically upgraded to the latest - Service Fabric runtime version as soon as it is available. - - Manual - The cluster will not be automatically upgraded to the latest - Service Fabric runtime version. The cluster is upgraded by setting the - **clusterCodeVersion** property in the cluster resource. - . Possible values include: 'Automatic', 'Manual' - :type upgrade_mode: str or ~azure.mgmt.servicefabric.models.enum - :param vm_image: The VM image VMSS has been configured with. Generic names - such as Windows or Linux can be used. - :type vm_image: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'etag': {'readonly': True}, - 'available_cluster_versions': {'readonly': True}, - 'cluster_endpoint': {'readonly': True}, - 'cluster_id': {'readonly': True}, - 'cluster_state': {'readonly': True}, - 'management_endpoint': {'required': True}, - 'node_types': {'required': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'add_on_features': {'key': 'properties.addOnFeatures', 'type': '[str]'}, - 'available_cluster_versions': {'key': 'properties.availableClusterVersions', 'type': '[ClusterVersionDetails]'}, - 'azure_active_directory': {'key': 'properties.azureActiveDirectory', 'type': 'AzureActiveDirectory'}, - 'certificate': {'key': 'properties.certificate', 'type': 'CertificateDescription'}, - 'certificate_common_names': {'key': 'properties.certificateCommonNames', 'type': 'ServerCertificateCommonNames'}, - 'client_certificate_common_names': {'key': 'properties.clientCertificateCommonNames', 'type': '[ClientCertificateCommonName]'}, - 'client_certificate_thumbprints': {'key': 'properties.clientCertificateThumbprints', 'type': '[ClientCertificateThumbprint]'}, - 'cluster_code_version': {'key': 'properties.clusterCodeVersion', 'type': 'str'}, - 'cluster_endpoint': {'key': 'properties.clusterEndpoint', 'type': 'str'}, - 'cluster_id': {'key': 'properties.clusterId', 'type': 'str'}, - 'cluster_state': {'key': 'properties.clusterState', 'type': 'str'}, - 'diagnostics_storage_account_config': {'key': 'properties.diagnosticsStorageAccountConfig', 'type': 'DiagnosticsStorageAccountConfig'}, - 'event_store_service_enabled': {'key': 'properties.eventStoreServiceEnabled', 'type': 'bool'}, - 'fabric_settings': {'key': 'properties.fabricSettings', 'type': '[SettingsSectionDescription]'}, - 'management_endpoint': {'key': 'properties.managementEndpoint', 'type': 'str'}, - 'node_types': {'key': 'properties.nodeTypes', 'type': '[NodeTypeDescription]'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'reliability_level': {'key': 'properties.reliabilityLevel', 'type': 'str'}, - 'reverse_proxy_certificate': {'key': 'properties.reverseProxyCertificate', 'type': 'CertificateDescription'}, - 'reverse_proxy_certificate_common_names': {'key': 'properties.reverseProxyCertificateCommonNames', 'type': 'ServerCertificateCommonNames'}, - 'upgrade_description': {'key': 'properties.upgradeDescription', 'type': 'ClusterUpgradePolicy'}, - 'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'str'}, - 'vm_image': {'key': 'properties.vmImage', 'type': 'str'}, - } - - def __init__(self, *, location: str, management_endpoint: str, node_types, tags=None, add_on_features=None, azure_active_directory=None, certificate=None, certificate_common_names=None, client_certificate_common_names=None, client_certificate_thumbprints=None, cluster_code_version: str=None, diagnostics_storage_account_config=None, event_store_service_enabled: bool=None, fabric_settings=None, reliability_level=None, reverse_proxy_certificate=None, reverse_proxy_certificate_common_names=None, upgrade_description=None, upgrade_mode=None, vm_image: str=None, **kwargs) -> None: - super(Cluster, self).__init__(location=location, tags=tags, **kwargs) - self.add_on_features = add_on_features - self.available_cluster_versions = None - self.azure_active_directory = azure_active_directory - self.certificate = certificate - self.certificate_common_names = certificate_common_names - self.client_certificate_common_names = client_certificate_common_names - self.client_certificate_thumbprints = client_certificate_thumbprints - self.cluster_code_version = cluster_code_version - self.cluster_endpoint = None - self.cluster_id = None - self.cluster_state = None - self.diagnostics_storage_account_config = diagnostics_storage_account_config - self.event_store_service_enabled = event_store_service_enabled - self.fabric_settings = fabric_settings - self.management_endpoint = management_endpoint - self.node_types = node_types - self.provisioning_state = None - self.reliability_level = reliability_level - self.reverse_proxy_certificate = reverse_proxy_certificate - self.reverse_proxy_certificate_common_names = reverse_proxy_certificate_common_names - self.upgrade_description = upgrade_description - self.upgrade_mode = upgrade_mode - self.vm_image = vm_image diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_update_parameters.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_update_parameters.py deleted file mode 100644 index c4cac4a2965b..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_update_parameters.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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 ClusterUpdateParameters(Model): - """Cluster update request. - - :param add_on_features: The list of add-on features to enable in the - cluster. - :type add_on_features: list[str] - :param certificate: The certificate to use for securing the cluster. The - certificate provided will be used for node to node security within the - cluster, SSL certificate for cluster management endpoint and default - admin client. - :type certificate: ~azure.mgmt.servicefabric.models.CertificateDescription - :param certificate_common_names: Describes a list of server certificates - referenced by common name that are used to secure the cluster. - :type certificate_common_names: - ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames - :param client_certificate_common_names: The list of client certificates - referenced by common name that are allowed to manage the cluster. This - will overwrite the existing list. - :type client_certificate_common_names: - list[~azure.mgmt.servicefabric.models.ClientCertificateCommonName] - :param client_certificate_thumbprints: The list of client certificates - referenced by thumbprint that are allowed to manage the cluster. This will - overwrite the existing list. - :type client_certificate_thumbprints: - list[~azure.mgmt.servicefabric.models.ClientCertificateThumbprint] - :param cluster_code_version: The Service Fabric runtime version of the - cluster. This property can only by set the user when **upgradeMode** is - set to 'Manual'. To get list of available Service Fabric versions for new - clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of - available version for existing clusters use **availableClusterVersions**. - :type cluster_code_version: str - :param event_store_service_enabled: Indicates if the event store service - is enabled. - :type event_store_service_enabled: bool - :param fabric_settings: The list of custom fabric settings to configure - the cluster. This will overwrite the existing list. - :type fabric_settings: - list[~azure.mgmt.servicefabric.models.SettingsSectionDescription] - :param node_types: The list of node types in the cluster. This will - overwrite the existing list. - :type node_types: - list[~azure.mgmt.servicefabric.models.NodeTypeDescription] - :param reliability_level: The reliability level sets the replica set size - of system services. Learn about - [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). - - None - Run the System services with a target replica set count of 1. - This should only be used for test clusters. - - Bronze - Run the System services with a target replica set count of 3. - This should only be used for test clusters. - - Silver - Run the System services with a target replica set count of 5. - - Gold - Run the System services with a target replica set count of 7. - - Platinum - Run the System services with a target replica set count of 9. - . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', 'Platinum' - :type reliability_level: str or ~azure.mgmt.servicefabric.models.enum - :param reverse_proxy_certificate: The server certificate used by reverse - proxy. - :type reverse_proxy_certificate: - ~azure.mgmt.servicefabric.models.CertificateDescription - :param upgrade_description: The policy to use when upgrading the cluster. - :type upgrade_description: - ~azure.mgmt.servicefabric.models.ClusterUpgradePolicy - :param upgrade_mode: The upgrade mode of the cluster when new Service - Fabric runtime version is available. - - Automatic - The cluster will be automatically upgraded to the latest - Service Fabric runtime version as soon as it is available. - - Manual - The cluster will not be automatically upgraded to the latest - Service Fabric runtime version. The cluster is upgraded by setting the - **clusterCodeVersion** property in the cluster resource. - . Possible values include: 'Automatic', 'Manual' - :type upgrade_mode: str or ~azure.mgmt.servicefabric.models.enum - :param tags: Cluster update parameters - :type tags: dict[str, str] - """ - - _attribute_map = { - 'add_on_features': {'key': 'properties.addOnFeatures', 'type': '[str]'}, - 'certificate': {'key': 'properties.certificate', 'type': 'CertificateDescription'}, - 'certificate_common_names': {'key': 'properties.certificateCommonNames', 'type': 'ServerCertificateCommonNames'}, - 'client_certificate_common_names': {'key': 'properties.clientCertificateCommonNames', 'type': '[ClientCertificateCommonName]'}, - 'client_certificate_thumbprints': {'key': 'properties.clientCertificateThumbprints', 'type': '[ClientCertificateThumbprint]'}, - 'cluster_code_version': {'key': 'properties.clusterCodeVersion', 'type': 'str'}, - 'event_store_service_enabled': {'key': 'properties.eventStoreServiceEnabled', 'type': 'bool'}, - 'fabric_settings': {'key': 'properties.fabricSettings', 'type': '[SettingsSectionDescription]'}, - 'node_types': {'key': 'properties.nodeTypes', 'type': '[NodeTypeDescription]'}, - 'reliability_level': {'key': 'properties.reliabilityLevel', 'type': 'str'}, - 'reverse_proxy_certificate': {'key': 'properties.reverseProxyCertificate', 'type': 'CertificateDescription'}, - 'upgrade_description': {'key': 'properties.upgradeDescription', 'type': 'ClusterUpgradePolicy'}, - 'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ClusterUpdateParameters, self).__init__(**kwargs) - self.add_on_features = kwargs.get('add_on_features', None) - self.certificate = kwargs.get('certificate', None) - self.certificate_common_names = kwargs.get('certificate_common_names', None) - self.client_certificate_common_names = kwargs.get('client_certificate_common_names', None) - self.client_certificate_thumbprints = kwargs.get('client_certificate_thumbprints', None) - self.cluster_code_version = kwargs.get('cluster_code_version', None) - self.event_store_service_enabled = kwargs.get('event_store_service_enabled', None) - self.fabric_settings = kwargs.get('fabric_settings', None) - self.node_types = kwargs.get('node_types', None) - self.reliability_level = kwargs.get('reliability_level', None) - self.reverse_proxy_certificate = kwargs.get('reverse_proxy_certificate', None) - self.upgrade_description = kwargs.get('upgrade_description', None) - self.upgrade_mode = kwargs.get('upgrade_mode', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_update_parameters_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_update_parameters_py3.py deleted file mode 100644 index 7bcc9af5d52d..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_update_parameters_py3.py +++ /dev/null @@ -1,121 +0,0 @@ -# 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 ClusterUpdateParameters(Model): - """Cluster update request. - - :param add_on_features: The list of add-on features to enable in the - cluster. - :type add_on_features: list[str] - :param certificate: The certificate to use for securing the cluster. The - certificate provided will be used for node to node security within the - cluster, SSL certificate for cluster management endpoint and default - admin client. - :type certificate: ~azure.mgmt.servicefabric.models.CertificateDescription - :param certificate_common_names: Describes a list of server certificates - referenced by common name that are used to secure the cluster. - :type certificate_common_names: - ~azure.mgmt.servicefabric.models.ServerCertificateCommonNames - :param client_certificate_common_names: The list of client certificates - referenced by common name that are allowed to manage the cluster. This - will overwrite the existing list. - :type client_certificate_common_names: - list[~azure.mgmt.servicefabric.models.ClientCertificateCommonName] - :param client_certificate_thumbprints: The list of client certificates - referenced by thumbprint that are allowed to manage the cluster. This will - overwrite the existing list. - :type client_certificate_thumbprints: - list[~azure.mgmt.servicefabric.models.ClientCertificateThumbprint] - :param cluster_code_version: The Service Fabric runtime version of the - cluster. This property can only by set the user when **upgradeMode** is - set to 'Manual'. To get list of available Service Fabric versions for new - clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of - available version for existing clusters use **availableClusterVersions**. - :type cluster_code_version: str - :param event_store_service_enabled: Indicates if the event store service - is enabled. - :type event_store_service_enabled: bool - :param fabric_settings: The list of custom fabric settings to configure - the cluster. This will overwrite the existing list. - :type fabric_settings: - list[~azure.mgmt.servicefabric.models.SettingsSectionDescription] - :param node_types: The list of node types in the cluster. This will - overwrite the existing list. - :type node_types: - list[~azure.mgmt.servicefabric.models.NodeTypeDescription] - :param reliability_level: The reliability level sets the replica set size - of system services. Learn about - [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). - - None - Run the System services with a target replica set count of 1. - This should only be used for test clusters. - - Bronze - Run the System services with a target replica set count of 3. - This should only be used for test clusters. - - Silver - Run the System services with a target replica set count of 5. - - Gold - Run the System services with a target replica set count of 7. - - Platinum - Run the System services with a target replica set count of 9. - . Possible values include: 'None', 'Bronze', 'Silver', 'Gold', 'Platinum' - :type reliability_level: str or ~azure.mgmt.servicefabric.models.enum - :param reverse_proxy_certificate: The server certificate used by reverse - proxy. - :type reverse_proxy_certificate: - ~azure.mgmt.servicefabric.models.CertificateDescription - :param upgrade_description: The policy to use when upgrading the cluster. - :type upgrade_description: - ~azure.mgmt.servicefabric.models.ClusterUpgradePolicy - :param upgrade_mode: The upgrade mode of the cluster when new Service - Fabric runtime version is available. - - Automatic - The cluster will be automatically upgraded to the latest - Service Fabric runtime version as soon as it is available. - - Manual - The cluster will not be automatically upgraded to the latest - Service Fabric runtime version. The cluster is upgraded by setting the - **clusterCodeVersion** property in the cluster resource. - . Possible values include: 'Automatic', 'Manual' - :type upgrade_mode: str or ~azure.mgmt.servicefabric.models.enum - :param tags: Cluster update parameters - :type tags: dict[str, str] - """ - - _attribute_map = { - 'add_on_features': {'key': 'properties.addOnFeatures', 'type': '[str]'}, - 'certificate': {'key': 'properties.certificate', 'type': 'CertificateDescription'}, - 'certificate_common_names': {'key': 'properties.certificateCommonNames', 'type': 'ServerCertificateCommonNames'}, - 'client_certificate_common_names': {'key': 'properties.clientCertificateCommonNames', 'type': '[ClientCertificateCommonName]'}, - 'client_certificate_thumbprints': {'key': 'properties.clientCertificateThumbprints', 'type': '[ClientCertificateThumbprint]'}, - 'cluster_code_version': {'key': 'properties.clusterCodeVersion', 'type': 'str'}, - 'event_store_service_enabled': {'key': 'properties.eventStoreServiceEnabled', 'type': 'bool'}, - 'fabric_settings': {'key': 'properties.fabricSettings', 'type': '[SettingsSectionDescription]'}, - 'node_types': {'key': 'properties.nodeTypes', 'type': '[NodeTypeDescription]'}, - 'reliability_level': {'key': 'properties.reliabilityLevel', 'type': 'str'}, - 'reverse_proxy_certificate': {'key': 'properties.reverseProxyCertificate', 'type': 'CertificateDescription'}, - 'upgrade_description': {'key': 'properties.upgradeDescription', 'type': 'ClusterUpgradePolicy'}, - 'upgrade_mode': {'key': 'properties.upgradeMode', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, add_on_features=None, certificate=None, certificate_common_names=None, client_certificate_common_names=None, client_certificate_thumbprints=None, cluster_code_version: str=None, event_store_service_enabled: bool=None, fabric_settings=None, node_types=None, reliability_level=None, reverse_proxy_certificate=None, upgrade_description=None, upgrade_mode=None, tags=None, **kwargs) -> None: - super(ClusterUpdateParameters, self).__init__(**kwargs) - self.add_on_features = add_on_features - self.certificate = certificate - self.certificate_common_names = certificate_common_names - self.client_certificate_common_names = client_certificate_common_names - self.client_certificate_thumbprints = client_certificate_thumbprints - self.cluster_code_version = cluster_code_version - self.event_store_service_enabled = event_store_service_enabled - self.fabric_settings = fabric_settings - self.node_types = node_types - self.reliability_level = reliability_level - self.reverse_proxy_certificate = reverse_proxy_certificate - self.upgrade_description = upgrade_description - self.upgrade_mode = upgrade_mode - self.tags = tags diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_delta_health_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_delta_health_policy.py deleted file mode 100644 index 2c12e8b81e8c..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_delta_health_policy.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 ClusterUpgradeDeltaHealthPolicy(Model): - """Describes the delta health policies for the cluster upgrade. - - All required parameters must be populated in order to send to Azure. - - :param max_percent_delta_unhealthy_nodes: Required. The maximum allowed - percentage of nodes health degradation allowed during cluster upgrades. - The delta is measured between the state of the nodes at the beginning of - upgrade and the state of the nodes at the time of the health evaluation. - The check is performed after every upgrade domain upgrade completion to - make sure the global state of the cluster is within tolerated limits. - :type max_percent_delta_unhealthy_nodes: int - :param max_percent_upgrade_domain_delta_unhealthy_nodes: Required. The - maximum allowed percentage of upgrade domain nodes health degradation - allowed during cluster upgrades. - The delta is measured between the state of the upgrade domain nodes at the - beginning of upgrade and the state of the upgrade domain nodes at the time - of the health evaluation. - The check is performed after every upgrade domain upgrade completion for - all completed upgrade domains to make sure the state of the upgrade - domains is within tolerated limits. - :type max_percent_upgrade_domain_delta_unhealthy_nodes: int - :param max_percent_delta_unhealthy_applications: Required. The maximum - allowed percentage of applications health degradation allowed during - cluster upgrades. - The delta is measured between the state of the applications at the - beginning of upgrade and the state of the applications at the time of the - health evaluation. - The check is performed after every upgrade domain upgrade completion to - make sure the global state of the cluster is within tolerated limits. - System services are not included in this. - :type max_percent_delta_unhealthy_applications: int - :param application_delta_health_policies: Defines the application delta - health policy map used to evaluate the health of an application or one of - its child entities when upgrading the cluster. - :type application_delta_health_policies: dict[str, - ~azure.mgmt.servicefabric.models.ApplicationDeltaHealthPolicy] - """ - - _validation = { - 'max_percent_delta_unhealthy_nodes': {'required': True, 'maximum': 100, 'minimum': 0}, - 'max_percent_upgrade_domain_delta_unhealthy_nodes': {'required': True, 'maximum': 100, 'minimum': 0}, - 'max_percent_delta_unhealthy_applications': {'required': True, 'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_delta_unhealthy_nodes': {'key': 'maxPercentDeltaUnhealthyNodes', 'type': 'int'}, - 'max_percent_upgrade_domain_delta_unhealthy_nodes': {'key': 'maxPercentUpgradeDomainDeltaUnhealthyNodes', 'type': 'int'}, - 'max_percent_delta_unhealthy_applications': {'key': 'maxPercentDeltaUnhealthyApplications', 'type': 'int'}, - 'application_delta_health_policies': {'key': 'applicationDeltaHealthPolicies', 'type': '{ApplicationDeltaHealthPolicy}'}, - } - - def __init__(self, **kwargs): - super(ClusterUpgradeDeltaHealthPolicy, self).__init__(**kwargs) - self.max_percent_delta_unhealthy_nodes = kwargs.get('max_percent_delta_unhealthy_nodes', None) - self.max_percent_upgrade_domain_delta_unhealthy_nodes = kwargs.get('max_percent_upgrade_domain_delta_unhealthy_nodes', None) - self.max_percent_delta_unhealthy_applications = kwargs.get('max_percent_delta_unhealthy_applications', None) - self.application_delta_health_policies = kwargs.get('application_delta_health_policies', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_delta_health_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_delta_health_policy_py3.py deleted file mode 100644 index 0ca8be68f5ca..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_delta_health_policy_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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 ClusterUpgradeDeltaHealthPolicy(Model): - """Describes the delta health policies for the cluster upgrade. - - All required parameters must be populated in order to send to Azure. - - :param max_percent_delta_unhealthy_nodes: Required. The maximum allowed - percentage of nodes health degradation allowed during cluster upgrades. - The delta is measured between the state of the nodes at the beginning of - upgrade and the state of the nodes at the time of the health evaluation. - The check is performed after every upgrade domain upgrade completion to - make sure the global state of the cluster is within tolerated limits. - :type max_percent_delta_unhealthy_nodes: int - :param max_percent_upgrade_domain_delta_unhealthy_nodes: Required. The - maximum allowed percentage of upgrade domain nodes health degradation - allowed during cluster upgrades. - The delta is measured between the state of the upgrade domain nodes at the - beginning of upgrade and the state of the upgrade domain nodes at the time - of the health evaluation. - The check is performed after every upgrade domain upgrade completion for - all completed upgrade domains to make sure the state of the upgrade - domains is within tolerated limits. - :type max_percent_upgrade_domain_delta_unhealthy_nodes: int - :param max_percent_delta_unhealthy_applications: Required. The maximum - allowed percentage of applications health degradation allowed during - cluster upgrades. - The delta is measured between the state of the applications at the - beginning of upgrade and the state of the applications at the time of the - health evaluation. - The check is performed after every upgrade domain upgrade completion to - make sure the global state of the cluster is within tolerated limits. - System services are not included in this. - :type max_percent_delta_unhealthy_applications: int - :param application_delta_health_policies: Defines the application delta - health policy map used to evaluate the health of an application or one of - its child entities when upgrading the cluster. - :type application_delta_health_policies: dict[str, - ~azure.mgmt.servicefabric.models.ApplicationDeltaHealthPolicy] - """ - - _validation = { - 'max_percent_delta_unhealthy_nodes': {'required': True, 'maximum': 100, 'minimum': 0}, - 'max_percent_upgrade_domain_delta_unhealthy_nodes': {'required': True, 'maximum': 100, 'minimum': 0}, - 'max_percent_delta_unhealthy_applications': {'required': True, 'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_delta_unhealthy_nodes': {'key': 'maxPercentDeltaUnhealthyNodes', 'type': 'int'}, - 'max_percent_upgrade_domain_delta_unhealthy_nodes': {'key': 'maxPercentUpgradeDomainDeltaUnhealthyNodes', 'type': 'int'}, - 'max_percent_delta_unhealthy_applications': {'key': 'maxPercentDeltaUnhealthyApplications', 'type': 'int'}, - 'application_delta_health_policies': {'key': 'applicationDeltaHealthPolicies', 'type': '{ApplicationDeltaHealthPolicy}'}, - } - - def __init__(self, *, max_percent_delta_unhealthy_nodes: int, max_percent_upgrade_domain_delta_unhealthy_nodes: int, max_percent_delta_unhealthy_applications: int, application_delta_health_policies=None, **kwargs) -> None: - super(ClusterUpgradeDeltaHealthPolicy, self).__init__(**kwargs) - self.max_percent_delta_unhealthy_nodes = max_percent_delta_unhealthy_nodes - self.max_percent_upgrade_domain_delta_unhealthy_nodes = max_percent_upgrade_domain_delta_unhealthy_nodes - self.max_percent_delta_unhealthy_applications = max_percent_delta_unhealthy_applications - self.application_delta_health_policies = application_delta_health_policies diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_policy.py deleted file mode 100644 index dd9599c097e3..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_policy.py +++ /dev/null @@ -1,94 +0,0 @@ -# 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 ClusterUpgradePolicy(Model): - """Describes the policy used when upgrading the cluster. - - All required parameters must be populated in order to send to Azure. - - :param force_restart: If true, then processes are forcefully restarted - during upgrade even when the code version has not changed (the upgrade - only changes configuration or data). - :type force_restart: bool - :param upgrade_replica_set_check_timeout: Required. The maximum amount of - time to block processing of an upgrade domain and prevent loss of - availability when there are unexpected issues. When this timeout expires, - processing of the upgrade domain will proceed regardless of availability - loss issues. The timeout is reset at the start of each upgrade domain. The - timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. - :type upgrade_replica_set_check_timeout: str - :param health_check_wait_duration: Required. The length of time to wait - after completing an upgrade domain before performing health checks. The - duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. - :type health_check_wait_duration: str - :param health_check_stable_duration: Required. The amount of time that the - application or cluster must remain healthy before the upgrade proceeds to - the next upgrade domain. The duration can be in either hh:mm:ss or in - d.hh:mm:ss.ms format. - :type health_check_stable_duration: str - :param health_check_retry_timeout: Required. The amount of time to retry - health evaluation when the application or cluster is unhealthy before the - upgrade rolls back. The timeout can be in either hh:mm:ss or in - d.hh:mm:ss.ms format. - :type health_check_retry_timeout: str - :param upgrade_timeout: Required. The amount of time the overall upgrade - has to complete before the upgrade rolls back. The timeout can be in - either hh:mm:ss or in d.hh:mm:ss.ms format. - :type upgrade_timeout: str - :param upgrade_domain_timeout: Required. The amount of time each upgrade - domain has to complete before the upgrade rolls back. The timeout can be - in either hh:mm:ss or in d.hh:mm:ss.ms format. - :type upgrade_domain_timeout: str - :param health_policy: Required. The cluster health policy used when - upgrading the cluster. - :type health_policy: ~azure.mgmt.servicefabric.models.ClusterHealthPolicy - :param delta_health_policy: The cluster delta health policy used when - upgrading the cluster. - :type delta_health_policy: - ~azure.mgmt.servicefabric.models.ClusterUpgradeDeltaHealthPolicy - """ - - _validation = { - 'upgrade_replica_set_check_timeout': {'required': True}, - 'health_check_wait_duration': {'required': True}, - 'health_check_stable_duration': {'required': True}, - 'health_check_retry_timeout': {'required': True}, - 'upgrade_timeout': {'required': True}, - 'upgrade_domain_timeout': {'required': True}, - 'health_policy': {'required': True}, - } - - _attribute_map = { - 'force_restart': {'key': 'forceRestart', 'type': 'bool'}, - 'upgrade_replica_set_check_timeout': {'key': 'upgradeReplicaSetCheckTimeout', 'type': 'str'}, - 'health_check_wait_duration': {'key': 'healthCheckWaitDuration', 'type': 'str'}, - 'health_check_stable_duration': {'key': 'healthCheckStableDuration', 'type': 'str'}, - 'health_check_retry_timeout': {'key': 'healthCheckRetryTimeout', 'type': 'str'}, - 'upgrade_timeout': {'key': 'upgradeTimeout', 'type': 'str'}, - 'upgrade_domain_timeout': {'key': 'upgradeDomainTimeout', 'type': 'str'}, - 'health_policy': {'key': 'healthPolicy', 'type': 'ClusterHealthPolicy'}, - 'delta_health_policy': {'key': 'deltaHealthPolicy', 'type': 'ClusterUpgradeDeltaHealthPolicy'}, - } - - def __init__(self, **kwargs): - super(ClusterUpgradePolicy, self).__init__(**kwargs) - self.force_restart = kwargs.get('force_restart', None) - self.upgrade_replica_set_check_timeout = kwargs.get('upgrade_replica_set_check_timeout', None) - self.health_check_wait_duration = kwargs.get('health_check_wait_duration', None) - self.health_check_stable_duration = kwargs.get('health_check_stable_duration', None) - self.health_check_retry_timeout = kwargs.get('health_check_retry_timeout', None) - self.upgrade_timeout = kwargs.get('upgrade_timeout', None) - self.upgrade_domain_timeout = kwargs.get('upgrade_domain_timeout', None) - self.health_policy = kwargs.get('health_policy', None) - self.delta_health_policy = kwargs.get('delta_health_policy', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_policy_py3.py deleted file mode 100644 index 83f5ab73ab84..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_upgrade_policy_py3.py +++ /dev/null @@ -1,94 +0,0 @@ -# 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 ClusterUpgradePolicy(Model): - """Describes the policy used when upgrading the cluster. - - All required parameters must be populated in order to send to Azure. - - :param force_restart: If true, then processes are forcefully restarted - during upgrade even when the code version has not changed (the upgrade - only changes configuration or data). - :type force_restart: bool - :param upgrade_replica_set_check_timeout: Required. The maximum amount of - time to block processing of an upgrade domain and prevent loss of - availability when there are unexpected issues. When this timeout expires, - processing of the upgrade domain will proceed regardless of availability - loss issues. The timeout is reset at the start of each upgrade domain. The - timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. - :type upgrade_replica_set_check_timeout: str - :param health_check_wait_duration: Required. The length of time to wait - after completing an upgrade domain before performing health checks. The - duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. - :type health_check_wait_duration: str - :param health_check_stable_duration: Required. The amount of time that the - application or cluster must remain healthy before the upgrade proceeds to - the next upgrade domain. The duration can be in either hh:mm:ss or in - d.hh:mm:ss.ms format. - :type health_check_stable_duration: str - :param health_check_retry_timeout: Required. The amount of time to retry - health evaluation when the application or cluster is unhealthy before the - upgrade rolls back. The timeout can be in either hh:mm:ss or in - d.hh:mm:ss.ms format. - :type health_check_retry_timeout: str - :param upgrade_timeout: Required. The amount of time the overall upgrade - has to complete before the upgrade rolls back. The timeout can be in - either hh:mm:ss or in d.hh:mm:ss.ms format. - :type upgrade_timeout: str - :param upgrade_domain_timeout: Required. The amount of time each upgrade - domain has to complete before the upgrade rolls back. The timeout can be - in either hh:mm:ss or in d.hh:mm:ss.ms format. - :type upgrade_domain_timeout: str - :param health_policy: Required. The cluster health policy used when - upgrading the cluster. - :type health_policy: ~azure.mgmt.servicefabric.models.ClusterHealthPolicy - :param delta_health_policy: The cluster delta health policy used when - upgrading the cluster. - :type delta_health_policy: - ~azure.mgmt.servicefabric.models.ClusterUpgradeDeltaHealthPolicy - """ - - _validation = { - 'upgrade_replica_set_check_timeout': {'required': True}, - 'health_check_wait_duration': {'required': True}, - 'health_check_stable_duration': {'required': True}, - 'health_check_retry_timeout': {'required': True}, - 'upgrade_timeout': {'required': True}, - 'upgrade_domain_timeout': {'required': True}, - 'health_policy': {'required': True}, - } - - _attribute_map = { - 'force_restart': {'key': 'forceRestart', 'type': 'bool'}, - 'upgrade_replica_set_check_timeout': {'key': 'upgradeReplicaSetCheckTimeout', 'type': 'str'}, - 'health_check_wait_duration': {'key': 'healthCheckWaitDuration', 'type': 'str'}, - 'health_check_stable_duration': {'key': 'healthCheckStableDuration', 'type': 'str'}, - 'health_check_retry_timeout': {'key': 'healthCheckRetryTimeout', 'type': 'str'}, - 'upgrade_timeout': {'key': 'upgradeTimeout', 'type': 'str'}, - 'upgrade_domain_timeout': {'key': 'upgradeDomainTimeout', 'type': 'str'}, - 'health_policy': {'key': 'healthPolicy', 'type': 'ClusterHealthPolicy'}, - 'delta_health_policy': {'key': 'deltaHealthPolicy', 'type': 'ClusterUpgradeDeltaHealthPolicy'}, - } - - def __init__(self, *, upgrade_replica_set_check_timeout: str, health_check_wait_duration: str, health_check_stable_duration: str, health_check_retry_timeout: str, upgrade_timeout: str, upgrade_domain_timeout: str, health_policy, force_restart: bool=None, delta_health_policy=None, **kwargs) -> None: - super(ClusterUpgradePolicy, self).__init__(**kwargs) - self.force_restart = force_restart - self.upgrade_replica_set_check_timeout = upgrade_replica_set_check_timeout - self.health_check_wait_duration = health_check_wait_duration - self.health_check_stable_duration = health_check_stable_duration - self.health_check_retry_timeout = health_check_retry_timeout - self.upgrade_timeout = upgrade_timeout - self.upgrade_domain_timeout = upgrade_domain_timeout - self.health_policy = health_policy - self.delta_health_policy = delta_health_policy diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_version_details.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_version_details.py deleted file mode 100644 index 4511155da123..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_version_details.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ClusterVersionDetails(Model): - """The detail of the Service Fabric runtime version result. - - :param code_version: The Service Fabric runtime version of the cluster. - :type code_version: str - :param support_expiry_utc: The date of expiry of support of the version. - :type support_expiry_utc: str - :param environment: Indicates if this version is for Windows or Linux - operating system. Possible values include: 'Windows', 'Linux' - :type environment: str or ~azure.mgmt.servicefabric.models.enum - """ - - _attribute_map = { - 'code_version': {'key': 'codeVersion', 'type': 'str'}, - 'support_expiry_utc': {'key': 'supportExpiryUtc', 'type': 'str'}, - 'environment': {'key': 'environment', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterVersionDetails, self).__init__(**kwargs) - self.code_version = kwargs.get('code_version', None) - self.support_expiry_utc = kwargs.get('support_expiry_utc', None) - self.environment = kwargs.get('environment', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_version_details_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_version_details_py3.py deleted file mode 100644 index db135582ac2b..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/cluster_version_details_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ClusterVersionDetails(Model): - """The detail of the Service Fabric runtime version result. - - :param code_version: The Service Fabric runtime version of the cluster. - :type code_version: str - :param support_expiry_utc: The date of expiry of support of the version. - :type support_expiry_utc: str - :param environment: Indicates if this version is for Windows or Linux - operating system. Possible values include: 'Windows', 'Linux' - :type environment: str or ~azure.mgmt.servicefabric.models.enum - """ - - _attribute_map = { - 'code_version': {'key': 'codeVersion', 'type': 'str'}, - 'support_expiry_utc': {'key': 'supportExpiryUtc', 'type': 'str'}, - 'environment': {'key': 'environment', 'type': 'str'}, - } - - def __init__(self, *, code_version: str=None, support_expiry_utc: str=None, environment=None, **kwargs) -> None: - super(ClusterVersionDetails, self).__init__(**kwargs) - self.code_version = code_version - self.support_expiry_utc = support_expiry_utc - self.environment = environment diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/diagnostics_storage_account_config.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/diagnostics_storage_account_config.py deleted file mode 100644 index c10f28b1b3c2..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/diagnostics_storage_account_config.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 DiagnosticsStorageAccountConfig(Model): - """The storage account information for storing Service Fabric diagnostic logs. - - All required parameters must be populated in order to send to Azure. - - :param storage_account_name: Required. The Azure storage account name. - :type storage_account_name: str - :param protected_account_key_name: Required. The protected diagnostics - storage key name. - :type protected_account_key_name: str - :param blob_endpoint: Required. The blob endpoint of the azure storage - account. - :type blob_endpoint: str - :param queue_endpoint: Required. The queue endpoint of the azure storage - account. - :type queue_endpoint: str - :param table_endpoint: Required. The table endpoint of the azure storage - account. - :type table_endpoint: str - """ - - _validation = { - 'storage_account_name': {'required': True}, - 'protected_account_key_name': {'required': True}, - 'blob_endpoint': {'required': True}, - 'queue_endpoint': {'required': True}, - 'table_endpoint': {'required': True}, - } - - _attribute_map = { - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'protected_account_key_name': {'key': 'protectedAccountKeyName', 'type': 'str'}, - 'blob_endpoint': {'key': 'blobEndpoint', 'type': 'str'}, - 'queue_endpoint': {'key': 'queueEndpoint', 'type': 'str'}, - 'table_endpoint': {'key': 'tableEndpoint', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DiagnosticsStorageAccountConfig, self).__init__(**kwargs) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.protected_account_key_name = kwargs.get('protected_account_key_name', None) - self.blob_endpoint = kwargs.get('blob_endpoint', None) - self.queue_endpoint = kwargs.get('queue_endpoint', None) - self.table_endpoint = kwargs.get('table_endpoint', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/diagnostics_storage_account_config_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/diagnostics_storage_account_config_py3.py deleted file mode 100644 index d5616d0fd687..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/diagnostics_storage_account_config_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 DiagnosticsStorageAccountConfig(Model): - """The storage account information for storing Service Fabric diagnostic logs. - - All required parameters must be populated in order to send to Azure. - - :param storage_account_name: Required. The Azure storage account name. - :type storage_account_name: str - :param protected_account_key_name: Required. The protected diagnostics - storage key name. - :type protected_account_key_name: str - :param blob_endpoint: Required. The blob endpoint of the azure storage - account. - :type blob_endpoint: str - :param queue_endpoint: Required. The queue endpoint of the azure storage - account. - :type queue_endpoint: str - :param table_endpoint: Required. The table endpoint of the azure storage - account. - :type table_endpoint: str - """ - - _validation = { - 'storage_account_name': {'required': True}, - 'protected_account_key_name': {'required': True}, - 'blob_endpoint': {'required': True}, - 'queue_endpoint': {'required': True}, - 'table_endpoint': {'required': True}, - } - - _attribute_map = { - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'protected_account_key_name': {'key': 'protectedAccountKeyName', 'type': 'str'}, - 'blob_endpoint': {'key': 'blobEndpoint', 'type': 'str'}, - 'queue_endpoint': {'key': 'queueEndpoint', 'type': 'str'}, - 'table_endpoint': {'key': 'tableEndpoint', 'type': 'str'}, - } - - def __init__(self, *, storage_account_name: str, protected_account_key_name: str, blob_endpoint: str, queue_endpoint: str, table_endpoint: str, **kwargs) -> None: - super(DiagnosticsStorageAccountConfig, self).__init__(**kwargs) - self.storage_account_name = storage_account_name - self.protected_account_key_name = protected_account_key_name - self.blob_endpoint = blob_endpoint - self.queue_endpoint = queue_endpoint - self.table_endpoint = table_endpoint diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/endpoint_range_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/endpoint_range_description.py deleted file mode 100644 index 9f45b31a99d3..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/endpoint_range_description.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 EndpointRangeDescription(Model): - """Port range details. - - All required parameters must be populated in order to send to Azure. - - :param start_port: Required. Starting port of a range of ports - :type start_port: int - :param end_port: Required. End port of a range of ports - :type end_port: int - """ - - _validation = { - 'start_port': {'required': True}, - 'end_port': {'required': True}, - } - - _attribute_map = { - 'start_port': {'key': 'startPort', 'type': 'int'}, - 'end_port': {'key': 'endPort', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(EndpointRangeDescription, self).__init__(**kwargs) - self.start_port = kwargs.get('start_port', None) - self.end_port = kwargs.get('end_port', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/endpoint_range_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/endpoint_range_description_py3.py deleted file mode 100644 index c9458efaa375..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/endpoint_range_description_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 EndpointRangeDescription(Model): - """Port range details. - - All required parameters must be populated in order to send to Azure. - - :param start_port: Required. Starting port of a range of ports - :type start_port: int - :param end_port: Required. End port of a range of ports - :type end_port: int - """ - - _validation = { - 'start_port': {'required': True}, - 'end_port': {'required': True}, - } - - _attribute_map = { - 'start_port': {'key': 'startPort', 'type': 'int'}, - 'end_port': {'key': 'endPort', 'type': 'int'}, - } - - def __init__(self, *, start_port: int, end_port: int, **kwargs) -> None: - super(EndpointRangeDescription, self).__init__(**kwargs) - self.start_port = start_port - self.end_port = end_port diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model.py deleted file mode 100644 index e80bc33596d8..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class ErrorModel(Model): - """The structure of the error. - - :param error: The error details. - :type error: ~azure.mgmt.servicefabric.models.ErrorModelError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorModelError'}, - } - - def __init__(self, **kwargs): - super(ErrorModel, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ErrorModelException(HttpOperationError): - """Server responsed with exception of type: 'ErrorModel'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorModelException, self).__init__(deserialize, response, 'ErrorModel', *args) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_error.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_error.py deleted file mode 100644 index 97cef377da79..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_error.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 ErrorModelError(Model): - """The error details. - - :param code: The error code. - :type code: str - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorModelError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_error_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_error_py3.py deleted file mode 100644 index 361be795bec5..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_error_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 ErrorModelError(Model): - """The error details. - - :param code: The error code. - :type code: str - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: - super(ErrorModelError, self).__init__(**kwargs) - self.code = code - self.message = message diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_py3.py deleted file mode 100644 index 4a77c32d7f59..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/error_model_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 -from msrest.exceptions import HttpOperationError - - -class ErrorModel(Model): - """The structure of the error. - - :param error: The error details. - :type error: ~azure.mgmt.servicefabric.models.ErrorModelError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorModelError'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(ErrorModel, self).__init__(**kwargs) - self.error = error - - -class ErrorModelException(HttpOperationError): - """Server responsed with exception of type: 'ErrorModel'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorModelException, self).__init__(deserialize, response, 'ErrorModel', *args) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/named_partition_scheme_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/named_partition_scheme_description.py deleted file mode 100644 index 4b6c9c8bdb2c..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/named_partition_scheme_description.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .partition_scheme_description import PartitionSchemeDescription - - -class NamedPartitionSchemeDescription(PartitionSchemeDescription): - """Describes the named partition scheme of the service. - - All required parameters must be populated in order to send to Azure. - - :param partition_scheme: Required. Constant filled by server. - :type partition_scheme: str - :param count: Required. The number of partitions. - :type count: int - :param names: Required. Array of size specified by the ‘Count’ parameter, - for the names of the partitions. - :type names: list[str] - """ - - _validation = { - 'partition_scheme': {'required': True}, - 'count': {'required': True}, - 'names': {'required': True}, - } - - _attribute_map = { - 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, - 'count': {'key': 'Count', 'type': 'int'}, - 'names': {'key': 'Names', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(NamedPartitionSchemeDescription, self).__init__(**kwargs) - self.count = kwargs.get('count', None) - self.names = kwargs.get('names', None) - self.partition_scheme = 'Named' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/named_partition_scheme_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/named_partition_scheme_description_py3.py deleted file mode 100644 index 99888733cd58..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/named_partition_scheme_description_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .partition_scheme_description_py3 import PartitionSchemeDescription - - -class NamedPartitionSchemeDescription(PartitionSchemeDescription): - """Describes the named partition scheme of the service. - - All required parameters must be populated in order to send to Azure. - - :param partition_scheme: Required. Constant filled by server. - :type partition_scheme: str - :param count: Required. The number of partitions. - :type count: int - :param names: Required. Array of size specified by the ‘Count’ parameter, - for the names of the partitions. - :type names: list[str] - """ - - _validation = { - 'partition_scheme': {'required': True}, - 'count': {'required': True}, - 'names': {'required': True}, - } - - _attribute_map = { - 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, - 'count': {'key': 'Count', 'type': 'int'}, - 'names': {'key': 'Names', 'type': '[str]'}, - } - - def __init__(self, *, count: int, names, **kwargs) -> None: - super(NamedPartitionSchemeDescription, self).__init__(**kwargs) - self.count = count - self.names = names - self.partition_scheme = 'Named' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/node_type_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/node_type_description.py deleted file mode 100644 index 26d65f46d00b..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/node_type_description.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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 NodeTypeDescription(Model): - """Describes a node type in the cluster, each node type represents sub set of - nodes in the cluster. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the node type. - :type name: str - :param placement_properties: The placement tags applied to nodes in the - node type, which can be used to indicate where certain services (workload) - should run. - :type placement_properties: dict[str, str] - :param capacities: The capacity tags applied to the nodes in the node - type, the cluster resource manager uses these tags to understand how much - resource a node has. - :type capacities: dict[str, str] - :param client_connection_endpoint_port: Required. The TCP cluster - management endpoint port. - :type client_connection_endpoint_port: int - :param http_gateway_endpoint_port: Required. The HTTP cluster management - endpoint port. - :type http_gateway_endpoint_port: int - :param durability_level: The durability level of the node type. Learn - about - [DurabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). - - Bronze - No privileges. This is the default. - - Silver - The infrastructure jobs can be paused for a duration of 10 - minutes per UD. - - Gold - The infrastructure jobs can be paused for a duration of 2 hours - per UD. Gold durability can be enabled only on full node VM skus like - D15_V2, G5 etc. - . Possible values include: 'Bronze', 'Silver', 'Gold' - :type durability_level: str or ~azure.mgmt.servicefabric.models.enum - :param application_ports: The range of ports from which cluster assigned - port to Service Fabric applications. - :type application_ports: - ~azure.mgmt.servicefabric.models.EndpointRangeDescription - :param ephemeral_ports: The range of ephemeral ports that nodes in this - node type should be configured with. - :type ephemeral_ports: - ~azure.mgmt.servicefabric.models.EndpointRangeDescription - :param is_primary: Required. The node type on which system services will - run. Only one node type should be marked as primary. Primary node type - cannot be deleted or changed for existing clusters. - :type is_primary: bool - :param vm_instance_count: Required. The number of nodes in the node type. - This count should match the capacity property in the corresponding - VirtualMachineScaleSet resource. - :type vm_instance_count: int - :param reverse_proxy_endpoint_port: The endpoint used by reverse proxy. - :type reverse_proxy_endpoint_port: int - """ - - _validation = { - 'name': {'required': True}, - 'client_connection_endpoint_port': {'required': True}, - 'http_gateway_endpoint_port': {'required': True}, - 'is_primary': {'required': True}, - 'vm_instance_count': {'required': True, 'maximum': 2147483647, 'minimum': 1}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'placement_properties': {'key': 'placementProperties', 'type': '{str}'}, - 'capacities': {'key': 'capacities', 'type': '{str}'}, - 'client_connection_endpoint_port': {'key': 'clientConnectionEndpointPort', 'type': 'int'}, - 'http_gateway_endpoint_port': {'key': 'httpGatewayEndpointPort', 'type': 'int'}, - 'durability_level': {'key': 'durabilityLevel', 'type': 'str'}, - 'application_ports': {'key': 'applicationPorts', 'type': 'EndpointRangeDescription'}, - 'ephemeral_ports': {'key': 'ephemeralPorts', 'type': 'EndpointRangeDescription'}, - 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, - 'vm_instance_count': {'key': 'vmInstanceCount', 'type': 'int'}, - 'reverse_proxy_endpoint_port': {'key': 'reverseProxyEndpointPort', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(NodeTypeDescription, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.placement_properties = kwargs.get('placement_properties', None) - self.capacities = kwargs.get('capacities', None) - self.client_connection_endpoint_port = kwargs.get('client_connection_endpoint_port', None) - self.http_gateway_endpoint_port = kwargs.get('http_gateway_endpoint_port', None) - self.durability_level = kwargs.get('durability_level', None) - self.application_ports = kwargs.get('application_ports', None) - self.ephemeral_ports = kwargs.get('ephemeral_ports', None) - self.is_primary = kwargs.get('is_primary', None) - self.vm_instance_count = kwargs.get('vm_instance_count', None) - self.reverse_proxy_endpoint_port = kwargs.get('reverse_proxy_endpoint_port', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/node_type_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/node_type_description_py3.py deleted file mode 100644 index b3db84d6bb1e..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/node_type_description_py3.py +++ /dev/null @@ -1,102 +0,0 @@ -# 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 NodeTypeDescription(Model): - """Describes a node type in the cluster, each node type represents sub set of - nodes in the cluster. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the node type. - :type name: str - :param placement_properties: The placement tags applied to nodes in the - node type, which can be used to indicate where certain services (workload) - should run. - :type placement_properties: dict[str, str] - :param capacities: The capacity tags applied to the nodes in the node - type, the cluster resource manager uses these tags to understand how much - resource a node has. - :type capacities: dict[str, str] - :param client_connection_endpoint_port: Required. The TCP cluster - management endpoint port. - :type client_connection_endpoint_port: int - :param http_gateway_endpoint_port: Required. The HTTP cluster management - endpoint port. - :type http_gateway_endpoint_port: int - :param durability_level: The durability level of the node type. Learn - about - [DurabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). - - Bronze - No privileges. This is the default. - - Silver - The infrastructure jobs can be paused for a duration of 10 - minutes per UD. - - Gold - The infrastructure jobs can be paused for a duration of 2 hours - per UD. Gold durability can be enabled only on full node VM skus like - D15_V2, G5 etc. - . Possible values include: 'Bronze', 'Silver', 'Gold' - :type durability_level: str or ~azure.mgmt.servicefabric.models.enum - :param application_ports: The range of ports from which cluster assigned - port to Service Fabric applications. - :type application_ports: - ~azure.mgmt.servicefabric.models.EndpointRangeDescription - :param ephemeral_ports: The range of ephemeral ports that nodes in this - node type should be configured with. - :type ephemeral_ports: - ~azure.mgmt.servicefabric.models.EndpointRangeDescription - :param is_primary: Required. The node type on which system services will - run. Only one node type should be marked as primary. Primary node type - cannot be deleted or changed for existing clusters. - :type is_primary: bool - :param vm_instance_count: Required. The number of nodes in the node type. - This count should match the capacity property in the corresponding - VirtualMachineScaleSet resource. - :type vm_instance_count: int - :param reverse_proxy_endpoint_port: The endpoint used by reverse proxy. - :type reverse_proxy_endpoint_port: int - """ - - _validation = { - 'name': {'required': True}, - 'client_connection_endpoint_port': {'required': True}, - 'http_gateway_endpoint_port': {'required': True}, - 'is_primary': {'required': True}, - 'vm_instance_count': {'required': True, 'maximum': 2147483647, 'minimum': 1}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'placement_properties': {'key': 'placementProperties', 'type': '{str}'}, - 'capacities': {'key': 'capacities', 'type': '{str}'}, - 'client_connection_endpoint_port': {'key': 'clientConnectionEndpointPort', 'type': 'int'}, - 'http_gateway_endpoint_port': {'key': 'httpGatewayEndpointPort', 'type': 'int'}, - 'durability_level': {'key': 'durabilityLevel', 'type': 'str'}, - 'application_ports': {'key': 'applicationPorts', 'type': 'EndpointRangeDescription'}, - 'ephemeral_ports': {'key': 'ephemeralPorts', 'type': 'EndpointRangeDescription'}, - 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, - 'vm_instance_count': {'key': 'vmInstanceCount', 'type': 'int'}, - 'reverse_proxy_endpoint_port': {'key': 'reverseProxyEndpointPort', 'type': 'int'}, - } - - def __init__(self, *, name: str, client_connection_endpoint_port: int, http_gateway_endpoint_port: int, is_primary: bool, vm_instance_count: int, placement_properties=None, capacities=None, durability_level=None, application_ports=None, ephemeral_ports=None, reverse_proxy_endpoint_port: int=None, **kwargs) -> None: - super(NodeTypeDescription, self).__init__(**kwargs) - self.name = name - self.placement_properties = placement_properties - self.capacities = capacities - self.client_connection_endpoint_port = client_connection_endpoint_port - self.http_gateway_endpoint_port = http_gateway_endpoint_port - self.durability_level = durability_level - self.application_ports = application_ports - self.ephemeral_ports = ephemeral_ports - self.is_primary = is_primary - self.vm_instance_count = vm_instance_count - self.reverse_proxy_endpoint_port = reverse_proxy_endpoint_port diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/operation_result.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/operation_result.py deleted file mode 100644 index 0137f25cb123..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/operation_result.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 OperationResult(Model): - """Available operation list result. - - :param name: The name of the operation. - :type name: str - :param display: The object that represents the operation. - :type display: ~azure.mgmt.servicefabric.models.AvailableOperationDisplay - :param origin: Origin result - :type origin: str - :param next_link: The URL to use for getting the next set of results. - :type next_link: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'AvailableOperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationResult, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - self.next_link = kwargs.get('next_link', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/operation_result_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/operation_result_py3.py deleted file mode 100644 index 23218f7ff999..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/operation_result_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 OperationResult(Model): - """Available operation list result. - - :param name: The name of the operation. - :type name: str - :param display: The object that represents the operation. - :type display: ~azure.mgmt.servicefabric.models.AvailableOperationDisplay - :param origin: Origin result - :type origin: str - :param next_link: The URL to use for getting the next set of results. - :type next_link: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'AvailableOperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, display=None, origin: str=None, next_link: str=None, **kwargs) -> None: - super(OperationResult, self).__init__(**kwargs) - self.name = name - self.display = display - self.origin = origin - self.next_link = next_link diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/partition_scheme_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/partition_scheme_description.py deleted file mode 100644 index 68d09371c94a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/partition_scheme_description.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 PartitionSchemeDescription(Model): - """Describes how the service is partitioned. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: NamedPartitionSchemeDescription, - SingletonPartitionSchemeDescription, - UniformInt64RangePartitionSchemeDescription - - All required parameters must be populated in order to send to Azure. - - :param partition_scheme: Required. Constant filled by server. - :type partition_scheme: str - """ - - _validation = { - 'partition_scheme': {'required': True}, - } - - _attribute_map = { - 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, - } - - _subtype_map = { - 'partition_scheme': {'Named': 'NamedPartitionSchemeDescription', 'Singleton': 'SingletonPartitionSchemeDescription', 'UniformInt64Range': 'UniformInt64RangePartitionSchemeDescription'} - } - - def __init__(self, **kwargs): - super(PartitionSchemeDescription, self).__init__(**kwargs) - self.partition_scheme = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/partition_scheme_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/partition_scheme_description_py3.py deleted file mode 100644 index 236ee1a41d7b..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/partition_scheme_description_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 PartitionSchemeDescription(Model): - """Describes how the service is partitioned. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: NamedPartitionSchemeDescription, - SingletonPartitionSchemeDescription, - UniformInt64RangePartitionSchemeDescription - - All required parameters must be populated in order to send to Azure. - - :param partition_scheme: Required. Constant filled by server. - :type partition_scheme: str - """ - - _validation = { - 'partition_scheme': {'required': True}, - } - - _attribute_map = { - 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, - } - - _subtype_map = { - 'partition_scheme': {'Named': 'NamedPartitionSchemeDescription', 'Singleton': 'SingletonPartitionSchemeDescription', 'UniformInt64Range': 'UniformInt64RangePartitionSchemeDescription'} - } - - def __init__(self, **kwargs) -> None: - super(PartitionSchemeDescription, self).__init__(**kwargs) - self.partition_scheme = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/proxy_resource.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/proxy_resource.py deleted file mode 100644 index 11bb6788cf94..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/proxy_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 ProxyResource(Model): - """The resource model definition for proxy-only resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.etag = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/proxy_resource_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/proxy_resource_py3.py deleted file mode 100644 index 090e51be9879..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/proxy_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 ProxyResource(Model): - """The resource model definition for proxy-only resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags - self.etag = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/resource.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/resource.py deleted file mode 100644 index f7992d5590bd..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/resource.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 Resource(Model): - """The resource model definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Required. Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.etag = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/resource_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/resource_py3.py deleted file mode 100644 index 5cec5515a089..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/resource_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 Resource(Model): - """The resource model definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Required. Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags - self.etag = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_name.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_name.py deleted file mode 100644 index 1a614ee4e81f..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_name.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 ServerCertificateCommonName(Model): - """Describes the server certificate details using common name. - - All required parameters must be populated in order to send to Azure. - - :param certificate_common_name: Required. The common name of the server - certificate. - :type certificate_common_name: str - :param certificate_issuer_thumbprint: Required. The issuer thumbprint of - the server certificate. - :type certificate_issuer_thumbprint: str - """ - - _validation = { - 'certificate_common_name': {'required': True}, - 'certificate_issuer_thumbprint': {'required': True}, - } - - _attribute_map = { - 'certificate_common_name': {'key': 'certificateCommonName', 'type': 'str'}, - 'certificate_issuer_thumbprint': {'key': 'certificateIssuerThumbprint', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServerCertificateCommonName, self).__init__(**kwargs) - self.certificate_common_name = kwargs.get('certificate_common_name', None) - self.certificate_issuer_thumbprint = kwargs.get('certificate_issuer_thumbprint', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_name_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_name_py3.py deleted file mode 100644 index 2af9f71a7834..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_name_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 ServerCertificateCommonName(Model): - """Describes the server certificate details using common name. - - All required parameters must be populated in order to send to Azure. - - :param certificate_common_name: Required. The common name of the server - certificate. - :type certificate_common_name: str - :param certificate_issuer_thumbprint: Required. The issuer thumbprint of - the server certificate. - :type certificate_issuer_thumbprint: str - """ - - _validation = { - 'certificate_common_name': {'required': True}, - 'certificate_issuer_thumbprint': {'required': True}, - } - - _attribute_map = { - 'certificate_common_name': {'key': 'certificateCommonName', 'type': 'str'}, - 'certificate_issuer_thumbprint': {'key': 'certificateIssuerThumbprint', 'type': 'str'}, - } - - def __init__(self, *, certificate_common_name: str, certificate_issuer_thumbprint: str, **kwargs) -> None: - super(ServerCertificateCommonName, self).__init__(**kwargs) - self.certificate_common_name = certificate_common_name - self.certificate_issuer_thumbprint = certificate_issuer_thumbprint diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_names.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_names.py deleted file mode 100644 index 332415464c93..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_names.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ServerCertificateCommonNames(Model): - """Describes a list of server certificates referenced by common name that are - used to secure the cluster. - - :param common_names: The list of server certificates referenced by common - name that are used to secure the cluster. - :type common_names: - list[~azure.mgmt.servicefabric.models.ServerCertificateCommonName] - :param x509_store_name: The local certificate store location. Possible - values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', - 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' - :type x509_store_name: str or ~azure.mgmt.servicefabric.models.enum - """ - - _attribute_map = { - 'common_names': {'key': 'commonNames', 'type': '[ServerCertificateCommonName]'}, - 'x509_store_name': {'key': 'x509StoreName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServerCertificateCommonNames, self).__init__(**kwargs) - self.common_names = kwargs.get('common_names', None) - self.x509_store_name = kwargs.get('x509_store_name', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_names_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_names_py3.py deleted file mode 100644 index e9e098c3c93a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/server_certificate_common_names_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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 ServerCertificateCommonNames(Model): - """Describes a list of server certificates referenced by common name that are - used to secure the cluster. - - :param common_names: The list of server certificates referenced by common - name that are used to secure the cluster. - :type common_names: - list[~azure.mgmt.servicefabric.models.ServerCertificateCommonName] - :param x509_store_name: The local certificate store location. Possible - values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', - 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' - :type x509_store_name: str or ~azure.mgmt.servicefabric.models.enum - """ - - _attribute_map = { - 'common_names': {'key': 'commonNames', 'type': '[ServerCertificateCommonName]'}, - 'x509_store_name': {'key': 'x509StoreName', 'type': 'str'}, - } - - def __init__(self, *, common_names=None, x509_store_name=None, **kwargs) -> None: - super(ServerCertificateCommonNames, self).__init__(**kwargs) - self.common_names = common_names - self.x509_store_name = x509_store_name diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_correlation_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_correlation_description.py deleted file mode 100644 index 9ce98910384a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_correlation_description.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ServiceCorrelationDescription(Model): - """Creates a particular correlation between services. - - All required parameters must be populated in order to send to Azure. - - :param scheme: Required. The ServiceCorrelationScheme which describes the - relationship between this service and the service specified via - ServiceName. Possible values include: 'Invalid', 'Affinity', - 'AlignedAffinity', 'NonAlignedAffinity' - :type scheme: str or - ~azure.mgmt.servicefabric.models.ServiceCorrelationScheme - :param service_name: Required. The name of the service that the - correlation relationship is established with. - :type service_name: str - """ - - _validation = { - 'scheme': {'required': True}, - 'service_name': {'required': True}, - } - - _attribute_map = { - 'scheme': {'key': 'scheme', 'type': 'str'}, - 'service_name': {'key': 'serviceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceCorrelationDescription, self).__init__(**kwargs) - self.scheme = kwargs.get('scheme', None) - self.service_name = kwargs.get('service_name', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_correlation_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_correlation_description_py3.py deleted file mode 100644 index 5efaf9a713dd..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_correlation_description_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 ServiceCorrelationDescription(Model): - """Creates a particular correlation between services. - - All required parameters must be populated in order to send to Azure. - - :param scheme: Required. The ServiceCorrelationScheme which describes the - relationship between this service and the service specified via - ServiceName. Possible values include: 'Invalid', 'Affinity', - 'AlignedAffinity', 'NonAlignedAffinity' - :type scheme: str or - ~azure.mgmt.servicefabric.models.ServiceCorrelationScheme - :param service_name: Required. The name of the service that the - correlation relationship is established with. - :type service_name: str - """ - - _validation = { - 'scheme': {'required': True}, - 'service_name': {'required': True}, - } - - _attribute_map = { - 'scheme': {'key': 'scheme', 'type': 'str'}, - 'service_name': {'key': 'serviceName', 'type': 'str'}, - } - - def __init__(self, *, scheme, service_name: str, **kwargs) -> None: - super(ServiceCorrelationDescription, self).__init__(**kwargs) - self.scheme = scheme - self.service_name = service_name diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_load_metric_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_load_metric_description.py deleted file mode 100644 index f3a5e9e80079..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_load_metric_description.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 ServiceLoadMetricDescription(Model): - """Specifies a metric to load balance a service during runtime. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the metric. If the service chooses to - report load during runtime, the load metric name should match the name - that is specified in Name exactly. Note that metric names are case - sensitive. - :type name: str - :param weight: The service load metric relative weight, compared to other - metrics configured for this service, as a number. Possible values include: - 'Zero', 'Low', 'Medium', 'High' - :type weight: str or - ~azure.mgmt.servicefabric.models.ServiceLoadMetricWeight - :param primary_default_load: Used only for Stateful services. The default - amount of load, as a number, that this service creates for this metric - when it is a Primary replica. - :type primary_default_load: int - :param secondary_default_load: Used only for Stateful services. The - default amount of load, as a number, that this service creates for this - metric when it is a Secondary replica. - :type secondary_default_load: int - :param default_load: Used only for Stateless services. The default amount - of load, as a number, that this service creates for this metric. - :type default_load: int - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'weight': {'key': 'weight', 'type': 'str'}, - 'primary_default_load': {'key': 'primaryDefaultLoad', 'type': 'int'}, - 'secondary_default_load': {'key': 'secondaryDefaultLoad', 'type': 'int'}, - 'default_load': {'key': 'defaultLoad', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ServiceLoadMetricDescription, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.weight = kwargs.get('weight', None) - self.primary_default_load = kwargs.get('primary_default_load', None) - self.secondary_default_load = kwargs.get('secondary_default_load', None) - self.default_load = kwargs.get('default_load', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_load_metric_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_load_metric_description_py3.py deleted file mode 100644 index b4e977b5ed7f..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_load_metric_description_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 ServiceLoadMetricDescription(Model): - """Specifies a metric to load balance a service during runtime. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the metric. If the service chooses to - report load during runtime, the load metric name should match the name - that is specified in Name exactly. Note that metric names are case - sensitive. - :type name: str - :param weight: The service load metric relative weight, compared to other - metrics configured for this service, as a number. Possible values include: - 'Zero', 'Low', 'Medium', 'High' - :type weight: str or - ~azure.mgmt.servicefabric.models.ServiceLoadMetricWeight - :param primary_default_load: Used only for Stateful services. The default - amount of load, as a number, that this service creates for this metric - when it is a Primary replica. - :type primary_default_load: int - :param secondary_default_load: Used only for Stateful services. The - default amount of load, as a number, that this service creates for this - metric when it is a Secondary replica. - :type secondary_default_load: int - :param default_load: Used only for Stateless services. The default amount - of load, as a number, that this service creates for this metric. - :type default_load: int - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'weight': {'key': 'weight', 'type': 'str'}, - 'primary_default_load': {'key': 'primaryDefaultLoad', 'type': 'int'}, - 'secondary_default_load': {'key': 'secondaryDefaultLoad', 'type': 'int'}, - 'default_load': {'key': 'defaultLoad', 'type': 'int'}, - } - - def __init__(self, *, name: str, weight=None, primary_default_load: int=None, secondary_default_load: int=None, default_load: int=None, **kwargs) -> None: - super(ServiceLoadMetricDescription, self).__init__(**kwargs) - self.name = name - self.weight = weight - self.primary_default_load = primary_default_load - self.secondary_default_load = secondary_default_load - self.default_load = default_load diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_placement_policy_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_placement_policy_description.py deleted file mode 100644 index d621b9f3fce2..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_placement_policy_description.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 ServicePlacementPolicyDescription(Model): - """Describes the policy to be used for placement of a Service Fabric service. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. Constant filled by server. - :type type: str - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'Type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServicePlacementPolicyDescription, self).__init__(**kwargs) - self.type = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_placement_policy_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_placement_policy_description_py3.py deleted file mode 100644 index f65d4b18474f..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_placement_policy_description_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 ServicePlacementPolicyDescription(Model): - """Describes the policy to be used for placement of a Service Fabric service. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. Constant filled by server. - :type type: str - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'Type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ServicePlacementPolicyDescription, self).__init__(**kwargs) - self.type = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource.py deleted file mode 100644 index 9f0a6cad202f..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource.py +++ /dev/null @@ -1,104 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class ServiceResource(ProxyResource): - """The service resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param service_type_name: The name of the service type - :type service_type_name: str - :param partition_description: Describes how the service is partitioned. - :type partition_description: - ~azure.mgmt.servicefabric.models.PartitionSchemeDescription - :param service_package_activation_mode: The activation Mode of the service - package. Possible values include: 'SharedProcess', 'ExclusiveProcess' - :type service_package_activation_mode: str or - ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'placement_constraints': {'key': 'properties.placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'properties.correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'properties.serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'properties.servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'properties.defaultMoveCost', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'service_type_name': {'key': 'properties.serviceTypeName', 'type': 'str'}, - 'partition_description': {'key': 'properties.partitionDescription', 'type': 'PartitionSchemeDescription'}, - 'service_package_activation_mode': {'key': 'properties.servicePackageActivationMode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceResource, self).__init__(**kwargs) - self.placement_constraints = kwargs.get('placement_constraints', None) - self.correlation_scheme = kwargs.get('correlation_scheme', None) - self.service_load_metrics = kwargs.get('service_load_metrics', None) - self.service_placement_policies = kwargs.get('service_placement_policies', None) - self.default_move_cost = kwargs.get('default_move_cost', None) - self.provisioning_state = None - self.service_type_name = kwargs.get('service_type_name', None) - self.partition_description = kwargs.get('partition_description', None) - self.service_package_activation_mode = kwargs.get('service_package_activation_mode', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_list.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_list.py deleted file mode 100644 index f4c120505a4b..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ServiceResourceList(Model): - """The list of service resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: - :type value: list[~azure.mgmt.servicefabric.models.ServiceResource] - :ivar next_link: URL to get the next set of service list results if there - are any. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ServiceResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_list_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_list_py3.py deleted file mode 100644 index 92c003c361d9..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_list_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 ServiceResourceList(Model): - """The list of service resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: - :type value: list[~azure.mgmt.servicefabric.models.ServiceResource] - :ivar next_link: URL to get the next set of service list results if there - are any. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ServiceResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ServiceResourceList, self).__init__(**kwargs) - self.value = value - self.next_link = None diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties.py deleted file mode 100644 index 6b08bd8c75e8..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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 .service_resource_properties_base import ServiceResourcePropertiesBase - - -class ServiceResourceProperties(ServiceResourcePropertiesBase): - """The service resource properties. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: StatefulServiceProperties, StatelessServiceProperties - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param service_type_name: The name of the service type - :type service_type_name: str - :param partition_description: Describes how the service is partitioned. - :type partition_description: - ~azure.mgmt.servicefabric.models.PartitionSchemeDescription - :param service_package_activation_mode: The activation Mode of the service - package. Possible values include: 'SharedProcess', 'ExclusiveProcess' - :type service_package_activation_mode: str or - ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode - :param service_kind: Required. Constant filled by server. - :type service_kind: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'service_kind': {'required': True}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, - 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, - 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - } - - _subtype_map = { - 'service_kind': {'Stateful': 'StatefulServiceProperties', 'Stateless': 'StatelessServiceProperties'} - } - - def __init__(self, **kwargs): - super(ServiceResourceProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.service_type_name = kwargs.get('service_type_name', None) - self.partition_description = kwargs.get('partition_description', None) - self.service_package_activation_mode = kwargs.get('service_package_activation_mode', None) - self.service_kind = None - self.service_kind = 'ServiceResourceProperties' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_base.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_base.py deleted file mode 100644 index e9b99727047a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_base.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 ServiceResourcePropertiesBase(Model): - """The common service resource properties. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - """ - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceResourcePropertiesBase, self).__init__(**kwargs) - self.placement_constraints = kwargs.get('placement_constraints', None) - self.correlation_scheme = kwargs.get('correlation_scheme', None) - self.service_load_metrics = kwargs.get('service_load_metrics', None) - self.service_placement_policies = kwargs.get('service_placement_policies', None) - self.default_move_cost = kwargs.get('default_move_cost', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_base_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_base_py3.py deleted file mode 100644 index b9960192295a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_base_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 ServiceResourcePropertiesBase(Model): - """The common service resource properties. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - """ - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - } - - def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, **kwargs) -> None: - super(ServiceResourcePropertiesBase, self).__init__(**kwargs) - self.placement_constraints = placement_constraints - self.correlation_scheme = correlation_scheme - self.service_load_metrics = service_load_metrics - self.service_placement_policies = service_placement_policies - self.default_move_cost = default_move_cost diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_py3.py deleted file mode 100644 index 24770fa4122a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_properties_py3.py +++ /dev/null @@ -1,92 +0,0 @@ -# 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 .service_resource_properties_base_py3 import ServiceResourcePropertiesBase - - -class ServiceResourceProperties(ServiceResourcePropertiesBase): - """The service resource properties. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: StatefulServiceProperties, StatelessServiceProperties - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param service_type_name: The name of the service type - :type service_type_name: str - :param partition_description: Describes how the service is partitioned. - :type partition_description: - ~azure.mgmt.servicefabric.models.PartitionSchemeDescription - :param service_package_activation_mode: The activation Mode of the service - package. Possible values include: 'SharedProcess', 'ExclusiveProcess' - :type service_package_activation_mode: str or - ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode - :param service_kind: Required. Constant filled by server. - :type service_kind: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'service_kind': {'required': True}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, - 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, - 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - } - - _subtype_map = { - 'service_kind': {'Stateful': 'StatefulServiceProperties', 'Stateless': 'StatelessServiceProperties'} - } - - def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, service_type_name: str=None, partition_description=None, service_package_activation_mode=None, **kwargs) -> None: - super(ServiceResourceProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, **kwargs) - self.provisioning_state = None - self.service_type_name = service_type_name - self.partition_description = partition_description - self.service_package_activation_mode = service_package_activation_mode - self.service_kind = None - self.service_kind = 'ServiceResourceProperties' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_py3.py deleted file mode 100644 index 879d09bfb1cf..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_py3.py +++ /dev/null @@ -1,104 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class ServiceResource(ProxyResource): - """The service resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param service_type_name: The name of the service type - :type service_type_name: str - :param partition_description: Describes how the service is partitioned. - :type partition_description: - ~azure.mgmt.servicefabric.models.PartitionSchemeDescription - :param service_package_activation_mode: The activation Mode of the service - package. Possible values include: 'SharedProcess', 'ExclusiveProcess' - :type service_package_activation_mode: str or - ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'placement_constraints': {'key': 'properties.placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'properties.correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'properties.serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'properties.servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'properties.defaultMoveCost', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'service_type_name': {'key': 'properties.serviceTypeName', 'type': 'str'}, - 'partition_description': {'key': 'properties.partitionDescription', 'type': 'PartitionSchemeDescription'}, - 'service_package_activation_mode': {'key': 'properties.servicePackageActivationMode', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, service_type_name: str=None, partition_description=None, service_package_activation_mode=None, **kwargs) -> None: - super(ServiceResource, self).__init__(location=location, tags=tags, **kwargs) - self.placement_constraints = placement_constraints - self.correlation_scheme = correlation_scheme - self.service_load_metrics = service_load_metrics - self.service_placement_policies = service_placement_policies - self.default_move_cost = default_move_cost - self.provisioning_state = None - self.service_type_name = service_type_name - self.partition_description = partition_description - self.service_package_activation_mode = service_package_activation_mode diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update.py deleted file mode 100644 index a5931cb1da99..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update.py +++ /dev/null @@ -1,83 +0,0 @@ -# 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 .proxy_resource import ProxyResource - - -class ServiceResourceUpdate(ProxyResource): - """The service resource for patch operations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'placement_constraints': {'key': 'properties.placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'properties.correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'properties.serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'properties.servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'properties.defaultMoveCost', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceResourceUpdate, self).__init__(**kwargs) - self.placement_constraints = kwargs.get('placement_constraints', None) - self.correlation_scheme = kwargs.get('correlation_scheme', None) - self.service_load_metrics = kwargs.get('service_load_metrics', None) - self.service_placement_policies = kwargs.get('service_placement_policies', None) - self.default_move_cost = kwargs.get('default_move_cost', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_properties.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_properties.py deleted file mode 100644 index c5aa89edf5b7..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_properties.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 .service_resource_properties_base import ServiceResourcePropertiesBase - - -class ServiceResourceUpdateProperties(ServiceResourcePropertiesBase): - """The service resource properties for patch operations. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: StatefulServiceUpdateProperties, - StatelessServiceUpdateProperties - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :param service_kind: Required. Constant filled by server. - :type service_kind: str - """ - - _validation = { - 'service_kind': {'required': True}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - } - - _subtype_map = { - 'service_kind': {'Stateful': 'StatefulServiceUpdateProperties', 'Stateless': 'StatelessServiceUpdateProperties'} - } - - def __init__(self, **kwargs): - super(ServiceResourceUpdateProperties, self).__init__(**kwargs) - self.service_kind = None - self.service_kind = 'ServiceResourceUpdateProperties' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_properties_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_properties_py3.py deleted file mode 100644 index 5a2b66768621..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_properties_py3.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 .service_resource_properties_base_py3 import ServiceResourcePropertiesBase - - -class ServiceResourceUpdateProperties(ServiceResourcePropertiesBase): - """The service resource properties for patch operations. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: StatefulServiceUpdateProperties, - StatelessServiceUpdateProperties - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :param service_kind: Required. Constant filled by server. - :type service_kind: str - """ - - _validation = { - 'service_kind': {'required': True}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - } - - _subtype_map = { - 'service_kind': {'Stateful': 'StatefulServiceUpdateProperties', 'Stateless': 'StatelessServiceUpdateProperties'} - } - - def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, **kwargs) -> None: - super(ServiceResourceUpdateProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, **kwargs) - self.service_kind = None - self.service_kind = 'ServiceResourceUpdateProperties' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_py3.py deleted file mode 100644 index 02c366ed82f0..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_resource_update_py3.py +++ /dev/null @@ -1,83 +0,0 @@ -# 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 .proxy_resource_py3 import ProxyResource - - -class ServiceResourceUpdate(ProxyResource): - """The service resource for patch operations. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Azure resource identifier. - :vartype id: str - :ivar name: Azure resource name. - :vartype name: str - :ivar type: Azure resource type. - :vartype type: str - :param location: Azure resource location. - :type location: str - :param tags: Azure resource tags. - :type tags: dict[str, str] - :ivar etag: Azure resource etag. - :vartype etag: str - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'placement_constraints': {'key': 'properties.placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'properties.correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'properties.serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'properties.servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'properties.defaultMoveCost', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, **kwargs) -> None: - super(ServiceResourceUpdate, self).__init__(location=location, tags=tags, **kwargs) - self.placement_constraints = placement_constraints - self.correlation_scheme = correlation_scheme - self.service_load_metrics = service_load_metrics - self.service_placement_policies = service_placement_policies - self.default_move_cost = default_move_cost diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_delta_health_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_delta_health_policy.py deleted file mode 100644 index 2eeb86b3ca95..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_delta_health_policy.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 ServiceTypeDeltaHealthPolicy(Model): - """Represents the delta health policy used to evaluate the health of services - belonging to a service type when upgrading the cluster. - . - - :param max_percent_delta_unhealthy_services: The maximum allowed - percentage of services health degradation allowed during cluster upgrades. - The delta is measured between the state of the services at the beginning - of upgrade and the state of the services at the time of the health - evaluation. - The check is performed after every upgrade domain upgrade completion to - make sure the global state of the cluster is within tolerated limits. - . Default value: 0 . - :type max_percent_delta_unhealthy_services: int - """ - - _validation = { - 'max_percent_delta_unhealthy_services': {'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_delta_unhealthy_services': {'key': 'maxPercentDeltaUnhealthyServices', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ServiceTypeDeltaHealthPolicy, self).__init__(**kwargs) - self.max_percent_delta_unhealthy_services = kwargs.get('max_percent_delta_unhealthy_services', 0) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_delta_health_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_delta_health_policy_py3.py deleted file mode 100644 index 6a67d12680d9..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_delta_health_policy_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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 ServiceTypeDeltaHealthPolicy(Model): - """Represents the delta health policy used to evaluate the health of services - belonging to a service type when upgrading the cluster. - . - - :param max_percent_delta_unhealthy_services: The maximum allowed - percentage of services health degradation allowed during cluster upgrades. - The delta is measured between the state of the services at the beginning - of upgrade and the state of the services at the time of the health - evaluation. - The check is performed after every upgrade domain upgrade completion to - make sure the global state of the cluster is within tolerated limits. - . Default value: 0 . - :type max_percent_delta_unhealthy_services: int - """ - - _validation = { - 'max_percent_delta_unhealthy_services': {'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_delta_unhealthy_services': {'key': 'maxPercentDeltaUnhealthyServices', 'type': 'int'}, - } - - def __init__(self, *, max_percent_delta_unhealthy_services: int=0, **kwargs) -> None: - super(ServiceTypeDeltaHealthPolicy, self).__init__(**kwargs) - self.max_percent_delta_unhealthy_services = max_percent_delta_unhealthy_services diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_health_policy.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_health_policy.py deleted file mode 100644 index eb7d19fdb16a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_health_policy.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 ServiceTypeHealthPolicy(Model): - """Represents the health policy used to evaluate the health of services - belonging to a service type. - . - - :param max_percent_unhealthy_services: The maximum percentage of services - allowed to be unhealthy before your application is considered in error. - . Default value: 0 . - :type max_percent_unhealthy_services: int - """ - - _validation = { - 'max_percent_unhealthy_services': {'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_unhealthy_services': {'key': 'maxPercentUnhealthyServices', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ServiceTypeHealthPolicy, self).__init__(**kwargs) - self.max_percent_unhealthy_services = kwargs.get('max_percent_unhealthy_services', 0) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_health_policy_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_health_policy_py3.py deleted file mode 100644 index ad312d69747a..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/service_type_health_policy_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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 ServiceTypeHealthPolicy(Model): - """Represents the health policy used to evaluate the health of services - belonging to a service type. - . - - :param max_percent_unhealthy_services: The maximum percentage of services - allowed to be unhealthy before your application is considered in error. - . Default value: 0 . - :type max_percent_unhealthy_services: int - """ - - _validation = { - 'max_percent_unhealthy_services': {'maximum': 100, 'minimum': 0}, - } - - _attribute_map = { - 'max_percent_unhealthy_services': {'key': 'maxPercentUnhealthyServices', 'type': 'int'}, - } - - def __init__(self, *, max_percent_unhealthy_services: int=0, **kwargs) -> None: - super(ServiceTypeHealthPolicy, self).__init__(**kwargs) - self.max_percent_unhealthy_services = max_percent_unhealthy_services diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_parameter_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_parameter_description.py deleted file mode 100644 index b65492a4fb50..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_parameter_description.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 SettingsParameterDescription(Model): - """Describes a parameter in fabric settings of the cluster. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The parameter name of fabric setting. - :type name: str - :param value: Required. The parameter value of fabric setting. - :type value: str - """ - - _validation = { - 'name': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SettingsParameterDescription, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.value = kwargs.get('value', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_parameter_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_parameter_description_py3.py deleted file mode 100644 index 6fc5725f3675..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_parameter_description_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 SettingsParameterDescription(Model): - """Describes a parameter in fabric settings of the cluster. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The parameter name of fabric setting. - :type name: str - :param value: Required. The parameter value of fabric setting. - :type value: str - """ - - _validation = { - 'name': {'required': True}, - 'value': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, name: str, value: str, **kwargs) -> None: - super(SettingsParameterDescription, self).__init__(**kwargs) - self.name = name - self.value = value diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_section_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_section_description.py deleted file mode 100644 index 828a8e1ccf74..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_section_description.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 SettingsSectionDescription(Model): - """Describes a section in the fabric settings of the cluster. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The section name of the fabric settings. - :type name: str - :param parameters: Required. The collection of parameters in the section. - :type parameters: - list[~azure.mgmt.servicefabric.models.SettingsParameterDescription] - """ - - _validation = { - 'name': {'required': True}, - 'parameters': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[SettingsParameterDescription]'}, - } - - def __init__(self, **kwargs): - super(SettingsSectionDescription, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_section_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_section_description_py3.py deleted file mode 100644 index f4f13757dcdf..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/settings_section_description_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 SettingsSectionDescription(Model): - """Describes a section in the fabric settings of the cluster. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The section name of the fabric settings. - :type name: str - :param parameters: Required. The collection of parameters in the section. - :type parameters: - list[~azure.mgmt.servicefabric.models.SettingsParameterDescription] - """ - - _validation = { - 'name': {'required': True}, - 'parameters': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': '[SettingsParameterDescription]'}, - } - - def __init__(self, *, name: str, parameters, **kwargs) -> None: - super(SettingsSectionDescription, self).__init__(**kwargs) - self.name = name - self.parameters = parameters diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/singleton_partition_scheme_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/singleton_partition_scheme_description.py deleted file mode 100644 index ddee0dc7ef89..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/singleton_partition_scheme_description.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 .partition_scheme_description import PartitionSchemeDescription - - -class SingletonPartitionSchemeDescription(PartitionSchemeDescription): - """Describes the partition scheme of a singleton-partitioned, or - non-partitioned service. - - All required parameters must be populated in order to send to Azure. - - :param partition_scheme: Required. Constant filled by server. - :type partition_scheme: str - """ - - _validation = { - 'partition_scheme': {'required': True}, - } - - _attribute_map = { - 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SingletonPartitionSchemeDescription, self).__init__(**kwargs) - self.partition_scheme = 'Singleton' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/singleton_partition_scheme_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/singleton_partition_scheme_description_py3.py deleted file mode 100644 index 12bc104c40a0..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/singleton_partition_scheme_description_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 .partition_scheme_description_py3 import PartitionSchemeDescription - - -class SingletonPartitionSchemeDescription(PartitionSchemeDescription): - """Describes the partition scheme of a singleton-partitioned, or - non-partitioned service. - - All required parameters must be populated in order to send to Azure. - - :param partition_scheme: Required. Constant filled by server. - :type partition_scheme: str - """ - - _validation = { - 'partition_scheme': {'required': True}, - } - - _attribute_map = { - 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(SingletonPartitionSchemeDescription, self).__init__(**kwargs) - self.partition_scheme = 'Singleton' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_properties.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_properties.py deleted file mode 100644 index 18dad4b32cb2..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_properties.py +++ /dev/null @@ -1,114 +0,0 @@ -# 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 .service_resource_properties import ServiceResourceProperties - - -class StatefulServiceProperties(ServiceResourceProperties): - """The properties of a stateful service resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param service_type_name: The name of the service type - :type service_type_name: str - :param partition_description: Describes how the service is partitioned. - :type partition_description: - ~azure.mgmt.servicefabric.models.PartitionSchemeDescription - :param service_package_activation_mode: The activation Mode of the service - package. Possible values include: 'SharedProcess', 'ExclusiveProcess' - :type service_package_activation_mode: str or - ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode - :param service_kind: Required. Constant filled by server. - :type service_kind: str - :param has_persisted_state: A flag indicating whether this is a persistent - service which stores states on the local disk. If it is then the value of - this property is true, if not it is false. - :type has_persisted_state: bool - :param target_replica_set_size: The target replica set size as a number. - :type target_replica_set_size: int - :param min_replica_set_size: The minimum replica set size as a number. - :type min_replica_set_size: int - :param replica_restart_wait_duration: The duration between when a replica - goes down and when a new replica is created, represented in ISO 8601 - format (hh:mm:ss.s). - :type replica_restart_wait_duration: datetime - :param quorum_loss_wait_duration: The maximum duration for which a - partition is allowed to be in a state of quorum loss, represented in ISO - 8601 format (hh:mm:ss.s). - :type quorum_loss_wait_duration: datetime - :param stand_by_replica_keep_duration: The definition on how long StandBy - replicas should be maintained before being removed, represented in ISO - 8601 format (hh:mm:ss.s). - :type stand_by_replica_keep_duration: datetime - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'service_kind': {'required': True}, - 'target_replica_set_size': {'minimum': 1}, - 'min_replica_set_size': {'minimum': 1}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, - 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, - 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - 'has_persisted_state': {'key': 'hasPersistedState', 'type': 'bool'}, - 'target_replica_set_size': {'key': 'targetReplicaSetSize', 'type': 'int'}, - 'min_replica_set_size': {'key': 'minReplicaSetSize', 'type': 'int'}, - 'replica_restart_wait_duration': {'key': 'replicaRestartWaitDuration', 'type': 'iso-8601'}, - 'quorum_loss_wait_duration': {'key': 'quorumLossWaitDuration', 'type': 'iso-8601'}, - 'stand_by_replica_keep_duration': {'key': 'standByReplicaKeepDuration', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(StatefulServiceProperties, self).__init__(**kwargs) - self.has_persisted_state = kwargs.get('has_persisted_state', None) - self.target_replica_set_size = kwargs.get('target_replica_set_size', None) - self.min_replica_set_size = kwargs.get('min_replica_set_size', None) - self.replica_restart_wait_duration = kwargs.get('replica_restart_wait_duration', None) - self.quorum_loss_wait_duration = kwargs.get('quorum_loss_wait_duration', None) - self.stand_by_replica_keep_duration = kwargs.get('stand_by_replica_keep_duration', None) - self.service_kind = 'Stateful' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_properties_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_properties_py3.py deleted file mode 100644 index b519a3af2048..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_properties_py3.py +++ /dev/null @@ -1,114 +0,0 @@ -# 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 .service_resource_properties_py3 import ServiceResourceProperties - - -class StatefulServiceProperties(ServiceResourceProperties): - """The properties of a stateful service resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param service_type_name: The name of the service type - :type service_type_name: str - :param partition_description: Describes how the service is partitioned. - :type partition_description: - ~azure.mgmt.servicefabric.models.PartitionSchemeDescription - :param service_package_activation_mode: The activation Mode of the service - package. Possible values include: 'SharedProcess', 'ExclusiveProcess' - :type service_package_activation_mode: str or - ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode - :param service_kind: Required. Constant filled by server. - :type service_kind: str - :param has_persisted_state: A flag indicating whether this is a persistent - service which stores states on the local disk. If it is then the value of - this property is true, if not it is false. - :type has_persisted_state: bool - :param target_replica_set_size: The target replica set size as a number. - :type target_replica_set_size: int - :param min_replica_set_size: The minimum replica set size as a number. - :type min_replica_set_size: int - :param replica_restart_wait_duration: The duration between when a replica - goes down and when a new replica is created, represented in ISO 8601 - format (hh:mm:ss.s). - :type replica_restart_wait_duration: datetime - :param quorum_loss_wait_duration: The maximum duration for which a - partition is allowed to be in a state of quorum loss, represented in ISO - 8601 format (hh:mm:ss.s). - :type quorum_loss_wait_duration: datetime - :param stand_by_replica_keep_duration: The definition on how long StandBy - replicas should be maintained before being removed, represented in ISO - 8601 format (hh:mm:ss.s). - :type stand_by_replica_keep_duration: datetime - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'service_kind': {'required': True}, - 'target_replica_set_size': {'minimum': 1}, - 'min_replica_set_size': {'minimum': 1}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, - 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, - 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - 'has_persisted_state': {'key': 'hasPersistedState', 'type': 'bool'}, - 'target_replica_set_size': {'key': 'targetReplicaSetSize', 'type': 'int'}, - 'min_replica_set_size': {'key': 'minReplicaSetSize', 'type': 'int'}, - 'replica_restart_wait_duration': {'key': 'replicaRestartWaitDuration', 'type': 'iso-8601'}, - 'quorum_loss_wait_duration': {'key': 'quorumLossWaitDuration', 'type': 'iso-8601'}, - 'stand_by_replica_keep_duration': {'key': 'standByReplicaKeepDuration', 'type': 'iso-8601'}, - } - - def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, service_type_name: str=None, partition_description=None, service_package_activation_mode=None, has_persisted_state: bool=None, target_replica_set_size: int=None, min_replica_set_size: int=None, replica_restart_wait_duration=None, quorum_loss_wait_duration=None, stand_by_replica_keep_duration=None, **kwargs) -> None: - super(StatefulServiceProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, service_type_name=service_type_name, partition_description=partition_description, service_package_activation_mode=service_package_activation_mode, **kwargs) - self.has_persisted_state = has_persisted_state - self.target_replica_set_size = target_replica_set_size - self.min_replica_set_size = min_replica_set_size - self.replica_restart_wait_duration = replica_restart_wait_duration - self.quorum_loss_wait_duration = quorum_loss_wait_duration - self.stand_by_replica_keep_duration = stand_by_replica_keep_duration - self.service_kind = 'Stateful' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_update_properties.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_update_properties.py deleted file mode 100644 index 3d468ae54150..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_update_properties.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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 .service_resource_update_properties import ServiceResourceUpdateProperties - - -class StatefulServiceUpdateProperties(ServiceResourceUpdateProperties): - """The properties of a stateful service resource for patch operations. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :param service_kind: Required. Constant filled by server. - :type service_kind: str - :param target_replica_set_size: The target replica set size as a number. - :type target_replica_set_size: int - :param min_replica_set_size: The minimum replica set size as a number. - :type min_replica_set_size: int - :param replica_restart_wait_duration: The duration between when a replica - goes down and when a new replica is created, represented in ISO 8601 - format (hh:mm:ss.s). - :type replica_restart_wait_duration: datetime - :param quorum_loss_wait_duration: The maximum duration for which a - partition is allowed to be in a state of quorum loss, represented in ISO - 8601 format (hh:mm:ss.s). - :type quorum_loss_wait_duration: datetime - :param stand_by_replica_keep_duration: The definition on how long StandBy - replicas should be maintained before being removed, represented in ISO - 8601 format (hh:mm:ss.s). - :type stand_by_replica_keep_duration: datetime - """ - - _validation = { - 'service_kind': {'required': True}, - 'target_replica_set_size': {'minimum': 1}, - 'min_replica_set_size': {'minimum': 1}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - 'target_replica_set_size': {'key': 'targetReplicaSetSize', 'type': 'int'}, - 'min_replica_set_size': {'key': 'minReplicaSetSize', 'type': 'int'}, - 'replica_restart_wait_duration': {'key': 'replicaRestartWaitDuration', 'type': 'iso-8601'}, - 'quorum_loss_wait_duration': {'key': 'quorumLossWaitDuration', 'type': 'iso-8601'}, - 'stand_by_replica_keep_duration': {'key': 'standByReplicaKeepDuration', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(StatefulServiceUpdateProperties, self).__init__(**kwargs) - self.target_replica_set_size = kwargs.get('target_replica_set_size', None) - self.min_replica_set_size = kwargs.get('min_replica_set_size', None) - self.replica_restart_wait_duration = kwargs.get('replica_restart_wait_duration', None) - self.quorum_loss_wait_duration = kwargs.get('quorum_loss_wait_duration', None) - self.stand_by_replica_keep_duration = kwargs.get('stand_by_replica_keep_duration', None) - self.service_kind = 'Stateful' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_update_properties_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_update_properties_py3.py deleted file mode 100644 index c7eb77ec04a9..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateful_service_update_properties_py3.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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 .service_resource_update_properties_py3 import ServiceResourceUpdateProperties - - -class StatefulServiceUpdateProperties(ServiceResourceUpdateProperties): - """The properties of a stateful service resource for patch operations. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :param service_kind: Required. Constant filled by server. - :type service_kind: str - :param target_replica_set_size: The target replica set size as a number. - :type target_replica_set_size: int - :param min_replica_set_size: The minimum replica set size as a number. - :type min_replica_set_size: int - :param replica_restart_wait_duration: The duration between when a replica - goes down and when a new replica is created, represented in ISO 8601 - format (hh:mm:ss.s). - :type replica_restart_wait_duration: datetime - :param quorum_loss_wait_duration: The maximum duration for which a - partition is allowed to be in a state of quorum loss, represented in ISO - 8601 format (hh:mm:ss.s). - :type quorum_loss_wait_duration: datetime - :param stand_by_replica_keep_duration: The definition on how long StandBy - replicas should be maintained before being removed, represented in ISO - 8601 format (hh:mm:ss.s). - :type stand_by_replica_keep_duration: datetime - """ - - _validation = { - 'service_kind': {'required': True}, - 'target_replica_set_size': {'minimum': 1}, - 'min_replica_set_size': {'minimum': 1}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - 'target_replica_set_size': {'key': 'targetReplicaSetSize', 'type': 'int'}, - 'min_replica_set_size': {'key': 'minReplicaSetSize', 'type': 'int'}, - 'replica_restart_wait_duration': {'key': 'replicaRestartWaitDuration', 'type': 'iso-8601'}, - 'quorum_loss_wait_duration': {'key': 'quorumLossWaitDuration', 'type': 'iso-8601'}, - 'stand_by_replica_keep_duration': {'key': 'standByReplicaKeepDuration', 'type': 'iso-8601'}, - } - - def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, target_replica_set_size: int=None, min_replica_set_size: int=None, replica_restart_wait_duration=None, quorum_loss_wait_duration=None, stand_by_replica_keep_duration=None, **kwargs) -> None: - super(StatefulServiceUpdateProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, **kwargs) - self.target_replica_set_size = target_replica_set_size - self.min_replica_set_size = min_replica_set_size - self.replica_restart_wait_duration = replica_restart_wait_duration - self.quorum_loss_wait_duration = quorum_loss_wait_duration - self.stand_by_replica_keep_duration = stand_by_replica_keep_duration - self.service_kind = 'Stateful' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_properties.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_properties.py deleted file mode 100644 index 339973362369..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_properties.py +++ /dev/null @@ -1,85 +0,0 @@ -# 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 .service_resource_properties import ServiceResourceProperties - - -class StatelessServiceProperties(ServiceResourceProperties): - """The properties of a stateless service resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param service_type_name: The name of the service type - :type service_type_name: str - :param partition_description: Describes how the service is partitioned. - :type partition_description: - ~azure.mgmt.servicefabric.models.PartitionSchemeDescription - :param service_package_activation_mode: The activation Mode of the service - package. Possible values include: 'SharedProcess', 'ExclusiveProcess' - :type service_package_activation_mode: str or - ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode - :param service_kind: Required. Constant filled by server. - :type service_kind: str - :param instance_count: The instance count. - :type instance_count: int - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'service_kind': {'required': True}, - 'instance_count': {'minimum': -1}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, - 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, - 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - 'instance_count': {'key': 'instanceCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(StatelessServiceProperties, self).__init__(**kwargs) - self.instance_count = kwargs.get('instance_count', None) - self.service_kind = 'Stateless' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_properties_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_properties_py3.py deleted file mode 100644 index fb309b9311af..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_properties_py3.py +++ /dev/null @@ -1,85 +0,0 @@ -# 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 .service_resource_properties_py3 import ServiceResourceProperties - - -class StatelessServiceProperties(ServiceResourceProperties): - """The properties of a stateless service resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :ivar provisioning_state: The current deployment or provisioning state, - which only appears in the response - :vartype provisioning_state: str - :param service_type_name: The name of the service type - :type service_type_name: str - :param partition_description: Describes how the service is partitioned. - :type partition_description: - ~azure.mgmt.servicefabric.models.PartitionSchemeDescription - :param service_package_activation_mode: The activation Mode of the service - package. Possible values include: 'SharedProcess', 'ExclusiveProcess' - :type service_package_activation_mode: str or - ~azure.mgmt.servicefabric.models.ArmServicePackageActivationMode - :param service_kind: Required. Constant filled by server. - :type service_kind: str - :param instance_count: The instance count. - :type instance_count: int - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'service_kind': {'required': True}, - 'instance_count': {'minimum': -1}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'service_type_name': {'key': 'serviceTypeName', 'type': 'str'}, - 'partition_description': {'key': 'partitionDescription', 'type': 'PartitionSchemeDescription'}, - 'service_package_activation_mode': {'key': 'servicePackageActivationMode', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - 'instance_count': {'key': 'instanceCount', 'type': 'int'}, - } - - def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, service_type_name: str=None, partition_description=None, service_package_activation_mode=None, instance_count: int=None, **kwargs) -> None: - super(StatelessServiceProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, service_type_name=service_type_name, partition_description=partition_description, service_package_activation_mode=service_package_activation_mode, **kwargs) - self.instance_count = instance_count - self.service_kind = 'Stateless' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_update_properties.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_update_properties.py deleted file mode 100644 index 99822c277710..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_update_properties.py +++ /dev/null @@ -1,65 +0,0 @@ -# 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 .service_resource_update_properties import ServiceResourceUpdateProperties - - -class StatelessServiceUpdateProperties(ServiceResourceUpdateProperties): - """The properties of a stateless service resource for patch operations. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :param service_kind: Required. Constant filled by server. - :type service_kind: str - :param instance_count: The instance count. - :type instance_count: int - """ - - _validation = { - 'service_kind': {'required': True}, - 'instance_count': {'minimum': -1}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - 'instance_count': {'key': 'instanceCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(StatelessServiceUpdateProperties, self).__init__(**kwargs) - self.instance_count = kwargs.get('instance_count', None) - self.service_kind = 'Stateless' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_update_properties_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_update_properties_py3.py deleted file mode 100644 index a3f9a03058c3..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/stateless_service_update_properties_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# 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 .service_resource_update_properties_py3 import ServiceResourceUpdateProperties - - -class StatelessServiceUpdateProperties(ServiceResourceUpdateProperties): - """The properties of a stateless service resource for patch operations. - - All required parameters must be populated in order to send to Azure. - - :param placement_constraints: The placement constraints as a string. - Placement constraints are boolean expressions on node properties and allow - for restricting a service to particular nodes based on the service - requirements. For example, to place a service on nodes where NodeType is - blue specify the following: "NodeColor == blue)". - :type placement_constraints: str - :param correlation_scheme: A list that describes the correlation of the - service with other services. - :type correlation_scheme: - list[~azure.mgmt.servicefabric.models.ServiceCorrelationDescription] - :param service_load_metrics: The service load metrics is given as an array - of ServiceLoadMetricDescription objects. - :type service_load_metrics: - list[~azure.mgmt.servicefabric.models.ServiceLoadMetricDescription] - :param service_placement_policies: A list that describes the correlation - of the service with other services. - :type service_placement_policies: - list[~azure.mgmt.servicefabric.models.ServicePlacementPolicyDescription] - :param default_move_cost: Specifies the move cost for the service. - Possible values include: 'Zero', 'Low', 'Medium', 'High' - :type default_move_cost: str or ~azure.mgmt.servicefabric.models.MoveCost - :param service_kind: Required. Constant filled by server. - :type service_kind: str - :param instance_count: The instance count. - :type instance_count: int - """ - - _validation = { - 'service_kind': {'required': True}, - 'instance_count': {'minimum': -1}, - } - - _attribute_map = { - 'placement_constraints': {'key': 'placementConstraints', 'type': 'str'}, - 'correlation_scheme': {'key': 'correlationScheme', 'type': '[ServiceCorrelationDescription]'}, - 'service_load_metrics': {'key': 'serviceLoadMetrics', 'type': '[ServiceLoadMetricDescription]'}, - 'service_placement_policies': {'key': 'servicePlacementPolicies', 'type': '[ServicePlacementPolicyDescription]'}, - 'default_move_cost': {'key': 'defaultMoveCost', 'type': 'str'}, - 'service_kind': {'key': 'serviceKind', 'type': 'str'}, - 'instance_count': {'key': 'instanceCount', 'type': 'int'}, - } - - def __init__(self, *, placement_constraints: str=None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, instance_count: int=None, **kwargs) -> None: - super(StatelessServiceUpdateProperties, self).__init__(placement_constraints=placement_constraints, correlation_scheme=correlation_scheme, service_load_metrics=service_load_metrics, service_placement_policies=service_placement_policies, default_move_cost=default_move_cost, **kwargs) - self.instance_count = instance_count - self.service_kind = 'Stateless' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/uniform_int64_range_partition_scheme_description.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/uniform_int64_range_partition_scheme_description.py deleted file mode 100644 index 27fbf9ba5f8c..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/uniform_int64_range_partition_scheme_description.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 .partition_scheme_description import PartitionSchemeDescription - - -class UniformInt64RangePartitionSchemeDescription(PartitionSchemeDescription): - """Describes a partitioning scheme where an integer range is allocated evenly - across a number of partitions. - - All required parameters must be populated in order to send to Azure. - - :param partition_scheme: Required. Constant filled by server. - :type partition_scheme: str - :param count: Required. The number of partitions. - :type count: int - :param low_key: Required. String indicating the lower bound of the - partition key range that - should be split between the partition ‘Count’ - :type low_key: str - :param high_key: Required. String indicating the upper bound of the - partition key range that - should be split between the partition ‘Count’ - :type high_key: str - """ - - _validation = { - 'partition_scheme': {'required': True}, - 'count': {'required': True}, - 'low_key': {'required': True}, - 'high_key': {'required': True}, - } - - _attribute_map = { - 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, - 'count': {'key': 'Count', 'type': 'int'}, - 'low_key': {'key': 'LowKey', 'type': 'str'}, - 'high_key': {'key': 'HighKey', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UniformInt64RangePartitionSchemeDescription, self).__init__(**kwargs) - self.count = kwargs.get('count', None) - self.low_key = kwargs.get('low_key', None) - self.high_key = kwargs.get('high_key', None) - self.partition_scheme = 'UniformInt64Range' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/uniform_int64_range_partition_scheme_description_py3.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/uniform_int64_range_partition_scheme_description_py3.py deleted file mode 100644 index 811eefb8b6ca..000000000000 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/models/uniform_int64_range_partition_scheme_description_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 .partition_scheme_description_py3 import PartitionSchemeDescription - - -class UniformInt64RangePartitionSchemeDescription(PartitionSchemeDescription): - """Describes a partitioning scheme where an integer range is allocated evenly - across a number of partitions. - - All required parameters must be populated in order to send to Azure. - - :param partition_scheme: Required. Constant filled by server. - :type partition_scheme: str - :param count: Required. The number of partitions. - :type count: int - :param low_key: Required. String indicating the lower bound of the - partition key range that - should be split between the partition ‘Count’ - :type low_key: str - :param high_key: Required. String indicating the upper bound of the - partition key range that - should be split between the partition ‘Count’ - :type high_key: str - """ - - _validation = { - 'partition_scheme': {'required': True}, - 'count': {'required': True}, - 'low_key': {'required': True}, - 'high_key': {'required': True}, - } - - _attribute_map = { - 'partition_scheme': {'key': 'partitionScheme', 'type': 'str'}, - 'count': {'key': 'Count', 'type': 'int'}, - 'low_key': {'key': 'LowKey', 'type': 'str'}, - 'high_key': {'key': 'HighKey', 'type': 'str'}, - } - - def __init__(self, *, count: int, low_key: str, high_key: str, **kwargs) -> None: - super(UniformInt64RangePartitionSchemeDescription, self).__init__(**kwargs) - self.count = count - self.low_key = low_key - self.high_key = high_key - self.partition_scheme = 'UniformInt64Range' diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/__init__.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/__init__.py index 2fc13f2c6913..5599adce7c94 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/__init__.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/__init__.py @@ -9,13 +9,13 @@ # regenerated. # -------------------------------------------------------------------------- -from .clusters_operations import ClustersOperations -from .cluster_versions_operations import ClusterVersionsOperations -from .operations import Operations -from .application_types_operations import ApplicationTypesOperations -from .application_type_versions_operations import ApplicationTypeVersionsOperations -from .applications_operations import ApplicationsOperations -from .services_operations import ServicesOperations +from ._clusters_operations import ClustersOperations +from ._cluster_versions_operations import ClusterVersionsOperations +from ._operations import Operations +from ._application_types_operations import ApplicationTypesOperations +from ._application_type_versions_operations import ApplicationTypeVersionsOperations +from ._applications_operations import ApplicationsOperations +from ._services_operations import ServicesOperations __all__ = [ 'ClustersOperations', diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/application_type_versions_operations.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_application_type_versions_operations.py similarity index 96% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/application_type_versions_operations.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_application_type_versions_operations.py index 4bb4f0d2367c..4328ce62ea90 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/application_type_versions_operations.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_application_type_versions_operations.py @@ -20,11 +20,13 @@ class ApplicationTypeVersionsOperations(object): """ApplicationTypeVersionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01-preview" for this specification. Constant value: "2019-03-01-preview". + :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01" for this specification. Constant value: "2019-03-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-03-01-preview" + self.api_version = "2019-03-01" self.config = config @@ -101,7 +103,6 @@ def get( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationTypeVersionResource', response) @@ -113,10 +114,10 @@ def get( get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}'} - def _create_initial( + def _create_or_update_initial( self, resource_group_name, cluster_name, application_type_name, version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.create.metadata['url'] + url = self.create_or_update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -162,7 +163,7 @@ def _create_initial( return deserialized - def create( + def create_or_update( self, resource_group_name, cluster_name, application_type_name, version, parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Creates or updates a Service Fabric application type version resource. @@ -196,7 +197,7 @@ def create( :raises: :class:`ErrorModelException` """ - raw_result = self._create_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, application_type_name=application_type_name, @@ -223,7 +224,7 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}'} + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}'} def _delete_initial( @@ -375,7 +376,6 @@ def list( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationTypeVersionResourceList', response) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/application_types_operations.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_application_types_operations.py similarity index 96% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/application_types_operations.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_application_types_operations.py index 38a9aa537a56..bd3b8ed9b9cf 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/application_types_operations.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_application_types_operations.py @@ -20,11 +20,13 @@ class ApplicationTypesOperations(object): """ApplicationTypesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01-preview" for this specification. Constant value: "2019-03-01-preview". + :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01" for this specification. Constant value: "2019-03-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-03-01-preview" + self.api_version = "2019-03-01" self.config = config @@ -95,7 +97,6 @@ def get( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationTypeResource', response) @@ -106,7 +107,7 @@ def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}'} - def create( + def create_or_update( self, resource_group_name, cluster_name, application_type_name, location=None, tags=None, custom_headers=None, raw=False, **operation_config): """Creates or updates a Service Fabric application type name resource. @@ -120,7 +121,8 @@ def create( :param application_type_name: The name of the application type name resource. :type application_type_name: str - :param location: Azure resource location. + :param location: It will be deprecated in New API, resource location + depends on the parent resource. :type location: str :param tags: Azure resource tags. :type tags: dict[str, str] @@ -138,7 +140,7 @@ def create( parameters = models.ApplicationTypeResource(location=location, tags=tags) # Construct URL - url = self.create.metadata['url'] + url = self.create_or_update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -173,7 +175,6 @@ def create( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationTypeResource', response) @@ -182,7 +183,7 @@ def create( return client_raw_response return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}'} + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}'} def _delete_initial( @@ -324,7 +325,6 @@ def list( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationTypeResourceList', response) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/applications_operations.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_applications_operations.py similarity index 97% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/applications_operations.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_applications_operations.py index 67d3a75aae04..cc5d71a046af 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/applications_operations.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_applications_operations.py @@ -20,11 +20,13 @@ class ApplicationsOperations(object): """ApplicationsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01-preview" for this specification. Constant value: "2019-03-01-preview". + :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01" for this specification. Constant value: "2019-03-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-03-01-preview" + self.api_version = "2019-03-01" self.config = config @@ -94,7 +96,6 @@ def get( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationResource', response) @@ -106,10 +107,10 @@ def get( get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}'} - def _create_initial( + def _create_or_update_initial( self, resource_group_name, cluster_name, application_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.create.metadata['url'] + url = self.create_or_update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -154,7 +155,7 @@ def _create_initial( return deserialized - def create( + def create_or_update( self, resource_group_name, cluster_name, application_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Creates or updates a Service Fabric application resource. @@ -183,7 +184,7 @@ def create( :raises: :class:`ErrorModelException` """ - raw_result = self._create_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, application_name=application_name, @@ -209,7 +210,7 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}'} + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}'} def _update_initial( @@ -455,7 +456,6 @@ def list( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationResourceList', response) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/cluster_versions_operations.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_cluster_versions_operations.py similarity index 98% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/cluster_versions_operations.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_cluster_versions_operations.py index 196308667d9a..cba7391cba03 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/cluster_versions_operations.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_cluster_versions_operations.py @@ -19,11 +19,13 @@ class ClusterVersionsOperations(object): """ClusterVersionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01-preview" for this specification. Constant value: "2019-03-01-preview". + :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01" for this specification. Constant value: "2019-03-01". """ models = models @@ -33,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-03-01-preview" + self.api_version = "2019-03-01" self.config = config @@ -94,7 +96,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ClusterCodeVersionsListResult', response) @@ -166,7 +167,6 @@ def get_by_environment( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ClusterCodeVersionsListResult', response) @@ -231,7 +231,6 @@ def list( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ClusterCodeVersionsListResult', response) @@ -300,7 +299,6 @@ def list_by_environment( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ClusterCodeVersionsListResult', response) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/clusters_operations.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_clusters_operations.py similarity index 97% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/clusters_operations.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_clusters_operations.py index 7b7e1524196c..f179db760c8f 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/clusters_operations.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_clusters_operations.py @@ -20,11 +20,13 @@ class ClustersOperations(object): """ClustersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01-preview" for this specification. Constant value: "2019-03-01-preview". + :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01" for this specification. Constant value: "2019-03-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-03-01-preview" + self.api_version = "2019-03-01" self.config = config @@ -91,7 +93,6 @@ def get( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Cluster', response) @@ -103,10 +104,10 @@ def get( get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}'} - def _create_initial( + def _create_or_update_initial( self, resource_group_name, cluster_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.create.metadata['url'] + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -152,7 +153,7 @@ def _create_initial( return deserialized - def create( + def create_or_update( self, resource_group_name, cluster_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Creates or updates a Service Fabric cluster resource. @@ -179,7 +180,7 @@ def create( :raises: :class:`ErrorModelException` """ - raw_result = self._create_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, parameters=parameters, @@ -204,7 +205,7 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}'} + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}'} def _update_initial( @@ -417,7 +418,6 @@ def list_by_resource_group( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ClusterListResult', response) @@ -476,7 +476,6 @@ def list( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ClusterListResult', response) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/operations.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_operations.py similarity index 90% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/operations.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_operations.py index 13970c7e1372..f0c12ba38514 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/operations.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_operations.py @@ -18,6 +18,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -56,8 +58,7 @@ def list( :raises: :class:`ErrorModelException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -82,6 +83,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -90,12 +96,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationResultPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationResultPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationResultPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.ServiceFabric/operations'} diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/services_operations.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_services_operations.py similarity index 97% rename from sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/services_operations.py rename to sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_services_operations.py index 8f7467d504a5..b253a18ae3f9 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/services_operations.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/operations/_services_operations.py @@ -20,11 +20,13 @@ class ServicesOperations(object): """ServicesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01-preview" for this specification. Constant value: "2019-03-01-preview". + :ivar api_version: The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2019-03-01" for this specification. Constant value: "2019-03-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-03-01-preview" + self.api_version = "2019-03-01" self.config = config @@ -98,7 +100,6 @@ def get( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceResource', response) @@ -110,10 +111,10 @@ def get( get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}'} - def _create_initial( + def _create_or_update_initial( self, resource_group_name, cluster_name, application_name, service_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.create.metadata['url'] + url = self.create_or_update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -159,7 +160,7 @@ def _create_initial( return deserialized - def create( + def create_or_update( self, resource_group_name, cluster_name, application_name, service_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Creates or updates a Service Fabric service resource. @@ -191,7 +192,7 @@ def create( :raises: :class:`ErrorModelException` """ - raw_result = self._create_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, application_name=application_name, @@ -218,7 +219,7 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}'} + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services/{serviceName}'} def _update_initial( @@ -477,7 +478,6 @@ def list( raise models.ErrorModelException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceResourceList', response) diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/version.py b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/version.py index 3e682bbd5fb1..85da2c00c1a6 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/version.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.3.0" +VERSION = "0.4.0" diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/setup.py b/sdk/servicefabric/azure-mgmt-servicefabric/setup.py index a6e1daec7a4b..da4a0778d580 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/setup.py +++ b/sdk/servicefabric/azure-mgmt-servicefabric/setup.py @@ -64,7 +64,6 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',