Add ability to check in unreleased versions of the Service Fabric SDK (#74)

update travis CI to take custom service fabric SDK to allow merges to happen between releases
This commit is contained in:
Christina Kang - MSFT 2018-03-30 14:44:40 -07:00 коммит произвёл GitHub
Родитель d13ab59aa4
Коммит 414efc7fdd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
356 изменённых файлов: 36120 добавлений и 11 удалений

Просмотреть файл

@ -8,6 +8,8 @@ git:
install:
- pip install -e ./src
- pip install -r requirements.txt
before_script:
- python scripts/check_and_use_custom_sdk.py
script:
- scripts/verify.sh test
- scripts/verify.sh lint

Просмотреть файл

@ -0,0 +1,18 @@
# 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_fabric_client_ap_is import ServiceFabricClientAPIs
from .version import VERSION
__all__ = ['ServiceFabricClientAPIs']
__version__ = VERSION

Просмотреть файл

@ -0,0 +1,874 @@
# 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 .aad_metadata import AadMetadata
from .aad_metadata_object import AadMetadataObject
from .analysis_event_metadata import AnalysisEventMetadata
from .application_event import ApplicationEvent
from .service_health_state import ServiceHealthState
from .deployed_application_health_state import DeployedApplicationHealthState
from .application_health import ApplicationHealth
from .health_evaluation import HealthEvaluation
from .health_evaluation_wrapper import HealthEvaluationWrapper
from .application_health_evaluation import ApplicationHealthEvaluation
from .service_type_health_policy import ServiceTypeHealthPolicy
from .service_type_health_policy_map_item import ServiceTypeHealthPolicyMapItem
from .application_health_policy import ApplicationHealthPolicy
from .application_health_policy_map_item import ApplicationHealthPolicyMapItem
from .application_health_policies import ApplicationHealthPolicies
from .application_health_state import ApplicationHealthState
from .replica_health_state_chunk import ReplicaHealthStateChunk
from .replica_health_state_chunk_list import ReplicaHealthStateChunkList
from .partition_health_state_chunk import PartitionHealthStateChunk
from .partition_health_state_chunk_list import PartitionHealthStateChunkList
from .service_health_state_chunk import ServiceHealthStateChunk
from .service_health_state_chunk_list import ServiceHealthStateChunkList
from .deployed_service_package_health_state_chunk import DeployedServicePackageHealthStateChunk
from .deployed_service_package_health_state_chunk_list import DeployedServicePackageHealthStateChunkList
from .deployed_application_health_state_chunk import DeployedApplicationHealthStateChunk
from .deployed_application_health_state_chunk_list import DeployedApplicationHealthStateChunkList
from .application_health_state_chunk import ApplicationHealthStateChunk
from .application_health_state_chunk_list import ApplicationHealthStateChunkList
from .replica_health_state_filter import ReplicaHealthStateFilter
from .partition_health_state_filter import PartitionHealthStateFilter
from .service_health_state_filter import ServiceHealthStateFilter
from .deployed_service_package_health_state_filter import DeployedServicePackageHealthStateFilter
from .deployed_application_health_state_filter import DeployedApplicationHealthStateFilter
from .application_health_state_filter import ApplicationHealthStateFilter
from .application_parameter import ApplicationParameter
from .application_info import ApplicationInfo
from .application_metric_description import ApplicationMetricDescription
from .application_load_info import ApplicationLoadInfo
from .application_name_info import ApplicationNameInfo
from .applications_health_evaluation import ApplicationsHealthEvaluation
from .application_type_applications_health_evaluation import ApplicationTypeApplicationsHealthEvaluation
from .application_type_health_policy_map_item import ApplicationTypeHealthPolicyMapItem
from .application_type_info import ApplicationTypeInfo
from .paged_application_type_info_list import PagedApplicationTypeInfoList
from .application_type_manifest import ApplicationTypeManifest
from .monitoring_policy_description import MonitoringPolicyDescription
from .application_upgrade_description import ApplicationUpgradeDescription
from .upgrade_domain_info import UpgradeDomainInfo
from .safety_check import SafetyCheck
from .safety_check_wrapper import SafetyCheckWrapper
from .node_upgrade_progress_info import NodeUpgradeProgressInfo
from .current_upgrade_domain_progress_info import CurrentUpgradeDomainProgressInfo
from .failure_upgrade_domain_progress_info import FailureUpgradeDomainProgressInfo
from .application_upgrade_progress_info import ApplicationUpgradeProgressInfo
from .cluster_configuration import ClusterConfiguration
from .cluster_event import ClusterEvent
from .node_id import NodeId
from .node_health_state import NodeHealthState
from .cluster_health import ClusterHealth
from .node_health_state_chunk import NodeHealthStateChunk
from .node_health_state_chunk_list import NodeHealthStateChunkList
from .cluster_health_chunk import ClusterHealthChunk
from .node_health_state_filter import NodeHealthStateFilter
from .cluster_health_policy import ClusterHealthPolicy
from .cluster_health_chunk_query_description import ClusterHealthChunkQueryDescription
from .cluster_health_policies import ClusterHealthPolicies
from .cluster_manifest import ClusterManifest
from .container_event import ContainerEvent
from .deactivation_intent_description import DeactivationIntentDescription
from .delta_nodes_check_health_evaluation import DeltaNodesCheckHealthEvaluation
from .deployed_service_package_health_state import DeployedServicePackageHealthState
from .deployed_application_health import DeployedApplicationHealth
from .deployed_application_health_evaluation import DeployedApplicationHealthEvaluation
from .deployed_application_info import DeployedApplicationInfo
from .deployed_applications_health_evaluation import DeployedApplicationsHealthEvaluation
from .deployed_service_package_health import DeployedServicePackageHealth
from .deployed_service_package_health_evaluation import DeployedServicePackageHealthEvaluation
from .deployed_service_packages_health_evaluation import DeployedServicePackagesHealthEvaluation
from .deployed_service_replica_info import DeployedServiceReplicaInfo
from .reconfiguration_information import ReconfigurationInformation
from .deployed_stateful_service_replica_info import DeployedStatefulServiceReplicaInfo
from .deployed_stateless_service_instance_info import DeployedStatelessServiceInstanceInfo
from .health_event import HealthEvent
from .health_state_count import HealthStateCount
from .entity_kind_health_state_count import EntityKindHealthStateCount
from .health_statistics import HealthStatistics
from .entity_health import EntityHealth
from .entity_health_state import EntityHealthState
from .entity_health_state_chunk import EntityHealthStateChunk
from .entity_health_state_chunk_list import EntityHealthStateChunkList
from .epoch import Epoch
from .event_health_evaluation import EventHealthEvaluation
from .fabric_event import FabricEvent
from .fabric_code_version_info import FabricCodeVersionInfo
from .fabric_config_version_info import FabricConfigVersionInfo
from .fabric_error_error import FabricErrorError
from .fabric_error import FabricError, FabricErrorException
from .cluster_configuration_upgrade_status_info import ClusterConfigurationUpgradeStatusInfo
from .health_information import HealthInformation
from .int64_range_partition_information import Int64RangePartitionInformation
from .named_partition_information import NamedPartitionInformation
from .node_deactivation_task_id import NodeDeactivationTaskId
from .node_deactivation_task import NodeDeactivationTask
from .node_deactivation_info import NodeDeactivationInfo
from .node_event import NodeEvent
from .node_health import NodeHealth
from .node_health_evaluation import NodeHealthEvaluation
from .node_info import NodeInfo
from .node_load_metric_information import NodeLoadMetricInformation
from .node_load_info import NodeLoadInfo
from .nodes_health_evaluation import NodesHealthEvaluation
from .paged_application_info_list import PagedApplicationInfoList
from .paged_deployed_application_info_list import PagedDeployedApplicationInfoList
from .paged_node_info_list import PagedNodeInfoList
from .partition_information import PartitionInformation
from .service_partition_info import ServicePartitionInfo
from .paged_service_partition_info_list import PagedServicePartitionInfoList
from .replica_info import ReplicaInfo
from .paged_replica_info_list import PagedReplicaInfoList
from .service_info import ServiceInfo
from .paged_service_info_list import PagedServiceInfoList
from .partition_analysis_event import PartitionAnalysisEvent
from .partition_event import PartitionEvent
from .replica_health_state import ReplicaHealthState
from .partition_health import PartitionHealth
from .partition_health_evaluation import PartitionHealthEvaluation
from .partition_health_state import PartitionHealthState
from .provision_fabric_description import ProvisionFabricDescription
from .provision_application_type_description_base import ProvisionApplicationTypeDescriptionBase
from .provision_application_type_description import ProvisionApplicationTypeDescription
from .external_store_provision_application_type_description import ExternalStoreProvisionApplicationTypeDescription
from .unprovision_fabric_description import UnprovisionFabricDescription
from .resume_cluster_upgrade_description import ResumeClusterUpgradeDescription
from .cluster_upgrade_health_policy_object import ClusterUpgradeHealthPolicyObject
from .start_cluster_upgrade_description import StartClusterUpgradeDescription
from .rolling_upgrade_update_description import RollingUpgradeUpdateDescription
from .update_cluster_upgrade_description import UpdateClusterUpgradeDescription
from .partition_safety_check import PartitionSafetyCheck
from .ensure_availability_safety_check import EnsureAvailabilitySafetyCheck
from .ensure_partition_qurum_safety_check import EnsurePartitionQurumSafetyCheck
from .seed_node_safety_check import SeedNodeSafetyCheck
from .partitions_health_evaluation import PartitionsHealthEvaluation
from .replica_event import ReplicaEvent
from .replica_health import ReplicaHealth
from .replica_health_evaluation import ReplicaHealthEvaluation
from .replicas_health_evaluation import ReplicasHealthEvaluation
from .restart_node_description import RestartNodeDescription
from .service_event import ServiceEvent
from .service_from_template_description import ServiceFromTemplateDescription
from .service_health_evaluation import ServiceHealthEvaluation
from .service_health import ServiceHealth
from .service_name_info import ServiceNameInfo
from .service_placement_invalid_domain_policy_description import ServicePlacementInvalidDomainPolicyDescription
from .service_placement_non_partially_place_service_policy_description import ServicePlacementNonPartiallyPlaceServicePolicyDescription
from .service_placement_policy_description import ServicePlacementPolicyDescription
from .service_placement_prefer_primary_domain_policy_description import ServicePlacementPreferPrimaryDomainPolicyDescription
from .service_placement_required_domain_policy_description import ServicePlacementRequiredDomainPolicyDescription
from .service_placement_require_domain_distribution_policy_description import ServicePlacementRequireDomainDistributionPolicyDescription
from .services_health_evaluation import ServicesHealthEvaluation
from .service_type_extension_description import ServiceTypeExtensionDescription
from .service_type_description import ServiceTypeDescription
from .service_type_info import ServiceTypeInfo
from .service_type_manifest import ServiceTypeManifest
from .singleton_partition_information import SingletonPartitionInformation
from .stateful_service_info import StatefulServiceInfo
from .stateful_service_partition_info import StatefulServicePartitionInfo
from .stateful_service_replica_health import StatefulServiceReplicaHealth
from .stateful_service_replica_health_state import StatefulServiceReplicaHealthState
from .stateful_service_type_description import StatefulServiceTypeDescription
from .stateless_service_info import StatelessServiceInfo
from .stateless_service_instance_health import StatelessServiceInstanceHealth
from .stateless_service_instance_health_state import StatelessServiceInstanceHealthState
from .stateless_service_partition_info import StatelessServicePartitionInfo
from .stateless_service_type_description import StatelessServiceTypeDescription
from .system_application_health_evaluation import SystemApplicationHealthEvaluation
from .upgrade_domain_delta_nodes_check_health_evaluation import UpgradeDomainDeltaNodesCheckHealthEvaluation
from .upgrade_domain_nodes_health_evaluation import UpgradeDomainNodesHealthEvaluation
from .wait_for_inbuild_replica_safety_check import WaitForInbuildReplicaSafetyCheck
from .wait_for_primary_placement_safety_check import WaitForPrimaryPlacementSafetyCheck
from .wait_for_primary_swap_safety_check import WaitForPrimarySwapSafetyCheck
from .wait_for_reconfiguration_safety_check import WaitForReconfigurationSafetyCheck
from .load_metric_report import LoadMetricReport
from .partition_load_information import PartitionLoadInformation
from .stateful_service_replica_info import StatefulServiceReplicaInfo
from .stateless_service_instance_info import StatelessServiceInstanceInfo
from .cluster_upgrade_description_object import ClusterUpgradeDescriptionObject
from .failed_upgrade_domain_progress_object import FailedUpgradeDomainProgressObject
from .cluster_upgrade_progress_object import ClusterUpgradeProgressObject
from .cluster_configuration_upgrade_description import ClusterConfigurationUpgradeDescription
from .upgrade_orchestration_service_state import UpgradeOrchestrationServiceState
from .upgrade_orchestration_service_state_summary import UpgradeOrchestrationServiceStateSummary
from .application_type_image_store_path import ApplicationTypeImageStorePath
from .unprovision_application_type_description_info import UnprovisionApplicationTypeDescriptionInfo
from .code_package_entry_point_statistics import CodePackageEntryPointStatistics
from .code_package_entry_point import CodePackageEntryPoint
from .deployed_code_package_info import DeployedCodePackageInfo
from .chaos_context import ChaosContext
from .chaos_target_filter import ChaosTargetFilter
from .chaos_parameters import ChaosParameters
from .chaos import Chaos
from .chaos_parameters_dictionary_item import ChaosParametersDictionaryItem
from .chaos_event import ChaosEvent
from .chaos_event_wrapper import ChaosEventWrapper
from .chaos_events_segment import ChaosEventsSegment
from .chaos_schedule_job_active_days_of_week import ChaosScheduleJobActiveDaysOfWeek
from .time_of_day import TimeOfDay
from .time_range import TimeRange
from .chaos_schedule_job import ChaosScheduleJob
from .chaos_schedule import ChaosSchedule
from .chaos_schedule_description import ChaosScheduleDescription
from .executing_faults_chaos_event import ExecutingFaultsChaosEvent
from .started_chaos_event import StartedChaosEvent
from .stopped_chaos_event import StoppedChaosEvent
from .test_error_chaos_event import TestErrorChaosEvent
from .validation_failed_chaos_event import ValidationFailedChaosEvent
from .waiting_chaos_event import WaitingChaosEvent
from .application_capacity_description import ApplicationCapacityDescription
from .application_description import ApplicationDescription
from .compose_deployment_status_info import ComposeDeploymentStatusInfo
from .registry_credential import RegistryCredential
from .compose_deployment_upgrade_description import ComposeDeploymentUpgradeDescription
from .compose_deployment_upgrade_progress_info import ComposeDeploymentUpgradeProgressInfo
from .paged_compose_deployment_status_info_list import PagedComposeDeploymentStatusInfoList
from .create_compose_deployment_description import CreateComposeDeploymentDescription
from .deployed_service_package_info import DeployedServicePackageInfo
from .service_correlation_description import ServiceCorrelationDescription
from .service_load_metric_description import ServiceLoadMetricDescription
from .partition_scheme_description import PartitionSchemeDescription
from .named_partition_scheme_description import NamedPartitionSchemeDescription
from .singleton_partition_scheme_description import SingletonPartitionSchemeDescription
from .uniform_int64_range_partition_scheme_description import UniformInt64RangePartitionSchemeDescription
from .service_description import ServiceDescription
from .stateful_service_description import StatefulServiceDescription
from .stateless_service_description import StatelessServiceDescription
from .replicator_queue_status import ReplicatorQueueStatus
from .replicator_status import ReplicatorStatus
from .remote_replicator_acknowledgement_detail import RemoteReplicatorAcknowledgementDetail
from .remote_replicator_acknowledgement_status import RemoteReplicatorAcknowledgementStatus
from .remote_replicator_status import RemoteReplicatorStatus
from .primary_replicator_status import PrimaryReplicatorStatus
from .secondary_replicator_status import SecondaryReplicatorStatus
from .secondary_active_replicator_status import SecondaryActiveReplicatorStatus
from .secondary_idle_replicator_status import SecondaryIdleReplicatorStatus
from .load_metric_report_info import LoadMetricReportInfo
from .deployed_service_replica_detail_info import DeployedServiceReplicaDetailInfo
from .key_value_store_replica_status import KeyValueStoreReplicaStatus
from .deployed_stateful_service_replica_detail_info import DeployedStatefulServiceReplicaDetailInfo
from .deployed_stateless_service_instance_detail_info import DeployedStatelessServiceInstanceDetailInfo
from .replica_status_base import ReplicaStatusBase
from .service_update_description import ServiceUpdateDescription
from .stateful_service_update_description import StatefulServiceUpdateDescription
from .stateless_service_update_description import StatelessServiceUpdateDescription
from .file_version import FileVersion
from .file_info import FileInfo
from .folder_info import FolderInfo
from .image_store_content import ImageStoreContent
from .image_store_copy_description import ImageStoreCopyDescription
from .restart_deployed_code_package_description import RestartDeployedCodePackageDescription
from .deployed_service_type_info import DeployedServiceTypeInfo
from .resolved_service_endpoint import ResolvedServiceEndpoint
from .resolved_service_partition import ResolvedServicePartition
from .selected_partition import SelectedPartition
from .invoke_data_loss_result import InvokeDataLossResult
from .invoke_quorum_loss_result import InvokeQuorumLossResult
from .node_result import NodeResult
from .node_transition_result import NodeTransitionResult
from .node_transition_progress import NodeTransitionProgress
from .operation_status import OperationStatus
from .partition_data_loss_progress import PartitionDataLossProgress
from .partition_quorum_loss_progress import PartitionQuorumLossProgress
from .restart_partition_result import RestartPartitionResult
from .partition_restart_progress import PartitionRestartProgress
from .package_sharing_policy_info import PackageSharingPolicyInfo
from .deploy_service_package_to_node_description import DeployServicePackageToNodeDescription
from .resume_application_upgrade_description import ResumeApplicationUpgradeDescription
from .application_upgrade_update_description import ApplicationUpgradeUpdateDescription
from .name_description import NameDescription
from .paged_sub_name_info_list import PagedSubNameInfoList
from .property_value import PropertyValue
from .binary_property_value import BinaryPropertyValue
from .int64_property_value import Int64PropertyValue
from .double_property_value import DoublePropertyValue
from .string_property_value import StringPropertyValue
from .guid_property_value import GuidPropertyValue
from .property_metadata import PropertyMetadata
from .property_info import PropertyInfo
from .paged_property_info_list import PagedPropertyInfoList
from .property_description import PropertyDescription
from .property_batch_operation import PropertyBatchOperation
from .property_batch_description_list import PropertyBatchDescriptionList
from .check_exists_property_batch_operation import CheckExistsPropertyBatchOperation
from .check_sequence_property_batch_operation import CheckSequencePropertyBatchOperation
from .check_value_property_batch_operation import CheckValuePropertyBatchOperation
from .delete_property_batch_operation import DeletePropertyBatchOperation
from .get_property_batch_operation import GetPropertyBatchOperation
from .put_property_batch_operation import PutPropertyBatchOperation
from .property_batch_info import PropertyBatchInfo
from .successful_property_batch_info import SuccessfulPropertyBatchInfo
from .failed_property_batch_info import FailedPropertyBatchInfo
from .backup_schedule_description import BackupScheduleDescription
from .backup_storage_description import BackupStorageDescription
from .backup_policy_description import BackupPolicyDescription
from .paged_backup_policy_description_list import PagedBackupPolicyDescriptionList
from .application_backup_configuration_info import ApplicationBackupConfigurationInfo
from .service_backup_configuration_info import ServiceBackupConfigurationInfo
from .backup_suspension_info import BackupSuspensionInfo
from .backup_configuration_info import BackupConfigurationInfo
from .paged_backup_configuration_info_list import PagedBackupConfigurationInfoList
from .restore_partition_description import RestorePartitionDescription
from .restore_progress_info import RestoreProgressInfo
from .backup_partition_description import BackupPartitionDescription
from .backup_info import BackupInfo
from .paged_backup_info_list import PagedBackupInfoList
from .azure_blob_backup_storage_description import AzureBlobBackupStorageDescription
from .file_share_backup_storage_description import FileShareBackupStorageDescription
from .frequency_based_backup_schedule_description import FrequencyBasedBackupScheduleDescription
from .time_based_backup_schedule_description import TimeBasedBackupScheduleDescription
from .backup_progress_info import BackupProgressInfo
from .partition_backup_configuration_info import PartitionBackupConfigurationInfo
from .backup_entity import BackupEntity
from .application_backup_entity import ApplicationBackupEntity
from .service_backup_entity import ServiceBackupEntity
from .partition_backup_entity import PartitionBackupEntity
from .enable_backup_description import EnableBackupDescription
from .paged_backup_entity_list import PagedBackupEntityList
from .get_backup_by_storage_query_description import GetBackupByStorageQueryDescription
from .node_impact import NodeImpact
from .node_repair_impact_description import NodeRepairImpactDescription
from .node_repair_target_description import NodeRepairTargetDescription
from .repair_impact_description_base import RepairImpactDescriptionBase
from .repair_target_description_base import RepairTargetDescriptionBase
from .repair_task_history import RepairTaskHistory
from .repair_task import RepairTask
from .repair_task_approve_description import RepairTaskApproveDescription
from .repair_task_cancel_description import RepairTaskCancelDescription
from .repair_task_delete_description import RepairTaskDeleteDescription
from .repair_task_update_health_policy_description import RepairTaskUpdateHealthPolicyDescription
from .repair_task_update_info import RepairTaskUpdateInfo
from .upload_chunk_range import UploadChunkRange
from .upload_session_info import UploadSessionInfo
from .upload_session import UploadSession
from .container_logs import ContainerLogs
from .node_up_event import NodeUpEvent
from .node_down_event import NodeDownEvent
from .partition_primary_move_analysis_event import PartitionPrimaryMoveAnalysisEvent
from .service_fabric_client_ap_is_enums import (
ApplicationDefinitionKind,
HealthState,
ApplicationStatus,
ApplicationTypeDefinitionKind,
ApplicationTypeStatus,
UpgradeKind,
UpgradeMode,
FailureAction,
UpgradeDomainState,
UpgradeState,
NodeUpgradePhase,
FailureReason,
DeactivationIntent,
DeployedApplicationStatus,
ReplicaStatus,
ReplicaRole,
ReconfigurationPhase,
ReconfigurationType,
EntityKind,
FabricErrorCodes,
FabricEventKind,
HealthEvaluationKind,
NodeDeactivationIntent,
NodeDeactivationStatus,
NodeDeactivationTaskType,
NodeStatus,
ServicePartitionStatus,
ServiceStatus,
ProvisionApplicationTypeKind,
UpgradeType,
SafetyCheckKind,
CreateFabricDump,
ServicePackageActivationMode,
ServiceKind,
ServicePartitionKind,
ServicePlacementPolicyType,
HostType,
HostIsolationMode,
DeploymentStatus,
EntryPointStatus,
ChaosStatus,
ChaosScheduleStatus,
ChaosEventKind,
ComposeDeploymentStatus,
ComposeDeploymentUpgradeState,
ServiceCorrelationScheme,
MoveCost,
PartitionScheme,
ServiceLoadMetricWeight,
ServiceOperationName,
ReplicatorOperationName,
PartitionAccessStatus,
FabricReplicaStatus,
ReplicaKind,
ServiceTypeRegistrationStatus,
ServiceEndpointRole,
OperationState,
OperationType,
PackageSharingPolicyScope,
PropertyValueKind,
PropertyBatchOperationKind,
PropertyBatchInfoKind,
BackupStorageKind,
BackupScheduleKind,
BackupPolicyScope,
BackupSuspensionScope,
RestoreState,
BackupType,
BackupScheduleFrequencyType,
DayOfWeek,
BackupState,
BackupEntityKind,
ImpactLevel,
RepairImpactKind,
RepairTargetKind,
State,
ResultStatus,
RepairTaskHealthCheckState,
NodeStatusFilter,
ReplicaHealthReportServiceKind,
DataLossMode,
NodeTransitionType,
QuorumLossMode,
RestartPartitionMode,
)
__all__ = [
'AadMetadata',
'AadMetadataObject',
'AnalysisEventMetadata',
'ApplicationEvent',
'ServiceHealthState',
'DeployedApplicationHealthState',
'ApplicationHealth',
'HealthEvaluation',
'HealthEvaluationWrapper',
'ApplicationHealthEvaluation',
'ServiceTypeHealthPolicy',
'ServiceTypeHealthPolicyMapItem',
'ApplicationHealthPolicy',
'ApplicationHealthPolicyMapItem',
'ApplicationHealthPolicies',
'ApplicationHealthState',
'ReplicaHealthStateChunk',
'ReplicaHealthStateChunkList',
'PartitionHealthStateChunk',
'PartitionHealthStateChunkList',
'ServiceHealthStateChunk',
'ServiceHealthStateChunkList',
'DeployedServicePackageHealthStateChunk',
'DeployedServicePackageHealthStateChunkList',
'DeployedApplicationHealthStateChunk',
'DeployedApplicationHealthStateChunkList',
'ApplicationHealthStateChunk',
'ApplicationHealthStateChunkList',
'ReplicaHealthStateFilter',
'PartitionHealthStateFilter',
'ServiceHealthStateFilter',
'DeployedServicePackageHealthStateFilter',
'DeployedApplicationHealthStateFilter',
'ApplicationHealthStateFilter',
'ApplicationParameter',
'ApplicationInfo',
'ApplicationMetricDescription',
'ApplicationLoadInfo',
'ApplicationNameInfo',
'ApplicationsHealthEvaluation',
'ApplicationTypeApplicationsHealthEvaluation',
'ApplicationTypeHealthPolicyMapItem',
'ApplicationTypeInfo',
'PagedApplicationTypeInfoList',
'ApplicationTypeManifest',
'MonitoringPolicyDescription',
'ApplicationUpgradeDescription',
'UpgradeDomainInfo',
'SafetyCheck',
'SafetyCheckWrapper',
'NodeUpgradeProgressInfo',
'CurrentUpgradeDomainProgressInfo',
'FailureUpgradeDomainProgressInfo',
'ApplicationUpgradeProgressInfo',
'ClusterConfiguration',
'ClusterEvent',
'NodeId',
'NodeHealthState',
'ClusterHealth',
'NodeHealthStateChunk',
'NodeHealthStateChunkList',
'ClusterHealthChunk',
'NodeHealthStateFilter',
'ClusterHealthPolicy',
'ClusterHealthChunkQueryDescription',
'ClusterHealthPolicies',
'ClusterManifest',
'ContainerEvent',
'DeactivationIntentDescription',
'DeltaNodesCheckHealthEvaluation',
'DeployedServicePackageHealthState',
'DeployedApplicationHealth',
'DeployedApplicationHealthEvaluation',
'DeployedApplicationInfo',
'DeployedApplicationsHealthEvaluation',
'DeployedServicePackageHealth',
'DeployedServicePackageHealthEvaluation',
'DeployedServicePackagesHealthEvaluation',
'DeployedServiceReplicaInfo',
'ReconfigurationInformation',
'DeployedStatefulServiceReplicaInfo',
'DeployedStatelessServiceInstanceInfo',
'HealthEvent',
'HealthStateCount',
'EntityKindHealthStateCount',
'HealthStatistics',
'EntityHealth',
'EntityHealthState',
'EntityHealthStateChunk',
'EntityHealthStateChunkList',
'Epoch',
'EventHealthEvaluation',
'FabricEvent',
'FabricCodeVersionInfo',
'FabricConfigVersionInfo',
'FabricErrorError',
'FabricError', 'FabricErrorException',
'ClusterConfigurationUpgradeStatusInfo',
'HealthInformation',
'Int64RangePartitionInformation',
'NamedPartitionInformation',
'NodeDeactivationTaskId',
'NodeDeactivationTask',
'NodeDeactivationInfo',
'NodeEvent',
'NodeHealth',
'NodeHealthEvaluation',
'NodeInfo',
'NodeLoadMetricInformation',
'NodeLoadInfo',
'NodesHealthEvaluation',
'PagedApplicationInfoList',
'PagedDeployedApplicationInfoList',
'PagedNodeInfoList',
'PartitionInformation',
'ServicePartitionInfo',
'PagedServicePartitionInfoList',
'ReplicaInfo',
'PagedReplicaInfoList',
'ServiceInfo',
'PagedServiceInfoList',
'PartitionAnalysisEvent',
'PartitionEvent',
'ReplicaHealthState',
'PartitionHealth',
'PartitionHealthEvaluation',
'PartitionHealthState',
'ProvisionFabricDescription',
'ProvisionApplicationTypeDescriptionBase',
'ProvisionApplicationTypeDescription',
'ExternalStoreProvisionApplicationTypeDescription',
'UnprovisionFabricDescription',
'ResumeClusterUpgradeDescription',
'ClusterUpgradeHealthPolicyObject',
'StartClusterUpgradeDescription',
'RollingUpgradeUpdateDescription',
'UpdateClusterUpgradeDescription',
'PartitionSafetyCheck',
'EnsureAvailabilitySafetyCheck',
'EnsurePartitionQurumSafetyCheck',
'SeedNodeSafetyCheck',
'PartitionsHealthEvaluation',
'ReplicaEvent',
'ReplicaHealth',
'ReplicaHealthEvaluation',
'ReplicasHealthEvaluation',
'RestartNodeDescription',
'ServiceEvent',
'ServiceFromTemplateDescription',
'ServiceHealthEvaluation',
'ServiceHealth',
'ServiceNameInfo',
'ServicePlacementInvalidDomainPolicyDescription',
'ServicePlacementNonPartiallyPlaceServicePolicyDescription',
'ServicePlacementPolicyDescription',
'ServicePlacementPreferPrimaryDomainPolicyDescription',
'ServicePlacementRequiredDomainPolicyDescription',
'ServicePlacementRequireDomainDistributionPolicyDescription',
'ServicesHealthEvaluation',
'ServiceTypeExtensionDescription',
'ServiceTypeDescription',
'ServiceTypeInfo',
'ServiceTypeManifest',
'SingletonPartitionInformation',
'StatefulServiceInfo',
'StatefulServicePartitionInfo',
'StatefulServiceReplicaHealth',
'StatefulServiceReplicaHealthState',
'StatefulServiceTypeDescription',
'StatelessServiceInfo',
'StatelessServiceInstanceHealth',
'StatelessServiceInstanceHealthState',
'StatelessServicePartitionInfo',
'StatelessServiceTypeDescription',
'SystemApplicationHealthEvaluation',
'UpgradeDomainDeltaNodesCheckHealthEvaluation',
'UpgradeDomainNodesHealthEvaluation',
'WaitForInbuildReplicaSafetyCheck',
'WaitForPrimaryPlacementSafetyCheck',
'WaitForPrimarySwapSafetyCheck',
'WaitForReconfigurationSafetyCheck',
'LoadMetricReport',
'PartitionLoadInformation',
'StatefulServiceReplicaInfo',
'StatelessServiceInstanceInfo',
'ClusterUpgradeDescriptionObject',
'FailedUpgradeDomainProgressObject',
'ClusterUpgradeProgressObject',
'ClusterConfigurationUpgradeDescription',
'UpgradeOrchestrationServiceState',
'UpgradeOrchestrationServiceStateSummary',
'ApplicationTypeImageStorePath',
'UnprovisionApplicationTypeDescriptionInfo',
'CodePackageEntryPointStatistics',
'CodePackageEntryPoint',
'DeployedCodePackageInfo',
'ChaosContext',
'ChaosTargetFilter',
'ChaosParameters',
'Chaos',
'ChaosParametersDictionaryItem',
'ChaosEvent',
'ChaosEventWrapper',
'ChaosEventsSegment',
'ChaosScheduleJobActiveDaysOfWeek',
'TimeOfDay',
'TimeRange',
'ChaosScheduleJob',
'ChaosSchedule',
'ChaosScheduleDescription',
'ExecutingFaultsChaosEvent',
'StartedChaosEvent',
'StoppedChaosEvent',
'TestErrorChaosEvent',
'ValidationFailedChaosEvent',
'WaitingChaosEvent',
'ApplicationCapacityDescription',
'ApplicationDescription',
'ComposeDeploymentStatusInfo',
'RegistryCredential',
'ComposeDeploymentUpgradeDescription',
'ComposeDeploymentUpgradeProgressInfo',
'PagedComposeDeploymentStatusInfoList',
'CreateComposeDeploymentDescription',
'DeployedServicePackageInfo',
'ServiceCorrelationDescription',
'ServiceLoadMetricDescription',
'PartitionSchemeDescription',
'NamedPartitionSchemeDescription',
'SingletonPartitionSchemeDescription',
'UniformInt64RangePartitionSchemeDescription',
'ServiceDescription',
'StatefulServiceDescription',
'StatelessServiceDescription',
'ReplicatorQueueStatus',
'ReplicatorStatus',
'RemoteReplicatorAcknowledgementDetail',
'RemoteReplicatorAcknowledgementStatus',
'RemoteReplicatorStatus',
'PrimaryReplicatorStatus',
'SecondaryReplicatorStatus',
'SecondaryActiveReplicatorStatus',
'SecondaryIdleReplicatorStatus',
'LoadMetricReportInfo',
'DeployedServiceReplicaDetailInfo',
'KeyValueStoreReplicaStatus',
'DeployedStatefulServiceReplicaDetailInfo',
'DeployedStatelessServiceInstanceDetailInfo',
'ReplicaStatusBase',
'ServiceUpdateDescription',
'StatefulServiceUpdateDescription',
'StatelessServiceUpdateDescription',
'FileVersion',
'FileInfo',
'FolderInfo',
'ImageStoreContent',
'ImageStoreCopyDescription',
'RestartDeployedCodePackageDescription',
'DeployedServiceTypeInfo',
'ResolvedServiceEndpoint',
'ResolvedServicePartition',
'SelectedPartition',
'InvokeDataLossResult',
'InvokeQuorumLossResult',
'NodeResult',
'NodeTransitionResult',
'NodeTransitionProgress',
'OperationStatus',
'PartitionDataLossProgress',
'PartitionQuorumLossProgress',
'RestartPartitionResult',
'PartitionRestartProgress',
'PackageSharingPolicyInfo',
'DeployServicePackageToNodeDescription',
'ResumeApplicationUpgradeDescription',
'ApplicationUpgradeUpdateDescription',
'NameDescription',
'PagedSubNameInfoList',
'PropertyValue',
'BinaryPropertyValue',
'Int64PropertyValue',
'DoublePropertyValue',
'StringPropertyValue',
'GuidPropertyValue',
'PropertyMetadata',
'PropertyInfo',
'PagedPropertyInfoList',
'PropertyDescription',
'PropertyBatchOperation',
'PropertyBatchDescriptionList',
'CheckExistsPropertyBatchOperation',
'CheckSequencePropertyBatchOperation',
'CheckValuePropertyBatchOperation',
'DeletePropertyBatchOperation',
'GetPropertyBatchOperation',
'PutPropertyBatchOperation',
'PropertyBatchInfo',
'SuccessfulPropertyBatchInfo',
'FailedPropertyBatchInfo',
'BackupScheduleDescription',
'BackupStorageDescription',
'BackupPolicyDescription',
'PagedBackupPolicyDescriptionList',
'ApplicationBackupConfigurationInfo',
'ServiceBackupConfigurationInfo',
'BackupSuspensionInfo',
'BackupConfigurationInfo',
'PagedBackupConfigurationInfoList',
'RestorePartitionDescription',
'RestoreProgressInfo',
'BackupPartitionDescription',
'BackupInfo',
'PagedBackupInfoList',
'AzureBlobBackupStorageDescription',
'FileShareBackupStorageDescription',
'FrequencyBasedBackupScheduleDescription',
'TimeBasedBackupScheduleDescription',
'BackupProgressInfo',
'PartitionBackupConfigurationInfo',
'BackupEntity',
'ApplicationBackupEntity',
'ServiceBackupEntity',
'PartitionBackupEntity',
'EnableBackupDescription',
'PagedBackupEntityList',
'GetBackupByStorageQueryDescription',
'NodeImpact',
'NodeRepairImpactDescription',
'NodeRepairTargetDescription',
'RepairImpactDescriptionBase',
'RepairTargetDescriptionBase',
'RepairTaskHistory',
'RepairTask',
'RepairTaskApproveDescription',
'RepairTaskCancelDescription',
'RepairTaskDeleteDescription',
'RepairTaskUpdateHealthPolicyDescription',
'RepairTaskUpdateInfo',
'UploadChunkRange',
'UploadSessionInfo',
'UploadSession',
'ContainerLogs',
'NodeUpEvent',
'NodeDownEvent',
'PartitionPrimaryMoveAnalysisEvent',
'ApplicationDefinitionKind',
'HealthState',
'ApplicationStatus',
'ApplicationTypeDefinitionKind',
'ApplicationTypeStatus',
'UpgradeKind',
'UpgradeMode',
'FailureAction',
'UpgradeDomainState',
'UpgradeState',
'NodeUpgradePhase',
'FailureReason',
'DeactivationIntent',
'DeployedApplicationStatus',
'ReplicaStatus',
'ReplicaRole',
'ReconfigurationPhase',
'ReconfigurationType',
'EntityKind',
'FabricErrorCodes',
'FabricEventKind',
'HealthEvaluationKind',
'NodeDeactivationIntent',
'NodeDeactivationStatus',
'NodeDeactivationTaskType',
'NodeStatus',
'ServicePartitionStatus',
'ServiceStatus',
'ProvisionApplicationTypeKind',
'UpgradeType',
'SafetyCheckKind',
'CreateFabricDump',
'ServicePackageActivationMode',
'ServiceKind',
'ServicePartitionKind',
'ServicePlacementPolicyType',
'HostType',
'HostIsolationMode',
'DeploymentStatus',
'EntryPointStatus',
'ChaosStatus',
'ChaosScheduleStatus',
'ChaosEventKind',
'ComposeDeploymentStatus',
'ComposeDeploymentUpgradeState',
'ServiceCorrelationScheme',
'MoveCost',
'PartitionScheme',
'ServiceLoadMetricWeight',
'ServiceOperationName',
'ReplicatorOperationName',
'PartitionAccessStatus',
'FabricReplicaStatus',
'ReplicaKind',
'ServiceTypeRegistrationStatus',
'ServiceEndpointRole',
'OperationState',
'OperationType',
'PackageSharingPolicyScope',
'PropertyValueKind',
'PropertyBatchOperationKind',
'PropertyBatchInfoKind',
'BackupStorageKind',
'BackupScheduleKind',
'BackupPolicyScope',
'BackupSuspensionScope',
'RestoreState',
'BackupType',
'BackupScheduleFrequencyType',
'DayOfWeek',
'BackupState',
'BackupEntityKind',
'ImpactLevel',
'RepairImpactKind',
'RepairTargetKind',
'State',
'ResultStatus',
'RepairTaskHealthCheckState',
'NodeStatusFilter',
'ReplicaHealthReportServiceKind',
'DataLossMode',
'NodeTransitionType',
'QuorumLossMode',
'RestartPartitionMode',
]

Просмотреть файл

@ -0,0 +1,47 @@
# 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 AadMetadata(Model):
"""Azure Active Directory metadata used for secured connection to cluster.
:param authority: The AAD authority url.
:type authority: str
:param client: The AAD client application Id.
:type client: str
:param cluster: The AAD cluster application Id.
:type cluster: str
:param login: The AAD login url.
:type login: str
:param redirect: The client application redirect address.
:type redirect: str
:param tenant: The AAD tenant Id.
:type tenant: str
"""
_attribute_map = {
'authority': {'key': 'authority', 'type': 'str'},
'client': {'key': 'client', 'type': 'str'},
'cluster': {'key': 'cluster', 'type': 'str'},
'login': {'key': 'login', 'type': 'str'},
'redirect': {'key': 'redirect', 'type': 'str'},
'tenant': {'key': 'tenant', 'type': 'str'},
}
def __init__(self, authority=None, client=None, cluster=None, login=None, redirect=None, tenant=None):
self.authority = authority
self.client = client
self.cluster = cluster
self.login = login
self.redirect = redirect
self.tenant = tenant

Просмотреть файл

@ -0,0 +1,33 @@
# 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 AadMetadataObject(Model):
"""Azure Active Directory metadata object used for secured connection to
cluster.
:param type: The client authentication method.
:type type: str
:param metadata: Azure Active Directory metadata used for secured
connection to cluster.
:type metadata: ~azure.servicefabric.models.AadMetadata
"""
_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'metadata': {'key': 'metadata', 'type': 'AadMetadata'},
}
def __init__(self, type=None, metadata=None):
self.type = type
self.metadata = metadata

Просмотреть файл

@ -0,0 +1,31 @@
# 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 AnalysisEventMetadata(Model):
"""Metadata about an Analysis Event.
:param delay: The analysis delay.
:type delay: timedelta
:param duration: The duration of analysis.
:type duration: timedelta
"""
_attribute_map = {
'delay': {'key': 'Delay', 'type': 'duration'},
'duration': {'key': 'Duration', 'type': 'duration'},
}
def __init__(self, delay=None, duration=None):
self.delay = delay
self.duration = duration

Просмотреть файл

@ -0,0 +1,53 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .backup_configuration_info import BackupConfigurationInfo
class ApplicationBackupConfigurationInfo(BackupConfigurationInfo):
"""Backup configuration information for a specific Service Fabric application
specifying what backup policy is being applied and suspend description, if
any.
:param policy_name: The name of the backup policy which is applicable to
this Service Fabric application or service or partition.
:type policy_name: str
:param policy_inherited_from: Specifies the scope at which the backup
policy is applied.
. Possible values include: 'Invalid', 'Partition', 'Service',
'Application'
:type policy_inherited_from: str or
~azure.servicefabric.models.BackupPolicyScope
:param suspension_info: Describes the backup suspension details.
:type suspension_info: ~azure.servicefabric.models.BackupSuspensionInfo
:param kind: Constant filled by server.
:type kind: str
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'policy_name': {'key': 'PolicyName', 'type': 'str'},
'policy_inherited_from': {'key': 'PolicyInheritedFrom', 'type': 'str'},
'suspension_info': {'key': 'SuspensionInfo', 'type': 'BackupSuspensionInfo'},
'kind': {'key': 'Kind', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
}
def __init__(self, policy_name=None, policy_inherited_from=None, suspension_info=None, application_name=None):
super(ApplicationBackupConfigurationInfo, self).__init__(policy_name=policy_name, policy_inherited_from=policy_inherited_from, suspension_info=suspension_info)
self.application_name = application_name
self.kind = 'Application'

Просмотреть файл

@ -0,0 +1,37 @@
# 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 .backup_entity import BackupEntity
class ApplicationBackupEntity(BackupEntity):
"""Identifies the Service Fabric application which is being backed up.
:param entity_kind: Constant filled by server.
:type entity_kind: str
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
"""
_validation = {
'entity_kind': {'required': True},
}
_attribute_map = {
'entity_kind': {'key': 'EntityKind', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
}
def __init__(self, application_name=None):
super(ApplicationBackupEntity, self).__init__()
self.application_name = application_name
self.entity_kind = 'Application'

Просмотреть файл

@ -0,0 +1,58 @@
# 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 ApplicationCapacityDescription(Model):
"""Describes capacity information for services of this application. This
description can be used for describing the following.
- Reserving the capacity for the services on the nodes
- Limiting the total number of nodes that services of this application can
run on
- Limiting the custom capacity metrics to limit the total consumption of
this metric by the services of this application
.
: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 application_metrics: List of application capacity metric
description.
:type application_metrics:
list[~azure.servicefabric.models.ApplicationMetricDescription]
"""
_validation = {
'minimum_nodes': {'minimum': 0},
'maximum_nodes': {'minimum': 0},
}
_attribute_map = {
'minimum_nodes': {'key': 'MinimumNodes', 'type': 'long'},
'maximum_nodes': {'key': 'MaximumNodes', 'type': 'long'},
'application_metrics': {'key': 'ApplicationMetrics', 'type': '[ApplicationMetricDescription]'},
}
def __init__(self, minimum_nodes=None, maximum_nodes=0, application_metrics=None):
self.minimum_nodes = minimum_nodes
self.maximum_nodes = maximum_nodes
self.application_metrics = application_metrics

Просмотреть файл

@ -0,0 +1,62 @@
# 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 ApplicationDescription(Model):
"""Describes a Service Fabric application.
:param name: The name of the application, including the 'fabric:' URI
scheme.
:type name: str
:param type_name: The application type name as defined in the application
manifest.
:type type_name: str
:param type_version: The version of the application type as defined in the
application manifest.
:type type_version: str
:param parameter_list: List of application parameters with overridden
values from their default values specified in the application manifest.
:type parameter_list:
list[~azure.servicefabric.models.ApplicationParameter]
:param application_capacity: Describes capacity information for services
of this application. This description can be used for describing the
following.
- Reserving the capacity for the services on the nodes
- Limiting the total number of nodes that services of this application can
run on
- Limiting the custom capacity metrics to limit the total consumption of
this metric by the services of this application
:type application_capacity:
~azure.servicefabric.models.ApplicationCapacityDescription
"""
_validation = {
'name': {'required': True},
'type_name': {'required': True},
'type_version': {'required': True},
}
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'type_name': {'key': 'TypeName', 'type': 'str'},
'type_version': {'key': 'TypeVersion', 'type': 'str'},
'parameter_list': {'key': 'ParameterList', 'type': '[ApplicationParameter]'},
'application_capacity': {'key': 'ApplicationCapacity', 'type': 'ApplicationCapacityDescription'},
}
def __init__(self, name, type_name, type_version, parameter_list=None, application_capacity=None):
self.name = name
self.type_name = type_name
self.type_version = type_version
self.parameter_list = parameter_list
self.application_capacity = application_capacity

Просмотреть файл

@ -0,0 +1,55 @@
# 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 .fabric_event import FabricEvent
class ApplicationEvent(FabricEvent):
"""Represents the base for all Application Events.
:param event_instance_id: The identifier for the FabricEvent instance.
:type event_instance_id: str
:param time_stamp: The time event was logged.
:type time_stamp: datetime
:param has_correlated_events: Shows that there is existing related events
available.
:type has_correlated_events: bool
:param kind: Constant filled by server.
:type kind: str
:param application_id: The identity of the application. This is an encoded
representation of the application name. This is used in the REST APIs to
identify the application resource.
Starting in version 6.0, hierarchical names are delimited with the "\\~"
character. For example, if the application name is "fabric:/myapp/app1",
the application identity would be "myapp\\~app1" in 6.0+ and "myapp/app1"
in previous versions.
:type application_id: str
"""
_validation = {
'event_instance_id': {'required': True},
'time_stamp': {'required': True},
'kind': {'required': True},
'application_id': {'required': True},
}
_attribute_map = {
'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'},
'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'},
'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'},
'kind': {'key': 'Kind', 'type': 'str'},
'application_id': {'key': 'ApplicationId', 'type': 'str'},
}
def __init__(self, event_instance_id, time_stamp, application_id, has_correlated_events=None):
super(ApplicationEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events)
self.application_id = application_id
self.kind = 'ApplicationEvent'

Просмотреть файл

@ -0,0 +1,64 @@
# 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 .entity_health import EntityHealth
class ApplicationHealth(EntityHealth):
"""Represents the health of the application. Contains the application
aggregated health state and the service and deployed application health
states.
:param aggregated_health_state: The HealthState representing the
aggregated health state of the entity computed by Health Manager.
The health evaluation of the entity reflects all events reported on the
entity and its children (if any).
The aggregation is done by applying the desired health policy.
. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param health_events: The list of health events reported on the entity.
:type health_events: list[~azure.servicefabric.models.HealthEvent]
:param unhealthy_evaluations: The unhealthy evaluations that show why the
current aggregated health state was returned by Health Manager.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
:param health_statistics: Shows the health statistics for all children
types of the queried entity.
:type health_statistics: ~azure.servicefabric.models.HealthStatistics
:param name: The name of the application, including the 'fabric:' URI
scheme.
:type name: str
:param service_health_states: Service health states as found in the health
store.
:type service_health_states:
list[~azure.servicefabric.models.ServiceHealthState]
:param deployed_application_health_states: Deployed application health
states as found in the health store.
:type deployed_application_health_states:
list[~azure.servicefabric.models.DeployedApplicationHealthState]
"""
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'health_events': {'key': 'HealthEvents', 'type': '[HealthEvent]'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
'health_statistics': {'key': 'HealthStatistics', 'type': 'HealthStatistics'},
'name': {'key': 'Name', 'type': 'str'},
'service_health_states': {'key': 'ServiceHealthStates', 'type': '[ServiceHealthState]'},
'deployed_application_health_states': {'key': 'DeployedApplicationHealthStates', 'type': '[DeployedApplicationHealthState]'},
}
def __init__(self, aggregated_health_state=None, health_events=None, unhealthy_evaluations=None, health_statistics=None, name=None, service_health_states=None, deployed_application_health_states=None):
super(ApplicationHealth, self).__init__(aggregated_health_state=aggregated_health_state, health_events=health_events, unhealthy_evaluations=unhealthy_evaluations, health_statistics=health_statistics)
self.name = name
self.service_health_states = service_health_states
self.deployed_application_health_states = deployed_application_health_states

Просмотреть файл

@ -0,0 +1,58 @@
# 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 .health_evaluation import HealthEvaluation
class ApplicationHealthEvaluation(HealthEvaluation):
"""Represents health evaluation for an application, containing information
about the data and the algorithm used by the health store to evaluate
health.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param description: Description of the health evaluation, which represents
a summary of the evaluation process.
:type description: str
:param kind: Constant filled by server.
:type kind: str
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
:param unhealthy_evaluations: List of unhealthy evaluations that led to
the current aggregated health state of the application. The types of the
unhealthy evaluations can be DeployedApplicationsHealthEvaluation,
ServicesHealthEvaluation or EventHealthEvaluation.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'description': {'key': 'Description', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
}
def __init__(self, aggregated_health_state=None, description=None, application_name=None, unhealthy_evaluations=None):
super(ApplicationHealthEvaluation, self).__init__(aggregated_health_state=aggregated_health_state, description=description)
self.application_name = application_name
self.unhealthy_evaluations = unhealthy_evaluations
self.kind = 'Application'

Просмотреть файл

@ -0,0 +1,32 @@
# 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 ApplicationHealthPolicies(Model):
"""Defines the application health policy map used to evaluate the health of an
application or one of its children entities.
.
:param application_health_policy_map: The wrapper that contains the map
with application health policies used to evaluate specific applications in
the cluster.
:type application_health_policy_map:
list[~azure.servicefabric.models.ApplicationHealthPolicyMapItem]
"""
_attribute_map = {
'application_health_policy_map': {'key': 'ApplicationHealthPolicyMap', 'type': '[ApplicationHealthPolicyMapItem]'},
}
def __init__(self, application_health_policy_map=None):
self.application_health_policy_map = application_health_policy_map

Просмотреть файл

@ -0,0 +1,57 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationHealthPolicy(Model):
"""Defines a health policy used to evaluate the health of an application or
one of its children entities.
.
:param consider_warning_as_error: Indicates whether warnings are treated
with the same severity as errors. Default value: False .
:type consider_warning_as_error: bool
:param max_percent_unhealthy_deployed_applications: The maximum allowed
percentage of unhealthy deployed applications. Allowed values are Byte
values from zero to 100.
The percentage represents the maximum tolerated percentage of deployed
applications that can be unhealthy before the application is considered in
error.
This is calculated by dividing the number of unhealthy deployed
applications over the number of nodes where the application is currently
deployed on in the cluster.
The computation rounds up to tolerate one failure on small numbers of
nodes. Default percentage is zero.
. Default value: 0 .
:type max_percent_unhealthy_deployed_applications: int
:param default_service_type_health_policy: The health policy used by
default to evaluate the health of a service type.
:type default_service_type_health_policy:
~azure.servicefabric.models.ServiceTypeHealthPolicy
: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:
list[~azure.servicefabric.models.ServiceTypeHealthPolicyMapItem]
"""
_attribute_map = {
'consider_warning_as_error': {'key': 'ConsiderWarningAsError', 'type': 'bool'},
'max_percent_unhealthy_deployed_applications': {'key': 'MaxPercentUnhealthyDeployedApplications', 'type': 'int'},
'default_service_type_health_policy': {'key': 'DefaultServiceTypeHealthPolicy', 'type': 'ServiceTypeHealthPolicy'},
'service_type_health_policy_map': {'key': 'ServiceTypeHealthPolicyMap', 'type': '[ServiceTypeHealthPolicyMapItem]'},
}
def __init__(self, consider_warning_as_error=False, max_percent_unhealthy_deployed_applications=0, default_service_type_health_policy=None, service_type_health_policy_map=None):
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

Просмотреть файл

@ -0,0 +1,39 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationHealthPolicyMapItem(Model):
"""Defines an item in ApplicationHealthPolicyMap.
.
:param key: The key of the application health policy map item. This is the
name of the application.
:type key: str
:param value: The value of the application health policy map item. This is
the ApplicationHealthPolicy for this application.
:type value: ~azure.servicefabric.models.ApplicationHealthPolicy
"""
_validation = {
'key': {'required': True},
'value': {'required': True},
}
_attribute_map = {
'key': {'key': 'Key', 'type': 'str'},
'value': {'key': 'Value', 'type': 'ApplicationHealthPolicy'},
}
def __init__(self, key, value):
self.key = key
self.value = value

Просмотреть файл

@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .entity_health_state import EntityHealthState
class ApplicationHealthState(EntityHealthState):
"""Represents the health state of an application, which contains the
application identifier and the aggregated health state.
.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param name: The name of the application, including the 'fabric:' URI
scheme.
:type name: str
"""
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'name': {'key': 'Name', 'type': 'str'},
}
def __init__(self, aggregated_health_state=None, name=None):
super(ApplicationHealthState, self).__init__(aggregated_health_state=aggregated_health_state)
self.name = name

Просмотреть файл

@ -0,0 +1,57 @@
# 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 .entity_health_state_chunk import EntityHealthStateChunk
class ApplicationHealthStateChunk(EntityHealthStateChunk):
"""Represents the health state chunk of a application.
The application health state chunk contains the application name, its
aggregated health state and any children services and deployed applications
that respect the filters in cluster health chunk query description.
.
:param health_state: The health state of a Service Fabric entity such as
Cluster, Node, Application, Service, Partition, Replica etc. Possible
values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type health_state: str or ~azure.servicefabric.models.HealthState
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
:param application_type_name: The application type name as defined in the
application manifest.
:type application_type_name: str
:param service_health_state_chunks: The list of service health state
chunks in the cluster that respect the filters in the cluster health chunk
query description.
:type service_health_state_chunks:
~azure.servicefabric.models.ServiceHealthStateChunkList
:param deployed_application_health_state_chunks: The list of deployed
application health state chunks in the cluster that respect the filters in
the cluster health chunk query description.
:type deployed_application_health_state_chunks:
~azure.servicefabric.models.DeployedApplicationHealthStateChunkList
"""
_attribute_map = {
'health_state': {'key': 'HealthState', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'application_type_name': {'key': 'ApplicationTypeName', 'type': 'str'},
'service_health_state_chunks': {'key': 'ServiceHealthStateChunks', 'type': 'ServiceHealthStateChunkList'},
'deployed_application_health_state_chunks': {'key': 'DeployedApplicationHealthStateChunks', 'type': 'DeployedApplicationHealthStateChunkList'},
}
def __init__(self, health_state=None, application_name=None, application_type_name=None, service_health_state_chunks=None, deployed_application_health_state_chunks=None):
super(ApplicationHealthStateChunk, self).__init__(health_state=health_state)
self.application_name = application_name
self.application_type_name = application_type_name
self.service_health_state_chunks = service_health_state_chunks
self.deployed_application_health_state_chunks = deployed_application_health_state_chunks

Просмотреть файл

@ -0,0 +1,36 @@
# 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 .entity_health_state_chunk_list import EntityHealthStateChunkList
class ApplicationHealthStateChunkList(EntityHealthStateChunkList):
"""The list of application health state chunks in the cluster that respect the
input filters in the chunk query. Returned by get cluster health state
chunks query.
.
:param total_count: Total number of entity health state objects that match
the specified filters from the cluster health chunk query description.
:type total_count: long
:param items: The list of application health state chunks that respect the
input filters in the chunk query.
:type items: list[~azure.servicefabric.models.ApplicationHealthStateChunk]
"""
_attribute_map = {
'total_count': {'key': 'TotalCount', 'type': 'long'},
'items': {'key': 'Items', 'type': '[ApplicationHealthStateChunk]'},
}
def __init__(self, total_count=None, items=None):
super(ApplicationHealthStateChunkList, self).__init__(total_count=total_count)
self.items = items

Просмотреть файл

@ -0,0 +1,110 @@
# 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 ApplicationHealthStateFilter(Model):
"""Defines matching criteria to determine whether a application should be
included in the cluster health chunk.
One filter can match zero, one or multiple applications, depending on its
properties.
.
:param application_name_filter: The name of the application that matches
the filter, as a fabric uri. The filter is applied only to the specified
application, if it exists.
If the application doesn't exist, no application is returned in the
cluster health chunk based on this filter.
If the application exists, it is included in the cluster health chunk if
it respects the other filter properties.
If not specified, all applications are matched against the other filter
members, like health state filter.
:type application_name_filter: str
:param application_type_name_filter: The name of the application type that
matches the filter.
If specified, the filter is applied only to applications of the selected
application type, if any exists.
If no applications of the specified application type exists, no
application is returned in the cluster health chunk based on this filter.
Each application of the specified application type is included in the
cluster health chunk if it respects the other filter properties.
If not specified, all applications are matched against the other filter
members, like health state filter.
:type application_type_name_filter: str
:param health_state_filter: The filter for the health state of the
applications. It allows selecting applications if they match the desired
health states.
The possible values are integer value of one of the following health
states. Only applications that match the filter are returned. All
applications are used to evaluate the cluster aggregated health state.
If not specified, default value is None, unless the application name or
the application type name are specified. If the filter has default value
and application name is specified, the matching application is returned.
The state values are flag based enumeration, so the value could be a
combination of these values obtained using bitwise 'OR' operator.
For example, if the provided value is 6, it matches applications with
HealthState value of OK (2) and Warning (4).
- Default - Default value. Matches any HealthState. The value is zero.
- None - Filter that doesn't match any HealthState value. Used in order to
return no results on a given collection of states. The value is 1.
- Ok - Filter that matches input with HealthState value Ok. The value is
2.
- Warning - Filter that matches input with HealthState value Warning. The
value is 4.
- Error - Filter that matches input with HealthState value Error. The
value is 8.
- All - Filter that matches input with any HealthState value. The value is
65535.
. Default value: 0 .
:type health_state_filter: int
:param service_filters: Defines a list of filters that specify which
services to be included in the returned cluster health chunk as children
of the application. The services are returned only if the parent
application matches a filter.
If the list is empty, no services are returned. All the services are used
to evaluate the parent application aggregated health state, regardless of
the input filters.
The application filter may specify multiple service filters.
For example, it can specify a filter to return all services with health
state Error and another filter to always include a service identified by
its service name.
:type service_filters:
list[~azure.servicefabric.models.ServiceHealthStateFilter]
:param deployed_application_filters: Defines a list of filters that
specify which deployed applications to be included in the returned cluster
health chunk as children of the application. The deployed applications are
returned only if the parent application matches a filter.
If the list is empty, no deployed applications are returned. All the
deployed applications are used to evaluate the parent application
aggregated health state, regardless of the input filters.
The application filter may specify multiple deployed application filters.
For example, it can specify a filter to return all deployed applications
with health state Error and another filter to always include a deployed
application on a specified node.
:type deployed_application_filters:
list[~azure.servicefabric.models.DeployedApplicationHealthStateFilter]
"""
_attribute_map = {
'application_name_filter': {'key': 'ApplicationNameFilter', 'type': 'str'},
'application_type_name_filter': {'key': 'ApplicationTypeNameFilter', 'type': 'str'},
'health_state_filter': {'key': 'HealthStateFilter', 'type': 'int'},
'service_filters': {'key': 'ServiceFilters', 'type': '[ServiceHealthStateFilter]'},
'deployed_application_filters': {'key': 'DeployedApplicationFilters', 'type': '[DeployedApplicationHealthStateFilter]'},
}
def __init__(self, application_name_filter=None, application_type_name_filter=None, health_state_filter=0, service_filters=None, deployed_application_filters=None):
self.application_name_filter = application_name_filter
self.application_type_name_filter = application_type_name_filter
self.health_state_filter = health_state_filter
self.service_filters = service_filters
self.deployed_application_filters = deployed_application_filters

Просмотреть файл

@ -0,0 +1,73 @@
# 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 ApplicationInfo(Model):
"""Information about a Service Fabric application.
:param id: The identity of the application. This is an encoded
representation of the application name. This is used in the REST APIs to
identify the application resource.
Starting in version 6.0, hierarchical names are delimited with the "\\~"
character. For example, if the application name is "fabric:/myapp/app1",
the application identity would be "myapp\\~app1" in 6.0+ and "myapp/app1"
in previous versions.
:type id: str
:param name: The name of the application, including the 'fabric:' URI
scheme.
:type name: str
:param type_name: The application type name as defined in the application
manifest.
:type type_name: str
:param type_version: The version of the application type as defined in the
application manifest.
:type type_version: str
:param status: The status of the application.
. Possible values include: 'Invalid', 'Ready', 'Upgrading', 'Creating',
'Deleting', 'Failed'
:type status: str or ~azure.servicefabric.models.ApplicationStatus
:param parameters: List of application parameters with overridden values
from their default values specified in the application manifest.
:type parameters: list[~azure.servicefabric.models.ApplicationParameter]
:param health_state: The health state of a Service Fabric entity such as
Cluster, Node, Application, Service, Partition, Replica etc. Possible
values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type health_state: str or ~azure.servicefabric.models.HealthState
:param application_definition_kind: The mechanism used to define a Service
Fabric application.
. Possible values include: 'Invalid',
'ServiceFabricApplicationDescription', 'Compose'
:type application_definition_kind: str or
~azure.servicefabric.models.ApplicationDefinitionKind
"""
_attribute_map = {
'id': {'key': 'Id', 'type': 'str'},
'name': {'key': 'Name', 'type': 'str'},
'type_name': {'key': 'TypeName', 'type': 'str'},
'type_version': {'key': 'TypeVersion', 'type': 'str'},
'status': {'key': 'Status', 'type': 'str'},
'parameters': {'key': 'Parameters', 'type': '[ApplicationParameter]'},
'health_state': {'key': 'HealthState', 'type': 'str'},
'application_definition_kind': {'key': 'ApplicationDefinitionKind', 'type': 'str'},
}
def __init__(self, id=None, name=None, type_name=None, type_version=None, status=None, parameters=None, health_state=None, application_definition_kind=None):
self.id = id
self.name = name
self.type_name = type_name
self.type_version = type_version
self.status = status
self.parameters = parameters
self.health_state = health_state
self.application_definition_kind = application_definition_kind

Просмотреть файл

@ -0,0 +1,63 @@
# 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 ApplicationLoadInfo(Model):
"""Load Information about a Service Fabric application.
:param id: The identity of the application. This is an encoded
representation of the application name. This is used in the REST APIs to
identify the application resource.
Starting in version 6.0, hierarchical names are delimited with the "\\~"
character. For example, if the application name is "fabric:/myapp/app1",
the application identity would be "myapp\\~app1" in 6.0+ and "myapp/app1"
in previous versions.
:type id: str
:param minimum_nodes: The minimum number of nodes for this application.
It is the number of nodes where Service Fabric will reserve Capacity in
the cluster which equals to ReservedLoad * MinimumNodes for this
Application instance.
For applications that do not have application capacity defined this value
will be zero.
:type minimum_nodes: long
:param maximum_nodes: The maximum number of nodes where this application
can be instantiated.
It is the number of nodes this application is allowed to span.
For applications that do not have application capacity defined this value
will be zero.
:type maximum_nodes: long
:param node_count: The number of nodes on which this application is
instantiated.
For applications that do not have application capacity defined this value
will be zero.
:type node_count: long
:param application_load_metric_information: List of application capacity
metric description.
:type application_load_metric_information:
list[~azure.servicefabric.models.ApplicationMetricDescription]
"""
_attribute_map = {
'id': {'key': 'Id', 'type': 'str'},
'minimum_nodes': {'key': 'MinimumNodes', 'type': 'long'},
'maximum_nodes': {'key': 'MaximumNodes', 'type': 'long'},
'node_count': {'key': 'NodeCount', 'type': 'long'},
'application_load_metric_information': {'key': 'ApplicationLoadMetricInformation', 'type': '[ApplicationMetricDescription]'},
}
def __init__(self, id=None, minimum_nodes=None, maximum_nodes=None, node_count=None, application_load_metric_information=None):
self.id = id
self.minimum_nodes = minimum_nodes
self.maximum_nodes = maximum_nodes
self.node_count = node_count
self.application_load_metric_information = application_load_metric_information

Просмотреть файл

@ -0,0 +1,70 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationMetricDescription(Model):
"""Describes capacity information for a custom resource balancing metric. This
can be used to limit the total consumption of this metric by the services
of this application.
.
:param name: The name of the metric.
:type name: str
:param maximum_capacity: The maximum node capacity for Service Fabric
application.
This is the maximum Load for an instance of this application on a single
node. Even if the capacity of node is greater than this value, Service
Fabric will limit the total load of services within the application on
each node to this value.
If set to zero, capacity for this metric is unlimited on each node.
When creating a new application with application capacity defined, the
product of MaximumNodes and this value must always be smaller than or
equal to TotalApplicationCapacity.
When updating existing application with application capacity, the product
of MaximumNodes and this value must always be smaller than or equal to
TotalApplicationCapacity.
:type maximum_capacity: long
:param reservation_capacity: The node reservation capacity for Service
Fabric application.
This is the amount of load which is reserved on nodes which have instances
of this application.
If MinimumNodes is specified, then the product of these values will be the
capacity reserved in the cluster for the application.
If set to zero, no capacity is reserved for this metric.
When setting application capacity or when updating application capacity;
this value must be smaller than or equal to MaximumCapacity for each
metric.
:type reservation_capacity: long
:param total_application_capacity: The total metric capacity for Service
Fabric application.
This is the total metric capacity for this application in the cluster.
Service Fabric will try to limit the sum of loads of services within the
application to this value.
When creating a new application with application capacity defined, the
product of MaximumNodes and MaximumCapacity must always be smaller than or
equal to this value.
:type total_application_capacity: long
"""
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'maximum_capacity': {'key': 'MaximumCapacity', 'type': 'long'},
'reservation_capacity': {'key': 'ReservationCapacity', 'type': 'long'},
'total_application_capacity': {'key': 'TotalApplicationCapacity', 'type': 'long'},
}
def __init__(self, name=None, maximum_capacity=None, reservation_capacity=None, total_application_capacity=None):
self.name = name
self.maximum_capacity = maximum_capacity
self.reservation_capacity = reservation_capacity
self.total_application_capacity = total_application_capacity

Просмотреть файл

@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationNameInfo(Model):
"""Information about the application name.
:param id: The identity of the application. This is an encoded
representation of the application name. This is used in the REST APIs to
identify the application resource.
Starting in version 6.0, hierarchical names are delimited with the "\\~"
character. For example, if the application name is "fabric:/myapp/app1",
the application identity would be "myapp\\~app1" in 6.0+ and "myapp/app1"
in previous versions.
:type id: str
:param name: The name of the application, including the 'fabric:' URI
scheme.
:type name: str
"""
_attribute_map = {
'id': {'key': 'Id', 'type': 'str'},
'name': {'key': 'Name', 'type': 'str'},
}
def __init__(self, id=None, name=None):
self.id = id
self.name = name

Просмотреть файл

@ -0,0 +1,37 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationParameter(Model):
"""Describes an application parameter override to be applied when creating or
upgrading an application.
:param key: The name of the parameter.
:type key: str
:param value: The value of the parameter.
:type value: str
"""
_validation = {
'key': {'required': True},
'value': {'required': True},
}
_attribute_map = {
'key': {'key': 'Key', 'type': 'str'},
'value': {'key': 'Value', 'type': 'str'},
}
def __init__(self, key, value):
self.key = key
self.value = value

Просмотреть файл

@ -0,0 +1,72 @@
# 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 .health_evaluation import HealthEvaluation
class ApplicationTypeApplicationsHealthEvaluation(HealthEvaluation):
"""Represents health evaluation for applications of a particular application
type. The application type applications evaluation can be returned when
cluster health evaluation returns unhealthy aggregated health state, either
Error or Warning. It contains health evaluations for each unhealthy
application of the included application type that impacted current
aggregated health state.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param description: Description of the health evaluation, which represents
a summary of the evaluation process.
:type description: str
:param kind: Constant filled by server.
:type kind: str
:param application_type_name: The application type name as defined in the
application manifest.
:type application_type_name: str
:param max_percent_unhealthy_applications: Maximum allowed percentage of
unhealthy applications for the application type, specified as an entry in
ApplicationTypeHealthPolicyMap.
:type max_percent_unhealthy_applications: int
:param total_count: Total number of applications of the application type
found in the health store.
:type total_count: long
:param unhealthy_evaluations: List of unhealthy evaluations that led to
the aggregated health state. Includes all the unhealthy
ApplicationHealthEvaluation of this application type that impacted the
aggregated health.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'description': {'key': 'Description', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'application_type_name': {'key': 'ApplicationTypeName', 'type': 'str'},
'max_percent_unhealthy_applications': {'key': 'MaxPercentUnhealthyApplications', 'type': 'int'},
'total_count': {'key': 'TotalCount', 'type': 'long'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
}
def __init__(self, aggregated_health_state=None, description=None, application_type_name=None, max_percent_unhealthy_applications=None, total_count=None, unhealthy_evaluations=None):
super(ApplicationTypeApplicationsHealthEvaluation, self).__init__(aggregated_health_state=aggregated_health_state, description=description)
self.application_type_name = application_type_name
self.max_percent_unhealthy_applications = max_percent_unhealthy_applications
self.total_count = total_count
self.unhealthy_evaluations = unhealthy_evaluations
self.kind = 'ApplicationTypeApplications'

Просмотреть файл

@ -0,0 +1,40 @@
# 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 ApplicationTypeHealthPolicyMapItem(Model):
"""Defines an item in ApplicationTypeHealthPolicyMap.
.
:param key: The key of the application type health policy map item. This
is the name of the application type.
:type key: str
:param value: The value of the application type health policy map item.
The max percent unhealthy applications allowed for the application type.
Must be between zero and 100.
:type value: int
"""
_validation = {
'key': {'required': True},
'value': {'required': True},
}
_attribute_map = {
'key': {'key': 'Key', 'type': 'str'},
'value': {'key': 'Value', 'type': 'int'},
}
def __init__(self, key, value):
self.key = key
self.value = value

Просмотреть файл

@ -0,0 +1,33 @@
# 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 ApplicationTypeImageStorePath(Model):
"""Path description for the application package in the image store specified
during the prior copy operation.
:param application_type_build_path: The relative image store path to the
application package.
:type application_type_build_path: str
"""
_validation = {
'application_type_build_path': {'required': True},
}
_attribute_map = {
'application_type_build_path': {'key': 'ApplicationTypeBuildPath', 'type': 'str'},
}
def __init__(self, application_type_build_path):
self.application_type_build_path = application_type_build_path

Просмотреть файл

@ -0,0 +1,58 @@
# 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 ApplicationTypeInfo(Model):
"""Information about an application type.
:param name: The application type name as defined in the application
manifest.
:type name: str
:param version: The version of the application type as defined in the
application manifest.
:type version: str
:param default_parameter_list: List of application type parameters that
can be overridden when creating or updating the application.
:type default_parameter_list:
list[~azure.servicefabric.models.ApplicationParameter]
:param status: The status of the application type.
. Possible values include: 'Invalid', 'Provisioning', 'Available',
'Unprovisioning', 'Failed'
:type status: str or ~azure.servicefabric.models.ApplicationTypeStatus
:param status_details: Additional detailed information about the status of
the application type.
:type status_details: str
:param application_type_definition_kind: The mechanism used to define a
Service Fabric application type.
. Possible values include: 'Invalid', 'ServiceFabricApplicationPackage',
'Compose'
:type application_type_definition_kind: str or
~azure.servicefabric.models.ApplicationTypeDefinitionKind
"""
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'version': {'key': 'Version', 'type': 'str'},
'default_parameter_list': {'key': 'DefaultParameterList', 'type': '[ApplicationParameter]'},
'status': {'key': 'Status', 'type': 'str'},
'status_details': {'key': 'StatusDetails', 'type': 'str'},
'application_type_definition_kind': {'key': 'ApplicationTypeDefinitionKind', 'type': 'str'},
}
def __init__(self, name=None, version=None, default_parameter_list=None, status=None, status_details=None, application_type_definition_kind=None):
self.name = name
self.version = version
self.default_parameter_list = default_parameter_list
self.status = status
self.status_details = status_details
self.application_type_definition_kind = application_type_definition_kind

Просмотреть файл

@ -0,0 +1,28 @@
# 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 ApplicationTypeManifest(Model):
"""Contains the manifest describing an application type registered in a
Service Fabric cluster.
:param manifest: The XML manifest as a string.
:type manifest: str
"""
_attribute_map = {
'manifest': {'key': 'Manifest', 'type': 'str'},
}
def __init__(self, manifest=None):
self.manifest = manifest

Просмотреть файл

@ -0,0 +1,94 @@
# 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 ApplicationUpgradeDescription(Model):
"""Describes the parameters for an application upgrade. Please note that
upgrade description replaces the existing application description. This
means that if the parameters are not specified, the existing parameters on
the applications will be overwritten with the empty parameters list. This
would results in application using the default value of the parameters from
the application manifest. If you do not want to change any existing
parameter values, please get the application parameters first using the
GetApplicationInfo query and then supply those values as Parameters in this
ApplicationUpgradeDescription.
:param name: The name of the target application, including the 'fabric:'
URI scheme.
:type name: str
:param target_application_type_version: The target application type
version (found in the application manifest) for the application upgrade.
:type target_application_type_version: str
:param parameters: List of application parameters with overridden values
from their default values specified in the application manifest.
:type parameters: list[~azure.servicefabric.models.ApplicationParameter]
:param upgrade_kind: The kind of upgrade out of the following possible
values. Possible values include: 'Invalid', 'Rolling'. Default value:
"Rolling" .
:type upgrade_kind: str or ~azure.servicefabric.models.UpgradeKind
:param rolling_upgrade_mode: The mode used to monitor health during a
rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and
Monitored. Possible values include: 'Invalid', 'UnmonitoredAuto',
'UnmonitoredManual', 'Monitored'. Default value: "UnmonitoredAuto" .
:type rolling_upgrade_mode: str or ~azure.servicefabric.models.UpgradeMode
:param upgrade_replica_set_check_timeout_in_seconds: 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_in_seconds: long
: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 monitoring_policy: Describes the parameters for monitoring an
upgrade in Monitored mode.
:type monitoring_policy:
~azure.servicefabric.models.MonitoringPolicyDescription
: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.servicefabric.models.ApplicationHealthPolicy
"""
_validation = {
'name': {'required': True},
'target_application_type_version': {'required': True},
'parameters': {'required': True},
'upgrade_kind': {'required': True},
}
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'target_application_type_version': {'key': 'TargetApplicationTypeVersion', 'type': 'str'},
'parameters': {'key': 'Parameters', 'type': '[ApplicationParameter]'},
'upgrade_kind': {'key': 'UpgradeKind', 'type': 'str'},
'rolling_upgrade_mode': {'key': 'RollingUpgradeMode', 'type': 'str'},
'upgrade_replica_set_check_timeout_in_seconds': {'key': 'UpgradeReplicaSetCheckTimeoutInSeconds', 'type': 'long'},
'force_restart': {'key': 'ForceRestart', 'type': 'bool'},
'monitoring_policy': {'key': 'MonitoringPolicy', 'type': 'MonitoringPolicyDescription'},
'application_health_policy': {'key': 'ApplicationHealthPolicy', 'type': 'ApplicationHealthPolicy'},
}
def __init__(self, name, target_application_type_version, parameters, upgrade_kind="Rolling", rolling_upgrade_mode="UnmonitoredAuto", upgrade_replica_set_check_timeout_in_seconds=None, force_restart=None, monitoring_policy=None, application_health_policy=None):
self.name = name
self.target_application_type_version = target_application_type_version
self.parameters = parameters
self.upgrade_kind = upgrade_kind
self.rolling_upgrade_mode = rolling_upgrade_mode
self.upgrade_replica_set_check_timeout_in_seconds = upgrade_replica_set_check_timeout_in_seconds
self.force_restart = force_restart
self.monitoring_policy = monitoring_policy
self.application_health_policy = application_health_policy

Просмотреть файл

@ -0,0 +1,124 @@
# 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 ApplicationUpgradeProgressInfo(Model):
"""Describes the parameters for an application upgrade.
:param name: The name of the target application, including the 'fabric:'
URI scheme.
:type name: str
:param type_name: The application type name as defined in the application
manifest.
:type type_name: str
:param target_application_type_version: The target application type
version (found in the application manifest) for the application upgrade.
:type target_application_type_version: str
:param upgrade_domains: List of upgrade domains and their statuses.
:type upgrade_domains: list[~azure.servicefabric.models.UpgradeDomainInfo]
:param upgrade_state: The state of the upgrade domain. Possible values
include: 'Invalid', 'RollingBackInProgress', 'RollingBackCompleted',
'RollingForwardPending', 'RollingForwardInProgress',
'RollingForwardCompleted', 'Failed'
:type upgrade_state: str or ~azure.servicefabric.models.UpgradeState
:param next_upgrade_domain: The name of the next upgrade domain to be
processed.
:type next_upgrade_domain: str
:param rolling_upgrade_mode: The mode used to monitor health during a
rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and
Monitored. Possible values include: 'Invalid', 'UnmonitoredAuto',
'UnmonitoredManual', 'Monitored'. Default value: "UnmonitoredAuto" .
:type rolling_upgrade_mode: str or ~azure.servicefabric.models.UpgradeMode
:param upgrade_description: Describes the parameters for an application
upgrade. Please note that upgrade description replaces the existing
application description. This means that if the parameters are not
specified, the existing parameters on the applications will be overwritten
with the empty parameters list. This would results in application using
the default value of the parameters from the application manifest. If you
do not want to change any existing parameter values, please get the
application parameters first using the GetApplicationInfo query and then
supply those values as Parameters in this ApplicationUpgradeDescription.
:type upgrade_description:
~azure.servicefabric.models.ApplicationUpgradeDescription
:param upgrade_duration_in_milliseconds: The estimated total amount of
time spent processing the overall upgrade.
:type upgrade_duration_in_milliseconds: str
:param upgrade_domain_duration_in_milliseconds: The estimated total amount
of time spent processing the current upgrade domain.
:type upgrade_domain_duration_in_milliseconds: str
:param unhealthy_evaluations: List of health evaluations that resulted in
the current aggregated health state.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
:param current_upgrade_domain_progress: Information about the current
in-progress upgrade domain.
:type current_upgrade_domain_progress:
~azure.servicefabric.models.CurrentUpgradeDomainProgressInfo
:param start_timestamp_utc: The estimated UTC datetime when the upgrade
started.
:type start_timestamp_utc: str
:param failure_timestamp_utc: The estimated UTC datetime when the upgrade
failed and FailureAction was executed.
:type failure_timestamp_utc: str
:param failure_reason: The cause of an upgrade failure that resulted in
FailureAction being executed. Possible values include: 'None',
'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout',
'OverallUpgradeTimeout'
:type failure_reason: str or ~azure.servicefabric.models.FailureReason
:param upgrade_domain_progress_at_failure: Information about the upgrade
domain progress at the time of upgrade failure.
:type upgrade_domain_progress_at_failure:
~azure.servicefabric.models.FailureUpgradeDomainProgressInfo
:param upgrade_status_details: Additional detailed information about the
status of the pending upgrade.
:type upgrade_status_details: str
"""
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'type_name': {'key': 'TypeName', 'type': 'str'},
'target_application_type_version': {'key': 'TargetApplicationTypeVersion', 'type': 'str'},
'upgrade_domains': {'key': 'UpgradeDomains', 'type': '[UpgradeDomainInfo]'},
'upgrade_state': {'key': 'UpgradeState', 'type': 'str'},
'next_upgrade_domain': {'key': 'NextUpgradeDomain', 'type': 'str'},
'rolling_upgrade_mode': {'key': 'RollingUpgradeMode', 'type': 'str'},
'upgrade_description': {'key': 'UpgradeDescription', 'type': 'ApplicationUpgradeDescription'},
'upgrade_duration_in_milliseconds': {'key': 'UpgradeDurationInMilliseconds', 'type': 'str'},
'upgrade_domain_duration_in_milliseconds': {'key': 'UpgradeDomainDurationInMilliseconds', 'type': 'str'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
'current_upgrade_domain_progress': {'key': 'CurrentUpgradeDomainProgress', 'type': 'CurrentUpgradeDomainProgressInfo'},
'start_timestamp_utc': {'key': 'StartTimestampUtc', 'type': 'str'},
'failure_timestamp_utc': {'key': 'FailureTimestampUtc', 'type': 'str'},
'failure_reason': {'key': 'FailureReason', 'type': 'str'},
'upgrade_domain_progress_at_failure': {'key': 'UpgradeDomainProgressAtFailure', 'type': 'FailureUpgradeDomainProgressInfo'},
'upgrade_status_details': {'key': 'UpgradeStatusDetails', 'type': 'str'},
}
def __init__(self, name=None, type_name=None, target_application_type_version=None, upgrade_domains=None, upgrade_state=None, next_upgrade_domain=None, rolling_upgrade_mode="UnmonitoredAuto", upgrade_description=None, upgrade_duration_in_milliseconds=None, upgrade_domain_duration_in_milliseconds=None, unhealthy_evaluations=None, current_upgrade_domain_progress=None, start_timestamp_utc=None, failure_timestamp_utc=None, failure_reason=None, upgrade_domain_progress_at_failure=None, upgrade_status_details=None):
self.name = name
self.type_name = type_name
self.target_application_type_version = target_application_type_version
self.upgrade_domains = upgrade_domains
self.upgrade_state = upgrade_state
self.next_upgrade_domain = next_upgrade_domain
self.rolling_upgrade_mode = rolling_upgrade_mode
self.upgrade_description = upgrade_description
self.upgrade_duration_in_milliseconds = upgrade_duration_in_milliseconds
self.upgrade_domain_duration_in_milliseconds = upgrade_domain_duration_in_milliseconds
self.unhealthy_evaluations = unhealthy_evaluations
self.current_upgrade_domain_progress = current_upgrade_domain_progress
self.start_timestamp_utc = start_timestamp_utc
self.failure_timestamp_utc = failure_timestamp_utc
self.failure_reason = failure_reason
self.upgrade_domain_progress_at_failure = upgrade_domain_progress_at_failure
self.upgrade_status_details = upgrade_status_details

Просмотреть файл

@ -0,0 +1,51 @@
# 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 ApplicationUpgradeUpdateDescription(Model):
"""Describes the parameters for updating an ongoing application upgrade.
:param name: The name of the application, including the 'fabric:' URI
scheme.
:type name: str
:param upgrade_kind: The kind of upgrade out of the following possible
values. Possible values include: 'Invalid', 'Rolling'. Default value:
"Rolling" .
:type upgrade_kind: str or ~azure.servicefabric.models.UpgradeKind
: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.servicefabric.models.ApplicationHealthPolicy
:param update_description: Describes the parameters for updating a rolling
upgrade of application or cluster.
:type update_description:
~azure.servicefabric.models.RollingUpgradeUpdateDescription
"""
_validation = {
'name': {'required': True},
'upgrade_kind': {'required': True},
}
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'upgrade_kind': {'key': 'UpgradeKind', 'type': 'str'},
'application_health_policy': {'key': 'ApplicationHealthPolicy', 'type': 'ApplicationHealthPolicy'},
'update_description': {'key': 'UpdateDescription', 'type': 'RollingUpgradeUpdateDescription'},
}
def __init__(self, name, upgrade_kind="Rolling", application_health_policy=None, update_description=None):
self.name = name
self.upgrade_kind = upgrade_kind
self.application_health_policy = application_health_policy
self.update_description = update_description

Просмотреть файл

@ -0,0 +1,61 @@
# 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 .health_evaluation import HealthEvaluation
class ApplicationsHealthEvaluation(HealthEvaluation):
"""Represents health evaluation for applications, containing health
evaluations for each unhealthy application that impacted current aggregated
health state.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param description: Description of the health evaluation, which represents
a summary of the evaluation process.
:type description: str
:param kind: Constant filled by server.
:type kind: str
:param max_percent_unhealthy_applications: Maximum allowed percentage of
unhealthy applications from the ClusterHealthPolicy.
:type max_percent_unhealthy_applications: int
:param total_count: Total number of applications from the health store.
:type total_count: long
:param unhealthy_evaluations: List of unhealthy evaluations that led to
the aggregated health state. Includes all the unhealthy
ApplicationHealthEvaluation that impacted the aggregated health.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'description': {'key': 'Description', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'max_percent_unhealthy_applications': {'key': 'MaxPercentUnhealthyApplications', 'type': 'int'},
'total_count': {'key': 'TotalCount', 'type': 'long'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
}
def __init__(self, aggregated_health_state=None, description=None, max_percent_unhealthy_applications=None, total_count=None, unhealthy_evaluations=None):
super(ApplicationsHealthEvaluation, self).__init__(aggregated_health_state=aggregated_health_state, description=description)
self.max_percent_unhealthy_applications = max_percent_unhealthy_applications
self.total_count = total_count
self.unhealthy_evaluations = unhealthy_evaluations
self.kind = 'Applications'

Просмотреть файл

@ -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 .backup_storage_description import BackupStorageDescription
class AzureBlobBackupStorageDescription(BackupStorageDescription):
"""Describes the parameters for Azure blob store used for storing and
enumerating backups.
:param friendly_name: Friendly name for this backup storage.
:type friendly_name: str
:param storage_kind: Constant filled by server.
:type storage_kind: str
:param connection_string: The connection string to connect to the Azure
blob store.
:type connection_string: str
:param container_name: The name of the container in the blob store to
store and enumerate backups from.
:type container_name: str
"""
_validation = {
'storage_kind': {'required': True},
'connection_string': {'required': True},
'container_name': {'required': True},
}
_attribute_map = {
'friendly_name': {'key': 'FriendlyName', 'type': 'str'},
'storage_kind': {'key': 'StorageKind', 'type': 'str'},
'connection_string': {'key': 'ConnectionString', 'type': 'str'},
'container_name': {'key': 'ContainerName', 'type': 'str'},
}
def __init__(self, connection_string, container_name, friendly_name=None):
super(AzureBlobBackupStorageDescription, self).__init__(friendly_name=friendly_name)
self.connection_string = connection_string
self.container_name = container_name
self.storage_kind = 'AzureBlobStore'

Просмотреть файл

@ -0,0 +1,56 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class BackupConfigurationInfo(Model):
"""Describes the backup configuration information.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: ApplicationBackupConfigurationInfo,
ServiceBackupConfigurationInfo, PartitionBackupConfigurationInfo
:param policy_name: The name of the backup policy which is applicable to
this Service Fabric application or service or partition.
:type policy_name: str
:param policy_inherited_from: Specifies the scope at which the backup
policy is applied.
. Possible values include: 'Invalid', 'Partition', 'Service',
'Application'
:type policy_inherited_from: str or
~azure.servicefabric.models.BackupPolicyScope
:param suspension_info: Describes the backup suspension details.
:type suspension_info: ~azure.servicefabric.models.BackupSuspensionInfo
:param kind: Constant filled by server.
:type kind: str
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'policy_name': {'key': 'PolicyName', 'type': 'str'},
'policy_inherited_from': {'key': 'PolicyInheritedFrom', 'type': 'str'},
'suspension_info': {'key': 'SuspensionInfo', 'type': 'BackupSuspensionInfo'},
'kind': {'key': 'Kind', 'type': 'str'},
}
_subtype_map = {
'kind': {'Application': 'ApplicationBackupConfigurationInfo', 'Service': 'ServiceBackupConfigurationInfo', 'Partition': 'PartitionBackupConfigurationInfo'}
}
def __init__(self, policy_name=None, policy_inherited_from=None, suspension_info=None):
self.policy_name = policy_name
self.policy_inherited_from = policy_inherited_from
self.suspension_info = suspension_info
self.kind = None

Просмотреть файл

@ -0,0 +1,39 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class BackupEntity(Model):
"""Describes the Service Fabric entity which is configured for backup.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: ApplicationBackupEntity, ServiceBackupEntity,
PartitionBackupEntity
:param entity_kind: Constant filled by server.
:type entity_kind: str
"""
_validation = {
'entity_kind': {'required': True},
}
_attribute_map = {
'entity_kind': {'key': 'EntityKind', 'type': 'str'},
}
_subtype_map = {
'entity_kind': {'Application': 'ApplicationBackupEntity', 'Service': 'ServiceBackupEntity', 'Partition': 'PartitionBackupEntity'}
}
def __init__(self):
self.entity_kind = None

Просмотреть файл

@ -0,0 +1,78 @@
# 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 BackupInfo(Model):
"""Represents a backup point which can be used to trigger a restore.
:param backup_id: Unique backup ID .
:type backup_id: str
:param backup_chain_id: Unique backup chain ID. All backups part of the
same chain has the same backup chain id. A backup chain is comprised of 1
full backup and multiple incremental backups.
:type backup_chain_id: str
:param application_name: Name of the Service Fabric application this
partition backup belongs to.
:type application_name: str
:param service_name: Name of the Service Fabric service this partition
backup belongs to.
:type service_name: str
:param partition_information: Information about the partition to which
this backup belongs to
:type partition_information:
~azure.servicefabric.models.PartitionInformation
:param backup_location: Location of the backup, relative to the backup
store.
:type backup_location: str
:param backup_type: Describes the type of backup, whether its full or
incremental.
. Possible values include: 'Invalid', 'Full', 'Incremental'
:type backup_type: str or ~azure.servicefabric.models.BackupType
:param epoch_of_last_backup_record: Epoch of the last record in this
backup.
:type epoch_of_last_backup_record: ~azure.servicefabric.models.Epoch
:param lsn_of_last_backup_record: LSN of the last record in this backup.
:type lsn_of_last_backup_record: str
:param creation_time_utc: The date time when this backup was taken.
:type creation_time_utc: datetime
:param failure_error: Denotes the failure encountered in getting backup
point information.
:type failure_error: ~azure.servicefabric.models.FabricErrorError
"""
_attribute_map = {
'backup_id': {'key': 'BackupId', 'type': 'str'},
'backup_chain_id': {'key': 'BackupChainId', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'service_name': {'key': 'ServiceName', 'type': 'str'},
'partition_information': {'key': 'PartitionInformation', 'type': 'PartitionInformation'},
'backup_location': {'key': 'BackupLocation', 'type': 'str'},
'backup_type': {'key': 'BackupType', 'type': 'str'},
'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'Epoch'},
'lsn_of_last_backup_record': {'key': 'LsnOfLastBackupRecord', 'type': 'str'},
'creation_time_utc': {'key': 'CreationTimeUtc', 'type': 'iso-8601'},
'failure_error': {'key': 'FailureError', 'type': 'FabricErrorError'},
}
def __init__(self, backup_id=None, backup_chain_id=None, application_name=None, service_name=None, partition_information=None, backup_location=None, backup_type=None, epoch_of_last_backup_record=None, lsn_of_last_backup_record=None, creation_time_utc=None, failure_error=None):
self.backup_id = backup_id
self.backup_chain_id = backup_chain_id
self.application_name = application_name
self.service_name = service_name
self.partition_information = partition_information
self.backup_location = backup_location
self.backup_type = backup_type
self.epoch_of_last_backup_record = epoch_of_last_backup_record
self.lsn_of_last_backup_record = lsn_of_last_backup_record
self.creation_time_utc = creation_time_utc
self.failure_error = failure_error

Просмотреть файл

@ -0,0 +1,28 @@
# 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 BackupPartitionDescription(Model):
"""Describes the parameters for triggering partition's backup.
:param backup_storage: Specifies the details of the backup storage where
to save the backup.
:type backup_storage: ~azure.servicefabric.models.BackupStorageDescription
"""
_attribute_map = {
'backup_storage': {'key': 'BackupStorage', 'type': 'BackupStorageDescription'},
}
def __init__(self, backup_storage=None):
self.backup_storage = backup_storage

Просмотреть файл

@ -0,0 +1,60 @@
# 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 BackupPolicyDescription(Model):
"""Describes a backup policy for configuring periodic backup.
:param name: The unique name identifying this backup policy.
:type name: str
:param auto_restore_on_data_loss: Specifies whether to trigger restore
automatically using the latest available backup in case the partition
experiences a data loss event.
:type auto_restore_on_data_loss: bool
:param max_incremental_backups: Defines the maximum number of incremental
backups to be taken between two full backups. This is just the upper
limit. A full backup may be taken before specified number of incremental
backups are completed in one of the following conditions
- The replica has never taken a full backup since it has become primary,
- Some of the log records since the last backup has been truncated, or
- Replica passed the MaxAccumulatedBackupLogSizeInMB limit.
:type max_incremental_backups: int
:param schedule: Describes the backup schedule parameters.
:type schedule: ~azure.servicefabric.models.BackupScheduleDescription
:param storage: Describes the details of backup storage where to store the
periodic backups.
:type storage: ~azure.servicefabric.models.BackupStorageDescription
"""
_validation = {
'name': {'required': True},
'auto_restore_on_data_loss': {'required': True},
'max_incremental_backups': {'required': True, 'maximum': 255, 'minimum': 0},
'schedule': {'required': True},
'storage': {'required': True},
}
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'auto_restore_on_data_loss': {'key': 'AutoRestoreOnDataLoss', 'type': 'bool'},
'max_incremental_backups': {'key': 'MaxIncrementalBackups', 'type': 'int'},
'schedule': {'key': 'Schedule', 'type': 'BackupScheduleDescription'},
'storage': {'key': 'Storage', 'type': 'BackupStorageDescription'},
}
def __init__(self, name, auto_restore_on_data_loss, max_incremental_backups, schedule, storage):
self.name = name
self.auto_restore_on_data_loss = auto_restore_on_data_loss
self.max_incremental_backups = max_incremental_backups
self.schedule = schedule
self.storage = storage

Просмотреть файл

@ -0,0 +1,59 @@
# 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 BackupProgressInfo(Model):
"""Describes the progress of a partition's backup.
:param backup_state: Represents the current state of the partition backup
operation.
. Possible values include: 'Invalid', 'Accepted', 'BackupInProgress',
'Success', 'Failure', 'Timeout'
:type backup_state: str or ~azure.servicefabric.models.BackupState
:param time_stamp_utc: TimeStamp in UTC when operation succeeded or
failed.
:type time_stamp_utc: datetime
:param backup_id: Unique ID of the newly created backup.
:type backup_id: str
:param backup_location: Location, relative to the backup store, of the
newly created backup.
:type backup_location: str
:param epoch_of_last_backup_record: Specifies the epoch of the last record
included in backup.
:type epoch_of_last_backup_record: ~azure.servicefabric.models.Epoch
:param lsn_of_last_backup_record: The LSN of last record included in
backup.
:type lsn_of_last_backup_record: str
:param failure_error: Denotes the failure encountered in performing backup
operation.
:type failure_error: ~azure.servicefabric.models.FabricErrorError
"""
_attribute_map = {
'backup_state': {'key': 'BackupState', 'type': 'str'},
'time_stamp_utc': {'key': 'TimeStampUtc', 'type': 'iso-8601'},
'backup_id': {'key': 'BackupId', 'type': 'str'},
'backup_location': {'key': 'BackupLocation', 'type': 'str'},
'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'Epoch'},
'lsn_of_last_backup_record': {'key': 'LsnOfLastBackupRecord', 'type': 'str'},
'failure_error': {'key': 'FailureError', 'type': 'FabricErrorError'},
}
def __init__(self, backup_state=None, time_stamp_utc=None, backup_id=None, backup_location=None, epoch_of_last_backup_record=None, lsn_of_last_backup_record=None, failure_error=None):
self.backup_state = backup_state
self.time_stamp_utc = time_stamp_utc
self.backup_id = backup_id
self.backup_location = backup_location
self.epoch_of_last_backup_record = epoch_of_last_backup_record
self.lsn_of_last_backup_record = lsn_of_last_backup_record
self.failure_error = failure_error

Просмотреть файл

@ -0,0 +1,39 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class BackupScheduleDescription(Model):
"""Describes the backup schedule parameters.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: FrequencyBasedBackupScheduleDescription,
TimeBasedBackupScheduleDescription
:param schedule_kind: Constant filled by server.
:type schedule_kind: str
"""
_validation = {
'schedule_kind': {'required': True},
}
_attribute_map = {
'schedule_kind': {'key': 'ScheduleKind', 'type': 'str'},
}
_subtype_map = {
'schedule_kind': {'FrequencyBased': 'FrequencyBasedBackupScheduleDescription', 'TimeBased': 'TimeBasedBackupScheduleDescription'}
}
def __init__(self):
self.schedule_kind = None

Просмотреть файл

@ -0,0 +1,43 @@
# 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 BackupStorageDescription(Model):
"""Describes the parameters for the backup storage.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: AzureBlobBackupStorageDescription,
FileShareBackupStorageDescription
:param friendly_name: Friendly name for this backup storage.
:type friendly_name: str
:param storage_kind: Constant filled by server.
:type storage_kind: str
"""
_validation = {
'storage_kind': {'required': True},
}
_attribute_map = {
'friendly_name': {'key': 'FriendlyName', 'type': 'str'},
'storage_kind': {'key': 'StorageKind', 'type': 'str'},
}
_subtype_map = {
'storage_kind': {'AzureBlobStore': 'AzureBlobBackupStorageDescription', 'FileShare': 'FileShareBackupStorageDescription'}
}
def __init__(self, friendly_name=None):
self.friendly_name = friendly_name
self.storage_kind = None

Просмотреть файл

@ -0,0 +1,37 @@
# 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 BackupSuspensionInfo(Model):
"""Describes the backup suspension details.
.
:param is_suspended: Indicates whether periodic backup is suspended at
this level or not.
:type is_suspended: bool
:param suspension_inherited_from: Specifies the scope at which the backup
suspension was applied.
. Possible values include: 'Invalid', 'Partition', 'Service',
'Application'
:type suspension_inherited_from: str or
~azure.servicefabric.models.BackupSuspensionScope
"""
_attribute_map = {
'is_suspended': {'key': 'IsSuspended', 'type': 'bool'},
'suspension_inherited_from': {'key': 'SuspensionInheritedFrom', 'type': 'str'},
}
def __init__(self, is_suspended=None, suspension_inherited_from=None):
self.is_suspended = is_suspended
self.suspension_inherited_from = suspension_inherited_from

Просмотреть файл

@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .property_value import PropertyValue
class BinaryPropertyValue(PropertyValue):
"""Describes a Service Fabric property value of type Binary.
:param kind: Constant filled by server.
:type kind: str
:param data: Array of bytes to be sent as an integer array. Each element
of array is a number between 0 and 255.
:type data: list[int]
"""
_validation = {
'kind': {'required': True},
'data': {'required': True},
}
_attribute_map = {
'kind': {'key': 'Kind', 'type': 'str'},
'data': {'key': 'Data', 'type': '[int]'},
}
def __init__(self, data):
super(BinaryPropertyValue, self).__init__()
self.data = data
self.kind = 'Binary'

Просмотреть файл

@ -0,0 +1,41 @@
# 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 Chaos(Model):
"""Contains a description of Chaos.
.
:param chaos_parameters: If Chaos is running, these are the parameters
Chaos is running with.
:type chaos_parameters: ~azure.servicefabric.models.ChaosParameters
:param status: Current status of the Chaos run.
. Possible values include: 'Invalid', 'Running', 'Stopped'
:type status: str or ~azure.servicefabric.models.ChaosStatus
:param schedule_status: Current status of the schedule.
. Possible values include: 'Invalid', 'Stopped', 'Active', 'Expired',
'Pending'
:type schedule_status: str or
~azure.servicefabric.models.ChaosScheduleStatus
"""
_attribute_map = {
'chaos_parameters': {'key': 'ChaosParameters', 'type': 'ChaosParameters'},
'status': {'key': 'Status', 'type': 'str'},
'schedule_status': {'key': 'ScheduleStatus', 'type': 'str'},
}
def __init__(self, chaos_parameters=None, status=None, schedule_status=None):
self.chaos_parameters = chaos_parameters
self.status = status
self.schedule_status = schedule_status

Просмотреть файл

@ -0,0 +1,34 @@
# 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 ChaosContext(Model):
"""Describes a map, which is a collection of (string, string) type key-value
pairs. The map can be used to record information about
the Chaos run. There cannot be more than 100 such pairs and each string
(key or value) can be at most 4095 characters long.
This map is set by the starter of the Chaos run to optionally store the
context about the specific run.
.
:param map: Describes a map that contains a collection of
ChaosContextMapItem's.
:type map: dict[str, str]
"""
_attribute_map = {
'map': {'key': 'Map', 'type': '{str}'},
}
def __init__(self, map=None):
self.map = map

Просмотреть файл

@ -0,0 +1,46 @@
# 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 ChaosEvent(Model):
"""Represents an event generated during a Chaos run.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: ExecutingFaultsChaosEvent, StartedChaosEvent,
StoppedChaosEvent, TestErrorChaosEvent, ValidationFailedChaosEvent,
WaitingChaosEvent
:param time_stamp_utc: The UTC timestamp when this Chaos event was
generated.
:type time_stamp_utc: datetime
:param kind: Constant filled by server.
:type kind: str
"""
_validation = {
'time_stamp_utc': {'required': True},
'kind': {'required': True},
}
_attribute_map = {
'time_stamp_utc': {'key': 'TimeStampUtc', 'type': 'iso-8601'},
'kind': {'key': 'Kind', 'type': 'str'},
}
_subtype_map = {
'kind': {'ExecutingFaults': 'ExecutingFaultsChaosEvent', 'Started': 'StartedChaosEvent', 'Stopped': 'StoppedChaosEvent', 'TestError': 'TestErrorChaosEvent', 'ValidationFailed': 'ValidationFailedChaosEvent', 'Waiting': 'WaitingChaosEvent'}
}
def __init__(self, time_stamp_utc):
self.time_stamp_utc = time_stamp_utc
self.kind = None

Просмотреть файл

@ -0,0 +1,27 @@
# 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 ChaosEventWrapper(Model):
"""Wrapper object for Chaos event.
:param chaos_event: Represents an event generated during a Chaos run.
:type chaos_event: ~azure.servicefabric.models.ChaosEvent
"""
_attribute_map = {
'chaos_event': {'key': 'ChaosEvent', 'type': 'ChaosEvent'},
}
def __init__(self, chaos_event=None):
self.chaos_event = chaos_event

Просмотреть файл

@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ChaosEventsSegment(Model):
"""Contains the list of Chaos events and the continuation token to get the
next segment.
.
:param continuation_token: The continuation token parameter is used to
obtain next set of results. The continuation token is included in the
response of the API when the results from the system do not fit in a
single response. When this value is passed to the next API call, the API
returns next set of results. If there are no further results then the
continuation token is not included in the response.
:type continuation_token: str
:param history: List of Chaos events that meet the user-supplied criteria.
:type history: list[~azure.servicefabric.models.ChaosEventWrapper]
"""
_attribute_map = {
'continuation_token': {'key': 'ContinuationToken', 'type': 'str'},
'history': {'key': 'History', 'type': '[ChaosEventWrapper]'},
}
def __init__(self, continuation_token=None, history=None):
self.continuation_token = continuation_token
self.history = history

Просмотреть файл

@ -0,0 +1,112 @@
# 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 ChaosParameters(Model):
"""Defines all the parameters to configure a Chaos run.
.
:param time_to_run_in_seconds: Total time (in seconds) for which Chaos
will run before automatically stopping. The maximum allowed value is
4,294,967,295 (System.UInt32.MaxValue).
. Default value: "4294967295" .
:type time_to_run_in_seconds: str
:param max_cluster_stabilization_timeout_in_seconds: The maximum amount of
time to wait for all cluster entities to become stable and healthy. Chaos
executes in iterations and at the start of each iteration it validates the
health of cluster entities.
During validation if a cluster entity is not stable and healthy within
MaxClusterStabilizationTimeoutInSeconds, Chaos generates a validation
failed event.
. Default value: 60 .
:type max_cluster_stabilization_timeout_in_seconds: long
:param max_concurrent_faults: MaxConcurrentFaults is the maximum number of
concurrent faults induced per iteration.
Chaos executes in iterations and two consecutive iterations are separated
by a validation phase.
The higher the concurrency, the more aggressive the injection of faults --
inducing more complex series of states to uncover bugs.
The recommendation is to start with a value of 2 or 3 and to exercise
caution while moving up.
. Default value: 1 .
:type max_concurrent_faults: long
:param enable_move_replica_faults: Enables or disables the move primary
and move secondary faults.
. Default value: True .
:type enable_move_replica_faults: bool
:param wait_time_between_faults_in_seconds: Wait time (in seconds) between
consecutive faults within a single iteration.
The larger the value, the lower the overlapping between faults and the
simpler the sequence of state transitions that the cluster goes through.
The recommendation is to start with a value between 1 and 5 and exercise
caution while moving up.
. Default value: 20 .
:type wait_time_between_faults_in_seconds: long
:param wait_time_between_iterations_in_seconds: Time-separation (in
seconds) between two consecutive iterations of Chaos.
The larger the value, the lower the fault injection rate.
. Default value: 30 .
:type wait_time_between_iterations_in_seconds: long
:param cluster_health_policy: Passed-in cluster health policy is used to
validate health of the cluster in between Chaos iterations. If the cluster
health is in error or if an unexpected exception happens during fault
execution--to provide the cluster with some time to recuperate--Chaos will
wait for 30 minutes before the next health-check.
:type cluster_health_policy:
~azure.servicefabric.models.ClusterHealthPolicy
:param context: Describes a map, which is a collection of (string, string)
type key-value pairs. The map can be used to record information about
the Chaos run. There cannot be more than 100 such pairs and each string
(key or value) can be at most 4095 characters long.
This map is set by the starter of the Chaos run to optionally store the
context about the specific run.
:type context: ~azure.servicefabric.models.ChaosContext
:param chaos_target_filter: List of cluster entities to target for Chaos
faults.
This filter can be used to target Chaos faults only to certain node types
or only to certain application instances. If ChaosTargetFilter is not
used, Chaos faults all cluster entities.
If ChaosTargetFilter is used, Chaos faults only the entities that meet the
ChaosTargetFilter specification.
:type chaos_target_filter: ~azure.servicefabric.models.ChaosTargetFilter
"""
_validation = {
'max_cluster_stabilization_timeout_in_seconds': {'maximum': 4294967295, 'minimum': 0},
'max_concurrent_faults': {'maximum': 4294967295, 'minimum': 0},
'wait_time_between_faults_in_seconds': {'maximum': 4294967295, 'minimum': 0},
'wait_time_between_iterations_in_seconds': {'maximum': 4294967295, 'minimum': 0},
}
_attribute_map = {
'time_to_run_in_seconds': {'key': 'TimeToRunInSeconds', 'type': 'str'},
'max_cluster_stabilization_timeout_in_seconds': {'key': 'MaxClusterStabilizationTimeoutInSeconds', 'type': 'long'},
'max_concurrent_faults': {'key': 'MaxConcurrentFaults', 'type': 'long'},
'enable_move_replica_faults': {'key': 'EnableMoveReplicaFaults', 'type': 'bool'},
'wait_time_between_faults_in_seconds': {'key': 'WaitTimeBetweenFaultsInSeconds', 'type': 'long'},
'wait_time_between_iterations_in_seconds': {'key': 'WaitTimeBetweenIterationsInSeconds', 'type': 'long'},
'cluster_health_policy': {'key': 'ClusterHealthPolicy', 'type': 'ClusterHealthPolicy'},
'context': {'key': 'Context', 'type': 'ChaosContext'},
'chaos_target_filter': {'key': 'ChaosTargetFilter', 'type': 'ChaosTargetFilter'},
}
def __init__(self, time_to_run_in_seconds="4294967295", max_cluster_stabilization_timeout_in_seconds=60, max_concurrent_faults=1, enable_move_replica_faults=True, wait_time_between_faults_in_seconds=20, wait_time_between_iterations_in_seconds=30, cluster_health_policy=None, context=None, chaos_target_filter=None):
self.time_to_run_in_seconds = time_to_run_in_seconds
self.max_cluster_stabilization_timeout_in_seconds = max_cluster_stabilization_timeout_in_seconds
self.max_concurrent_faults = max_concurrent_faults
self.enable_move_replica_faults = enable_move_replica_faults
self.wait_time_between_faults_in_seconds = wait_time_between_faults_in_seconds
self.wait_time_between_iterations_in_seconds = wait_time_between_iterations_in_seconds
self.cluster_health_policy = cluster_health_policy
self.context = context
self.chaos_target_filter = chaos_target_filter

Просмотреть файл

@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ChaosParametersDictionaryItem(Model):
"""Defines an item in ChaosParametersDictionary of the Chaos Schedule.
.
:param key: The key identifying the Chaos Parameter in the dictionary.
This key is referenced by Chaos Schedule Jobs.
:type key: str
:param value: Defines all the parameters to configure a Chaos run.
:type value: ~azure.servicefabric.models.ChaosParameters
"""
_validation = {
'key': {'required': True},
'value': {'required': True},
}
_attribute_map = {
'key': {'key': 'Key', 'type': 'str'},
'value': {'key': 'Value', 'type': 'ChaosParameters'},
}
def __init__(self, key, value):
self.key = key
self.value = value

Просмотреть файл

@ -0,0 +1,45 @@
# 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 ChaosSchedule(Model):
"""Defines the schedule used by Chaos.
:param start_date: The date and time Chaos will start using this schedule.
. Default value: "1601-01-01T00:00:00Z" .
:type start_date: datetime
:param expiry_date: The date and time Chaos will continue to use this
schedule until.
. Default value: "9999-12-31T23:59:59.999Z" .
:type expiry_date: datetime
:param chaos_parameters_dictionary: A mapping of string names to Chaos
Parameters to be referenced by Chaos Schedule Jobs.
:type chaos_parameters_dictionary:
list[~azure.servicefabric.models.ChaosParametersDictionaryItem]
:param jobs: A list of all Chaos Schedule Jobs that will be automated by
the schedule.
:type jobs: list[~azure.servicefabric.models.ChaosScheduleJob]
"""
_attribute_map = {
'start_date': {'key': 'StartDate', 'type': 'iso-8601'},
'expiry_date': {'key': 'ExpiryDate', 'type': 'iso-8601'},
'chaos_parameters_dictionary': {'key': 'ChaosParametersDictionary', 'type': '[ChaosParametersDictionaryItem]'},
'jobs': {'key': 'Jobs', 'type': '[ChaosScheduleJob]'},
}
def __init__(self, start_date="1601-01-01T00:00:00Z", expiry_date="9999-12-31T23:59:59.999Z", chaos_parameters_dictionary=None, jobs=None):
self.start_date = start_date
self.expiry_date = expiry_date
self.chaos_parameters_dictionary = chaos_parameters_dictionary
self.jobs = jobs

Просмотреть файл

@ -0,0 +1,36 @@
# 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 ChaosScheduleDescription(Model):
"""Defines the Chaos Schedule used by Chaos and the version of the Chaos
Schedule. The version value wraps back to 0 after surpassing 2,147,483,647.
:param version: The version number of the Schedule.
:type version: int
:param schedule: Defines the schedule used by Chaos.
:type schedule: ~azure.servicefabric.models.ChaosSchedule
"""
_validation = {
'version': {'minimum': 0},
}
_attribute_map = {
'version': {'key': 'Version', 'type': 'int'},
'schedule': {'key': 'Schedule', 'type': 'ChaosSchedule'},
}
def __init__(self, version=None, schedule=None):
self.version = version
self.schedule = schedule

Просмотреть файл

@ -0,0 +1,39 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ChaosScheduleJob(Model):
"""Defines a repetition rule and parameters of Chaos to be used with the Chaos
Schedule.
:param chaos_parameters: A reference to which Chaos Parameters of the
Chaos Schedule to use.
:type chaos_parameters: str
:param days: Defines the days of the week that a Chaos Schedule Job will
run for.
:type days: ~azure.servicefabric.models.ChaosScheduleJobActiveDaysOfWeek
:param times: A list of Time Ranges that specify when during active days
that this job will run. The times are interpreted as UTC.
:type times: list[~azure.servicefabric.models.TimeRange]
"""
_attribute_map = {
'chaos_parameters': {'key': 'ChaosParameters', 'type': 'str'},
'days': {'key': 'Days', 'type': 'ChaosScheduleJobActiveDaysOfWeek'},
'times': {'key': 'Times', 'type': '[TimeRange]'},
}
def __init__(self, chaos_parameters=None, days=None, times=None):
self.chaos_parameters = chaos_parameters
self.days = days
self.times = times

Просмотреть файл

@ -0,0 +1,58 @@
# 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 ChaosScheduleJobActiveDaysOfWeek(Model):
"""Defines the days of the week that a Chaos Schedule Job will run for.
:param sunday: Indicates if the Chaos Schedule Job will run on Sunday.
Default value: False .
:type sunday: bool
:param monday: Indicates if the Chaos Schedule Job will run on Monday.
Default value: False .
:type monday: bool
:param tuesday: Indicates if the Chaos Schedule Job will run on Tuesday.
Default value: False .
:type tuesday: bool
:param wednesday: Indicates if the Chaos Schedule Job will run on
Wednesday. Default value: False .
:type wednesday: bool
:param thursday: Indicates if the Chaos Schedule Job will run on Thursday.
Default value: False .
:type thursday: bool
:param friday: Indicates if the Chaos Schedule Job will run on Friday.
Default value: False .
:type friday: bool
:param saturday: Indicates if the Chaos Schedule Job will run on Saturday.
Default value: False .
:type saturday: bool
"""
_attribute_map = {
'sunday': {'key': 'Sunday', 'type': 'bool'},
'monday': {'key': 'Monday', 'type': 'bool'},
'tuesday': {'key': 'Tuesday', 'type': 'bool'},
'wednesday': {'key': 'Wednesday', 'type': 'bool'},
'thursday': {'key': 'Thursday', 'type': 'bool'},
'friday': {'key': 'Friday', 'type': 'bool'},
'saturday': {'key': 'Saturday', 'type': 'bool'},
}
def __init__(self, sunday=False, monday=False, tuesday=False, wednesday=False, thursday=False, friday=False, saturday=False):
self.sunday = sunday
self.monday = monday
self.tuesday = tuesday
self.wednesday = wednesday
self.thursday = thursday
self.friday = friday
self.saturday = saturday

Просмотреть файл

@ -0,0 +1,78 @@
# 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 ChaosTargetFilter(Model):
"""Defines all filters for targeted Chaos faults, for example, faulting only
certain node types or faulting only certain applications.
If ChaosTargetFilter is not used, Chaos faults all cluster entities. If
ChaosTargetFilter is used, Chaos faults only the entities that meet the
ChaosTargetFilter
specification. NodeTypeInclusionList and ApplicationInclusionList allow a
union semantics only. It is not possible to specify an intersection
of NodeTypeInclusionList and ApplicationInclusionList. For example, it is
not possible to specify "fault this application only when it is on that
node type."
Once an entity is included in either NodeTypeInclusionList or
ApplicationInclusionList, that entity cannot be excluded using
ChaosTargetFilter. Even if
applicationX does not appear in ApplicationInclusionList, in some Chaos
iteration applicationX can be faulted because it happens to be on a node of
nodeTypeY that is included
in NodeTypeInclusionList. If both NodeTypeInclusionList and
ApplicationInclusionList are null or empty, an ArgumentException is thrown.
.
:param node_type_inclusion_list: A list of node types to include in Chaos
faults.
All types of faults (restart node, restart code package, remove replica,
restart replica, move primary, and move secondary) are enabled for the
nodes of these node types.
If a nodetype (say NodeTypeX) does not appear in the
NodeTypeInclusionList, then node level faults (like NodeRestart) will
never be enabled for the nodes of
NodeTypeX, but code package and replica faults can still be enabled for
NodeTypeX if an application in the ApplicationInclusionList.
happens to reside on a node of NodeTypeX.
At most 100 node type names can be included in this list, to increase this
number, a config upgrade is required for
MaxNumberOfNodeTypesInChaosEntityFilter configuration.
:type node_type_inclusion_list: list[str]
:param application_inclusion_list: A list of application URI's to include
in Chaos faults.
All replicas belonging to services of these applications are amenable to
replica faults (restart replica, remove replica, move primary, and move
secondary) by Chaos.
Chaos may restart a code package only if the code package hosts replicas
of these applications only.
If an application does not appear in this list, it can still be faulted in
some Chaos iteration if the application ends up on a node of a node type
that is included in NodeTypeInclusionList.
However, if applicationX is tied to nodeTypeY through placement
constraints and applicationX is absent from ApplicationInclusionList and
nodeTypeY is absent from NodeTypeInclusionList, then applicationX will
never be faulted.
At most 1000 application names can be included in this list, to increase
this number, a config upgrade is required for
MaxNumberOfApplicationsInChaosEntityFilter configuration.
:type application_inclusion_list: list[str]
"""
_attribute_map = {
'node_type_inclusion_list': {'key': 'NodeTypeInclusionList', 'type': '[str]'},
'application_inclusion_list': {'key': 'ApplicationInclusionList', 'type': '[str]'},
}
def __init__(self, node_type_inclusion_list=None, application_inclusion_list=None):
self.node_type_inclusion_list = node_type_inclusion_list
self.application_inclusion_list = application_inclusion_list

Просмотреть файл

@ -0,0 +1,50 @@
# 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 .property_batch_operation import PropertyBatchOperation
class CheckExistsPropertyBatchOperation(PropertyBatchOperation):
"""Represents a PropertyBatchOperation that compares the Boolean existence of
a property with the Exists argument.
The PropertyBatchOperation operation fails if the property's existence is
not equal to the Exists argument.
The CheckExistsPropertyBatchOperation is generally used as a precondition
for the write operations in the batch.
Note that if one PropertyBatchOperation in a PropertyBatch fails,
the entire batch fails and cannot be committed in a transactional manner.
.
:param property_name: The name of the Service Fabric property.
:type property_name: str
:param kind: Constant filled by server.
:type kind: str
:param exists: Whether or not the property should exist for the operation
to pass.
:type exists: bool
"""
_validation = {
'property_name': {'required': True},
'kind': {'required': True},
'exists': {'required': True},
}
_attribute_map = {
'property_name': {'key': 'PropertyName', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'exists': {'key': 'Exists', 'type': 'bool'},
}
def __init__(self, property_name, exists):
super(CheckExistsPropertyBatchOperation, self).__init__(property_name=property_name)
self.exists = exists
self.kind = 'CheckExists'

Просмотреть файл

@ -0,0 +1,51 @@
# 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 .property_batch_operation import PropertyBatchOperation
class CheckSequencePropertyBatchOperation(PropertyBatchOperation):
"""Compares the Sequence Number of a property with the SequenceNumber
argument.
A property's sequence number can be thought of as that property's version.
Every time the property is modified, its sequence number is increased.
The sequence number can be found in a property's metadata.
The comparison fails if the sequence numbers are not equal.
CheckSequencePropertyBatchOperation is generally used as a precondition for
the write operations in the batch.
Note that if one PropertyBatchOperation in a PropertyBatch fails,
the entire batch fails and cannot be committed in a transactional manner.
.
:param property_name: The name of the Service Fabric property.
:type property_name: str
:param kind: Constant filled by server.
:type kind: str
:param sequence_number: The expected sequence number.
:type sequence_number: str
"""
_validation = {
'property_name': {'required': True},
'kind': {'required': True},
'sequence_number': {'required': True},
}
_attribute_map = {
'property_name': {'key': 'PropertyName', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'sequence_number': {'key': 'SequenceNumber', 'type': 'str'},
}
def __init__(self, property_name, sequence_number):
super(CheckSequencePropertyBatchOperation, self).__init__(property_name=property_name)
self.sequence_number = sequence_number
self.kind = 'CheckSequence'

Просмотреть файл

@ -0,0 +1,47 @@
# 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 .property_batch_operation import PropertyBatchOperation
class CheckValuePropertyBatchOperation(PropertyBatchOperation):
"""Represents a PropertyBatchOperation that compares the value of the property
with the expected value.
The CheckValuePropertyBatchOperation is generally used as a precondition
for the write operations in the batch.
Note that if one PropertyBatchOperation in a PropertyBatch fails,
the entire batch fails and cannot be committed in a transactional manner.
.
:param property_name: The name of the Service Fabric property.
:type property_name: str
:param kind: Constant filled by server.
:type kind: str
:param value: The expected property value.
:type value: ~azure.servicefabric.models.PropertyValue
"""
_validation = {
'property_name': {'required': True},
'kind': {'required': True},
'value': {'required': True},
}
_attribute_map = {
'property_name': {'key': 'PropertyName', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'value': {'key': 'Value', 'type': 'PropertyValue'},
}
def __init__(self, property_name, value):
super(CheckValuePropertyBatchOperation, self).__init__(property_name=property_name)
self.value = value
self.kind = 'CheckValue'

Просмотреть файл

@ -0,0 +1,28 @@
# 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 ClusterConfiguration(Model):
"""Information about the standalone cluster configuration.
:param cluster_configuration: The contents of the cluster configuration
file.
:type cluster_configuration: str
"""
_attribute_map = {
'cluster_configuration': {'key': 'ClusterConfiguration', 'type': 'str'},
}
def __init__(self, cluster_configuration=None):
self.cluster_configuration = cluster_configuration

Просмотреть файл

@ -0,0 +1,84 @@
# 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 ClusterConfigurationUpgradeDescription(Model):
"""Describes the parameters for a standalone cluster configuration upgrade.
:param cluster_config: The cluster configuration.
:type cluster_config: str
:param health_check_retry_timeout: The length of time between attempts to
perform a health checks if the application or cluster is not healthy.
Default value: "PT0H0M0S" .
:type health_check_retry_timeout: timedelta
:param health_check_wait_duration_in_seconds: The length of time to wait
after completing an upgrade domain before starting the health checks
process. Default value: "PT0H0M0S" .
:type health_check_wait_duration_in_seconds: timedelta
:param health_check_stable_duration_in_seconds: The length of time that
the application or cluster must remain healthy. Default value: "PT0H0M0S"
.
:type health_check_stable_duration_in_seconds: timedelta
:param upgrade_domain_timeout_in_seconds: The timeout for the upgrade
domain. Default value: "PT0H0M0S" .
:type upgrade_domain_timeout_in_seconds: timedelta
:param upgrade_timeout_in_seconds: The upgrade timeout. Default value:
"PT0H0M0S" .
:type upgrade_timeout_in_seconds: timedelta
:param max_percent_unhealthy_applications: The maximum allowed percentage
of unhealthy applications during the upgrade. Allowed values are integer
values from zero to 100. Default value: 0 .
:type max_percent_unhealthy_applications: int
:param max_percent_unhealthy_nodes: The maximum allowed percentage of
unhealthy nodes during the upgrade. Allowed values are integer values from
zero to 100. Default value: 0 .
:type max_percent_unhealthy_nodes: int
:param max_percent_delta_unhealthy_nodes: The maximum allowed percentage
of delta health degradation during the upgrade. Allowed values are integer
values from zero to 100. Default value: 0 .
:type max_percent_delta_unhealthy_nodes: int
:param max_percent_upgrade_domain_delta_unhealthy_nodes: The maximum
allowed percentage of upgrade domain delta health degradation during the
upgrade. Allowed values are integer values from zero to 100. Default
value: 0 .
:type max_percent_upgrade_domain_delta_unhealthy_nodes: int
"""
_validation = {
'cluster_config': {'required': True},
}
_attribute_map = {
'cluster_config': {'key': 'ClusterConfig', 'type': 'str'},
'health_check_retry_timeout': {'key': 'HealthCheckRetryTimeout', 'type': 'duration'},
'health_check_wait_duration_in_seconds': {'key': 'HealthCheckWaitDurationInSeconds', 'type': 'duration'},
'health_check_stable_duration_in_seconds': {'key': 'HealthCheckStableDurationInSeconds', 'type': 'duration'},
'upgrade_domain_timeout_in_seconds': {'key': 'UpgradeDomainTimeoutInSeconds', 'type': 'duration'},
'upgrade_timeout_in_seconds': {'key': 'UpgradeTimeoutInSeconds', 'type': 'duration'},
'max_percent_unhealthy_applications': {'key': 'MaxPercentUnhealthyApplications', 'type': 'int'},
'max_percent_unhealthy_nodes': {'key': 'MaxPercentUnhealthyNodes', 'type': 'int'},
'max_percent_delta_unhealthy_nodes': {'key': 'MaxPercentDeltaUnhealthyNodes', 'type': 'int'},
'max_percent_upgrade_domain_delta_unhealthy_nodes': {'key': 'MaxPercentUpgradeDomainDeltaUnhealthyNodes', 'type': 'int'},
}
def __init__(self, cluster_config, health_check_retry_timeout="PT0H0M0S", health_check_wait_duration_in_seconds="PT0H0M0S", health_check_stable_duration_in_seconds="PT0H0M0S", upgrade_domain_timeout_in_seconds="PT0H0M0S", upgrade_timeout_in_seconds="PT0H0M0S", max_percent_unhealthy_applications=0, max_percent_unhealthy_nodes=0, max_percent_delta_unhealthy_nodes=0, max_percent_upgrade_domain_delta_unhealthy_nodes=0):
self.cluster_config = cluster_config
self.health_check_retry_timeout = health_check_retry_timeout
self.health_check_wait_duration_in_seconds = health_check_wait_duration_in_seconds
self.health_check_stable_duration_in_seconds = health_check_stable_duration_in_seconds
self.upgrade_domain_timeout_in_seconds = upgrade_domain_timeout_in_seconds
self.upgrade_timeout_in_seconds = upgrade_timeout_in_seconds
self.max_percent_unhealthy_applications = max_percent_unhealthy_applications
self.max_percent_unhealthy_nodes = max_percent_unhealthy_nodes
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

Просмотреть файл

@ -0,0 +1,42 @@
# 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 ClusterConfigurationUpgradeStatusInfo(Model):
"""Information about a standalone cluster configuration upgrade status.
:param upgrade_state: The state of the upgrade domain. Possible values
include: 'Invalid', 'RollingBackInProgress', 'RollingBackCompleted',
'RollingForwardPending', 'RollingForwardInProgress',
'RollingForwardCompleted', 'Failed'
:type upgrade_state: str or ~azure.servicefabric.models.UpgradeState
:param progress_status: The cluster manifest version.
:type progress_status: int
:param config_version: The cluster configuration version.
:type config_version: str
:param details: The cluster upgrade status details.
:type details: str
"""
_attribute_map = {
'upgrade_state': {'key': 'UpgradeState', 'type': 'str'},
'progress_status': {'key': 'ProgressStatus', 'type': 'int'},
'config_version': {'key': 'ConfigVersion', 'type': 'str'},
'details': {'key': 'Details', 'type': 'str'},
}
def __init__(self, upgrade_state=None, progress_status=None, config_version=None, details=None):
self.upgrade_state = upgrade_state
self.progress_status = progress_status
self.config_version = config_version
self.details = details

Просмотреть файл

@ -0,0 +1,37 @@
# 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 .fabric_event import FabricEvent
class ClusterEvent(FabricEvent):
"""Represents the base for all Cluster Events.
:param event_instance_id: The identifier for the FabricEvent instance.
:type event_instance_id: str
:param time_stamp: The time event was logged.
:type time_stamp: datetime
:param has_correlated_events: Shows that there is existing related events
available.
:type has_correlated_events: bool
:param kind: Constant filled by server.
:type kind: str
"""
_validation = {
'event_instance_id': {'required': True},
'time_stamp': {'required': True},
'kind': {'required': True},
}
def __init__(self, event_instance_id, time_stamp, has_correlated_events=None):
super(ClusterEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events)
self.kind = 'ClusterEvent'

Просмотреть файл

@ -0,0 +1,61 @@
# 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 .entity_health import EntityHealth
class ClusterHealth(EntityHealth):
"""Represents the health of the cluster.
Contains the cluster aggregated health state, the cluster application and
node health states as well as the health events and the unhealthy
evaluations.
.
:param aggregated_health_state: The HealthState representing the
aggregated health state of the entity computed by Health Manager.
The health evaluation of the entity reflects all events reported on the
entity and its children (if any).
The aggregation is done by applying the desired health policy.
. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param health_events: The list of health events reported on the entity.
:type health_events: list[~azure.servicefabric.models.HealthEvent]
:param unhealthy_evaluations: The unhealthy evaluations that show why the
current aggregated health state was returned by Health Manager.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
:param health_statistics: Shows the health statistics for all children
types of the queried entity.
:type health_statistics: ~azure.servicefabric.models.HealthStatistics
:param node_health_states: Cluster node health states as found in the
health store.
:type node_health_states:
list[~azure.servicefabric.models.NodeHealthState]
:param application_health_states: Cluster application health states as
found in the health store.
:type application_health_states:
list[~azure.servicefabric.models.ApplicationHealthState]
"""
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'health_events': {'key': 'HealthEvents', 'type': '[HealthEvent]'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
'health_statistics': {'key': 'HealthStatistics', 'type': 'HealthStatistics'},
'node_health_states': {'key': 'NodeHealthStates', 'type': '[NodeHealthState]'},
'application_health_states': {'key': 'ApplicationHealthStates', 'type': '[ApplicationHealthState]'},
}
def __init__(self, aggregated_health_state=None, health_events=None, unhealthy_evaluations=None, health_statistics=None, node_health_states=None, application_health_states=None):
super(ClusterHealth, self).__init__(aggregated_health_state=aggregated_health_state, health_events=health_events, unhealthy_evaluations=unhealthy_evaluations, health_statistics=health_statistics)
self.node_health_states = node_health_states
self.application_health_states = application_health_states

Просмотреть файл

@ -0,0 +1,50 @@
# 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 ClusterHealthChunk(Model):
"""Represents the health chunk of the cluster.
Contains the cluster aggregated health state, and the cluster entities that
respect the input filter.
.
:param health_state: The HealthState representing the aggregated health
state of the cluster computed by Health Manager.
The health evaluation of the entity reflects all events reported on the
entity and its children (if any).
The aggregation is done by applying the desired cluster health policy and
the application health policies.
. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type health_state: str or ~azure.servicefabric.models.HealthState
:param node_health_state_chunks: The list of node health state chunks in
the cluster that respect the filters in the cluster health chunk query
description.
:type node_health_state_chunks:
~azure.servicefabric.models.NodeHealthStateChunkList
:param application_health_state_chunks: The list of application health
state chunks in the cluster that respect the filters in the cluster health
chunk query description.
:type application_health_state_chunks:
~azure.servicefabric.models.ApplicationHealthStateChunkList
"""
_attribute_map = {
'health_state': {'key': 'HealthState', 'type': 'str'},
'node_health_state_chunks': {'key': 'NodeHealthStateChunks', 'type': 'NodeHealthStateChunkList'},
'application_health_state_chunks': {'key': 'ApplicationHealthStateChunks', 'type': 'ApplicationHealthStateChunkList'},
}
def __init__(self, health_state=None, node_health_state_chunks=None, application_health_state_chunks=None):
self.health_state = health_state
self.node_health_state_chunks = node_health_state_chunks
self.application_health_state_chunks = application_health_state_chunks

Просмотреть файл

@ -0,0 +1,64 @@
# 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 ClusterHealthChunkQueryDescription(Model):
"""The cluster health chunk query description, which can specify the health
policies to evaluate cluster health and very expressive filters to select
which cluster entities to include in response.
:param node_filters: Defines a list of filters that specify which nodes to
be included in the returned cluster health chunk.
If no filters are specified, no nodes are returned. All the nodes are used
to evaluate the cluster's aggregated health state, regardless of the input
filters.
The cluster health chunk query may specify multiple node filters.
For example, it can specify a filter to return all nodes with health state
Error and another filter to always include a node identified by its
NodeName.
:type node_filters:
list[~azure.servicefabric.models.NodeHealthStateFilter]
:param application_filters: Defines a list of filters that specify which
applications to be included in the returned cluster health chunk.
If no filters are specified, no applications are returned. All the
applications are used to evaluate the cluster's aggregated health state,
regardless of the input filters.
The cluster health chunk query may specify multiple application filters.
For example, it can specify a filter to return all applications with
health state Error and another filter to always include applications of a
specified application type.
:type application_filters:
list[~azure.servicefabric.models.ApplicationHealthStateFilter]
:param cluster_health_policy: Defines a health policy used to evaluate the
health of the cluster or of a cluster node.
:type cluster_health_policy:
~azure.servicefabric.models.ClusterHealthPolicy
: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:
~azure.servicefabric.models.ApplicationHealthPolicies
"""
_attribute_map = {
'node_filters': {'key': 'NodeFilters', 'type': '[NodeHealthStateFilter]'},
'application_filters': {'key': 'ApplicationFilters', 'type': '[ApplicationHealthStateFilter]'},
'cluster_health_policy': {'key': 'ClusterHealthPolicy', 'type': 'ClusterHealthPolicy'},
'application_health_policies': {'key': 'ApplicationHealthPolicies', 'type': 'ApplicationHealthPolicies'},
}
def __init__(self, node_filters=None, application_filters=None, cluster_health_policy=None, application_health_policies=None):
self.node_filters = node_filters
self.application_filters = application_filters
self.cluster_health_policy = cluster_health_policy
self.application_health_policies = application_health_policies

Просмотреть файл

@ -0,0 +1,42 @@
# 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 ClusterHealthPolicies(Model):
"""Health policies to evaluate cluster health.
:param application_health_policy_map: Defines a map that contains specific
application health policies for different applications.
Each entry specifies as key the application name and as value an
ApplicationHealthPolicy used to evaluate the application health.
If an application is not specified in the map, the application health
evaluation uses the ApplicationHealthPolicy found in its application
manifest or the default application health policy (if no health policy is
defined in the manifest).
The map is empty by default.
:type application_health_policy_map:
list[~azure.servicefabric.models.ApplicationHealthPolicyMapItem]
:param cluster_health_policy: Defines a health policy used to evaluate the
health of the cluster or of a cluster node.
:type cluster_health_policy:
~azure.servicefabric.models.ClusterHealthPolicy
"""
_attribute_map = {
'application_health_policy_map': {'key': 'ApplicationHealthPolicyMap', 'type': '[ApplicationHealthPolicyMapItem]'},
'cluster_health_policy': {'key': 'ClusterHealthPolicy', 'type': 'ClusterHealthPolicy'},
}
def __init__(self, application_health_policy_map=None, cluster_health_policy=None):
self.application_health_policy_map = application_health_policy_map
self.cluster_health_policy = cluster_health_policy

Просмотреть файл

@ -0,0 +1,90 @@
# 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 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_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_type_health_policy_map: Defines a map with max
percentage unhealthy applications for specific application types.
Each entry specifies as key the application type name and as value an
integer that represents the MaxPercentUnhealthyApplications percentage
used to evaluate the applications of the specified application type.
The application type health policy map can be used during cluster health
evaluation to describe special application types.
The application types included in the map are evaluated against the
percentage specified in the map, and not with the global
MaxPercentUnhealthyApplications defined in the cluster health policy.
The applications of application types specified in the map are not counted
against the global pool of applications.
For example, if some applications of a type are critical, the cluster
administrator can add an entry to the map for that application type
and assign it a value of 0% (that is, do not tolerate any failures).
All other applications can be evaluated with
MaxPercentUnhealthyApplications set to 20% to tolerate some failures out
of the thousands of application instances.
The application type health policy map is used only if the cluster
manifest enables application type health evaluation using the
configuration entry for
HealthManager/EnableApplicationTypeHealthEvaluation.
:type application_type_health_policy_map:
list[~azure.servicefabric.models.ApplicationTypeHealthPolicyMapItem]
"""
_attribute_map = {
'consider_warning_as_error': {'key': 'ConsiderWarningAsError', 'type': 'bool'},
'max_percent_unhealthy_nodes': {'key': 'MaxPercentUnhealthyNodes', 'type': 'int'},
'max_percent_unhealthy_applications': {'key': 'MaxPercentUnhealthyApplications', 'type': 'int'},
'application_type_health_policy_map': {'key': 'ApplicationTypeHealthPolicyMap', 'type': '[ApplicationTypeHealthPolicyMapItem]'},
}
def __init__(self, consider_warning_as_error=False, max_percent_unhealthy_nodes=0, max_percent_unhealthy_applications=0, application_type_health_policy_map=None):
self.consider_warning_as_error = consider_warning_as_error
self.max_percent_unhealthy_nodes = max_percent_unhealthy_nodes
self.max_percent_unhealthy_applications = max_percent_unhealthy_applications
self.application_type_health_policy_map = application_type_health_policy_map

Просмотреть файл

@ -0,0 +1,27 @@
# 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 ClusterManifest(Model):
"""Information about the cluster manifest.
:param manifest: The contents of the cluster manifest file.
:type manifest: str
"""
_attribute_map = {
'manifest': {'key': 'Manifest', 'type': 'str'},
}
def __init__(self, manifest=None):
self.manifest = manifest

Просмотреть файл

@ -0,0 +1,98 @@
# 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 ClusterUpgradeDescriptionObject(Model):
"""Represents a ServiceFabric cluster upgrade.
:param config_version: The cluster configuration version (specified in the
cluster manifest).
:type config_version: str
:param code_version: The ServiceFabric code version of the cluster.
:type code_version: str
:param upgrade_kind: The kind of upgrade out of the following possible
values. Possible values include: 'Invalid', 'Rolling'. Default value:
"Rolling" .
:type upgrade_kind: str or ~azure.servicefabric.models.UpgradeKind
:param rolling_upgrade_mode: The mode used to monitor health during a
rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and
Monitored. Possible values include: 'Invalid', 'UnmonitoredAuto',
'UnmonitoredManual', 'Monitored'. Default value: "UnmonitoredAuto" .
:type rolling_upgrade_mode: str or ~azure.servicefabric.models.UpgradeMode
:param upgrade_replica_set_check_timeout_in_seconds: 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_in_seconds: long
: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 enable_delta_health_evaluation: When true, enables delta health
evaluation rather than absolute health evaluation after completion of each
upgrade domain.
:type enable_delta_health_evaluation: bool
:param monitoring_policy: Describes the parameters for monitoring an
upgrade in Monitored mode.
:type monitoring_policy:
~azure.servicefabric.models.MonitoringPolicyDescription
:param cluster_health_policy: Defines a health policy used to evaluate the
health of the cluster or of a cluster node.
:type cluster_health_policy:
~azure.servicefabric.models.ClusterHealthPolicy
:param cluster_upgrade_health_policy: Defines a health policy used to
evaluate the health of the cluster during a cluster upgrade.
:type cluster_upgrade_health_policy:
~azure.servicefabric.models.ClusterUpgradeHealthPolicyObject
:param application_health_policy_map: Defines a map that contains specific
application health policies for different applications.
Each entry specifies as key the application name and as value an
ApplicationHealthPolicy used to evaluate the application health.
If an application is not specified in the map, the application health
evaluation uses the ApplicationHealthPolicy found in its application
manifest or the default application health policy (if no health policy is
defined in the manifest).
The map is empty by default.
:type application_health_policy_map:
list[~azure.servicefabric.models.ApplicationHealthPolicyMapItem]
"""
_attribute_map = {
'config_version': {'key': 'ConfigVersion', 'type': 'str'},
'code_version': {'key': 'CodeVersion', 'type': 'str'},
'upgrade_kind': {'key': 'UpgradeKind', 'type': 'str'},
'rolling_upgrade_mode': {'key': 'RollingUpgradeMode', 'type': 'str'},
'upgrade_replica_set_check_timeout_in_seconds': {'key': 'UpgradeReplicaSetCheckTimeoutInSeconds', 'type': 'long'},
'force_restart': {'key': 'ForceRestart', 'type': 'bool'},
'enable_delta_health_evaluation': {'key': 'EnableDeltaHealthEvaluation', 'type': 'bool'},
'monitoring_policy': {'key': 'MonitoringPolicy', 'type': 'MonitoringPolicyDescription'},
'cluster_health_policy': {'key': 'ClusterHealthPolicy', 'type': 'ClusterHealthPolicy'},
'cluster_upgrade_health_policy': {'key': 'ClusterUpgradeHealthPolicy', 'type': 'ClusterUpgradeHealthPolicyObject'},
'application_health_policy_map': {'key': 'ApplicationHealthPolicyMap', 'type': '[ApplicationHealthPolicyMapItem]'},
}
def __init__(self, config_version=None, code_version=None, upgrade_kind="Rolling", rolling_upgrade_mode="UnmonitoredAuto", upgrade_replica_set_check_timeout_in_seconds=None, force_restart=None, enable_delta_health_evaluation=None, monitoring_policy=None, cluster_health_policy=None, cluster_upgrade_health_policy=None, application_health_policy_map=None):
self.config_version = config_version
self.code_version = code_version
self.upgrade_kind = upgrade_kind
self.rolling_upgrade_mode = rolling_upgrade_mode
self.upgrade_replica_set_check_timeout_in_seconds = upgrade_replica_set_check_timeout_in_seconds
self.force_restart = force_restart
self.enable_delta_health_evaluation = enable_delta_health_evaluation
self.monitoring_policy = monitoring_policy
self.cluster_health_policy = cluster_health_policy
self.cluster_upgrade_health_policy = cluster_upgrade_health_policy
self.application_health_policy_map = application_health_policy_map

Просмотреть файл

@ -0,0 +1,50 @@
# 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 ClusterUpgradeHealthPolicyObject(Model):
"""Defines a health policy used to evaluate the health of the cluster during a
cluster upgrade.
:param max_percent_delta_unhealthy_nodes: 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. The default value
is 10%.
:type max_percent_delta_unhealthy_nodes: int
:param max_percent_upgrade_domain_delta_unhealthy_nodes: 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. The default value is 15%.
:type max_percent_upgrade_domain_delta_unhealthy_nodes: int
"""
_validation = {
'max_percent_delta_unhealthy_nodes': {'maximum': 100, 'minimum': 0},
'max_percent_upgrade_domain_delta_unhealthy_nodes': {'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'},
}
def __init__(self, max_percent_delta_unhealthy_nodes=None, max_percent_upgrade_domain_delta_unhealthy_nodes=None):
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

Просмотреть файл

@ -0,0 +1,103 @@
# 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 ClusterUpgradeProgressObject(Model):
"""Information about a cluster upgrade.
:param code_version: The ServiceFabric code version of the cluster.
:type code_version: str
:param config_version: The cluster configuration version (specified in the
cluster manifest).
:type config_version: str
:param upgrade_domains: List of upgrade domains and their statuses.
:type upgrade_domains: list[~azure.servicefabric.models.UpgradeDomainInfo]
:param upgrade_state: The state of the upgrade domain. Possible values
include: 'Invalid', 'RollingBackInProgress', 'RollingBackCompleted',
'RollingForwardPending', 'RollingForwardInProgress',
'RollingForwardCompleted', 'Failed'
:type upgrade_state: str or ~azure.servicefabric.models.UpgradeState
:param next_upgrade_domain: The name of the next upgrade domain to be
processed.
:type next_upgrade_domain: str
:param rolling_upgrade_mode: The mode used to monitor health during a
rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and
Monitored. Possible values include: 'Invalid', 'UnmonitoredAuto',
'UnmonitoredManual', 'Monitored'. Default value: "UnmonitoredAuto" .
:type rolling_upgrade_mode: str or ~azure.servicefabric.models.UpgradeMode
:param upgrade_description: Represents a ServiceFabric cluster upgrade
:type upgrade_description:
~azure.servicefabric.models.ClusterUpgradeDescriptionObject
:param upgrade_duration_in_milliseconds: The estimated elapsed time spent
processing the current overall upgrade.
:type upgrade_duration_in_milliseconds: str
:param upgrade_domain_duration_in_milliseconds: The estimated elapsed time
spent processing the current upgrade domain.
:type upgrade_domain_duration_in_milliseconds: str
:param unhealthy_evaluations: List of health evaluations that resulted in
the current aggregated health state.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
:param current_upgrade_domain_progress: Information about the current
in-progress upgrade domain.
:type current_upgrade_domain_progress:
~azure.servicefabric.models.CurrentUpgradeDomainProgressInfo
:param start_timestamp_utc: The start time of the upgrade in UTC.
:type start_timestamp_utc: str
:param failure_timestamp_utc: The failure time of the upgrade in UTC.
:type failure_timestamp_utc: str
:param failure_reason: The cause of an upgrade failure that resulted in
FailureAction being executed. Possible values include: 'None',
'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout',
'OverallUpgradeTimeout'
:type failure_reason: str or ~azure.servicefabric.models.FailureReason
:param upgrade_domain_progress_at_failure: The detailed upgrade progress
for nodes in the current upgrade domain at the point of failure.
:type upgrade_domain_progress_at_failure:
~azure.servicefabric.models.FailedUpgradeDomainProgressObject
"""
_attribute_map = {
'code_version': {'key': 'CodeVersion', 'type': 'str'},
'config_version': {'key': 'ConfigVersion', 'type': 'str'},
'upgrade_domains': {'key': 'UpgradeDomains', 'type': '[UpgradeDomainInfo]'},
'upgrade_state': {'key': 'UpgradeState', 'type': 'str'},
'next_upgrade_domain': {'key': 'NextUpgradeDomain', 'type': 'str'},
'rolling_upgrade_mode': {'key': 'RollingUpgradeMode', 'type': 'str'},
'upgrade_description': {'key': 'UpgradeDescription', 'type': 'ClusterUpgradeDescriptionObject'},
'upgrade_duration_in_milliseconds': {'key': 'UpgradeDurationInMilliseconds', 'type': 'str'},
'upgrade_domain_duration_in_milliseconds': {'key': 'UpgradeDomainDurationInMilliseconds', 'type': 'str'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
'current_upgrade_domain_progress': {'key': 'CurrentUpgradeDomainProgress', 'type': 'CurrentUpgradeDomainProgressInfo'},
'start_timestamp_utc': {'key': 'StartTimestampUtc', 'type': 'str'},
'failure_timestamp_utc': {'key': 'FailureTimestampUtc', 'type': 'str'},
'failure_reason': {'key': 'FailureReason', 'type': 'str'},
'upgrade_domain_progress_at_failure': {'key': 'UpgradeDomainProgressAtFailure', 'type': 'FailedUpgradeDomainProgressObject'},
}
def __init__(self, code_version=None, config_version=None, upgrade_domains=None, upgrade_state=None, next_upgrade_domain=None, rolling_upgrade_mode="UnmonitoredAuto", upgrade_description=None, upgrade_duration_in_milliseconds=None, upgrade_domain_duration_in_milliseconds=None, unhealthy_evaluations=None, current_upgrade_domain_progress=None, start_timestamp_utc=None, failure_timestamp_utc=None, failure_reason=None, upgrade_domain_progress_at_failure=None):
self.code_version = code_version
self.config_version = config_version
self.upgrade_domains = upgrade_domains
self.upgrade_state = upgrade_state
self.next_upgrade_domain = next_upgrade_domain
self.rolling_upgrade_mode = rolling_upgrade_mode
self.upgrade_description = upgrade_description
self.upgrade_duration_in_milliseconds = upgrade_duration_in_milliseconds
self.upgrade_domain_duration_in_milliseconds = upgrade_domain_duration_in_milliseconds
self.unhealthy_evaluations = unhealthy_evaluations
self.current_upgrade_domain_progress = current_upgrade_domain_progress
self.start_timestamp_utc = start_timestamp_utc
self.failure_timestamp_utc = failure_timestamp_utc
self.failure_reason = failure_reason
self.upgrade_domain_progress_at_failure = upgrade_domain_progress_at_failure

Просмотреть файл

@ -0,0 +1,62 @@
# 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 CodePackageEntryPoint(Model):
"""Information about setup or main entry point of a code package deployed on a
Service Fabric node.
:param entry_point_location: The location of entry point executable on the
node.
:type entry_point_location: str
:param process_id: The process ID of the entry point.
:type process_id: str
:param run_as_user_name: The user name under which entry point executable
is run on the node.
:type run_as_user_name: str
:param code_package_entry_point_statistics: Statistics about setup or main
entry point of a code package deployed on a Service Fabric node.
:type code_package_entry_point_statistics:
~azure.servicefabric.models.CodePackageEntryPointStatistics
:param status: Specifies the status of the code package entry point
deployed on a Service Fabric node. Possible values include: 'Invalid',
'Pending', 'Starting', 'Started', 'Stopping', 'Stopped'
:type status: str or ~azure.servicefabric.models.EntryPointStatus
:param next_activation_time: The time (in UTC) when the entry point
executable will be run next.
:type next_activation_time: datetime
:param instance_id: The instance ID for current running entry point. For a
code package setup entry point (if specified) runs first and after it
finishes main entry point is started. Each time entry point executable is
run, its instance id will change.
:type instance_id: str
"""
_attribute_map = {
'entry_point_location': {'key': 'EntryPointLocation', 'type': 'str'},
'process_id': {'key': 'ProcessId', 'type': 'str'},
'run_as_user_name': {'key': 'RunAsUserName', 'type': 'str'},
'code_package_entry_point_statistics': {'key': 'CodePackageEntryPointStatistics', 'type': 'CodePackageEntryPointStatistics'},
'status': {'key': 'Status', 'type': 'str'},
'next_activation_time': {'key': 'NextActivationTime', 'type': 'iso-8601'},
'instance_id': {'key': 'InstanceId', 'type': 'str'},
}
def __init__(self, entry_point_location=None, process_id=None, run_as_user_name=None, code_package_entry_point_statistics=None, status=None, next_activation_time=None, instance_id=None):
self.entry_point_location = entry_point_location
self.process_id = process_id
self.run_as_user_name = run_as_user_name
self.code_package_entry_point_statistics = code_package_entry_point_statistics
self.status = status
self.next_activation_time = next_activation_time
self.instance_id = instance_id

Просмотреть файл

@ -0,0 +1,76 @@
# 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 CodePackageEntryPointStatistics(Model):
"""Statistics about setup or main entry point of a code package deployed on a
Service Fabric node.
:param last_exit_code: The last exit code of the entry point.
:type last_exit_code: str
:param last_activation_time: The last time (in UTC) when Service Fabric
attempted to run the entry point.
:type last_activation_time: datetime
:param last_exit_time: The last time (in UTC) when the entry point
finished running.
:type last_exit_time: datetime
:param last_successful_activation_time: The last time (in UTC) when the
entry point ran successfully.
:type last_successful_activation_time: datetime
:param last_successful_exit_time: The last time (in UTC) when the entry
point finished running gracefully.
:type last_successful_exit_time: datetime
:param activation_count: Number of times the entry point has run.
:type activation_count: str
:param activation_failure_count: Number of times the entry point failed to
run.
:type activation_failure_count: str
:param continuous_activation_failure_count: Number of times the entry
point continuously failed to run.
:type continuous_activation_failure_count: str
:param exit_count: Number of times the entry point finished running.
:type exit_count: str
:param exit_failure_count: Number of times the entry point failed to exit
gracefully.
:type exit_failure_count: str
:param continuous_exit_failure_count: Number of times the entry point
continuously failed to exit gracefully.
:type continuous_exit_failure_count: str
"""
_attribute_map = {
'last_exit_code': {'key': 'LastExitCode', 'type': 'str'},
'last_activation_time': {'key': 'LastActivationTime', 'type': 'iso-8601'},
'last_exit_time': {'key': 'LastExitTime', 'type': 'iso-8601'},
'last_successful_activation_time': {'key': 'LastSuccessfulActivationTime', 'type': 'iso-8601'},
'last_successful_exit_time': {'key': 'LastSuccessfulExitTime', 'type': 'iso-8601'},
'activation_count': {'key': 'ActivationCount', 'type': 'str'},
'activation_failure_count': {'key': 'ActivationFailureCount', 'type': 'str'},
'continuous_activation_failure_count': {'key': 'ContinuousActivationFailureCount', 'type': 'str'},
'exit_count': {'key': 'ExitCount', 'type': 'str'},
'exit_failure_count': {'key': 'ExitFailureCount', 'type': 'str'},
'continuous_exit_failure_count': {'key': 'ContinuousExitFailureCount', 'type': 'str'},
}
def __init__(self, last_exit_code=None, last_activation_time=None, last_exit_time=None, last_successful_activation_time=None, last_successful_exit_time=None, activation_count=None, activation_failure_count=None, continuous_activation_failure_count=None, exit_count=None, exit_failure_count=None, continuous_exit_failure_count=None):
self.last_exit_code = last_exit_code
self.last_activation_time = last_activation_time
self.last_exit_time = last_exit_time
self.last_successful_activation_time = last_successful_activation_time
self.last_successful_exit_time = last_successful_exit_time
self.activation_count = activation_count
self.activation_failure_count = activation_failure_count
self.continuous_activation_failure_count = continuous_activation_failure_count
self.exit_count = exit_count
self.exit_failure_count = exit_failure_count
self.continuous_exit_failure_count = continuous_exit_failure_count

Просмотреть файл

@ -0,0 +1,43 @@
# 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 ComposeDeploymentStatusInfo(Model):
"""Information about a Service Fabric compose deployment.
:param name: The name of the deployment.
:type name: str
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
:param status: The status of the compose deployment. Possible values
include: 'Invalid', 'Provisioning', 'Creating', 'Ready', 'Unprovisioning',
'Deleting', 'Failed', 'Upgrading'
:type status: str or ~azure.servicefabric.models.ComposeDeploymentStatus
:param status_details: The status details of compose deployment including
failure message.
:type status_details: str
"""
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'status': {'key': 'Status', 'type': 'str'},
'status_details': {'key': 'StatusDetails', 'type': 'str'},
}
def __init__(self, name=None, application_name=None, status=None, status_details=None):
self.name = name
self.application_name = application_name
self.status = status
self.status_details = status_details

Просмотреть файл

@ -0,0 +1,84 @@
# 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 ComposeDeploymentUpgradeDescription(Model):
"""Describes the parameters for a compose deployment upgrade.
:param deployment_name: The name of the deployment.
:type deployment_name: str
:param compose_file_content: The content of the compose file that
describes the deployment to create.
:type compose_file_content: str
:param registry_credential: Credential information to connect to container
registry.
:type registry_credential: ~azure.servicefabric.models.RegistryCredential
:param upgrade_kind: The kind of upgrade out of the following possible
values. Possible values include: 'Invalid', 'Rolling'. Default value:
"Rolling" .
:type upgrade_kind: str or ~azure.servicefabric.models.UpgradeKind
:param rolling_upgrade_mode: The mode used to monitor health during a
rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and
Monitored. Possible values include: 'Invalid', 'UnmonitoredAuto',
'UnmonitoredManual', 'Monitored'. Default value: "UnmonitoredAuto" .
:type rolling_upgrade_mode: str or ~azure.servicefabric.models.UpgradeMode
:param upgrade_replica_set_check_timeout_in_seconds: 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_in_seconds: long
: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 monitoring_policy: Describes the parameters for monitoring an
upgrade in Monitored mode.
:type monitoring_policy:
~azure.servicefabric.models.MonitoringPolicyDescription
: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.servicefabric.models.ApplicationHealthPolicy
"""
_validation = {
'deployment_name': {'required': True},
'compose_file_content': {'required': True},
'upgrade_kind': {'required': True},
}
_attribute_map = {
'deployment_name': {'key': 'DeploymentName', 'type': 'str'},
'compose_file_content': {'key': 'ComposeFileContent', 'type': 'str'},
'registry_credential': {'key': 'RegistryCredential', 'type': 'RegistryCredential'},
'upgrade_kind': {'key': 'UpgradeKind', 'type': 'str'},
'rolling_upgrade_mode': {'key': 'RollingUpgradeMode', 'type': 'str'},
'upgrade_replica_set_check_timeout_in_seconds': {'key': 'UpgradeReplicaSetCheckTimeoutInSeconds', 'type': 'long'},
'force_restart': {'key': 'ForceRestart', 'type': 'bool'},
'monitoring_policy': {'key': 'MonitoringPolicy', 'type': 'MonitoringPolicyDescription'},
'application_health_policy': {'key': 'ApplicationHealthPolicy', 'type': 'ApplicationHealthPolicy'},
}
def __init__(self, deployment_name, compose_file_content, registry_credential=None, upgrade_kind="Rolling", rolling_upgrade_mode="UnmonitoredAuto", upgrade_replica_set_check_timeout_in_seconds=None, force_restart=None, monitoring_policy=None, application_health_policy=None):
self.deployment_name = deployment_name
self.compose_file_content = compose_file_content
self.registry_credential = registry_credential
self.upgrade_kind = upgrade_kind
self.rolling_upgrade_mode = rolling_upgrade_mode
self.upgrade_replica_set_check_timeout_in_seconds = upgrade_replica_set_check_timeout_in_seconds
self.force_restart = force_restart
self.monitoring_policy = monitoring_policy
self.application_health_policy = application_health_policy

Просмотреть файл

@ -0,0 +1,147 @@
# 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 ComposeDeploymentUpgradeProgressInfo(Model):
"""Describes the parameters for a compose deployment upgrade.
:param deployment_name: The name of the target deployment.
:type deployment_name: str
:param application_name: The name of the target application, including the
'fabric:' URI scheme.
:type application_name: str
:param upgrade_state: The state of the compose deployment upgrade.
. Possible values include: 'Invalid', 'ProvisioningTarget',
'RollingForwardInProgress', 'RollingForwardPending',
'UnprovisioningCurrent', 'RollingForwardCompleted',
'RollingBackInProgress', 'UnprovisioningTarget', 'RollingBackCompleted',
'Failed'
:type upgrade_state: str or
~azure.servicefabric.models.ComposeDeploymentUpgradeState
:param upgrade_status_details: Additional detailed information about the
status of the pending upgrade.
:type upgrade_status_details: str
:param upgrade_kind: The kind of upgrade out of the following possible
values. Possible values include: 'Invalid', 'Rolling'. Default value:
"Rolling" .
:type upgrade_kind: str or ~azure.servicefabric.models.UpgradeKind
:param rolling_upgrade_mode: The mode used to monitor health during a
rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and
Monitored. Possible values include: 'Invalid', 'UnmonitoredAuto',
'UnmonitoredManual', 'Monitored'. Default value: "UnmonitoredAuto" .
:type rolling_upgrade_mode: str or ~azure.servicefabric.models.UpgradeMode
: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_in_seconds: 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_in_seconds: long
:param monitoring_policy: Describes the parameters for monitoring an
upgrade in Monitored mode.
:type monitoring_policy:
~azure.servicefabric.models.MonitoringPolicyDescription
: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.servicefabric.models.ApplicationHealthPolicy
:param target_application_type_version: The target application type
version (found in the application manifest) for the application upgrade.
:type target_application_type_version: str
:param upgrade_duration: The estimated amount of time that the overall
upgrade elapsed. 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_duration: str
:param current_upgrade_domain_duration: The estimated amount of time spent
processing current 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 current_upgrade_domain_duration: str
:param application_unhealthy_evaluations: List of health evaluations that
resulted in the current aggregated health state.
:type application_unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
:param current_upgrade_domain_progress: Information about the current
in-progress upgrade domain.
:type current_upgrade_domain_progress:
~azure.servicefabric.models.CurrentUpgradeDomainProgressInfo
:param start_timestamp_utc: The estimated UTC datetime when the upgrade
started.
:type start_timestamp_utc: str
:param failure_timestamp_utc: The estimated UTC datetime when the upgrade
failed and FailureAction was executed.
:type failure_timestamp_utc: str
:param failure_reason: The cause of an upgrade failure that resulted in
FailureAction being executed. Possible values include: 'None',
'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout',
'OverallUpgradeTimeout'
:type failure_reason: str or ~azure.servicefabric.models.FailureReason
:param upgrade_domain_progress_at_failure: Information about the upgrade
domain progress at the time of upgrade failure.
:type upgrade_domain_progress_at_failure:
~azure.servicefabric.models.FailureUpgradeDomainProgressInfo
:param application_upgrade_status_details: Additional details of
application upgrade including failure message.
:type application_upgrade_status_details: str
"""
_attribute_map = {
'deployment_name': {'key': 'DeploymentName', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'upgrade_state': {'key': 'UpgradeState', 'type': 'str'},
'upgrade_status_details': {'key': 'UpgradeStatusDetails', 'type': 'str'},
'upgrade_kind': {'key': 'UpgradeKind', 'type': 'str'},
'rolling_upgrade_mode': {'key': 'RollingUpgradeMode', 'type': 'str'},
'force_restart': {'key': 'ForceRestart', 'type': 'bool'},
'upgrade_replica_set_check_timeout_in_seconds': {'key': 'UpgradeReplicaSetCheckTimeoutInSeconds', 'type': 'long'},
'monitoring_policy': {'key': 'MonitoringPolicy', 'type': 'MonitoringPolicyDescription'},
'application_health_policy': {'key': 'ApplicationHealthPolicy', 'type': 'ApplicationHealthPolicy'},
'target_application_type_version': {'key': 'TargetApplicationTypeVersion', 'type': 'str'},
'upgrade_duration': {'key': 'UpgradeDuration', 'type': 'str'},
'current_upgrade_domain_duration': {'key': 'CurrentUpgradeDomainDuration', 'type': 'str'},
'application_unhealthy_evaluations': {'key': 'ApplicationUnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
'current_upgrade_domain_progress': {'key': 'CurrentUpgradeDomainProgress', 'type': 'CurrentUpgradeDomainProgressInfo'},
'start_timestamp_utc': {'key': 'StartTimestampUtc', 'type': 'str'},
'failure_timestamp_utc': {'key': 'FailureTimestampUtc', 'type': 'str'},
'failure_reason': {'key': 'FailureReason', 'type': 'str'},
'upgrade_domain_progress_at_failure': {'key': 'UpgradeDomainProgressAtFailure', 'type': 'FailureUpgradeDomainProgressInfo'},
'application_upgrade_status_details': {'key': 'ApplicationUpgradeStatusDetails', 'type': 'str'},
}
def __init__(self, deployment_name=None, application_name=None, upgrade_state=None, upgrade_status_details=None, upgrade_kind="Rolling", rolling_upgrade_mode="UnmonitoredAuto", force_restart=None, upgrade_replica_set_check_timeout_in_seconds=None, monitoring_policy=None, application_health_policy=None, target_application_type_version=None, upgrade_duration=None, current_upgrade_domain_duration=None, application_unhealthy_evaluations=None, current_upgrade_domain_progress=None, start_timestamp_utc=None, failure_timestamp_utc=None, failure_reason=None, upgrade_domain_progress_at_failure=None, application_upgrade_status_details=None):
self.deployment_name = deployment_name
self.application_name = application_name
self.upgrade_state = upgrade_state
self.upgrade_status_details = upgrade_status_details
self.upgrade_kind = upgrade_kind
self.rolling_upgrade_mode = rolling_upgrade_mode
self.force_restart = force_restart
self.upgrade_replica_set_check_timeout_in_seconds = upgrade_replica_set_check_timeout_in_seconds
self.monitoring_policy = monitoring_policy
self.application_health_policy = application_health_policy
self.target_application_type_version = target_application_type_version
self.upgrade_duration = upgrade_duration
self.current_upgrade_domain_duration = current_upgrade_domain_duration
self.application_unhealthy_evaluations = application_unhealthy_evaluations
self.current_upgrade_domain_progress = current_upgrade_domain_progress
self.start_timestamp_utc = start_timestamp_utc
self.failure_timestamp_utc = failure_timestamp_utc
self.failure_reason = failure_reason
self.upgrade_domain_progress_at_failure = upgrade_domain_progress_at_failure
self.application_upgrade_status_details = application_upgrade_status_details

Просмотреть файл

@ -0,0 +1,37 @@
# 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 .fabric_event import FabricEvent
class ContainerEvent(FabricEvent):
"""Represents the base for all Container Events.
:param event_instance_id: The identifier for the FabricEvent instance.
:type event_instance_id: str
:param time_stamp: The time event was logged.
:type time_stamp: datetime
:param has_correlated_events: Shows that there is existing related events
available.
:type has_correlated_events: bool
:param kind: Constant filled by server.
:type kind: str
"""
_validation = {
'event_instance_id': {'required': True},
'time_stamp': {'required': True},
'kind': {'required': True},
}
def __init__(self, event_instance_id, time_stamp, has_correlated_events=None):
super(ContainerEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events)
self.kind = 'ContainerEvent'

Просмотреть файл

@ -0,0 +1,27 @@
# 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 ContainerLogs(Model):
"""Container logs.
:param content: Container logs.
:type content: str
"""
_attribute_map = {
'content': {'key': 'Content', 'type': 'str'},
}
def __init__(self, content=None):
self.content = content

Просмотреть файл

@ -0,0 +1,43 @@
# 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 CreateComposeDeploymentDescription(Model):
"""Defines description for creating a Service Fabric compose deployment.
.
:param deployment_name: The name of the deployment.
:type deployment_name: str
:param compose_file_content: The content of the compose file that
describes the deployment to create.
:type compose_file_content: str
:param registry_credential: Credential information to connect to container
registry.
:type registry_credential: ~azure.servicefabric.models.RegistryCredential
"""
_validation = {
'deployment_name': {'required': True},
'compose_file_content': {'required': True},
}
_attribute_map = {
'deployment_name': {'key': 'DeploymentName', 'type': 'str'},
'compose_file_content': {'key': 'ComposeFileContent', 'type': 'str'},
'registry_credential': {'key': 'RegistryCredential', 'type': 'RegistryCredential'},
}
def __init__(self, deployment_name, compose_file_content, registry_credential=None):
self.deployment_name = deployment_name
self.compose_file_content = compose_file_content
self.registry_credential = registry_credential

Просмотреть файл

@ -0,0 +1,33 @@
# 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 CurrentUpgradeDomainProgressInfo(Model):
"""Information about the current in-progress upgrade domain.
:param domain_name: The name of the upgrade domain
:type domain_name: str
:param node_upgrade_progress_list: List of upgrading nodes and their
statuses
:type node_upgrade_progress_list:
list[~azure.servicefabric.models.NodeUpgradeProgressInfo]
"""
_attribute_map = {
'domain_name': {'key': 'DomainName', 'type': 'str'},
'node_upgrade_progress_list': {'key': 'NodeUpgradeProgressList', 'type': '[NodeUpgradeProgressInfo]'},
}
def __init__(self, domain_name=None, node_upgrade_progress_list=None):
self.domain_name = domain_name
self.node_upgrade_progress_list = node_upgrade_progress_list

Просмотреть файл

@ -0,0 +1,30 @@
# 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 DeactivationIntentDescription(Model):
"""Describes the intent or reason for deactivating the node.
:param deactivation_intent: Describes the intent or reason for
deactivating the node. The possible values are following.
. Possible values include: 'Pause', 'Restart', 'RemoveData'
:type deactivation_intent: str or
~azure.servicefabric.models.DeactivationIntent
"""
_attribute_map = {
'deactivation_intent': {'key': 'DeactivationIntent', 'type': 'str'},
}
def __init__(self, deactivation_intent=None):
self.deactivation_intent = deactivation_intent

Просмотреть файл

@ -0,0 +1,35 @@
# 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 .property_batch_operation import PropertyBatchOperation
class DeletePropertyBatchOperation(PropertyBatchOperation):
"""Represents a PropertyBatchOperation that deletes a specified property if it
exists.
Note that if one PropertyBatchOperation in a PropertyBatch fails,
the entire batch fails and cannot be committed in a transactional manner.
.
:param property_name: The name of the Service Fabric property.
:type property_name: str
:param kind: Constant filled by server.
:type kind: str
"""
_validation = {
'property_name': {'required': True},
'kind': {'required': True},
}
def __init__(self, property_name):
super(DeletePropertyBatchOperation, self).__init__(property_name=property_name)
self.kind = 'Delete'

Просмотреть файл

@ -0,0 +1,74 @@
# 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 .health_evaluation import HealthEvaluation
class DeltaNodesCheckHealthEvaluation(HealthEvaluation):
"""Represents health evaluation for delta nodes, containing health evaluations
for each unhealthy node that impacted current aggregated health state.
Can be returned during cluster upgrade when the aggregated health state of
the cluster is Warning or Error.
.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param description: Description of the health evaluation, which represents
a summary of the evaluation process.
:type description: str
:param kind: Constant filled by server.
:type kind: str
:param baseline_error_count: Number of nodes with aggregated heath state
Error in the health store at the beginning of the cluster upgrade.
:type baseline_error_count: long
:param baseline_total_count: Total number of nodes in the health store at
the beginning of the cluster upgrade.
:type baseline_total_count: long
:param max_percent_delta_unhealthy_nodes: Maximum allowed percentage of
delta unhealthy nodes from the ClusterUpgradeHealthPolicy.
:type max_percent_delta_unhealthy_nodes: int
:param total_count: Total number of nodes in the health store.
:type total_count: long
:param unhealthy_evaluations: List of unhealthy evaluations that led to
the aggregated health state.
Includes all the unhealthy NodeHealthEvaluation that impacted the
aggregated health.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'description': {'key': 'Description', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'baseline_error_count': {'key': 'BaselineErrorCount', 'type': 'long'},
'baseline_total_count': {'key': 'BaselineTotalCount', 'type': 'long'},
'max_percent_delta_unhealthy_nodes': {'key': 'MaxPercentDeltaUnhealthyNodes', 'type': 'int'},
'total_count': {'key': 'TotalCount', 'type': 'long'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
}
def __init__(self, aggregated_health_state=None, description=None, baseline_error_count=None, baseline_total_count=None, max_percent_delta_unhealthy_nodes=None, total_count=None, unhealthy_evaluations=None):
super(DeltaNodesCheckHealthEvaluation, self).__init__(aggregated_health_state=aggregated_health_state, description=description)
self.baseline_error_count = baseline_error_count
self.baseline_total_count = baseline_total_count
self.max_percent_delta_unhealthy_nodes = max_percent_delta_unhealthy_nodes
self.total_count = total_count
self.unhealthy_evaluations = unhealthy_evaluations
self.kind = 'DeltaNodesCheck'

Просмотреть файл

@ -0,0 +1,56 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class DeployServicePackageToNodeDescription(Model):
"""Defines description for downloading packages associated with a service
manifest to image cache on a Service Fabric node.
.
:param service_manifest_name: The name of service manifest whose packages
need to be downloaded.
:type service_manifest_name: str
:param application_type_name: The application type name as defined in the
application manifest.
:type application_type_name: str
:param application_type_version: The version of the application type as
defined in the application manifest.
:type application_type_version: str
:param node_name: The name of a Service Fabric node.
:type node_name: str
:param package_sharing_policy: List of package sharing policy information.
:type package_sharing_policy:
list[~azure.servicefabric.models.PackageSharingPolicyInfo]
"""
_validation = {
'service_manifest_name': {'required': True},
'application_type_name': {'required': True},
'application_type_version': {'required': True},
'node_name': {'required': True},
}
_attribute_map = {
'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'},
'application_type_name': {'key': 'ApplicationTypeName', 'type': 'str'},
'application_type_version': {'key': 'ApplicationTypeVersion', 'type': 'str'},
'node_name': {'key': 'NodeName', 'type': 'str'},
'package_sharing_policy': {'key': 'PackageSharingPolicy', 'type': '[PackageSharingPolicyInfo]'},
}
def __init__(self, service_manifest_name, application_type_name, application_type_version, node_name, package_sharing_policy=None):
self.service_manifest_name = service_manifest_name
self.application_type_name = application_type_name
self.application_type_version = application_type_version
self.node_name = node_name
self.package_sharing_policy = package_sharing_policy

Просмотреть файл

@ -0,0 +1,62 @@
# 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 .entity_health import EntityHealth
class DeployedApplicationHealth(EntityHealth):
"""Information about the health of an application deployed on a Service Fabric
node.
:param aggregated_health_state: The HealthState representing the
aggregated health state of the entity computed by Health Manager.
The health evaluation of the entity reflects all events reported on the
entity and its children (if any).
The aggregation is done by applying the desired health policy.
. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param health_events: The list of health events reported on the entity.
:type health_events: list[~azure.servicefabric.models.HealthEvent]
:param unhealthy_evaluations: The unhealthy evaluations that show why the
current aggregated health state was returned by Health Manager.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
:param health_statistics: Shows the health statistics for all children
types of the queried entity.
:type health_statistics: ~azure.servicefabric.models.HealthStatistics
:param name: Name of the application deployed on the node whose health
information is described by this object.
:type name: str
:param node_name: Name of the node where this application is deployed.
:type node_name: str
:param deployed_service_package_health_states: Deployed service package
health states for the current deployed application as found in the health
store.
:type deployed_service_package_health_states:
list[~azure.servicefabric.models.DeployedServicePackageHealthState]
"""
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'health_events': {'key': 'HealthEvents', 'type': '[HealthEvent]'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
'health_statistics': {'key': 'HealthStatistics', 'type': 'HealthStatistics'},
'name': {'key': 'Name', 'type': 'str'},
'node_name': {'key': 'NodeName', 'type': 'str'},
'deployed_service_package_health_states': {'key': 'DeployedServicePackageHealthStates', 'type': '[DeployedServicePackageHealthState]'},
}
def __init__(self, aggregated_health_state=None, health_events=None, unhealthy_evaluations=None, health_statistics=None, name=None, node_name=None, deployed_service_package_health_states=None):
super(DeployedApplicationHealth, self).__init__(aggregated_health_state=aggregated_health_state, health_events=health_events, unhealthy_evaluations=unhealthy_evaluations, health_statistics=health_statistics)
self.name = name
self.node_name = node_name
self.deployed_service_package_health_states = deployed_service_package_health_states

Просмотреть файл

@ -0,0 +1,63 @@
# 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 .health_evaluation import HealthEvaluation
class DeployedApplicationHealthEvaluation(HealthEvaluation):
"""Represents health evaluation for a deployed application, containing
information about the data and the algorithm used by the health store to
evaluate health.
.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param description: Description of the health evaluation, which represents
a summary of the evaluation process.
:type description: str
:param kind: Constant filled by server.
:type kind: str
:param node_name: Name of the node where the application is deployed to.
:type node_name: str
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
:param unhealthy_evaluations: List of unhealthy evaluations that led to
the current aggregated health state of the deployed application.
The types of the unhealthy evaluations can be
DeployedServicePackagesHealthEvaluation or EventHealthEvaluation.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'description': {'key': 'Description', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'node_name': {'key': 'NodeName', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
}
def __init__(self, aggregated_health_state=None, description=None, node_name=None, application_name=None, unhealthy_evaluations=None):
super(DeployedApplicationHealthEvaluation, self).__init__(aggregated_health_state=aggregated_health_state, description=description)
self.node_name = node_name
self.application_name = application_name
self.unhealthy_evaluations = unhealthy_evaluations
self.kind = 'DeployedApplication'

Просмотреть файл

@ -0,0 +1,42 @@
# 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 .entity_health_state import EntityHealthState
class DeployedApplicationHealthState(EntityHealthState):
"""Represents the health state of a deployed application, which contains the
entity identifier and the aggregated health state.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param node_name: Name of the node on which the service package is
deployed.
:type node_name: str
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
"""
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'node_name': {'key': 'NodeName', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
}
def __init__(self, aggregated_health_state=None, node_name=None, application_name=None):
super(DeployedApplicationHealthState, self).__init__(aggregated_health_state=aggregated_health_state)
self.node_name = node_name
self.application_name = application_name

Просмотреть файл

@ -0,0 +1,44 @@
# 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 .entity_health_state_chunk import EntityHealthStateChunk
class DeployedApplicationHealthStateChunk(EntityHealthStateChunk):
"""Represents the health state chunk of a deployed application, which contains
the node where the application is deployed, the aggregated health state and
any deployed service packages that respect the chunk query description
filters.
.
:param health_state: The health state of a Service Fabric entity such as
Cluster, Node, Application, Service, Partition, Replica etc. Possible
values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type health_state: str or ~azure.servicefabric.models.HealthState
:param node_name: The name of node where the application is deployed.
:type node_name: str
:param deployed_service_package_health_state_chunks: The list of deployed
service package health state chunks belonging to the deployed application
that respect the filters in the cluster health chunk query description.
:type deployed_service_package_health_state_chunks:
~azure.servicefabric.models.DeployedServicePackageHealthStateChunkList
"""
_attribute_map = {
'health_state': {'key': 'HealthState', 'type': 'str'},
'node_name': {'key': 'NodeName', 'type': 'str'},
'deployed_service_package_health_state_chunks': {'key': 'DeployedServicePackageHealthStateChunks', 'type': 'DeployedServicePackageHealthStateChunkList'},
}
def __init__(self, health_state=None, node_name=None, deployed_service_package_health_state_chunks=None):
super(DeployedApplicationHealthStateChunk, self).__init__(health_state=health_state)
self.node_name = node_name
self.deployed_service_package_health_state_chunks = deployed_service_package_health_state_chunks

Просмотреть файл

@ -0,0 +1,32 @@
# 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 DeployedApplicationHealthStateChunkList(Model):
"""The list of deployed application health state chunks that respect the input
filters in the chunk query. Returned by get cluster health state chunks
query.
.
:param items: The list of deployed application health state chunks that
respect the input filters in the chunk query.
:type items:
list[~azure.servicefabric.models.DeployedApplicationHealthStateChunk]
"""
_attribute_map = {
'items': {'key': 'Items', 'type': '[DeployedApplicationHealthStateChunk]'},
}
def __init__(self, items=None):
self.items = items

Просмотреть файл

@ -0,0 +1,91 @@
# 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 DeployedApplicationHealthStateFilter(Model):
"""Defines matching criteria to determine whether a deployed application
should be included as a child of an application in the cluster health
chunk.
The deployed applications are only returned if the parent application
matches a filter specified in the cluster health chunk query description.
One filter can match zero, one or multiple deployed applications, depending
on its properties.
.
:param node_name_filter: The name of the node where the application is
deployed in order to match the filter.
If specified, the filter is applied only to the application deployed on
the specified node.
If the application is not deployed on the node with the specified name, no
deployed application is returned in the cluster health chunk based on this
filter.
Otherwise, the deployed application is included in the cluster health
chunk if it respects the other filter properties.
If not specified, all deployed applications that match the parent filters
(if any) are taken into consideration and matched against the other filter
members, like health state filter.
:type node_name_filter: str
:param health_state_filter: The filter for the health state of the
deployed applications. It allows selecting deployed applications if they
match the desired health states.
The possible values are integer value of one of the following health
states. Only deployed applications that match the filter are returned. All
deployed applications are used to evaluate the cluster aggregated health
state.
If not specified, default value is None, unless the node name is
specified. If the filter has default value and node name is specified, the
matching deployed application is returned.
The state values are flag based enumeration, so the value could be a
combination of these values obtained using bitwise 'OR' operator.
For example, if the provided value is 6, it matches deployed applications
with HealthState value of OK (2) and Warning (4).
- Default - Default value. Matches any HealthState. The value is zero.
- None - Filter that doesn't match any HealthState value. Used in order to
return no results on a given collection of states. The value is 1.
- Ok - Filter that matches input with HealthState value Ok. The value is
2.
- Warning - Filter that matches input with HealthState value Warning. The
value is 4.
- Error - Filter that matches input with HealthState value Error. The
value is 8.
- All - Filter that matches input with any HealthState value. The value is
65535.
. Default value: 0 .
:type health_state_filter: int
:param deployed_service_package_filters: Defines a list of filters that
specify which deployed service packages to be included in the returned
cluster health chunk as children of the parent deployed application. The
deployed service packages are returned only if the parent deployed
application matches a filter.
If the list is empty, no deployed service packages are returned. All the
deployed service packages are used to evaluate the parent deployed
application aggregated health state, regardless of the input filters.
The deployed application filter may specify multiple deployed service
package filters.
For example, it can specify a filter to return all deployed service
packages with health state Error and another filter to always include a
deployed service package on a node.
:type deployed_service_package_filters:
list[~azure.servicefabric.models.DeployedServicePackageHealthStateFilter]
"""
_attribute_map = {
'node_name_filter': {'key': 'NodeNameFilter', 'type': 'str'},
'health_state_filter': {'key': 'HealthStateFilter', 'type': 'int'},
'deployed_service_package_filters': {'key': 'DeployedServicePackageFilters', 'type': '[DeployedServicePackageHealthStateFilter]'},
}
def __init__(self, node_name_filter=None, health_state_filter=0, deployed_service_package_filters=None):
self.node_name_filter = node_name_filter
self.health_state_filter = health_state_filter
self.deployed_service_package_filters = deployed_service_package_filters

Просмотреть файл

@ -0,0 +1,72 @@
# 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 DeployedApplicationInfo(Model):
"""Information about application deployed on the node.
:param id: The identity of the application. This is an encoded
representation of the application name. This is used in the REST APIs to
identify the application resource.
Starting in version 6.0, hierarchical names are delimited with the "\\~"
character. For example, if the application name is "fabric:/myapp/app1",
the application identity would be "myapp\\~app1" in 6.0+ and "myapp/app1"
in previous versions.
:type id: str
:param name: The name of the application, including the 'fabric:' URI
scheme.
:type name: str
:param type_name: The application type name as defined in the application
manifest.
:type type_name: str
:param status: The status of the application deployed on the node.
Following are the possible values.
. Possible values include: 'Invalid', 'Downloading', 'Activating',
'Active', 'Upgrading', 'Deactivating'
:type status: str or ~azure.servicefabric.models.DeployedApplicationStatus
:param work_directory: The work directory of the application on the node.
The work directory can be used to store application data.
:type work_directory: str
:param log_directory: The log directory of the application on the node.
The log directory can be used to store application logs.
:type log_directory: str
:param temp_directory: The temp directory of the application on the node.
The code packages belonging to the application are forked with this
directory set as their temporary directory.
:type temp_directory: str
:param health_state: The health state of a Service Fabric entity such as
Cluster, Node, Application, Service, Partition, Replica etc. Possible
values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type health_state: str or ~azure.servicefabric.models.HealthState
"""
_attribute_map = {
'id': {'key': 'Id', 'type': 'str'},
'name': {'key': 'Name', 'type': 'str'},
'type_name': {'key': 'TypeName', 'type': 'str'},
'status': {'key': 'Status', 'type': 'str'},
'work_directory': {'key': 'WorkDirectory', 'type': 'str'},
'log_directory': {'key': 'LogDirectory', 'type': 'str'},
'temp_directory': {'key': 'TempDirectory', 'type': 'str'},
'health_state': {'key': 'HealthState', 'type': 'str'},
}
def __init__(self, id=None, name=None, type_name=None, status=None, work_directory=None, log_directory=None, temp_directory=None, health_state=None):
self.id = id
self.name = name
self.type_name = type_name
self.status = status
self.work_directory = work_directory
self.log_directory = log_directory
self.temp_directory = temp_directory
self.health_state = health_state

Просмотреть файл

@ -0,0 +1,66 @@
# 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 .health_evaluation import HealthEvaluation
class DeployedApplicationsHealthEvaluation(HealthEvaluation):
"""Represents health evaluation for deployed applications, containing health
evaluations for each unhealthy deployed application that impacted current
aggregated health state.
Can be returned when evaluating application health and the aggregated
health state is either Error or Warning.
.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param description: Description of the health evaluation, which represents
a summary of the evaluation process.
:type description: str
:param kind: Constant filled by server.
:type kind: str
:param max_percent_unhealthy_deployed_applications: Maximum allowed
percentage of unhealthy deployed applications from the
ApplicationHealthPolicy.
:type max_percent_unhealthy_deployed_applications: int
:param total_count: Total number of deployed applications of the
application in the health store.
:type total_count: long
:param unhealthy_evaluations: List of unhealthy evaluations that led to
the aggregated health state. Includes all the unhealthy
DeployedApplicationHealthEvaluation that impacted the aggregated health.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'description': {'key': 'Description', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'max_percent_unhealthy_deployed_applications': {'key': 'MaxPercentUnhealthyDeployedApplications', 'type': 'int'},
'total_count': {'key': 'TotalCount', 'type': 'long'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
}
def __init__(self, aggregated_health_state=None, description=None, max_percent_unhealthy_deployed_applications=None, total_count=None, unhealthy_evaluations=None):
super(DeployedApplicationsHealthEvaluation, self).__init__(aggregated_health_state=aggregated_health_state, description=description)
self.max_percent_unhealthy_deployed_applications = max_percent_unhealthy_deployed_applications
self.total_count = total_count
self.unhealthy_evaluations = unhealthy_evaluations
self.kind = 'DeployedApplications'

Просмотреть файл

@ -0,0 +1,83 @@
# 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 DeployedCodePackageInfo(Model):
"""Information about code package deployed on a Service Fabric node.
:param name: The name of the code package.
:type name: str
:param version: The version of the code package specified in service
manifest.
:type version: str
:param service_manifest_name: The name of service manifest that specified
this code package.
:type service_manifest_name: str
:param service_package_activation_id: The ActivationId of a deployed
service package. If ServicePackageActivationMode specified at the time of
creating the service
is 'SharedProcess' (or if it is not specified, in which case it defaults
to 'SharedProcess'), then value of ServicePackageActivationId
is always an empty string.
:type service_package_activation_id: str
:param host_type: Specifies the type of host for main entry point of a
code package as specified in service manifest. Possible values include:
'Invalid', 'ExeHost', 'ContainerHost'
:type host_type: str or ~azure.servicefabric.models.HostType
:param host_isolation_mode: Specifies the isolation mode of main entry
point of a code package when it's host type is ContainerHost. This is
specified as part of container host policies in application manifest while
importing service manifest. Possible values include: 'None', 'Process',
'HyperV'
:type host_isolation_mode: str or
~azure.servicefabric.models.HostIsolationMode
:param status: Specifies the status of a deployed application or service
package on a Service Fabric node.
. Possible values include: 'Invalid', 'Downloading', 'Activating',
'Active', 'Upgrading', 'Deactivating'
:type status: str or ~azure.servicefabric.models.DeploymentStatus
:param run_frequency_interval: The interval at which code package is run.
This is used for periodic code package.
:type run_frequency_interval: str
:param setup_entry_point: Information about setup or main entry point of a
code package deployed on a Service Fabric node.
:type setup_entry_point: ~azure.servicefabric.models.CodePackageEntryPoint
:param main_entry_point: Information about setup or main entry point of a
code package deployed on a Service Fabric node.
:type main_entry_point: ~azure.servicefabric.models.CodePackageEntryPoint
"""
_attribute_map = {
'name': {'key': 'Name', 'type': 'str'},
'version': {'key': 'Version', 'type': 'str'},
'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'},
'service_package_activation_id': {'key': 'ServicePackageActivationId', 'type': 'str'},
'host_type': {'key': 'HostType', 'type': 'str'},
'host_isolation_mode': {'key': 'HostIsolationMode', 'type': 'str'},
'status': {'key': 'Status', 'type': 'str'},
'run_frequency_interval': {'key': 'RunFrequencyInterval', 'type': 'str'},
'setup_entry_point': {'key': 'SetupEntryPoint', 'type': 'CodePackageEntryPoint'},
'main_entry_point': {'key': 'MainEntryPoint', 'type': 'CodePackageEntryPoint'},
}
def __init__(self, name=None, version=None, service_manifest_name=None, service_package_activation_id=None, host_type=None, host_isolation_mode=None, status=None, run_frequency_interval=None, setup_entry_point=None, main_entry_point=None):
self.name = name
self.version = version
self.service_manifest_name = service_manifest_name
self.service_package_activation_id = service_package_activation_id
self.host_type = host_type
self.host_isolation_mode = host_isolation_mode
self.status = status
self.run_frequency_interval = run_frequency_interval
self.setup_entry_point = setup_entry_point
self.main_entry_point = main_entry_point

Просмотреть файл

@ -0,0 +1,59 @@
# 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 .entity_health import EntityHealth
class DeployedServicePackageHealth(EntityHealth):
"""Information about the health of a service package for a specific
application deployed on a Service Fabric node.
:param aggregated_health_state: The HealthState representing the
aggregated health state of the entity computed by Health Manager.
The health evaluation of the entity reflects all events reported on the
entity and its children (if any).
The aggregation is done by applying the desired health policy.
. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param health_events: The list of health events reported on the entity.
:type health_events: list[~azure.servicefabric.models.HealthEvent]
:param unhealthy_evaluations: The unhealthy evaluations that show why the
current aggregated health state was returned by Health Manager.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
:param health_statistics: Shows the health statistics for all children
types of the queried entity.
:type health_statistics: ~azure.servicefabric.models.HealthStatistics
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
:param service_manifest_name: Name of the service manifest.
:type service_manifest_name: str
:param node_name: Name of the node where this service package is deployed.
:type node_name: str
"""
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'health_events': {'key': 'HealthEvents', 'type': '[HealthEvent]'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
'health_statistics': {'key': 'HealthStatistics', 'type': 'HealthStatistics'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'},
'node_name': {'key': 'NodeName', 'type': 'str'},
}
def __init__(self, aggregated_health_state=None, health_events=None, unhealthy_evaluations=None, health_statistics=None, application_name=None, service_manifest_name=None, node_name=None):
super(DeployedServicePackageHealth, self).__init__(aggregated_health_state=aggregated_health_state, health_events=health_events, unhealthy_evaluations=unhealthy_evaluations, health_statistics=health_statistics)
self.application_name = application_name
self.service_manifest_name = service_manifest_name
self.node_name = node_name

Просмотреть файл

@ -0,0 +1,66 @@
# 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 .health_evaluation import HealthEvaluation
class DeployedServicePackageHealthEvaluation(HealthEvaluation):
"""Represents health evaluation for a deployed service package, containing
information about the data and the algorithm used by health store to
evaluate health. The evaluation is returned only when the aggregated health
state is either Error or Warning.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param description: Description of the health evaluation, which represents
a summary of the evaluation process.
:type description: str
:param kind: Constant filled by server.
:type kind: str
:param node_name: The name of a Service Fabric node.
:type node_name: str
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
:param service_manifest_name: The name of the service manifest.
:type service_manifest_name: str
:param unhealthy_evaluations: List of unhealthy evaluations that led to
the current aggregated health state. The type of the unhealthy evaluations
can be EventHealthEvaluation.
:type unhealthy_evaluations:
list[~azure.servicefabric.models.HealthEvaluationWrapper]
"""
_validation = {
'kind': {'required': True},
}
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'description': {'key': 'Description', 'type': 'str'},
'kind': {'key': 'Kind', 'type': 'str'},
'node_name': {'key': 'NodeName', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'},
'unhealthy_evaluations': {'key': 'UnhealthyEvaluations', 'type': '[HealthEvaluationWrapper]'},
}
def __init__(self, aggregated_health_state=None, description=None, node_name=None, application_name=None, service_manifest_name=None, unhealthy_evaluations=None):
super(DeployedServicePackageHealthEvaluation, self).__init__(aggregated_health_state=aggregated_health_state, description=description)
self.node_name = node_name
self.application_name = application_name
self.service_manifest_name = service_manifest_name
self.unhealthy_evaluations = unhealthy_evaluations
self.kind = 'DeployedServicePackage'

Просмотреть файл

@ -0,0 +1,56 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .entity_health_state import EntityHealthState
class DeployedServicePackageHealthState(EntityHealthState):
"""Represents the health state of a deployed service package, containing the
entity identifier and the aggregated health state.
:param aggregated_health_state: The health state of a Service Fabric
entity such as Cluster, Node, Application, Service, Partition, Replica
etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error',
'Unknown'
:type aggregated_health_state: str or
~azure.servicefabric.models.HealthState
:param node_name: Name of the node on which the service package is
deployed.
:type node_name: str
:param application_name: The name of the application, including the
'fabric:' URI scheme.
:type application_name: str
:param service_manifest_name: Name of the manifest describing the service
package.
:type service_manifest_name: str
:param service_package_activation_id: The ActivationId of a deployed
service package. If ServicePackageActivationMode specified at the time of
creating the service
is 'SharedProcess' (or if it is not specified, in which case it defaults
to 'SharedProcess'), then value of ServicePackageActivationId
is always an empty string.
:type service_package_activation_id: str
"""
_attribute_map = {
'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'},
'node_name': {'key': 'NodeName', 'type': 'str'},
'application_name': {'key': 'ApplicationName', 'type': 'str'},
'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'},
'service_package_activation_id': {'key': 'ServicePackageActivationId', 'type': 'str'},
}
def __init__(self, aggregated_health_state=None, node_name=None, application_name=None, service_manifest_name=None, service_package_activation_id=None):
super(DeployedServicePackageHealthState, self).__init__(aggregated_health_state=aggregated_health_state)
self.node_name = node_name
self.application_name = application_name
self.service_manifest_name = service_manifest_name
self.service_package_activation_id = service_package_activation_id

Просмотреть файл

@ -0,0 +1,45 @@
# 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 .entity_health_state_chunk import EntityHealthStateChunk
class DeployedServicePackageHealthStateChunk(EntityHealthStateChunk):
"""Represents the health state chunk of a deployed service package, which
contains the service manifest name and the service package aggregated
health state.
.
:param health_state: The health state of a Service Fabric entity such as
Cluster, Node, Application, Service, Partition, Replica etc. Possible
values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
:type health_state: str or ~azure.servicefabric.models.HealthState
:param service_manifest_name: The name of the service manifest.
:type service_manifest_name: str
:param service_package_activation_id: The ActivationId of a deployed
service package. If ServicePackageActivationMode specified at the time of
creating the service
is 'SharedProcess' (or if it is not specified, in which case it defaults
to 'SharedProcess'), then value of ServicePackageActivationId
is always an empty string.
:type service_package_activation_id: str
"""
_attribute_map = {
'health_state': {'key': 'HealthState', 'type': 'str'},
'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'},
'service_package_activation_id': {'key': 'ServicePackageActivationId', 'type': 'str'},
}
def __init__(self, health_state=None, service_manifest_name=None, service_package_activation_id=None):
super(DeployedServicePackageHealthStateChunk, self).__init__(health_state=health_state)
self.service_manifest_name = service_manifest_name
self.service_package_activation_id = service_package_activation_id

Просмотреть файл

@ -0,0 +1,32 @@
# 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 DeployedServicePackageHealthStateChunkList(Model):
"""The list of deployed service package health state chunks that respect the
input filters in the chunk query. Returned by get cluster health state
chunks query.
.
:param items: The list of deployed service package health state chunks
that respect the input filters in the chunk query.
:type items:
list[~azure.servicefabric.models.DeployedServicePackageHealthStateChunk]
"""
_attribute_map = {
'items': {'key': 'Items', 'type': '[DeployedServicePackageHealthStateChunk]'},
}
def __init__(self, items=None):
self.items = items

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше