diff --git a/azure-servicefabric/azure/servicefabric/models/__init__.py b/azure-servicefabric/azure/servicefabric/models/__init__.py index 56974bfbcdda..dc2cb2fd10fb 100644 --- a/azure-servicefabric/azure/servicefabric/models/__init__.py +++ b/azure-servicefabric/azure/servicefabric/models/__init__.py @@ -423,6 +423,31 @@ from .chaos_move_primary_fault_scheduled_event_py3 import ChaosMovePrimaryFaultScheduledEvent from .chaos_restart_replica_fault_scheduled_event_py3 import ChaosRestartReplicaFaultScheduledEvent from .chaos_restart_node_fault_scheduled_event_py3 import ChaosRestartNodeFaultScheduledEvent + from .service_resource_description_py3 import ServiceResourceDescription + from .diagnostics_sink_properties_py3 import DiagnosticsSinkProperties + from .diagnostics_description_py3 import DiagnosticsDescription + from .application_resource_description_py3 import ApplicationResourceDescription + from .paged_service_resource_description_list_py3 import PagedServiceResourceDescriptionList + from .service_resource_replica_description_py3 import ServiceResourceReplicaDescription + from .paged_service_resource_replica_description_list_py3 import PagedServiceResourceReplicaDescriptionList + from .volume_provider_parameters_azure_file_py3 import VolumeProviderParametersAzureFile + from .volume_resource_description_py3 import VolumeResourceDescription + from .image_registry_credential_py3 import ImageRegistryCredential + from .environment_variable_py3 import EnvironmentVariable + from .setting_py3 import Setting + from .container_label_py3 import ContainerLabel + from .endpoint_properties_py3 import EndpointProperties + from .resource_requests_py3 import ResourceRequests + from .resource_limits_py3 import ResourceLimits + from .resource_requirements_py3 import ResourceRequirements + from .container_volume_py3 import ContainerVolume + from .container_state_py3 import ContainerState + from .container_event_py3 import ContainerEvent + from .container_instance_view_py3 import ContainerInstanceView + from .diagnostics_ref_py3 import DiagnosticsRef + from .container_code_package_properties_py3 import ContainerCodePackageProperties + from .network_ref_py3 import NetworkRef + from .service_replica_properties_py3 import ServiceReplicaProperties except (SyntaxError, ImportError): from .aad_metadata import AadMetadata from .aad_metadata_object import AadMetadataObject @@ -837,6 +862,31 @@ from .chaos_move_primary_fault_scheduled_event import ChaosMovePrimaryFaultScheduledEvent from .chaos_restart_replica_fault_scheduled_event import ChaosRestartReplicaFaultScheduledEvent from .chaos_restart_node_fault_scheduled_event import ChaosRestartNodeFaultScheduledEvent + from .service_resource_description import ServiceResourceDescription + from .diagnostics_sink_properties import DiagnosticsSinkProperties + from .diagnostics_description import DiagnosticsDescription + from .application_resource_description import ApplicationResourceDescription + from .paged_service_resource_description_list import PagedServiceResourceDescriptionList + from .service_resource_replica_description import ServiceResourceReplicaDescription + from .paged_service_resource_replica_description_list import PagedServiceResourceReplicaDescriptionList + from .volume_provider_parameters_azure_file import VolumeProviderParametersAzureFile + from .volume_resource_description import VolumeResourceDescription + from .image_registry_credential import ImageRegistryCredential + from .environment_variable import EnvironmentVariable + from .setting import Setting + from .container_label import ContainerLabel + from .endpoint_properties import EndpointProperties + from .resource_requests import ResourceRequests + from .resource_limits import ResourceLimits + from .resource_requirements import ResourceRequirements + from .container_volume import ContainerVolume + from .container_state import ContainerState + from .container_event import ContainerEvent + from .container_instance_view import ContainerInstanceView + from .diagnostics_ref import DiagnosticsRef + from .container_code_package_properties import ContainerCodePackageProperties + from .network_ref import NetworkRef + from .service_replica_properties import ServiceReplicaProperties from .service_fabric_client_ap_is_enums import ( ApplicationDefinitionKind, HealthState, @@ -919,6 +969,10 @@ RepairTaskHealthCheckState, ScalingTriggerKind, ScalingMechanismKind, + ServiceResourceStatus, + ApplicationResourceStatus, + DiagnosticsSinkKind, + OperatingSystemTypes, NodeStatusFilter, ReplicaHealthReportServiceKind, DataLossMode, @@ -1341,6 +1395,31 @@ 'ChaosMovePrimaryFaultScheduledEvent', 'ChaosRestartReplicaFaultScheduledEvent', 'ChaosRestartNodeFaultScheduledEvent', + 'ServiceResourceDescription', + 'DiagnosticsSinkProperties', + 'DiagnosticsDescription', + 'ApplicationResourceDescription', + 'PagedServiceResourceDescriptionList', + 'ServiceResourceReplicaDescription', + 'PagedServiceResourceReplicaDescriptionList', + 'VolumeProviderParametersAzureFile', + 'VolumeResourceDescription', + 'ImageRegistryCredential', + 'EnvironmentVariable', + 'Setting', + 'ContainerLabel', + 'EndpointProperties', + 'ResourceRequests', + 'ResourceLimits', + 'ResourceRequirements', + 'ContainerVolume', + 'ContainerState', + 'ContainerEvent', + 'ContainerInstanceView', + 'DiagnosticsRef', + 'ContainerCodePackageProperties', + 'NetworkRef', + 'ServiceReplicaProperties', 'ApplicationDefinitionKind', 'HealthState', 'ApplicationStatus', @@ -1422,6 +1501,10 @@ 'RepairTaskHealthCheckState', 'ScalingTriggerKind', 'ScalingMechanismKind', + 'ServiceResourceStatus', + 'ApplicationResourceStatus', + 'DiagnosticsSinkKind', + 'OperatingSystemTypes', 'NodeStatusFilter', 'ReplicaHealthReportServiceKind', 'DataLossMode', diff --git a/azure-servicefabric/azure/servicefabric/models/application_backup_configuration_info.py b/azure-servicefabric/azure/servicefabric/models/application_backup_configuration_info.py index 43eb607af46a..6878e745f4d5 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_backup_configuration_info.py +++ b/azure-servicefabric/azure/servicefabric/models/application_backup_configuration_info.py @@ -23,8 +23,9 @@ class ApplicationBackupConfigurationInfo(BackupConfigurationInfo): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/application_backup_configuration_info_py3.py b/azure-servicefabric/azure/servicefabric/models/application_backup_configuration_info_py3.py index 6bbb5ced0e24..0b721ea102d2 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_backup_configuration_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_backup_configuration_info_py3.py @@ -23,8 +23,9 @@ class ApplicationBackupConfigurationInfo(BackupConfigurationInfo): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/application_capacity_description.py b/azure-servicefabric/azure/servicefabric/models/application_capacity_description.py index 79f6f5ba87e6..51794058ae7d 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_capacity_description.py +++ b/azure-servicefabric/azure/servicefabric/models/application_capacity_description.py @@ -19,7 +19,8 @@ class ApplicationCapacityDescription(Model): - 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. + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_capacity_description_py3.py b/azure-servicefabric/azure/servicefabric/models/application_capacity_description_py3.py index dff8cadea3c0..9d6b537ee6fd 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_capacity_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_capacity_description_py3.py @@ -19,7 +19,8 @@ class ApplicationCapacityDescription(Model): - 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. + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_health.py b/azure-servicefabric/azure/servicefabric/models/application_health.py index f9e1a3735cbd..a227b5eb3271 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health.py @@ -21,8 +21,8 @@ class ApplicationHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_policies.py b/azure-servicefabric/azure/servicefabric/models/application_health_policies.py index 7eb75f4dd640..5548732187cb 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_policies.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_policies.py @@ -15,6 +15,7 @@ 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_policies_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_policies_py3.py index 0487b4cef859..2833983dd92d 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_policies_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_policies_py3.py @@ -15,6 +15,7 @@ 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_policy.py b/azure-servicefabric/azure/servicefabric/models/application_health_policy.py index bfdbeb6fa952..f86368754626 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_policy.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_policy.py @@ -15,6 +15,7 @@ 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 . @@ -29,7 +30,8 @@ class ApplicationHealthPolicy(Model): 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 . + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_policy_map_item.py b/azure-servicefabric/azure/servicefabric/models/application_health_policy_map_item.py index 3b1cf59e3072..1ae5d6e16e0d 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_policy_map_item.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_policy_map_item.py @@ -14,6 +14,7 @@ class ApplicationHealthPolicyMapItem(Model): """Defines an item in ApplicationHealthPolicyMap. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_policy_map_item_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_policy_map_item_py3.py index cb7e5c92e793..509c204947b7 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_policy_map_item_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_policy_map_item_py3.py @@ -14,6 +14,7 @@ class ApplicationHealthPolicyMapItem(Model): """Defines an item in ApplicationHealthPolicyMap. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_policy_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_policy_py3.py index 82e2dca93a09..34aec9ed9c75 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_policy_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_policy_py3.py @@ -15,6 +15,7 @@ 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 . @@ -29,7 +30,8 @@ class ApplicationHealthPolicy(Model): 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 . + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_py3.py index 8606c2e47e5b..084303a43bc7 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_py3.py @@ -21,8 +21,8 @@ class ApplicationHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_state.py b/azure-servicefabric/azure/servicefabric/models/application_health_state.py index ecdb9dcd4a91..0d86f6fffb20 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_state.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_state.py @@ -15,6 +15,7 @@ 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk.py b/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk.py index 891a5620f421..95f24f9cde44 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk.py @@ -17,6 +17,7 @@ class ApplicationHealthStateChunk(EntityHealthStateChunk): 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_list.py b/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_list.py index fdd1c4486323..3e1c7d210a0e 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_list.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_list.py @@ -16,6 +16,7 @@ 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. diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_list_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_list_py3.py index dc9141908ad3..6b46a0f0055a 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_list_py3.py @@ -16,6 +16,7 @@ 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. diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_py3.py index 52afcd53c7fb..817bab43adc9 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_state_chunk_py3.py @@ -17,6 +17,7 @@ class ApplicationHealthStateChunk(EntityHealthStateChunk): 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_state_filter.py b/azure-servicefabric/azure/servicefabric/models/application_health_state_filter.py index 71d8519bbe2d..ca23315f44b4 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_state_filter.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_state_filter.py @@ -17,6 +17,7 @@ class ApplicationHealthStateFilter(Model): 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 @@ -48,7 +49,7 @@ class ApplicationHealthStateFilter(Model): 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 + 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). @@ -62,7 +63,8 @@ class ApplicationHealthStateFilter(Model): - 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 . + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_state_filter_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_state_filter_py3.py index 0c28776c469e..d6a48b38bc3f 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_state_filter_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_state_filter_py3.py @@ -17,6 +17,7 @@ class ApplicationHealthStateFilter(Model): 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 @@ -48,7 +49,7 @@ class ApplicationHealthStateFilter(Model): 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 + 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). @@ -62,7 +63,8 @@ class ApplicationHealthStateFilter(Model): - 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 . + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_state_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_state_py3.py index 88480b6fe66c..76c794c4e9d8 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_state_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_state_py3.py @@ -15,6 +15,7 @@ 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_info.py b/azure-servicefabric/azure/servicefabric/models/application_info.py index 2c768e95a230..87a59fcbe2d8 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_info.py +++ b/azure-servicefabric/azure/servicefabric/models/application_info.py @@ -32,8 +32,9 @@ class ApplicationInfo(Model): :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' + :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. @@ -43,7 +44,8 @@ class ApplicationInfo(Model): 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', + Fabric application. + . Possible values include: 'Invalid', 'ServiceFabricApplicationDescription', 'Compose' :type application_definition_kind: str or ~azure.servicefabric.models.ApplicationDefinitionKind diff --git a/azure-servicefabric/azure/servicefabric/models/application_info_py3.py b/azure-servicefabric/azure/servicefabric/models/application_info_py3.py index 9a08ba1b7707..ce66afc60662 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_info_py3.py @@ -32,8 +32,9 @@ class ApplicationInfo(Model): :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' + :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. @@ -43,7 +44,8 @@ class ApplicationInfo(Model): 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', + Fabric application. + . Possible values include: 'Invalid', 'ServiceFabricApplicationDescription', 'Compose' :type application_definition_kind: str or ~azure.servicefabric.models.ApplicationDefinitionKind diff --git a/azure-servicefabric/azure/servicefabric/models/application_metric_description.py b/azure-servicefabric/azure/servicefabric/models/application_metric_description.py index 314e482966f9..e761c2c9e572 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_metric_description.py +++ b/azure-servicefabric/azure/servicefabric/models/application_metric_description.py @@ -16,6 +16,7 @@ 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_metric_description_py3.py b/azure-servicefabric/azure/servicefabric/models/application_metric_description_py3.py index eb1b1034c78f..f4510d8c55d4 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_metric_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_metric_description_py3.py @@ -16,6 +16,7 @@ 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_resource_description.py b/azure-servicefabric/azure/servicefabric/models/application_resource_description.py new file mode 100644 index 000000000000..52b38c02c723 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/application_resource_description.py @@ -0,0 +1,86 @@ +# 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 ApplicationResourceDescription(Model): + """Describes a service fabric application resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the application. + :type description: str + :param debug_params: Internal use. + :type debug_params: str + :param services: describes the services in the application. + :type services: + list[~azure.servicefabric.models.ServiceResourceDescription] + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or ~azure.servicefabric.models.HealthState + :ivar unhealthy_evaluation: When the application's health state is not + 'Ok', this additional details from service fabric Health Manager for the + user to know why the application is marked unhealthy. + :vartype unhealthy_evaluation: str + :ivar status: Status of the application resource. Possible values include: + 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.servicefabric.models.ApplicationResourceStatus + :ivar status_details: Gives additional information about the current + status of the application deployment. + :vartype status_details: str + :ivar service_names: Names of the services in the application. + :vartype service_names: list[str] + :param diagnostics: Describes the diagnostics definition and usage for an + application resource. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsDescription + :param name: Required. Application resource name. + :type name: str + """ + + _validation = { + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'service_names': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'properties.description', 'type': 'str'}, + 'debug_params': {'key': 'properties.debugParams', 'type': 'str'}, + 'services': {'key': 'properties.services', 'type': '[ServiceResourceDescription]'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'service_names': {'key': 'properties.serviceNames', 'type': '[str]'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationResourceDescription, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.debug_params = kwargs.get('debug_params', None) + self.services = kwargs.get('services', None) + self.health_state = None + self.unhealthy_evaluation = None + self.status = None + self.status_details = None + self.service_names = None + self.diagnostics = kwargs.get('diagnostics', None) + self.name = kwargs.get('name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/application_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/application_resource_description_py3.py new file mode 100644 index 000000000000..8f763cd5c83a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/application_resource_description_py3.py @@ -0,0 +1,86 @@ +# 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 ApplicationResourceDescription(Model): + """Describes a service fabric application resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the application. + :type description: str + :param debug_params: Internal use. + :type debug_params: str + :param services: describes the services in the application. + :type services: + list[~azure.servicefabric.models.ServiceResourceDescription] + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or ~azure.servicefabric.models.HealthState + :ivar unhealthy_evaluation: When the application's health state is not + 'Ok', this additional details from service fabric Health Manager for the + user to know why the application is marked unhealthy. + :vartype unhealthy_evaluation: str + :ivar status: Status of the application resource. Possible values include: + 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or + ~azure.servicefabric.models.ApplicationResourceStatus + :ivar status_details: Gives additional information about the current + status of the application deployment. + :vartype status_details: str + :ivar service_names: Names of the services in the application. + :vartype service_names: list[str] + :param diagnostics: Describes the diagnostics definition and usage for an + application resource. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsDescription + :param name: Required. Application resource name. + :type name: str + """ + + _validation = { + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'service_names': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'properties.description', 'type': 'str'}, + 'debug_params': {'key': 'properties.debugParams', 'type': 'str'}, + 'services': {'key': 'properties.services', 'type': '[ServiceResourceDescription]'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'service_names': {'key': 'properties.serviceNames', 'type': '[str]'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name: str, description: str=None, debug_params: str=None, services=None, diagnostics=None, **kwargs) -> None: + super(ApplicationResourceDescription, self).__init__(**kwargs) + self.description = description + self.debug_params = debug_params + self.services = services + self.health_state = None + self.unhealthy_evaluation = None + self.status = None + self.status_details = None + self.service_names = None + self.diagnostics = diagnostics + self.name = name diff --git a/azure-servicefabric/azure/servicefabric/models/application_type_health_policy_map_item.py b/azure-servicefabric/azure/servicefabric/models/application_type_health_policy_map_item.py index 29b8c66bfb59..5f6cc1898b3e 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_type_health_policy_map_item.py +++ b/azure-servicefabric/azure/servicefabric/models/application_type_health_policy_map_item.py @@ -14,6 +14,7 @@ class ApplicationTypeHealthPolicyMapItem(Model): """Defines an item in ApplicationTypeHealthPolicyMap. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/application_type_health_policy_map_item_py3.py b/azure-servicefabric/azure/servicefabric/models/application_type_health_policy_map_item_py3.py index a964308c58ca..db1e136bd756 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_type_health_policy_map_item_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_type_health_policy_map_item_py3.py @@ -14,6 +14,7 @@ class ApplicationTypeHealthPolicyMapItem(Model): """Defines an item in ApplicationTypeHealthPolicyMap. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/application_type_info.py b/azure-servicefabric/azure/servicefabric/models/application_type_info.py index 6da4e92f37b4..10fcab4280c8 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_type_info.py +++ b/azure-servicefabric/azure/servicefabric/models/application_type_info.py @@ -25,16 +25,17 @@ class ApplicationTypeInfo(Model): 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' + :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' + Service Fabric application type. + . Possible values include: 'Invalid', 'ServiceFabricApplicationPackage', + 'Compose' :type application_type_definition_kind: str or ~azure.servicefabric.models.ApplicationTypeDefinitionKind """ diff --git a/azure-servicefabric/azure/servicefabric/models/application_type_info_py3.py b/azure-servicefabric/azure/servicefabric/models/application_type_info_py3.py index 94b8e1b5e83f..450eba925886 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_type_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_type_info_py3.py @@ -25,16 +25,17 @@ class ApplicationTypeInfo(Model): 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' + :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' + Service Fabric application type. + . Possible values include: 'Invalid', 'ServiceFabricApplicationPackage', + 'Compose' :type application_type_definition_kind: str or ~azure.servicefabric.models.ApplicationTypeDefinitionKind """ diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_description.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_description.py index 564d3b0fb35e..0e05fe147c53 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_description.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_description.py @@ -13,11 +13,11 @@ 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 + """Describes the parameters for an application upgrade. 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 + result in the 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_description_py3.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_description_py3.py index b488ee2eca27..6c5ee662b247 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_description_py3.py @@ -13,11 +13,11 @@ 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 + """Describes the parameters for an application upgrade. 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 + result in the 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info.py index 0e87a90611ed..4246e259b3f2 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info.py @@ -40,14 +40,14 @@ class ApplicationUpgradeProgressInfo(Model): '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. + upgrade. 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 result in the 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 diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info_py3.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info_py3.py index 24a68fb516df..eb71121dc2a4 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info_py3.py @@ -40,14 +40,14 @@ class ApplicationUpgradeProgressInfo(Model): '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. + upgrade. 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 result in the 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 diff --git a/azure-servicefabric/azure/servicefabric/models/backup_configuration_info.py b/azure-servicefabric/azure/servicefabric/models/backup_configuration_info.py index 53e26f075857..a8fcfc9cc6d6 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_configuration_info.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_configuration_info.py @@ -25,8 +25,9 @@ class BackupConfigurationInfo(Model): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/backup_configuration_info_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_configuration_info_py3.py index 6b160190b7aa..c7306c0832a9 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_configuration_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_configuration_info_py3.py @@ -25,8 +25,9 @@ class BackupConfigurationInfo(Model): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/backup_epoch.py b/azure-servicefabric/azure/servicefabric/models/backup_epoch.py index 3598ddb162eb..1ddde69f960d 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_epoch.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_epoch.py @@ -18,6 +18,7 @@ class BackupEpoch(Model): replica changes, the operations that are replicated from the new Primary replica are said to be a new Epoch from the ones which were sent by the old Primary replica. + . :param configuration_number: The current configuration number of this Epoch. The configuration number is an increasing value that is updated diff --git a/azure-servicefabric/azure/servicefabric/models/backup_epoch_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_epoch_py3.py index 9747dea89099..b482ea040b3e 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_epoch_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_epoch_py3.py @@ -18,6 +18,7 @@ class BackupEpoch(Model): replica changes, the operations that are replicated from the new Primary replica are said to be a new Epoch from the ones which were sent by the old Primary replica. + . :param configuration_number: The current configuration number of this Epoch. The configuration number is an increasing value that is updated diff --git a/azure-servicefabric/azure/servicefabric/models/backup_info.py b/azure-servicefabric/azure/servicefabric/models/backup_info.py index 239b95f95913..2b7c96bdb8b9 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_info.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_info.py @@ -35,7 +35,8 @@ class BackupInfo(Model): store. :type backup_location: str :param backup_type: Describes the type of backup, whether its full or - incremental. Possible values include: 'Invalid', 'Full', 'Incremental' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/backup_info_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_info_py3.py index 8fed63e3ab23..e05d4ef7e63a 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_info_py3.py @@ -35,7 +35,8 @@ class BackupInfo(Model): store. :type backup_location: str :param backup_type: Describes the type of backup, whether its full or - incremental. Possible values include: 'Invalid', 'Full', 'Incremental' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/backup_progress_info.py b/azure-servicefabric/azure/servicefabric/models/backup_progress_info.py index 2fef751c42b9..112e7348d490 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_progress_info.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_progress_info.py @@ -16,8 +16,9 @@ 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/backup_progress_info_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_progress_info_py3.py index 71ae6cf03346..e6dddcfc4116 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_progress_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_progress_info_py3.py @@ -16,8 +16,9 @@ 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/backup_suspension_info.py b/azure-servicefabric/azure/servicefabric/models/backup_suspension_info.py index a93a7b88e78b..66418fc42536 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_suspension_info.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_suspension_info.py @@ -14,13 +14,15 @@ 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' + suspension was applied. + . Possible values include: 'Invalid', 'Partition', 'Service', + 'Application' :type suspension_inherited_from: str or ~azure.servicefabric.models.BackupSuspensionScope """ diff --git a/azure-servicefabric/azure/servicefabric/models/backup_suspension_info_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_suspension_info_py3.py index a384ce93a7a4..5e53542e584f 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_suspension_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_suspension_info_py3.py @@ -14,13 +14,15 @@ 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' + suspension was applied. + . Possible values include: 'Invalid', 'Partition', 'Service', + 'Application' :type suspension_inherited_from: str or ~azure.servicefabric.models.BackupSuspensionScope """ diff --git a/azure-servicefabric/azure/servicefabric/models/chaos.py b/azure-servicefabric/azure/servicefabric/models/chaos.py index db9f97fbe7b1..ea6e249c3c92 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos.py @@ -14,15 +14,17 @@ 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' + :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' + :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 """ diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_context.py b/azure-servicefabric/azure/servicefabric/models/chaos_context.py index d8d7cc59ea85..8c008862cd8d 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_context.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_context.py @@ -19,6 +19,7 @@ class ChaosContext(Model): (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. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_context_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_context_py3.py index 85ea13aba906..38eccc58dc97 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_context_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_context_py3.py @@ -19,6 +19,7 @@ class ChaosContext(Model): (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. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_events_segment.py b/azure-servicefabric/azure/servicefabric/models/chaos_events_segment.py index c4ba31499c7b..92dc4bf9dd92 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_events_segment.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_events_segment.py @@ -15,12 +15,13 @@ 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 + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_events_segment_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_events_segment_py3.py index b46bbb279472..7b021fa1b665 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_events_segment_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_events_segment_py3.py @@ -15,12 +15,13 @@ 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 + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_parameters.py b/azure-servicefabric/azure/servicefabric/models/chaos_parameters.py index fa05c7d606da..1909595b287e 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_parameters.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_parameters.py @@ -14,10 +14,12 @@ 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" . + 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 @@ -25,31 +27,35 @@ class ChaosParameters(Model): 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 . + 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 higher the concurrency, the more aggressive the injection of faults, + leading to 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 . + 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 . + 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 . + 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 . + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_parameters_dictionary_item.py b/azure-servicefabric/azure/servicefabric/models/chaos_parameters_dictionary_item.py index e2b07e8b0a51..6ae490054878 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_parameters_dictionary_item.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_parameters_dictionary_item.py @@ -14,6 +14,7 @@ class ChaosParametersDictionaryItem(Model): """Defines an item in ChaosParametersDictionary of the Chaos Schedule. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_parameters_dictionary_item_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_parameters_dictionary_item_py3.py index 067d1936bb09..70f060636b94 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_parameters_dictionary_item_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_parameters_dictionary_item_py3.py @@ -14,6 +14,7 @@ class ChaosParametersDictionaryItem(Model): """Defines an item in ChaosParametersDictionary of the Chaos Schedule. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_parameters_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_parameters_py3.py index fa1e0ebecad4..1fefa50d6058 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_parameters_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_parameters_py3.py @@ -14,10 +14,12 @@ 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" . + 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 @@ -25,31 +27,35 @@ class ChaosParameters(Model): 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 . + 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 higher the concurrency, the more aggressive the injection of faults, + leading to 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 . + 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 . + 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 . + 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 . + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_py3.py index ab496617d657..4eb46a60f335 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_py3.py @@ -14,15 +14,17 @@ 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' + :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' + :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 """ diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_schedule.py b/azure-servicefabric/azure/servicefabric/models/chaos_schedule.py index bac824b4cfc0..5d2a622b3a70 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_schedule.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_schedule.py @@ -16,10 +16,11 @@ 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" . + . 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" . + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_schedule_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_schedule_py3.py index 78ee2ce0f9cc..fefa6693ab74 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_schedule_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_schedule_py3.py @@ -16,10 +16,11 @@ 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" . + . 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" . + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_target_filter.py b/azure-servicefabric/azure/servicefabric/models/chaos_target_filter.py index 9e55c2efff9b..a1046aa13286 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_target_filter.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_target_filter.py @@ -31,6 +31,7 @@ class ChaosTargetFilter(Model): 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. diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_target_filter_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_target_filter_py3.py index 04eec5369328..90df676c56c6 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_target_filter_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_target_filter_py3.py @@ -31,6 +31,7 @@ class ChaosTargetFilter(Model): 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. diff --git a/azure-servicefabric/azure/servicefabric/models/check_exists_property_batch_operation.py b/azure-servicefabric/azure/servicefabric/models/check_exists_property_batch_operation.py index 14ec2d90e335..c5a581ede23c 100644 --- a/azure-servicefabric/azure/servicefabric/models/check_exists_property_batch_operation.py +++ b/azure-servicefabric/azure/servicefabric/models/check_exists_property_batch_operation.py @@ -21,6 +21,7 @@ class CheckExistsPropertyBatchOperation(PropertyBatchOperation): 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/check_exists_property_batch_operation_py3.py b/azure-servicefabric/azure/servicefabric/models/check_exists_property_batch_operation_py3.py index 2bb27c8e018f..b9bc20df9e46 100644 --- a/azure-servicefabric/azure/servicefabric/models/check_exists_property_batch_operation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/check_exists_property_batch_operation_py3.py @@ -21,6 +21,7 @@ class CheckExistsPropertyBatchOperation(PropertyBatchOperation): 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/check_sequence_property_batch_operation.py b/azure-servicefabric/azure/servicefabric/models/check_sequence_property_batch_operation.py index 306b3ae615b9..8286c9dcf4f0 100644 --- a/azure-servicefabric/azure/servicefabric/models/check_sequence_property_batch_operation.py +++ b/azure-servicefabric/azure/servicefabric/models/check_sequence_property_batch_operation.py @@ -23,6 +23,7 @@ class CheckSequencePropertyBatchOperation(PropertyBatchOperation): 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/check_sequence_property_batch_operation_py3.py b/azure-servicefabric/azure/servicefabric/models/check_sequence_property_batch_operation_py3.py index 7dabd0f8c4b1..6acfa29ccf0e 100644 --- a/azure-servicefabric/azure/servicefabric/models/check_sequence_property_batch_operation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/check_sequence_property_batch_operation_py3.py @@ -23,6 +23,7 @@ class CheckSequencePropertyBatchOperation(PropertyBatchOperation): 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/check_value_property_batch_operation.py b/azure-servicefabric/azure/servicefabric/models/check_value_property_batch_operation.py index e1b8a3b9ff75..533bfce0b723 100644 --- a/azure-servicefabric/azure/servicefabric/models/check_value_property_batch_operation.py +++ b/azure-servicefabric/azure/servicefabric/models/check_value_property_batch_operation.py @@ -19,6 +19,7 @@ class CheckValuePropertyBatchOperation(PropertyBatchOperation): 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/check_value_property_batch_operation_py3.py b/azure-servicefabric/azure/servicefabric/models/check_value_property_batch_operation_py3.py index 8af0c8bfa6a7..4f915e98071d 100644 --- a/azure-servicefabric/azure/servicefabric/models/check_value_property_batch_operation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/check_value_property_batch_operation_py3.py @@ -19,6 +19,7 @@ class CheckValuePropertyBatchOperation(PropertyBatchOperation): 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description.py b/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description.py index 80b70090e060..e5599d7e52b4 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description.py @@ -54,6 +54,11 @@ class ClusterConfigurationUpgradeDescription(Model): upgrade. Allowed values are integer values from zero to 100. Default value: 0 . :type max_percent_upgrade_domain_delta_unhealthy_nodes: int + :param application_health_policies: Defines the application health policy + map used to evaluate the health of an application or one of its children + entities. + :type application_health_policies: + ~azure.servicefabric.models.ApplicationHealthPolicies """ _validation = { @@ -71,6 +76,7 @@ class ClusterConfigurationUpgradeDescription(Model): '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'}, + 'application_health_policies': {'key': 'ApplicationHealthPolicies', 'type': 'ApplicationHealthPolicies'}, } def __init__(self, **kwargs): @@ -85,3 +91,4 @@ def __init__(self, **kwargs): self.max_percent_unhealthy_nodes = kwargs.get('max_percent_unhealthy_nodes', 0) self.max_percent_delta_unhealthy_nodes = kwargs.get('max_percent_delta_unhealthy_nodes', 0) self.max_percent_upgrade_domain_delta_unhealthy_nodes = kwargs.get('max_percent_upgrade_domain_delta_unhealthy_nodes', 0) + self.application_health_policies = kwargs.get('application_health_policies', None) diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description_py3.py index 4ff72e8a4a54..594219794d72 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description_py3.py @@ -54,6 +54,11 @@ class ClusterConfigurationUpgradeDescription(Model): upgrade. Allowed values are integer values from zero to 100. Default value: 0 . :type max_percent_upgrade_domain_delta_unhealthy_nodes: int + :param application_health_policies: Defines the application health policy + map used to evaluate the health of an application or one of its children + entities. + :type application_health_policies: + ~azure.servicefabric.models.ApplicationHealthPolicies """ _validation = { @@ -71,9 +76,10 @@ class ClusterConfigurationUpgradeDescription(Model): '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'}, + 'application_health_policies': {'key': 'ApplicationHealthPolicies', 'type': 'ApplicationHealthPolicies'}, } - def __init__(self, *, cluster_config: str, 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: int=0, max_percent_unhealthy_nodes: int=0, max_percent_delta_unhealthy_nodes: int=0, max_percent_upgrade_domain_delta_unhealthy_nodes: int=0, **kwargs) -> None: + def __init__(self, *, cluster_config: str, 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: int=0, max_percent_unhealthy_nodes: int=0, max_percent_delta_unhealthy_nodes: int=0, max_percent_upgrade_domain_delta_unhealthy_nodes: int=0, application_health_policies=None, **kwargs) -> None: super(ClusterConfigurationUpgradeDescription, self).__init__(**kwargs) self.cluster_config = cluster_config self.health_check_retry_timeout = health_check_retry_timeout @@ -85,3 +91,4 @@ def __init__(self, *, cluster_config: str, health_check_retry_timeout="PT0H0M0S" 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 + self.application_health_policies = application_health_policies diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health.py b/azure-servicefabric/azure/servicefabric/models/cluster_health.py index 5185f731fa87..92d7d421a15e 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_health.py @@ -17,13 +17,14 @@ class ClusterHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_chunk.py b/azure-servicefabric/azure/servicefabric/models/cluster_health_chunk.py index aa70ceefc61e..53a73fe59a7b 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_chunk.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_health_chunk.py @@ -16,14 +16,15 @@ 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' + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_chunk_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_health_chunk_py3.py index 549375a254d7..cc76b39cc5d3 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_chunk_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_health_chunk_py3.py @@ -16,14 +16,15 @@ 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' + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_policy.py b/azure-servicefabric/azure/servicefabric/models/cluster_health_policy.py index e19652612ee9..a710f0571753 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_policy.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_health_policy.py @@ -15,6 +15,7 @@ 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 . @@ -31,7 +32,8 @@ class ClusterHealthPolicy(Model): 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 . + 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 @@ -45,7 +47,8 @@ class ClusterHealthPolicy(Model): 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 . + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_policy_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_health_policy_py3.py index c5b31e870ced..8858ab6049d4 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_policy_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_health_policy_py3.py @@ -15,6 +15,7 @@ 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 . @@ -31,7 +32,8 @@ class ClusterHealthPolicy(Model): 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 . + 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 @@ -45,7 +47,8 @@ class ClusterHealthPolicy(Model): 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 . + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_health_py3.py index a60ca4953b0c..a3d8bdaf2618 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_health_py3.py @@ -17,13 +17,14 @@ class ClusterHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/compose_deployment_upgrade_progress_info.py b/azure-servicefabric/azure/servicefabric/models/compose_deployment_upgrade_progress_info.py index be091787fb4c..78bdbb06b9fd 100644 --- a/azure-servicefabric/azure/servicefabric/models/compose_deployment_upgrade_progress_info.py +++ b/azure-servicefabric/azure/servicefabric/models/compose_deployment_upgrade_progress_info.py @@ -21,7 +21,7 @@ class ComposeDeploymentUpgradeProgressInfo(Model): 'fabric:' URI scheme. :type application_name: str :param upgrade_state: The state of the compose deployment upgrade. - Possible values include: 'Invalid', 'ProvisioningTarget', + . Possible values include: 'Invalid', 'ProvisioningTarget', 'RollingForwardInProgress', 'RollingForwardPending', 'UnprovisioningCurrent', 'RollingForwardCompleted', 'RollingBackInProgress', 'UnprovisioningTarget', 'RollingBackCompleted', diff --git a/azure-servicefabric/azure/servicefabric/models/compose_deployment_upgrade_progress_info_py3.py b/azure-servicefabric/azure/servicefabric/models/compose_deployment_upgrade_progress_info_py3.py index f0cf118d714f..17499cd999d1 100644 --- a/azure-servicefabric/azure/servicefabric/models/compose_deployment_upgrade_progress_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/compose_deployment_upgrade_progress_info_py3.py @@ -21,7 +21,7 @@ class ComposeDeploymentUpgradeProgressInfo(Model): 'fabric:' URI scheme. :type application_name: str :param upgrade_state: The state of the compose deployment upgrade. - Possible values include: 'Invalid', 'ProvisioningTarget', + . Possible values include: 'Invalid', 'ProvisioningTarget', 'RollingForwardInProgress', 'RollingForwardPending', 'UnprovisioningCurrent', 'RollingForwardCompleted', 'RollingBackInProgress', 'UnprovisioningTarget', 'RollingBackCompleted', diff --git a/azure-servicefabric/azure/servicefabric/models/container_code_package_properties.py b/azure-servicefabric/azure/servicefabric/models/container_code_package_properties.py new file mode 100644 index 000000000000..7f9982d44792 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_code_package_properties.py @@ -0,0 +1,96 @@ +# 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 ContainerCodePackageProperties(Model): + """Describes a container and its runtime properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the code package. + :type name: str + :param image: Required. The Container image to use. + :type image: str + :param image_registry_credential: Image registry credential. + :type image_registry_credential: + ~azure.servicefabric.models.ImageRegistryCredential + :param entrypoint: Override for the default entry point in the container. + :type entrypoint: str + :param commands: Command array to execute within the container in exec + form. + :type commands: list[str] + :param environment_variables: The environment variables to set in this + container + :type environment_variables: + list[~azure.servicefabric.models.EnvironmentVariable] + :param settings: The settings to set in this container. The setting file + path can be fetched from environment variable "Fabric_SettingPath". The + path for Windows container is "C:\\\\secrets". The path for Linux + container is "/var/secrets". + :type settings: list[~azure.servicefabric.models.Setting] + :param labels: The labels to set in this container. + :type labels: list[~azure.servicefabric.models.ContainerLabel] + :param endpoints: The endpoints exposed by this container. + :type endpoints: list[~azure.servicefabric.models.EndpointProperties] + :param resources: Required. This type describes the resource requirements + for a container or a service. + :type resources: ~azure.servicefabric.models.ResourceRequirements + :param volume_refs: The volumes to be attached to the container. + :type volume_refs: list[~azure.servicefabric.models.ContainerVolume] + :ivar instance_view: Runtime information of a container instance. + :vartype instance_view: ~azure.servicefabric.models.ContainerInstanceView + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + """ + + _validation = { + 'name': {'required': True}, + 'image': {'required': True}, + 'resources': {'required': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'str'}, + 'image_registry_credential': {'key': 'imageRegistryCredential', 'type': 'ImageRegistryCredential'}, + 'entrypoint': {'key': 'entrypoint', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[str]'}, + 'environment_variables': {'key': 'environmentVariables', 'type': '[EnvironmentVariable]'}, + 'settings': {'key': 'settings', 'type': '[Setting]'}, + 'labels': {'key': 'labels', 'type': '[ContainerLabel]'}, + 'endpoints': {'key': 'endpoints', 'type': '[EndpointProperties]'}, + 'resources': {'key': 'resources', 'type': 'ResourceRequirements'}, + 'volume_refs': {'key': 'volumeRefs', 'type': '[ContainerVolume]'}, + 'instance_view': {'key': 'instanceView', 'type': 'ContainerInstanceView'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + } + + def __init__(self, **kwargs): + super(ContainerCodePackageProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.image = kwargs.get('image', None) + self.image_registry_credential = kwargs.get('image_registry_credential', None) + self.entrypoint = kwargs.get('entrypoint', None) + self.commands = kwargs.get('commands', None) + self.environment_variables = kwargs.get('environment_variables', None) + self.settings = kwargs.get('settings', None) + self.labels = kwargs.get('labels', None) + self.endpoints = kwargs.get('endpoints', None) + self.resources = kwargs.get('resources', None) + self.volume_refs = kwargs.get('volume_refs', None) + self.instance_view = None + self.diagnostics = kwargs.get('diagnostics', None) diff --git a/azure-servicefabric/azure/servicefabric/models/container_code_package_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/container_code_package_properties_py3.py new file mode 100644 index 000000000000..8022d73d5487 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_code_package_properties_py3.py @@ -0,0 +1,96 @@ +# 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 ContainerCodePackageProperties(Model): + """Describes a container and its runtime properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the code package. + :type name: str + :param image: Required. The Container image to use. + :type image: str + :param image_registry_credential: Image registry credential. + :type image_registry_credential: + ~azure.servicefabric.models.ImageRegistryCredential + :param entrypoint: Override for the default entry point in the container. + :type entrypoint: str + :param commands: Command array to execute within the container in exec + form. + :type commands: list[str] + :param environment_variables: The environment variables to set in this + container + :type environment_variables: + list[~azure.servicefabric.models.EnvironmentVariable] + :param settings: The settings to set in this container. The setting file + path can be fetched from environment variable "Fabric_SettingPath". The + path for Windows container is "C:\\\\secrets". The path for Linux + container is "/var/secrets". + :type settings: list[~azure.servicefabric.models.Setting] + :param labels: The labels to set in this container. + :type labels: list[~azure.servicefabric.models.ContainerLabel] + :param endpoints: The endpoints exposed by this container. + :type endpoints: list[~azure.servicefabric.models.EndpointProperties] + :param resources: Required. This type describes the resource requirements + for a container or a service. + :type resources: ~azure.servicefabric.models.ResourceRequirements + :param volume_refs: The volumes to be attached to the container. + :type volume_refs: list[~azure.servicefabric.models.ContainerVolume] + :ivar instance_view: Runtime information of a container instance. + :vartype instance_view: ~azure.servicefabric.models.ContainerInstanceView + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + """ + + _validation = { + 'name': {'required': True}, + 'image': {'required': True}, + 'resources': {'required': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'str'}, + 'image_registry_credential': {'key': 'imageRegistryCredential', 'type': 'ImageRegistryCredential'}, + 'entrypoint': {'key': 'entrypoint', 'type': 'str'}, + 'commands': {'key': 'commands', 'type': '[str]'}, + 'environment_variables': {'key': 'environmentVariables', 'type': '[EnvironmentVariable]'}, + 'settings': {'key': 'settings', 'type': '[Setting]'}, + 'labels': {'key': 'labels', 'type': '[ContainerLabel]'}, + 'endpoints': {'key': 'endpoints', 'type': '[EndpointProperties]'}, + 'resources': {'key': 'resources', 'type': 'ResourceRequirements'}, + 'volume_refs': {'key': 'volumeRefs', 'type': '[ContainerVolume]'}, + 'instance_view': {'key': 'instanceView', 'type': 'ContainerInstanceView'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + } + + def __init__(self, *, name: str, image: str, resources, image_registry_credential=None, entrypoint: str=None, commands=None, environment_variables=None, settings=None, labels=None, endpoints=None, volume_refs=None, diagnostics=None, **kwargs) -> None: + super(ContainerCodePackageProperties, self).__init__(**kwargs) + self.name = name + self.image = image + self.image_registry_credential = image_registry_credential + self.entrypoint = entrypoint + self.commands = commands + self.environment_variables = environment_variables + self.settings = settings + self.labels = labels + self.endpoints = endpoints + self.resources = resources + self.volume_refs = volume_refs + self.instance_view = None + self.diagnostics = diagnostics diff --git a/azure-servicefabric/azure/servicefabric/models/container_event.py b/azure-servicefabric/azure/servicefabric/models/container_event.py new file mode 100644 index 000000000000..36bb437c0be0 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_event.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerEvent(Model): + """A container event. + + :param name: The name of the container event. + :type name: str + :param count: The count of the event. + :type count: int + :param first_timestamp: Date/time of the first event. + :type first_timestamp: str + :param last_timestamp: Date/time of the last event. + :type last_timestamp: str + :param message: The event message + :type message: str + :param type: The event type. + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'first_timestamp': {'key': 'firstTimestamp', 'type': 'str'}, + 'last_timestamp': {'key': 'lastTimestamp', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerEvent, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.count = kwargs.get('count', None) + self.first_timestamp = kwargs.get('first_timestamp', None) + self.last_timestamp = kwargs.get('last_timestamp', None) + self.message = kwargs.get('message', None) + self.type = kwargs.get('type', None) diff --git a/azure-servicefabric/azure/servicefabric/models/container_event_py3.py b/azure-servicefabric/azure/servicefabric/models/container_event_py3.py new file mode 100644 index 000000000000..4851036a54cc --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_event_py3.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerEvent(Model): + """A container event. + + :param name: The name of the container event. + :type name: str + :param count: The count of the event. + :type count: int + :param first_timestamp: Date/time of the first event. + :type first_timestamp: str + :param last_timestamp: Date/time of the last event. + :type last_timestamp: str + :param message: The event message + :type message: str + :param type: The event type. + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'first_timestamp': {'key': 'firstTimestamp', 'type': 'str'}, + 'last_timestamp': {'key': 'lastTimestamp', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, count: int=None, first_timestamp: str=None, last_timestamp: str=None, message: str=None, type: str=None, **kwargs) -> None: + super(ContainerEvent, self).__init__(**kwargs) + self.name = name + self.count = count + self.first_timestamp = first_timestamp + self.last_timestamp = last_timestamp + self.message = message + self.type = type diff --git a/azure-servicefabric/azure/servicefabric/models/container_instance_view.py b/azure-servicefabric/azure/servicefabric/models/container_instance_view.py new file mode 100644 index 000000000000..74d0408d6b89 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_instance_view.py @@ -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 ContainerInstanceView(Model): + """Runtime information of a container instance. + + :param restart_count: The number of times the container has been + restarted. + :type restart_count: int + :param current_state: Current container instance state. + :type current_state: ~azure.servicefabric.models.ContainerState + :param previous_state: Previous container instance state. + :type previous_state: ~azure.servicefabric.models.ContainerState + :param events: The events of this container instance. + :type events: list[~azure.servicefabric.models.ContainerEvent] + """ + + _attribute_map = { + 'restart_count': {'key': 'restartCount', 'type': 'int'}, + 'current_state': {'key': 'currentState', 'type': 'ContainerState'}, + 'previous_state': {'key': 'previousState', 'type': 'ContainerState'}, + 'events': {'key': 'events', 'type': '[ContainerEvent]'}, + } + + def __init__(self, **kwargs): + super(ContainerInstanceView, self).__init__(**kwargs) + self.restart_count = kwargs.get('restart_count', None) + self.current_state = kwargs.get('current_state', None) + self.previous_state = kwargs.get('previous_state', None) + self.events = kwargs.get('events', None) diff --git a/azure-servicefabric/azure/servicefabric/models/container_instance_view_py3.py b/azure-servicefabric/azure/servicefabric/models/container_instance_view_py3.py new file mode 100644 index 000000000000..2f14ce0f928f --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_instance_view_py3.py @@ -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 ContainerInstanceView(Model): + """Runtime information of a container instance. + + :param restart_count: The number of times the container has been + restarted. + :type restart_count: int + :param current_state: Current container instance state. + :type current_state: ~azure.servicefabric.models.ContainerState + :param previous_state: Previous container instance state. + :type previous_state: ~azure.servicefabric.models.ContainerState + :param events: The events of this container instance. + :type events: list[~azure.servicefabric.models.ContainerEvent] + """ + + _attribute_map = { + 'restart_count': {'key': 'restartCount', 'type': 'int'}, + 'current_state': {'key': 'currentState', 'type': 'ContainerState'}, + 'previous_state': {'key': 'previousState', 'type': 'ContainerState'}, + 'events': {'key': 'events', 'type': '[ContainerEvent]'}, + } + + def __init__(self, *, restart_count: int=None, current_state=None, previous_state=None, events=None, **kwargs) -> None: + super(ContainerInstanceView, self).__init__(**kwargs) + self.restart_count = restart_count + self.current_state = current_state + self.previous_state = previous_state + self.events = events diff --git a/azure-servicefabric/azure/servicefabric/models/container_label.py b/azure-servicefabric/azure/servicefabric/models/container_label.py new file mode 100644 index 000000000000..f474f141d643 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_label.py @@ -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 ContainerLabel(Model): + """Describes a container label. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the container label. + :type name: str + :param value: Required. The value of the container label. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerLabel, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-servicefabric/azure/servicefabric/models/container_label_py3.py b/azure-servicefabric/azure/servicefabric/models/container_label_py3.py new file mode 100644 index 000000000000..118326393d68 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_label_py3.py @@ -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 ContainerLabel(Model): + """Describes a container label. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the container label. + :type name: str + :param value: Required. The value of the container label. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str, value: str, **kwargs) -> None: + super(ContainerLabel, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-servicefabric/azure/servicefabric/models/container_state.py b/azure-servicefabric/azure/servicefabric/models/container_state.py new file mode 100644 index 000000000000..3e2c2bf0f367 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_state.py @@ -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 msrest.serialization import Model + + +class ContainerState(Model): + """The container state. + + :param state: The state of this container + :type state: str + :param start_time: Date/time when the container state started. + :type start_time: datetime + :param exit_code: The container exit code. + :type exit_code: str + :param finish_time: Date/time when the container state finished. + :type finish_time: datetime + :param detail_status: Human-readable status of this state. + :type detail_status: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'exit_code': {'key': 'exitCode', 'type': 'str'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'detail_status': {'key': 'detailStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerState, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + self.start_time = kwargs.get('start_time', None) + self.exit_code = kwargs.get('exit_code', None) + self.finish_time = kwargs.get('finish_time', None) + self.detail_status = kwargs.get('detail_status', None) diff --git a/azure-servicefabric/azure/servicefabric/models/container_state_py3.py b/azure-servicefabric/azure/servicefabric/models/container_state_py3.py new file mode 100644 index 000000000000..eb2f51953faf --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_state_py3.py @@ -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 msrest.serialization import Model + + +class ContainerState(Model): + """The container state. + + :param state: The state of this container + :type state: str + :param start_time: Date/time when the container state started. + :type start_time: datetime + :param exit_code: The container exit code. + :type exit_code: str + :param finish_time: Date/time when the container state finished. + :type finish_time: datetime + :param detail_status: Human-readable status of this state. + :type detail_status: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'exit_code': {'key': 'exitCode', 'type': 'str'}, + 'finish_time': {'key': 'finishTime', 'type': 'iso-8601'}, + 'detail_status': {'key': 'detailStatus', 'type': 'str'}, + } + + def __init__(self, *, state: str=None, start_time=None, exit_code: str=None, finish_time=None, detail_status: str=None, **kwargs) -> None: + super(ContainerState, self).__init__(**kwargs) + self.state = state + self.start_time = start_time + self.exit_code = exit_code + self.finish_time = finish_time + self.detail_status = detail_status diff --git a/azure-servicefabric/azure/servicefabric/models/container_volume.py b/azure-servicefabric/azure/servicefabric/models/container_volume.py new file mode 100644 index 000000000000..47323174239c --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_volume.py @@ -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 ContainerVolume(Model): + """Describes how a volume is attached to a container. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the volume. + :type name: str + :param read_only: The flag indicating whether the volume is read only. + Default is 'false'. + :type read_only: bool + :param destination_path: Required. The path within the container at which + the volume should be mounted. Only valid path characters are allowed. + :type destination_path: str + """ + + _validation = { + 'name': {'required': True}, + 'destination_path': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'destination_path': {'key': 'destinationPath', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerVolume, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.read_only = kwargs.get('read_only', None) + self.destination_path = kwargs.get('destination_path', None) diff --git a/azure-servicefabric/azure/servicefabric/models/container_volume_py3.py b/azure-servicefabric/azure/servicefabric/models/container_volume_py3.py new file mode 100644 index 000000000000..0ff73ba3b086 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/container_volume_py3.py @@ -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 ContainerVolume(Model): + """Describes how a volume is attached to a container. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the volume. + :type name: str + :param read_only: The flag indicating whether the volume is read only. + Default is 'false'. + :type read_only: bool + :param destination_path: Required. The path within the container at which + the volume should be mounted. Only valid path characters are allowed. + :type destination_path: str + """ + + _validation = { + 'name': {'required': True}, + 'destination_path': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'destination_path': {'key': 'destinationPath', 'type': 'str'}, + } + + def __init__(self, *, name: str, destination_path: str, read_only: bool=None, **kwargs) -> None: + super(ContainerVolume, self).__init__(**kwargs) + self.name = name + self.read_only = read_only + self.destination_path = destination_path diff --git a/azure-servicefabric/azure/servicefabric/models/create_compose_deployment_description.py b/azure-servicefabric/azure/servicefabric/models/create_compose_deployment_description.py index dea010ecc082..0ea556829a7a 100644 --- a/azure-servicefabric/azure/servicefabric/models/create_compose_deployment_description.py +++ b/azure-servicefabric/azure/servicefabric/models/create_compose_deployment_description.py @@ -14,6 +14,7 @@ class CreateComposeDeploymentDescription(Model): """Defines description for creating a Service Fabric compose deployment. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/create_compose_deployment_description_py3.py b/azure-servicefabric/azure/servicefabric/models/create_compose_deployment_description_py3.py index 8a8f1155ed7f..6416714cd998 100644 --- a/azure-servicefabric/azure/servicefabric/models/create_compose_deployment_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/create_compose_deployment_description_py3.py @@ -14,6 +14,7 @@ class CreateComposeDeploymentDescription(Model): """Defines description for creating a Service Fabric compose deployment. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deactivation_intent_description.py b/azure-servicefabric/azure/servicefabric/models/deactivation_intent_description.py index 28dab1f78a32..22425f114121 100644 --- a/azure-servicefabric/azure/servicefabric/models/deactivation_intent_description.py +++ b/azure-servicefabric/azure/servicefabric/models/deactivation_intent_description.py @@ -16,8 +16,8 @@ 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' + deactivating the node. The possible values are following. + . Possible values include: 'Pause', 'Restart', 'RemoveData' :type deactivation_intent: str or ~azure.servicefabric.models.DeactivationIntent """ diff --git a/azure-servicefabric/azure/servicefabric/models/deactivation_intent_description_py3.py b/azure-servicefabric/azure/servicefabric/models/deactivation_intent_description_py3.py index b5384272960e..4f6cc6a270bc 100644 --- a/azure-servicefabric/azure/servicefabric/models/deactivation_intent_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deactivation_intent_description_py3.py @@ -16,8 +16,8 @@ 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' + deactivating the node. The possible values are following. + . Possible values include: 'Pause', 'Restart', 'RemoveData' :type deactivation_intent: str or ~azure.servicefabric.models.DeactivationIntent """ diff --git a/azure-servicefabric/azure/servicefabric/models/delete_property_batch_operation.py b/azure-servicefabric/azure/servicefabric/models/delete_property_batch_operation.py index f41dda1cd14a..dd93122cec51 100644 --- a/azure-servicefabric/azure/servicefabric/models/delete_property_batch_operation.py +++ b/azure-servicefabric/azure/servicefabric/models/delete_property_batch_operation.py @@ -17,6 +17,7 @@ class DeletePropertyBatchOperation(PropertyBatchOperation): exists. Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be committed in a transactional manner. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/delete_property_batch_operation_py3.py b/azure-servicefabric/azure/servicefabric/models/delete_property_batch_operation_py3.py index 28cdf2c15023..e0ae6abce27d 100644 --- a/azure-servicefabric/azure/servicefabric/models/delete_property_batch_operation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/delete_property_batch_operation_py3.py @@ -17,6 +17,7 @@ class DeletePropertyBatchOperation(PropertyBatchOperation): exists. Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be committed in a transactional manner. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/delta_nodes_check_health_evaluation.py b/azure-servicefabric/azure/servicefabric/models/delta_nodes_check_health_evaluation.py index a619a7e42337..6dc94e092037 100644 --- a/azure-servicefabric/azure/servicefabric/models/delta_nodes_check_health_evaluation.py +++ b/azure-servicefabric/azure/servicefabric/models/delta_nodes_check_health_evaluation.py @@ -17,6 +17,7 @@ class DeltaNodesCheckHealthEvaluation(HealthEvaluation): 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/delta_nodes_check_health_evaluation_py3.py b/azure-servicefabric/azure/servicefabric/models/delta_nodes_check_health_evaluation_py3.py index 7bbbc05f93c2..4c60569e0096 100644 --- a/azure-servicefabric/azure/servicefabric/models/delta_nodes_check_health_evaluation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/delta_nodes_check_health_evaluation_py3.py @@ -17,6 +17,7 @@ class DeltaNodesCheckHealthEvaluation(HealthEvaluation): 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deploy_service_package_to_node_description.py b/azure-servicefabric/azure/servicefabric/models/deploy_service_package_to_node_description.py index 82050e16791a..e929daf58a09 100644 --- a/azure-servicefabric/azure/servicefabric/models/deploy_service_package_to_node_description.py +++ b/azure-servicefabric/azure/servicefabric/models/deploy_service_package_to_node_description.py @@ -15,6 +15,7 @@ class DeployServicePackageToNodeDescription(Model): """Defines description for downloading packages associated with a service manifest to image cache on a Service Fabric node. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deploy_service_package_to_node_description_py3.py b/azure-servicefabric/azure/servicefabric/models/deploy_service_package_to_node_description_py3.py index 0b2e6238dae4..b4e8d0b90388 100644 --- a/azure-servicefabric/azure/servicefabric/models/deploy_service_package_to_node_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deploy_service_package_to_node_description_py3.py @@ -15,6 +15,7 @@ class DeployServicePackageToNodeDescription(Model): """Defines description for downloading packages associated with a service manifest to image cache on a Service Fabric node. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health.py index a76e0fbf5a65..a1b0732225da 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health.py @@ -20,8 +20,8 @@ class DeployedApplicationHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_evaluation.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_evaluation.py index ea06a32a476a..b81109bb34ad 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_evaluation.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_evaluation.py @@ -16,6 +16,7 @@ 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_evaluation_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_evaluation_py3.py index 2cade0ccdee1..91e74e7525b2 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_evaluation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_evaluation_py3.py @@ -16,6 +16,7 @@ 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. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_py3.py index fe011b3464cd..526aebb98a5e 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_py3.py @@ -20,8 +20,8 @@ class DeployedApplicationHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk.py index cc46bad3bf90..dfefc75c6f5c 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk.py @@ -17,6 +17,7 @@ class DeployedApplicationHealthStateChunk(EntityHealthStateChunk): 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 diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_list.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_list.py index 81b2792b8c5c..ffe9808ad696 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_list.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_list.py @@ -16,6 +16,7 @@ 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_list_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_list_py3.py index 74d8f231bce4..d713d215672f 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_list_py3.py @@ -16,6 +16,7 @@ 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_py3.py index e242b862b071..c4490db3a9f4 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_chunk_py3.py @@ -17,6 +17,7 @@ class DeployedApplicationHealthStateChunk(EntityHealthStateChunk): 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 diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_filter.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_filter.py index 7474be070c6f..7f80176dbbaa 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_filter.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_filter.py @@ -20,6 +20,7 @@ class DeployedApplicationHealthStateFilter(Model): 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. @@ -44,7 +45,7 @@ class DeployedApplicationHealthStateFilter(Model): 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 + 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). @@ -58,7 +59,8 @@ class DeployedApplicationHealthStateFilter(Model): - 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 . + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_filter_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_filter_py3.py index 5b1174b8756f..6b3d1df84e88 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_filter_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_state_filter_py3.py @@ -20,6 +20,7 @@ class DeployedApplicationHealthStateFilter(Model): 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. @@ -44,7 +45,7 @@ class DeployedApplicationHealthStateFilter(Model): 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 + 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). @@ -58,7 +59,8 @@ class DeployedApplicationHealthStateFilter(Model): - 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 . + 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 diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_info.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_info.py index 231f1a4298a5..e6ec726cd358 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_info.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_info.py @@ -30,8 +30,9 @@ class DeployedApplicationInfo(Model): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_info_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_info_py3.py index e6d4b82e61ed..4f5a17550439 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_info_py3.py @@ -30,8 +30,9 @@ class DeployedApplicationInfo(Model): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_applications_health_evaluation.py b/azure-servicefabric/azure/servicefabric/models/deployed_applications_health_evaluation.py index 6d3f7733f636..3bd891f29755 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_applications_health_evaluation.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_applications_health_evaluation.py @@ -18,6 +18,7 @@ class DeployedApplicationsHealthEvaluation(HealthEvaluation): aggregated health state. Can be returned when evaluating application health and the aggregated health state is either Error or Warning. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_applications_health_evaluation_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_applications_health_evaluation_py3.py index cb907dbdb7ac..e8d8740b0bac 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_applications_health_evaluation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_applications_health_evaluation_py3.py @@ -18,6 +18,7 @@ class DeployedApplicationsHealthEvaluation(HealthEvaluation): aggregated health state. Can be returned when evaluating application health and the aggregated health state is either Error or Warning. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_code_package_info.py b/azure-servicefabric/azure/servicefabric/models/deployed_code_package_info.py index 1edf073dd310..3d7b9b7f2130 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_code_package_info.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_code_package_info.py @@ -42,8 +42,9 @@ class DeployedCodePackageInfo(Model): :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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_code_package_info_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_code_package_info_py3.py index d64d659b573f..950f6e661f2b 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_code_package_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_code_package_info_py3.py @@ -42,8 +42,9 @@ class DeployedCodePackageInfo(Model): :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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health.py index e45f95d59600..1084b1a71f77 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health.py @@ -20,8 +20,8 @@ class DeployedServicePackageHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_py3.py index 5c6a18023943..26861e479e65 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_py3.py @@ -20,8 +20,8 @@ class DeployedServicePackageHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk.py index 0bbf966e14ef..a37d019af61a 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk.py @@ -16,6 +16,7 @@ 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 diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_list.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_list.py index 5b453e441295..ea916e7d0e54 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_list.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_list.py @@ -16,6 +16,7 @@ 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_list_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_list_py3.py index fe435a6b8ec8..e2628c6f0aa5 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_list_py3.py @@ -16,6 +16,7 @@ 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. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_py3.py index 1911d4094316..6e1382f3cad1 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_chunk_py3.py @@ -16,6 +16,7 @@ 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 diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_filter.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_filter.py index 739bfe996b85..fc057041cb3b 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_filter.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_filter.py @@ -22,6 +22,7 @@ class DeployedServicePackageHealthStateFilter(Model): the cluster health chunk. One filter can match zero, one or multiple deployed service packages, depending on its properties. + . :param service_manifest_name_filter: The name of the service manifest which identifies the deployed service packages that matches the filter. @@ -53,7 +54,7 @@ class DeployedServicePackageHealthStateFilter(Model): package ID is specified. If the filter has default value and deployed service package ID is specified, the matching deployed service package is returned. - The state values are flag based enumeration, so the value could be a + 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 service packages with HealthState value of OK (2) and Warning (4). @@ -67,7 +68,8 @@ class DeployedServicePackageHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int """ diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_filter_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_filter_py3.py index 2217a8045075..01bae1a4cefc 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_filter_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_filter_py3.py @@ -22,6 +22,7 @@ class DeployedServicePackageHealthStateFilter(Model): the cluster health chunk. One filter can match zero, one or multiple deployed service packages, depending on its properties. + . :param service_manifest_name_filter: The name of the service manifest which identifies the deployed service packages that matches the filter. @@ -53,7 +54,7 @@ class DeployedServicePackageHealthStateFilter(Model): package ID is specified. If the filter has default value and deployed service package ID is specified, the matching deployed service package is returned. - The state values are flag based enumeration, so the value could be a + 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 service packages with HealthState value of OK (2) and Warning (4). @@ -67,7 +68,8 @@ class DeployedServicePackageHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int """ diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_info.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_info.py index 6337476ce691..e7402ddec410 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_info.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_info.py @@ -22,8 +22,9 @@ class DeployedServicePackageInfo(Model): manifest. :type version: str :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' + package on a Service Fabric node. + . Possible values include: 'Invalid', 'Downloading', 'Activating', + 'Active', 'Upgrading', 'Deactivating' :type status: str or ~azure.servicefabric.models.DeploymentStatus :param service_package_activation_id: The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_info_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_info_py3.py index 857f3eaa6acb..da4f2b4328c2 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_package_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_info_py3.py @@ -22,8 +22,9 @@ class DeployedServicePackageInfo(Model): manifest. :type version: str :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' + package on a Service Fabric node. + . Possible values include: 'Invalid', 'Downloading', 'Activating', + 'Active', 'Upgrading', 'Deactivating' :type status: str or ~azure.servicefabric.models.DeploymentStatus :param service_package_activation_id: The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_detail_info.py b/azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_detail_info.py index 2e73177e89e4..03c616621d32 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_detail_info.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_detail_info.py @@ -13,7 +13,7 @@ class DeployedStatefulServiceReplicaDetailInfo(DeployedServiceReplicaDetailInfo): - """Information about a stateful replica running in a code package. Please note + """Information about a stateful replica running in a code package. Note DeployedServiceReplicaQueryResult will contain duplicate data like ServiceKind, ServiceName, PartitionId and replicaId. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_detail_info_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_detail_info_py3.py index ded02eb75d63..fe98aade8b95 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_detail_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_detail_info_py3.py @@ -13,7 +13,7 @@ class DeployedStatefulServiceReplicaDetailInfo(DeployedServiceReplicaDetailInfo): - """Information about a stateful replica running in a code package. Please note + """Information about a stateful replica running in a code package. Note DeployedServiceReplicaQueryResult will contain duplicate data like ServiceKind, ServiceName, PartitionId and replicaId. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_stateless_service_instance_detail_info.py b/azure-servicefabric/azure/servicefabric/models/deployed_stateless_service_instance_detail_info.py index d02ce2d384b0..4f06117b7380 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_stateless_service_instance_detail_info.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_stateless_service_instance_detail_info.py @@ -13,9 +13,9 @@ class DeployedStatelessServiceInstanceDetailInfo(DeployedServiceReplicaDetailInfo): - """Information about a stateless instance running in a code package. Please - note that DeployedServiceReplicaQueryResult will contain duplicate data - like ServiceKind, ServiceName, PartitionId and InstanceId. + """Information about a stateless instance running in a code package. Note that + DeployedServiceReplicaQueryResult will contain duplicate data like + ServiceKind, ServiceName, PartitionId and InstanceId. All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_stateless_service_instance_detail_info_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_stateless_service_instance_detail_info_py3.py index 9726a274b788..3bbb72b65620 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_stateless_service_instance_detail_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_stateless_service_instance_detail_info_py3.py @@ -13,9 +13,9 @@ class DeployedStatelessServiceInstanceDetailInfo(DeployedServiceReplicaDetailInfo): - """Information about a stateless instance running in a code package. Please - note that DeployedServiceReplicaQueryResult will contain duplicate data - like ServiceKind, ServiceName, PartitionId and InstanceId. + """Information about a stateless instance running in a code package. Note that + DeployedServiceReplicaQueryResult will contain duplicate data like + ServiceKind, ServiceName, PartitionId and InstanceId. All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/diagnostics_description.py b/azure-servicefabric/azure/servicefabric/models/diagnostics_description.py new file mode 100644 index 000000000000..8c4e0a81adad --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/diagnostics_description.py @@ -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 DiagnosticsDescription(Model): + """Describes the diagnostics options available. + + :param sinks: List of supported sinks that can be referenced. + :type sinks: list[~azure.servicefabric.models.DiagnosticsSinkProperties] + :param enabled: Status of whether or not sinks are enabled. + :type enabled: bool + :param default_sink_refs: The sinks to be used if diagnostics is enabled. + Sink choices can be overridden at the service and code package level. + :type default_sink_refs: list[str] + """ + + _attribute_map = { + 'sinks': {'key': 'sinks', 'type': '[DiagnosticsSinkProperties]'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'default_sink_refs': {'key': 'defaultSinkRefs', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(DiagnosticsDescription, self).__init__(**kwargs) + self.sinks = kwargs.get('sinks', None) + self.enabled = kwargs.get('enabled', None) + self.default_sink_refs = kwargs.get('default_sink_refs', None) diff --git a/azure-servicefabric/azure/servicefabric/models/diagnostics_description_py3.py b/azure-servicefabric/azure/servicefabric/models/diagnostics_description_py3.py new file mode 100644 index 000000000000..6ff42afccddd --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/diagnostics_description_py3.py @@ -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 DiagnosticsDescription(Model): + """Describes the diagnostics options available. + + :param sinks: List of supported sinks that can be referenced. + :type sinks: list[~azure.servicefabric.models.DiagnosticsSinkProperties] + :param enabled: Status of whether or not sinks are enabled. + :type enabled: bool + :param default_sink_refs: The sinks to be used if diagnostics is enabled. + Sink choices can be overridden at the service and code package level. + :type default_sink_refs: list[str] + """ + + _attribute_map = { + 'sinks': {'key': 'sinks', 'type': '[DiagnosticsSinkProperties]'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'default_sink_refs': {'key': 'defaultSinkRefs', 'type': '[str]'}, + } + + def __init__(self, *, sinks=None, enabled: bool=None, default_sink_refs=None, **kwargs) -> None: + super(DiagnosticsDescription, self).__init__(**kwargs) + self.sinks = sinks + self.enabled = enabled + self.default_sink_refs = default_sink_refs diff --git a/azure-servicefabric/azure/servicefabric/models/diagnostics_ref.py b/azure-servicefabric/azure/servicefabric/models/diagnostics_ref.py new file mode 100644 index 000000000000..3d4c803cac28 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/diagnostics_ref.py @@ -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 DiagnosticsRef(Model): + """Reference to sinks in DiagnosticsDescription. + + :param enabled: Status of whether or not sinks are enabled. + :type enabled: bool + :param sink_refs: List of sinks to be used if enabled. References the list + of sinks in DiagnosticsDescription. + :type sink_refs: list[str] + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'sink_refs': {'key': 'sinkRefs', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(DiagnosticsRef, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.sink_refs = kwargs.get('sink_refs', None) diff --git a/azure-servicefabric/azure/servicefabric/models/diagnostics_ref_py3.py b/azure-servicefabric/azure/servicefabric/models/diagnostics_ref_py3.py new file mode 100644 index 000000000000..f11fbf2b40d2 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/diagnostics_ref_py3.py @@ -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 DiagnosticsRef(Model): + """Reference to sinks in DiagnosticsDescription. + + :param enabled: Status of whether or not sinks are enabled. + :type enabled: bool + :param sink_refs: List of sinks to be used if enabled. References the list + of sinks in DiagnosticsDescription. + :type sink_refs: list[str] + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'sink_refs': {'key': 'sinkRefs', 'type': '[str]'}, + } + + def __init__(self, *, enabled: bool=None, sink_refs=None, **kwargs) -> None: + super(DiagnosticsRef, self).__init__(**kwargs) + self.enabled = enabled + self.sink_refs = sink_refs diff --git a/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties.py b/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties.py new file mode 100644 index 000000000000..0f92568c3b43 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties.py @@ -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 DiagnosticsSinkProperties(Model): + """Properties of a DiagnosticsSink. + + All required parameters must be populated in order to send to Azure. + + :param name: Name of the sink. This value is referenced by + DiagnosticsReferenceDescription + :type name: str + :param description: A description of the sink. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DiagnosticsSinkProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties_py3.py new file mode 100644 index 000000000000..a127b1a8af5c --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties_py3.py @@ -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 DiagnosticsSinkProperties(Model): + """Properties of a DiagnosticsSink. + + All required parameters must be populated in order to send to Azure. + + :param name: Name of the sink. This value is referenced by + DiagnosticsReferenceDescription + :type name: str + :param description: A description of the sink. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, description: str=None, **kwargs) -> None: + super(DiagnosticsSinkProperties, self).__init__(**kwargs) + self.name = name + self.description = description + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/endpoint_properties.py b/azure-servicefabric/azure/servicefabric/models/endpoint_properties.py new file mode 100644 index 000000000000..fe53d35ee902 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/endpoint_properties.py @@ -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 EndpointProperties(Model): + """Describes a container endpoint. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the endpoint. + :type name: str + :param port: Port used by the container. + :type port: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(EndpointProperties, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.port = kwargs.get('port', None) diff --git a/azure-servicefabric/azure/servicefabric/models/endpoint_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/endpoint_properties_py3.py new file mode 100644 index 000000000000..d61442506a61 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/endpoint_properties_py3.py @@ -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 EndpointProperties(Model): + """Describes a container endpoint. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the endpoint. + :type name: str + :param port: Port used by the container. + :type port: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, name: str, port: int=None, **kwargs) -> None: + super(EndpointProperties, self).__init__(**kwargs) + self.name = name + self.port = port diff --git a/azure-servicefabric/azure/servicefabric/models/entity_health.py b/azure-servicefabric/azure/servicefabric/models/entity_health.py index dc944ccd6686..b332e34e7e9e 100644 --- a/azure-servicefabric/azure/servicefabric/models/entity_health.py +++ b/azure-servicefabric/azure/servicefabric/models/entity_health.py @@ -15,13 +15,14 @@ class EntityHealth(Model): """Health information common to all entities in the cluster. It contains the aggregated health state, health events and unhealthy evaluation. + . :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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/entity_health_py3.py b/azure-servicefabric/azure/servicefabric/models/entity_health_py3.py index a253cd8bc5db..b0cf3a6a682c 100644 --- a/azure-servicefabric/azure/servicefabric/models/entity_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/entity_health_py3.py @@ -15,13 +15,14 @@ class EntityHealth(Model): """Health information common to all entities in the cluster. It contains the aggregated health state, health events and unhealthy evaluation. + . :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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/environment_variable.py b/azure-servicefabric/azure/servicefabric/models/environment_variable.py new file mode 100644 index 000000000000..0e61588e7c86 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/environment_variable.py @@ -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 EnvironmentVariable(Model): + """Describes an environment variable for the container. + + :param name: The name of the environment variable. + :type name: str + :param value: The value of the environment variable. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EnvironmentVariable, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-servicefabric/azure/servicefabric/models/environment_variable_py3.py b/azure-servicefabric/azure/servicefabric/models/environment_variable_py3.py new file mode 100644 index 000000000000..a91fdc50ebbd --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/environment_variable_py3.py @@ -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 EnvironmentVariable(Model): + """Describes an environment variable for the container. + + :param name: The name of the environment variable. + :type name: str + :param value: The value of the environment variable. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: + super(EnvironmentVariable, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-servicefabric/azure/servicefabric/models/epoch.py b/azure-servicefabric/azure/servicefabric/models/epoch.py index 1b05e02c7b1c..b3baca3a553b 100644 --- a/azure-servicefabric/azure/servicefabric/models/epoch.py +++ b/azure-servicefabric/azure/servicefabric/models/epoch.py @@ -18,6 +18,7 @@ class Epoch(Model): replica changes, the operations that are replicated from the new Primary replica are said to be a new Epoch from the ones which were sent by the old Primary replica. + . :param configuration_version: The current configuration number of this Epoch. The configuration number is an increasing value that is updated diff --git a/azure-servicefabric/azure/servicefabric/models/epoch_py3.py b/azure-servicefabric/azure/servicefabric/models/epoch_py3.py index 44d32ae998c4..900851756ba3 100644 --- a/azure-servicefabric/azure/servicefabric/models/epoch_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/epoch_py3.py @@ -18,6 +18,7 @@ class Epoch(Model): replica changes, the operations that are replicated from the new Primary replica are said to be a new Epoch from the ones which were sent by the old Primary replica. + . :param configuration_version: The current configuration number of this Epoch. The configuration number is an increasing value that is updated diff --git a/azure-servicefabric/azure/servicefabric/models/event_health_evaluation.py b/azure-servicefabric/azure/servicefabric/models/event_health_evaluation.py index 00debb2f71b0..7e92406235fd 100644 --- a/azure-servicefabric/azure/servicefabric/models/event_health_evaluation.py +++ b/azure-servicefabric/azure/servicefabric/models/event_health_evaluation.py @@ -17,6 +17,7 @@ class EventHealthEvaluation(HealthEvaluation): entity. The health evaluation is returned when evaluating health of an entity results in Error or Warning. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/event_health_evaluation_py3.py b/azure-servicefabric/azure/servicefabric/models/event_health_evaluation_py3.py index 5198e6a0a809..9d992396cee7 100644 --- a/azure-servicefabric/azure/servicefabric/models/event_health_evaluation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/event_health_evaluation_py3.py @@ -17,6 +17,7 @@ class EventHealthEvaluation(HealthEvaluation): entity. The health evaluation is returned when evaluating health of an entity results in Error or Warning. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/fabric_error.py b/azure-servicefabric/azure/servicefabric/models/fabric_error.py index cd158334df5e..abd223878d86 100644 --- a/azure-servicefabric/azure/servicefabric/models/fabric_error.py +++ b/azure-servicefabric/azure/servicefabric/models/fabric_error.py @@ -17,6 +17,7 @@ class FabricError(Model): """The REST API operations for Service Fabric return standard HTTP status codes. This type defines the additional information returned from the Service Fabric API operations that are not successful. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/fabric_error_error.py b/azure-servicefabric/azure/servicefabric/models/fabric_error_error.py index 6a99561c327c..7fa37d87c0db 100644 --- a/azure-servicefabric/azure/servicefabric/models/fabric_error_error.py +++ b/azure-servicefabric/azure/servicefabric/models/fabric_error_error.py @@ -97,6 +97,11 @@ class FabricErrorError(Model): Server Error) - "FABRIC_E_NODE_IS_UP" - "E_FAIL" + - "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS" + - "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND" + - "FABRIC_E_VOLUME_ALREADY_EXISTS" + - "ABRIC_E_VOLUME_NOT_FOUND" + - "SerializationError" - Possible values of the error code for HTTP status code 503 (Service Unavailable) - "FABRIC_E_NO_WRITE_QUORUM" @@ -110,8 +115,8 @@ class FabricErrorError(Model): Timeout) - "FABRIC_E_COMMUNICATION_ERROR" - "FABRIC_E_OPERATION_NOT_COMPLETE" - - "FABRIC_E_TIMEOUT". Possible values include: - 'FABRIC_E_INVALID_PARTITION_KEY', + - "FABRIC_E_TIMEOUT" + . Possible values include: 'FABRIC_E_INVALID_PARTITION_KEY', 'FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR', 'FABRIC_E_INVALID_ADDRESS', 'FABRIC_E_APPLICATION_NOT_UPGRADING', 'FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR', @@ -162,7 +167,11 @@ class FabricErrorError(Model): 'FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING', 'FABRIC_E_BACKUP_IN_PROGRESS', 'FABRIC_E_RESTORE_IN_PROGRESS', 'FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING', - 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', 'E_INVALIDARG' + 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', 'E_INVALIDARG', + 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', + 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', + 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND', + 'SerializationError' :type code: str or ~azure.servicefabric.models.FabricErrorCodes :param message: Error message. :type message: str diff --git a/azure-servicefabric/azure/servicefabric/models/fabric_error_error_py3.py b/azure-servicefabric/azure/servicefabric/models/fabric_error_error_py3.py index c4223a268840..4c21f925eb25 100644 --- a/azure-servicefabric/azure/servicefabric/models/fabric_error_error_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/fabric_error_error_py3.py @@ -97,6 +97,11 @@ class FabricErrorError(Model): Server Error) - "FABRIC_E_NODE_IS_UP" - "E_FAIL" + - "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS" + - "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND" + - "FABRIC_E_VOLUME_ALREADY_EXISTS" + - "ABRIC_E_VOLUME_NOT_FOUND" + - "SerializationError" - Possible values of the error code for HTTP status code 503 (Service Unavailable) - "FABRIC_E_NO_WRITE_QUORUM" @@ -110,8 +115,8 @@ class FabricErrorError(Model): Timeout) - "FABRIC_E_COMMUNICATION_ERROR" - "FABRIC_E_OPERATION_NOT_COMPLETE" - - "FABRIC_E_TIMEOUT". Possible values include: - 'FABRIC_E_INVALID_PARTITION_KEY', + - "FABRIC_E_TIMEOUT" + . Possible values include: 'FABRIC_E_INVALID_PARTITION_KEY', 'FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR', 'FABRIC_E_INVALID_ADDRESS', 'FABRIC_E_APPLICATION_NOT_UPGRADING', 'FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR', @@ -162,7 +167,11 @@ class FabricErrorError(Model): 'FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING', 'FABRIC_E_BACKUP_IN_PROGRESS', 'FABRIC_E_RESTORE_IN_PROGRESS', 'FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING', - 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', 'E_INVALIDARG' + 'FABRIC_E_INVALID_SERVICE_SCALING_POLICY', 'E_INVALIDARG', + 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', + 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', + 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND', + 'SerializationError' :type code: str or ~azure.servicefabric.models.FabricErrorCodes :param message: Error message. :type message: str diff --git a/azure-servicefabric/azure/servicefabric/models/fabric_error_py3.py b/azure-servicefabric/azure/servicefabric/models/fabric_error_py3.py index f156cc8ceb11..e69a4f4695e2 100644 --- a/azure-servicefabric/azure/servicefabric/models/fabric_error_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/fabric_error_py3.py @@ -17,6 +17,7 @@ class FabricError(Model): """The REST API operations for Service Fabric return standard HTTP status codes. This type defines the additional information returned from the Service Fabric API operations that are not successful. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/get_property_batch_operation.py b/azure-servicefabric/azure/servicefabric/models/get_property_batch_operation.py index d6f7784f0a62..2bc1ce5d2b4a 100644 --- a/azure-servicefabric/azure/servicefabric/models/get_property_batch_operation.py +++ b/azure-servicefabric/azure/servicefabric/models/get_property_batch_operation.py @@ -17,6 +17,7 @@ class GetPropertyBatchOperation(PropertyBatchOperation): exists. Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be committed in a transactional manner. + . All required parameters must be populated in order to send to Azure. @@ -27,7 +28,8 @@ class GetPropertyBatchOperation(PropertyBatchOperation): :param include_value: Whether or not to return the property value with the metadata. True if values should be returned with the metadata; False to return only - property metadata. Default value: False . + property metadata. + . Default value: False . :type include_value: bool """ diff --git a/azure-servicefabric/azure/servicefabric/models/get_property_batch_operation_py3.py b/azure-servicefabric/azure/servicefabric/models/get_property_batch_operation_py3.py index 19b781a6af2b..5506103e4836 100644 --- a/azure-servicefabric/azure/servicefabric/models/get_property_batch_operation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/get_property_batch_operation_py3.py @@ -17,6 +17,7 @@ class GetPropertyBatchOperation(PropertyBatchOperation): exists. Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be committed in a transactional manner. + . All required parameters must be populated in order to send to Azure. @@ -27,7 +28,8 @@ class GetPropertyBatchOperation(PropertyBatchOperation): :param include_value: Whether or not to return the property value with the metadata. True if values should be returned with the metadata; False to return only - property metadata. Default value: False . + property metadata. + . Default value: False . :type include_value: bool """ diff --git a/azure-servicefabric/azure/servicefabric/models/health_event.py b/azure-servicefabric/azure/servicefabric/models/health_event.py index e513fc233ebb..51de87a89ffc 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_event.py +++ b/azure-servicefabric/azure/servicefabric/models/health_event.py @@ -15,11 +15,12 @@ class HealthEvent(HealthInformation): """Represents health information reported on a health entity, such as cluster, application or node, with additional metadata added by the Health Manager. + . All required parameters must be populated in order to send to Azure. - :param source_id: Required. The source name which identifies the - client/watchdog/system component which generated the health information. + :param source_id: Required. The source name that identifies the + client/watchdog/system component that generated the health information. :type source_id: str :param property: Required. The property of the health information. An entity can have health reports for different properties. diff --git a/azure-servicefabric/azure/servicefabric/models/health_event_py3.py b/azure-servicefabric/azure/servicefabric/models/health_event_py3.py index 8ab24006eff4..503daa8fbb59 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/health_event_py3.py @@ -15,11 +15,12 @@ class HealthEvent(HealthInformation): """Represents health information reported on a health entity, such as cluster, application or node, with additional metadata added by the Health Manager. + . All required parameters must be populated in order to send to Azure. - :param source_id: Required. The source name which identifies the - client/watchdog/system component which generated the health information. + :param source_id: Required. The source name that identifies the + client/watchdog/system component that generated the health information. :type source_id: str :param property: Required. The property of the health information. An entity can have health reports for different properties. diff --git a/azure-servicefabric/azure/servicefabric/models/health_information.py b/azure-servicefabric/azure/servicefabric/models/health_information.py index af1425bb1a04..83e6af36a281 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_information.py +++ b/azure-servicefabric/azure/servicefabric/models/health_information.py @@ -16,11 +16,12 @@ class HealthInformation(Model): """Represents common health report information. It is included in all health reports sent to health store and in all health events returned by health queries. + . All required parameters must be populated in order to send to Azure. - :param source_id: Required. The source name which identifies the - client/watchdog/system component which generated the health information. + :param source_id: Required. The source name that identifies the + client/watchdog/system component that generated the health information. :type source_id: str :param property: Required. The property of the health information. An entity can have health reports for different properties. diff --git a/azure-servicefabric/azure/servicefabric/models/health_information_py3.py b/azure-servicefabric/azure/servicefabric/models/health_information_py3.py index 912cdc71161c..cf3f231d685b 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_information_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/health_information_py3.py @@ -16,11 +16,12 @@ class HealthInformation(Model): """Represents common health report information. It is included in all health reports sent to health store and in all health events returned by health queries. + . All required parameters must be populated in order to send to Azure. - :param source_id: Required. The source name which identifies the - client/watchdog/system component which generated the health information. + :param source_id: Required. The source name that identifies the + client/watchdog/system component that generated the health information. :type source_id: str :param property: Required. The property of the health information. An entity can have health reports for different properties. diff --git a/azure-servicefabric/azure/servicefabric/models/health_state_count.py b/azure-servicefabric/azure/servicefabric/models/health_state_count.py index 0a27c7144b15..dc98b1414535 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_state_count.py +++ b/azure-servicefabric/azure/servicefabric/models/health_state_count.py @@ -15,6 +15,7 @@ class HealthStateCount(Model): """Represents information about how many health entities are in Ok, Warning and Error health state. + . :param ok_count: The number of health entities with aggregated health state Ok. diff --git a/azure-servicefabric/azure/servicefabric/models/health_state_count_py3.py b/azure-servicefabric/azure/servicefabric/models/health_state_count_py3.py index fbba5c1d3d6a..01f91f7a7766 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_state_count_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/health_state_count_py3.py @@ -15,6 +15,7 @@ class HealthStateCount(Model): """Represents information about how many health entities are in Ok, Warning and Error health state. + . :param ok_count: The number of health entities with aggregated health state Ok. diff --git a/azure-servicefabric/azure/servicefabric/models/health_statistics.py b/azure-servicefabric/azure/servicefabric/models/health_statistics.py index 2ad8d5099c17..db2182e935f5 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_statistics.py +++ b/azure-servicefabric/azure/servicefabric/models/health_statistics.py @@ -21,6 +21,7 @@ class HealthStatistics(Model): for nodes, applications, services, partitions, replicas, deployed applications and deployed service packages. For partition, the health statistics include health counts for replicas. + . :param health_state_count_list: List of health state counts per entity kind, which keeps track of how many children of the queried entity are in diff --git a/azure-servicefabric/azure/servicefabric/models/health_statistics_py3.py b/azure-servicefabric/azure/servicefabric/models/health_statistics_py3.py index 5bcfd4175cac..3ae67acf7ba6 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_statistics_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/health_statistics_py3.py @@ -21,6 +21,7 @@ class HealthStatistics(Model): for nodes, applications, services, partitions, replicas, deployed applications and deployed service packages. For partition, the health statistics include health counts for replicas. + . :param health_state_count_list: List of health state counts per entity kind, which keeps track of how many children of the queried entity are in diff --git a/azure-servicefabric/azure/servicefabric/models/image_registry_credential.py b/azure-servicefabric/azure/servicefabric/models/image_registry_credential.py new file mode 100644 index 000000000000..4a31577dad55 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/image_registry_credential.py @@ -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 msrest.serialization import Model + + +class ImageRegistryCredential(Model): + """Image registry credential. + + All required parameters must be populated in order to send to Azure. + + :param server: Required. Docker image registry server, without protocol + such as `http` and `https`. + :type server: str + :param username: Required. The username for the private registry. + :type username: str + :param password: The password for the private registry. + :type password: str + """ + + _validation = { + 'server': {'required': True}, + 'username': {'required': True}, + } + + _attribute_map = { + 'server': {'key': 'server', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ImageRegistryCredential, self).__init__(**kwargs) + self.server = kwargs.get('server', None) + self.username = kwargs.get('username', None) + self.password = kwargs.get('password', None) diff --git a/azure-servicefabric/azure/servicefabric/models/image_registry_credential_py3.py b/azure-servicefabric/azure/servicefabric/models/image_registry_credential_py3.py new file mode 100644 index 000000000000..d189db0f0041 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/image_registry_credential_py3.py @@ -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 msrest.serialization import Model + + +class ImageRegistryCredential(Model): + """Image registry credential. + + All required parameters must be populated in order to send to Azure. + + :param server: Required. Docker image registry server, without protocol + such as `http` and `https`. + :type server: str + :param username: Required. The username for the private registry. + :type username: str + :param password: The password for the private registry. + :type password: str + """ + + _validation = { + 'server': {'required': True}, + 'username': {'required': True}, + } + + _attribute_map = { + 'server': {'key': 'server', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + } + + def __init__(self, *, server: str, username: str, password: str=None, **kwargs) -> None: + super(ImageRegistryCredential, self).__init__(**kwargs) + self.server = server + self.username = username + self.password = password diff --git a/azure-servicefabric/azure/servicefabric/models/monitoring_policy_description.py b/azure-servicefabric/azure/servicefabric/models/monitoring_policy_description.py index 6b95c6eca6a0..eef268f7f348 100644 --- a/azure-servicefabric/azure/servicefabric/models/monitoring_policy_description.py +++ b/azure-servicefabric/azure/servicefabric/models/monitoring_policy_description.py @@ -20,7 +20,8 @@ class MonitoringPolicyDescription(Model): Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade - mode. Possible values include: 'Invalid', 'Rollback', 'Manual' + mode. + . Possible values include: 'Invalid', 'Rollback', 'Manual' :type failure_action: str or ~azure.servicefabric.models.FailureAction :param health_check_wait_duration_in_milliseconds: The amount of time to wait after completing an upgrade domain before applying health policies. diff --git a/azure-servicefabric/azure/servicefabric/models/monitoring_policy_description_py3.py b/azure-servicefabric/azure/servicefabric/models/monitoring_policy_description_py3.py index 1e3b0c85de66..75cde427e518 100644 --- a/azure-servicefabric/azure/servicefabric/models/monitoring_policy_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/monitoring_policy_description_py3.py @@ -20,7 +20,8 @@ class MonitoringPolicyDescription(Model): Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade - mode. Possible values include: 'Invalid', 'Rollback', 'Manual' + mode. + . Possible values include: 'Invalid', 'Rollback', 'Manual' :type failure_action: str or ~azure.servicefabric.models.FailureAction :param health_check_wait_duration_in_milliseconds: The amount of time to wait after completing an upgrade domain before applying health policies. diff --git a/azure-servicefabric/azure/servicefabric/models/network_ref.py b/azure-servicefabric/azure/servicefabric/models/network_ref.py new file mode 100644 index 000000000000..b86c10253c0f --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/network_ref.py @@ -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 NetworkRef(Model): + """Describes a network reference in a service. + + :param name: Name of the network. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkRef, self).__init__(**kwargs) + self.name = kwargs.get('name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/network_ref_py3.py b/azure-servicefabric/azure/servicefabric/models/network_ref_py3.py new file mode 100644 index 000000000000..45e5d333f747 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/network_ref_py3.py @@ -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 NetworkRef(Model): + """Describes a network reference in a service. + + :param name: Name of the network. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, **kwargs) -> None: + super(NetworkRef, self).__init__(**kwargs) + self.name = name diff --git a/azure-servicefabric/azure/servicefabric/models/node_health.py b/azure-servicefabric/azure/servicefabric/models/node_health.py index 174320ce8b94..00529b451b24 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health.py @@ -19,8 +19,8 @@ class NodeHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_py3.py b/azure-servicefabric/azure/servicefabric/models/node_health_py3.py index 54584debb944..12afb61a3b75 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_py3.py @@ -19,8 +19,8 @@ class NodeHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk.py b/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk.py index 4493c0682ef8..ae146cc14f61 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk.py @@ -15,6 +15,7 @@ class NodeHealthStateChunk(EntityHealthStateChunk): """Represents the health state chunk of a node, which contains the node name and its aggregated health state. + . :param health_state: The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_list.py b/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_list.py index c882e9e72c22..db155ef6b8b5 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_list.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_list.py @@ -16,6 +16,7 @@ class NodeHealthStateChunkList(EntityHealthStateChunkList): """The list of node 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. diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_list_py3.py b/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_list_py3.py index 524176b41276..9398cd7266c6 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_list_py3.py @@ -16,6 +16,7 @@ class NodeHealthStateChunkList(EntityHealthStateChunkList): """The list of node 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. diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_py3.py b/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_py3.py index 52d4fbee7fe7..602d2228a8ec 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_state_chunk_py3.py @@ -15,6 +15,7 @@ class NodeHealthStateChunk(EntityHealthStateChunk): """Represents the health state chunk of a node, which contains the node name and its aggregated health state. + . :param health_state: The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_state_filter.py b/azure-servicefabric/azure/servicefabric/models/node_health_state_filter.py index 20bb11d9fe8d..ac46545e0084 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_state_filter.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_state_filter.py @@ -18,6 +18,7 @@ class NodeHealthStateFilter(Model): One filter can match zero, one or multiple nodes, depending on its properties. Can be specified in the cluster health chunk query description. + . :param node_name_filter: Name of the node that matches the filter. The filter is applied only to the specified node, if it exists. @@ -37,7 +38,7 @@ class NodeHealthStateFilter(Model): 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 node is returned. - The state values are flag based enumeration, so the value could be a + 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 nodes with HealthState value of OK (2) and Warning (4). @@ -51,7 +52,8 @@ class NodeHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int """ diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_state_filter_py3.py b/azure-servicefabric/azure/servicefabric/models/node_health_state_filter_py3.py index 58981ab684ad..a061cb4c4771 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_state_filter_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_state_filter_py3.py @@ -18,6 +18,7 @@ class NodeHealthStateFilter(Model): One filter can match zero, one or multiple nodes, depending on its properties. Can be specified in the cluster health chunk query description. + . :param node_name_filter: Name of the node that matches the filter. The filter is applied only to the specified node, if it exists. @@ -37,7 +38,7 @@ class NodeHealthStateFilter(Model): 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 node is returned. - The state values are flag based enumeration, so the value could be a + 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 nodes with HealthState value of OK (2) and Warning (4). @@ -51,7 +52,8 @@ class NodeHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int """ diff --git a/azure-servicefabric/azure/servicefabric/models/node_impact.py b/azure-servicefabric/azure/servicefabric/models/node_impact.py index fc2ba3d8fffd..6246937535a6 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_impact.py +++ b/azure-servicefabric/azure/servicefabric/models/node_impact.py @@ -16,6 +16,7 @@ class NodeImpact(Model): """Describes the expected impact of a repair to a particular node. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/node_impact_py3.py b/azure-servicefabric/azure/servicefabric/models/node_impact_py3.py index 679c9110ffc2..a2e9d9bd06cd 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_impact_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_impact_py3.py @@ -16,6 +16,7 @@ class NodeImpact(Model): """Describes the expected impact of a repair to a particular node. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/node_repair_impact_description.py b/azure-servicefabric/azure/servicefabric/models/node_repair_impact_description.py index cf0eb237c53b..5b55b878858b 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_repair_impact_description.py +++ b/azure-servicefabric/azure/servicefabric/models/node_repair_impact_description.py @@ -16,6 +16,7 @@ class NodeRepairImpactDescription(RepairImpactDescriptionBase): """Describes the expected impact of a repair on a set of nodes. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/node_repair_impact_description_py3.py b/azure-servicefabric/azure/servicefabric/models/node_repair_impact_description_py3.py index 09f45ce8636e..d81f9789bf29 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_repair_impact_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_repair_impact_description_py3.py @@ -16,6 +16,7 @@ class NodeRepairImpactDescription(RepairImpactDescriptionBase): """Describes the expected impact of a repair on a set of nodes. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/node_repair_target_description.py b/azure-servicefabric/azure/servicefabric/models/node_repair_target_description.py index 5a2eff32352b..0f6d5ccf139c 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_repair_target_description.py +++ b/azure-servicefabric/azure/servicefabric/models/node_repair_target_description.py @@ -16,6 +16,7 @@ class NodeRepairTargetDescription(RepairTargetDescriptionBase): """Describes the list of nodes targeted by a repair action. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/node_repair_target_description_py3.py b/azure-servicefabric/azure/servicefabric/models/node_repair_target_description_py3.py index 88204018950d..1134c5e702d9 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_repair_target_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_repair_target_description_py3.py @@ -16,6 +16,7 @@ class NodeRepairTargetDescription(RepairTargetDescriptionBase): """Describes the list of nodes targeted by a repair action. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/node_transition_progress.py b/azure-servicefabric/azure/servicefabric/models/node_transition_progress.py index f60972ef0506..759606e9593a 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_transition_progress.py +++ b/azure-servicefabric/azure/servicefabric/models/node_transition_progress.py @@ -17,6 +17,7 @@ class NodeTransitionProgress(Model): OperationState and a NodeTransitionResult. The NodeTransitionResult is not valid until OperationState is Completed or Faulted. + . :param state: The state of the operation. Possible values include: 'Invalid', 'Running', 'RollingBack', 'Completed', 'Faulted', 'Cancelled', diff --git a/azure-servicefabric/azure/servicefabric/models/node_transition_progress_py3.py b/azure-servicefabric/azure/servicefabric/models/node_transition_progress_py3.py index 3a74806813c8..b964c1877803 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_transition_progress_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_transition_progress_py3.py @@ -17,6 +17,7 @@ class NodeTransitionProgress(Model): OperationState and a NodeTransitionResult. The NodeTransitionResult is not valid until OperationState is Completed or Faulted. + . :param state: The state of the operation. Possible values include: 'Invalid', 'Running', 'RollingBack', 'Completed', 'Faulted', 'Cancelled', diff --git a/azure-servicefabric/azure/servicefabric/models/paged_application_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_application_info_list.py index 539e0c29c5c7..7aa9d71f603c 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_application_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_application_info_list.py @@ -22,7 +22,7 @@ class PagedApplicationInfoList(Model): 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 + 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 items: List of application information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_application_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_application_info_list_py3.py index 43aa243a74e6..46dc2cc8d921 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_application_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_application_info_list_py3.py @@ -22,7 +22,7 @@ class PagedApplicationInfoList(Model): 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 + 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 items: List of application information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_application_type_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_application_type_info_list.py index 5d8ca73e3ea4..486df2b118c5 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_application_type_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_application_type_info_list.py @@ -22,7 +22,7 @@ class PagedApplicationTypeInfoList(Model): 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 + 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 items: List of application type information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_application_type_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_application_type_info_list_py3.py index 18e7445b835b..cfcfce6f0482 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_application_type_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_application_type_info_list_py3.py @@ -22,7 +22,7 @@ class PagedApplicationTypeInfoList(Model): 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 + 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 items: List of application type information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_backup_configuration_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_backup_configuration_info_list.py index 37211ee7f6e6..732c5ac80597 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_backup_configuration_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_backup_configuration_info_list.py @@ -22,7 +22,7 @@ class PagedBackupConfigurationInfoList(Model): 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 + 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 items: List of backup configuration information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_backup_configuration_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_backup_configuration_info_list_py3.py index 7523de04f771..643ec9e4b97d 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_backup_configuration_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_backup_configuration_info_list_py3.py @@ -22,7 +22,7 @@ class PagedBackupConfigurationInfoList(Model): 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 + 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 items: List of backup configuration information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_backup_entity_list.py b/azure-servicefabric/azure/servicefabric/models/paged_backup_entity_list.py index a75c8df56422..08b04f6472f4 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_backup_entity_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_backup_entity_list.py @@ -22,7 +22,7 @@ class PagedBackupEntityList(Model): 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 + 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 items: List of backup entity information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_backup_entity_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_backup_entity_list_py3.py index 814c8b9b9cee..b2e4f9ec05c4 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_backup_entity_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_backup_entity_list_py3.py @@ -22,7 +22,7 @@ class PagedBackupEntityList(Model): 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 + 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 items: List of backup entity information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_backup_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_backup_info_list.py index aa8882ca711f..b65adcc86e88 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_backup_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_backup_info_list.py @@ -21,7 +21,7 @@ class PagedBackupInfoList(Model): 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 + 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 items: List of backup information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_backup_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_backup_info_list_py3.py index d13665a77de6..f3cfc51db5cb 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_backup_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_backup_info_list_py3.py @@ -21,7 +21,7 @@ class PagedBackupInfoList(Model): 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 + 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 items: List of backup information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_backup_policy_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_backup_policy_description_list.py index 988a4fc95ad7..5898dc191d0e 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_backup_policy_description_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_backup_policy_description_list.py @@ -22,7 +22,7 @@ class PagedBackupPolicyDescriptionList(Model): 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 + 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 items: The list of backup policies information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_backup_policy_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_backup_policy_description_list_py3.py index e39c6005f5e4..e87b88558b16 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_backup_policy_description_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_backup_policy_description_list_py3.py @@ -22,7 +22,7 @@ class PagedBackupPolicyDescriptionList(Model): 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 + 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 items: The list of backup policies information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_compose_deployment_status_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_compose_deployment_status_info_list.py index 63caf245ca11..1b2d2c5a231d 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_compose_deployment_status_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_compose_deployment_status_info_list.py @@ -22,7 +22,7 @@ class PagedComposeDeploymentStatusInfoList(Model): 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 + 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 items: List of compose deployment status information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_compose_deployment_status_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_compose_deployment_status_info_list_py3.py index 2ef82ee97867..37c8f8dc388e 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_compose_deployment_status_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_compose_deployment_status_info_list_py3.py @@ -22,7 +22,7 @@ class PagedComposeDeploymentStatusInfoList(Model): 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 + 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 items: List of compose deployment status information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_deployed_application_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_deployed_application_info_list.py index 6209d11fe096..12c2481e4b72 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_deployed_application_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_deployed_application_info_list.py @@ -18,12 +18,13 @@ class PagedDeployedApplicationInfoList(Model): The list is paged when all of the results cannot fit in a single message. The next set of results can be obtained by executing the same query with the continuation token provided in this list. + . :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 + 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 items: List of deployed application information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_deployed_application_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_deployed_application_info_list_py3.py index eca2fffc165f..242135ef0608 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_deployed_application_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_deployed_application_info_list_py3.py @@ -18,12 +18,13 @@ class PagedDeployedApplicationInfoList(Model): The list is paged when all of the results cannot fit in a single message. The next set of results can be obtained by executing the same query with the continuation token provided in this list. + . :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 + 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 items: List of deployed application information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_node_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_node_info_list.py index a204b9cf5884..4819ccb76d02 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_node_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_node_info_list.py @@ -21,7 +21,7 @@ class PagedNodeInfoList(Model): 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 + 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 items: List of node information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_node_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_node_info_list_py3.py index 74d6ead03040..3834bceed0f3 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_node_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_node_info_list_py3.py @@ -21,7 +21,7 @@ class PagedNodeInfoList(Model): 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 + 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 items: List of node information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_property_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_property_info_list.py index 28d546319b6d..a4744c9ff2fc 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_property_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_property_info_list.py @@ -22,7 +22,7 @@ class PagedPropertyInfoList(Model): 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 + 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 is_consistent: Indicates whether any property under the given name diff --git a/azure-servicefabric/azure/servicefabric/models/paged_property_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_property_info_list_py3.py index ecebddd507df..5317c8745572 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_property_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_property_info_list_py3.py @@ -22,7 +22,7 @@ class PagedPropertyInfoList(Model): 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 + 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 is_consistent: Indicates whether any property under the given name diff --git a/azure-servicefabric/azure/servicefabric/models/paged_replica_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_replica_info_list.py index 55b6e258387d..3fb73e21deb4 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_replica_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_replica_info_list.py @@ -22,7 +22,7 @@ class PagedReplicaInfoList(Model): 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 + 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 items: List of replica information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_replica_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_replica_info_list_py3.py index 289a01f9b245..94fb1a703980 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_replica_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_replica_info_list_py3.py @@ -22,7 +22,7 @@ class PagedReplicaInfoList(Model): 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 + 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 items: List of replica information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_service_info_list.py index 8d3feead13db..f17b883c1184 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_service_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_info_list.py @@ -22,7 +22,7 @@ class PagedServiceInfoList(Model): 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 + 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 items: List of service information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_service_info_list_py3.py index 06a444f4e301..3f8d6c02453c 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_service_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_info_list_py3.py @@ -22,7 +22,7 @@ class PagedServiceInfoList(Model): 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 + 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 items: List of service information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_partition_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_service_partition_info_list.py index 013fc622dc53..8cf85e24f086 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_service_partition_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_partition_info_list.py @@ -22,7 +22,7 @@ class PagedServicePartitionInfoList(Model): 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 + 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 items: List of service partition information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_partition_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_service_partition_info_list_py3.py index 786de1bad73a..58d90e9fa3be 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_service_partition_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_partition_info_list_py3.py @@ -22,7 +22,7 @@ class PagedServicePartitionInfoList(Model): 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 + 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 items: List of service partition information. diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list.py new file mode 100644 index 000000000000..004ad553d81e --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list.py @@ -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 PagedServiceResourceDescriptionList(Model): + """The list of service resources in the cluster. The list is paged when all of + the results cannot fit in a single message. The next set of results can be + obtained by executing the same query with the continuation token provided + in this list. + + :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 items: List of service resource description. + :type items: list[~azure.servicefabric.models.ServiceResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[ServiceResourceDescription]'}, + } + + def __init__(self, **kwargs): + super(PagedServiceResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list_py3.py new file mode 100644 index 000000000000..03c2ef9a5404 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list_py3.py @@ -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 PagedServiceResourceDescriptionList(Model): + """The list of service resources in the cluster. The list is paged when all of + the results cannot fit in a single message. The next set of results can be + obtained by executing the same query with the continuation token provided + in this list. + + :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 items: List of service resource description. + :type items: list[~azure.servicefabric.models.ServiceResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[ServiceResourceDescription]'}, + } + + def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: + super(PagedServiceResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list.py new file mode 100644 index 000000000000..59965287ec2a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list.py @@ -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 PagedServiceResourceReplicaDescriptionList(Model): + """The list of service resources in the cluster. The list is paged when all of + the results cannot fit in a single message. The next set of results can be + obtained by executing the same query with the continuation token provided + in this list. + + :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 items: List of service resource description. + :type items: + list[~azure.servicefabric.models.ServiceResourceReplicaDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[ServiceResourceReplicaDescription]'}, + } + + def __init__(self, **kwargs): + super(PagedServiceResourceReplicaDescriptionList, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list_py3.py new file mode 100644 index 000000000000..3336e5559b8e --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list_py3.py @@ -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 PagedServiceResourceReplicaDescriptionList(Model): + """The list of service resources in the cluster. The list is paged when all of + the results cannot fit in a single message. The next set of results can be + obtained by executing the same query with the continuation token provided + in this list. + + :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 items: List of service resource description. + :type items: + list[~azure.servicefabric.models.ServiceResourceReplicaDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[ServiceResourceReplicaDescription]'}, + } + + def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: + super(PagedServiceResourceReplicaDescriptionList, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/paged_sub_name_info_list.py b/azure-servicefabric/azure/servicefabric/models/paged_sub_name_info_list.py index c94074d3b945..50d6d0d09343 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_sub_name_info_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_sub_name_info_list.py @@ -22,7 +22,7 @@ class PagedSubNameInfoList(Model): 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 + 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 is_consistent: Indicates whether any name under the given name has diff --git a/azure-servicefabric/azure/servicefabric/models/paged_sub_name_info_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_sub_name_info_list_py3.py index 0da81d80bc4e..04b1f66cb925 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_sub_name_info_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_sub_name_info_list_py3.py @@ -22,7 +22,7 @@ class PagedSubNameInfoList(Model): 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 + 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 is_consistent: Indicates whether any name under the given name has diff --git a/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info.py b/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info.py index 803db32008bd..995eef5121e7 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info.py @@ -22,8 +22,9 @@ class PartitionBackupConfigurationInfo(BackupConfigurationInfo): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info_py3.py index b23c637916a6..0b0169fe19ba 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info_py3.py @@ -22,8 +22,9 @@ class PartitionBackupConfigurationInfo(BackupConfigurationInfo): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health.py b/azure-servicefabric/azure/servicefabric/models/partition_health.py index cc54da85cf36..bfdeef85ca01 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health.py @@ -19,8 +19,8 @@ class PartitionHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_health_py3.py index 8e8e37e89dec..f4513bae71f8 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_py3.py @@ -19,8 +19,8 @@ class PartitionHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk.py b/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk.py index fe8fc51d2ee7..c570cc265dd6 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk.py @@ -16,6 +16,7 @@ class PartitionHealthStateChunk(EntityHealthStateChunk): """Represents the health state chunk of a partition, which contains the partition ID, its aggregated health state and any replicas that respect the filters in the 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 diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_list.py b/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_list.py index 7d11f66acfa8..586cbcdfa1f5 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_list.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_list.py @@ -17,6 +17,7 @@ class PartitionHealthStateChunkList(Model): the chunk query description. Returned by get cluster health state chunks query as part of the parent application hierarchy. + . :param items: The list of partition health state chunks that respect the input filters in the chunk query. diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_list_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_list_py3.py index 163b94d55459..267e843368a9 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_list_py3.py @@ -17,6 +17,7 @@ class PartitionHealthStateChunkList(Model): the chunk query description. Returned by get cluster health state chunks query as part of the parent application hierarchy. + . :param items: The list of partition health state chunks that respect the input filters in the chunk query. diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_py3.py index 52ec8ea2b5a7..ab445e842d12 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_state_chunk_py3.py @@ -16,6 +16,7 @@ class PartitionHealthStateChunk(EntityHealthStateChunk): """Represents the health state chunk of a partition, which contains the partition ID, its aggregated health state and any replicas that respect the filters in the 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 diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_state_filter.py b/azure-servicefabric/azure/servicefabric/models/partition_health_state_filter.py index e484a1f94be6..8759d74f360d 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_state_filter.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_state_filter.py @@ -20,6 +20,7 @@ class PartitionHealthStateFilter(Model): and application must be included in the cluster health chunk. One filter can match zero, one or multiple partitions, depending on its properties. + . :param partition_id_filter: ID of the partition that matches the filter. The filter is applied only to the specified partition, if it exists. @@ -40,7 +41,7 @@ class PartitionHealthStateFilter(Model): If not specified, default value is None, unless the partition ID is specified. If the filter has default value and partition ID is specified, the matching partition is returned. - The state values are flag based enumeration, so the value could be a + 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 partitions with HealthState value of OK (2) and Warning (4). @@ -54,7 +55,8 @@ class PartitionHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int :param replica_filters: Defines a list of filters that specify which replicas to be included in the returned cluster health chunk as children diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_state_filter_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_health_state_filter_py3.py index 8843b8ba2bd5..30b61a463498 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_state_filter_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_state_filter_py3.py @@ -20,6 +20,7 @@ class PartitionHealthStateFilter(Model): and application must be included in the cluster health chunk. One filter can match zero, one or multiple partitions, depending on its properties. + . :param partition_id_filter: ID of the partition that matches the filter. The filter is applied only to the specified partition, if it exists. @@ -40,7 +41,7 @@ class PartitionHealthStateFilter(Model): If not specified, default value is None, unless the partition ID is specified. If the filter has default value and partition ID is specified, the matching partition is returned. - The state values are flag based enumeration, so the value could be a + 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 partitions with HealthState value of OK (2) and Warning (4). @@ -54,7 +55,8 @@ class PartitionHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int :param replica_filters: Defines a list of filters that specify which replicas to be included in the returned cluster health chunk as children diff --git a/azure-servicefabric/azure/servicefabric/models/partition_load_information.py b/azure-servicefabric/azure/servicefabric/models/partition_load_information.py index 4991fdaa0717..1de19150aec1 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_load_information.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_load_information.py @@ -18,6 +18,7 @@ class PartitionLoadInformation(Model): In case there is no load reported, PartitionLoadInformation will contain the default load for the service of the partition. For default loads, LoadMetricReport's LastReportedUtc is set to 0. + . :param partition_id: Id of the partition. :type partition_id: str diff --git a/azure-servicefabric/azure/servicefabric/models/partition_load_information_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_load_information_py3.py index fabcd880a560..8cb19c04982c 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_load_information_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_load_information_py3.py @@ -18,6 +18,7 @@ class PartitionLoadInformation(Model): In case there is no load reported, PartitionLoadInformation will contain the default load for the service of the partition. For default loads, LoadMetricReport's LastReportedUtc is set to 0. + . :param partition_id: Id of the partition. :type partition_id: str diff --git a/azure-servicefabric/azure/servicefabric/models/property_description.py b/azure-servicefabric/azure/servicefabric/models/property_description.py index 145ee6a3b7bf..f94b470527f4 100644 --- a/azure-servicefabric/azure/servicefabric/models/property_description.py +++ b/azure-servicefabric/azure/servicefabric/models/property_description.py @@ -19,7 +19,7 @@ class PropertyDescription(Model): :param property_name: Required. The name of the Service Fabric property. :type property_name: str - :param custom_type_id: The property's custom type id. Using this property, + :param custom_type_id: The property's custom type ID. Using this property, the user is able to tag the type of the value of the property. :type custom_type_id: str :param value: Required. Describes a Service Fabric property value. diff --git a/azure-servicefabric/azure/servicefabric/models/property_description_py3.py b/azure-servicefabric/azure/servicefabric/models/property_description_py3.py index b069f87d211d..bfdb021e0356 100644 --- a/azure-servicefabric/azure/servicefabric/models/property_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/property_description_py3.py @@ -19,7 +19,7 @@ class PropertyDescription(Model): :param property_name: Required. The name of the Service Fabric property. :type property_name: str - :param custom_type_id: The property's custom type id. Using this property, + :param custom_type_id: The property's custom type ID. Using this property, the user is able to tag the type of the value of the property. :type custom_type_id: str :param value: Required. Describes a Service Fabric property value. diff --git a/azure-servicefabric/azure/servicefabric/models/property_metadata.py b/azure-servicefabric/azure/servicefabric/models/property_metadata.py index 0646afbcb7ca..8c772044bcf9 100644 --- a/azure-servicefabric/azure/servicefabric/models/property_metadata.py +++ b/azure-servicefabric/azure/servicefabric/models/property_metadata.py @@ -19,10 +19,10 @@ class PropertyMetadata(Model): Following are the possible values. Possible values include: 'Invalid', 'Binary', 'Int64', 'Double', 'String', 'Guid' :type type_id: str or ~azure.servicefabric.models.PropertyValueKind - :param custom_type_id: The property's custom type id. + :param custom_type_id: The property's custom type ID. :type custom_type_id: str :param parent: The name of the parent Service Fabric Name for the - property. It could be thought of as the namespace/table under which the + property. It could be thought of as the name-space/table under which the property exists. :type parent: str :param size_in_bytes: The length of the serialized property value. diff --git a/azure-servicefabric/azure/servicefabric/models/property_metadata_py3.py b/azure-servicefabric/azure/servicefabric/models/property_metadata_py3.py index a658d9e46418..8d3d2a9eb0f6 100644 --- a/azure-servicefabric/azure/servicefabric/models/property_metadata_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/property_metadata_py3.py @@ -19,10 +19,10 @@ class PropertyMetadata(Model): Following are the possible values. Possible values include: 'Invalid', 'Binary', 'Int64', 'Double', 'String', 'Guid' :type type_id: str or ~azure.servicefabric.models.PropertyValueKind - :param custom_type_id: The property's custom type id. + :param custom_type_id: The property's custom type ID. :type custom_type_id: str :param parent: The name of the parent Service Fabric Name for the - property. It could be thought of as the namespace/table under which the + property. It could be thought of as the name-space/table under which the property exists. :type parent: str :param size_in_bytes: The length of the serialized property value. diff --git a/azure-servicefabric/azure/servicefabric/models/put_property_batch_operation.py b/azure-servicefabric/azure/servicefabric/models/put_property_batch_operation.py index 594bbf426400..f425e7853f27 100644 --- a/azure-servicefabric/azure/servicefabric/models/put_property_batch_operation.py +++ b/azure-servicefabric/azure/servicefabric/models/put_property_batch_operation.py @@ -16,6 +16,7 @@ class PutPropertyBatchOperation(PropertyBatchOperation): """Puts the specified property under the specified name. Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be committed in a transactional manner. + . All required parameters must be populated in order to send to Azure. @@ -25,7 +26,7 @@ class PutPropertyBatchOperation(PropertyBatchOperation): :type kind: str :param value: Required. Describes a Service Fabric property value. :type value: ~azure.servicefabric.models.PropertyValue - :param custom_type_id: The property's custom type id. Using this property, + :param custom_type_id: The property's custom type ID. Using this property, the user is able to tag the type of the value of the property. :type custom_type_id: str """ diff --git a/azure-servicefabric/azure/servicefabric/models/put_property_batch_operation_py3.py b/azure-servicefabric/azure/servicefabric/models/put_property_batch_operation_py3.py index 5dd13517ecbc..933ce0d8c2a6 100644 --- a/azure-servicefabric/azure/servicefabric/models/put_property_batch_operation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/put_property_batch_operation_py3.py @@ -16,6 +16,7 @@ class PutPropertyBatchOperation(PropertyBatchOperation): """Puts the specified property under the specified name. Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be committed in a transactional manner. + . All required parameters must be populated in order to send to Azure. @@ -25,7 +26,7 @@ class PutPropertyBatchOperation(PropertyBatchOperation): :type kind: str :param value: Required. Describes a Service Fabric property value. :type value: ~azure.servicefabric.models.PropertyValue - :param custom_type_id: The property's custom type id. Using this property, + :param custom_type_id: The property's custom type ID. Using this property, the user is able to tag the type of the value of the property. :type custom_type_id: str """ diff --git a/azure-servicefabric/azure/servicefabric/models/remote_replicator_status.py b/azure-servicefabric/azure/servicefabric/models/remote_replicator_status.py index 0258c8421cf2..bf67d3827961 100644 --- a/azure-servicefabric/azure/servicefabric/models/remote_replicator_status.py +++ b/azure-servicefabric/azure/servicefabric/models/remote_replicator_status.py @@ -15,6 +15,7 @@ class RemoteReplicatorStatus(Model): """Represents the state of the secondary replicator from the primary replicator’s point of view. + . :param replica_id: Represents the replica ID of the remote secondary replicator. diff --git a/azure-servicefabric/azure/servicefabric/models/remote_replicator_status_py3.py b/azure-servicefabric/azure/servicefabric/models/remote_replicator_status_py3.py index 99c71f03cb3e..f18c18ff37ee 100644 --- a/azure-servicefabric/azure/servicefabric/models/remote_replicator_status_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/remote_replicator_status_py3.py @@ -15,6 +15,7 @@ class RemoteReplicatorStatus(Model): """Represents the state of the secondary replicator from the primary replicator’s point of view. + . :param replica_id: Represents the replica ID of the remote secondary replicator. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_impact_description_base.py b/azure-servicefabric/azure/servicefabric/models/repair_impact_description_base.py index 5e691e7a41bd..857de0e7e193 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_impact_description_base.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_impact_description_base.py @@ -16,6 +16,7 @@ class RepairImpactDescriptionBase(Model): """Describes the expected impact of executing a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . You probably want to use the sub-classes and not this class directly. Known sub-classes are: NodeRepairImpactDescription diff --git a/azure-servicefabric/azure/servicefabric/models/repair_impact_description_base_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_impact_description_base_py3.py index 3569e103b046..6cc20ebb634e 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_impact_description_base_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_impact_description_base_py3.py @@ -16,6 +16,7 @@ class RepairImpactDescriptionBase(Model): """Describes the expected impact of executing a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . You probably want to use the sub-classes and not this class directly. Known sub-classes are: NodeRepairImpactDescription diff --git a/azure-servicefabric/azure/servicefabric/models/repair_target_description_base.py b/azure-servicefabric/azure/servicefabric/models/repair_target_description_base.py index 5bedd766183f..68f904d5c5d6 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_target_description_base.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_target_description_base.py @@ -16,6 +16,7 @@ class RepairTargetDescriptionBase(Model): """Describes the entities targeted by a repair action. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . You probably want to use the sub-classes and not this class directly. Known sub-classes are: NodeRepairTargetDescription diff --git a/azure-servicefabric/azure/servicefabric/models/repair_target_description_base_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_target_description_base_py3.py index d68058e5411a..2093cffc8761 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_target_description_base_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_target_description_base_py3.py @@ -16,6 +16,7 @@ class RepairTargetDescriptionBase(Model): """Describes the entities targeted by a repair action. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . You probably want to use the sub-classes and not this class directly. Known sub-classes are: NodeRepairTargetDescription diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task.py b/azure-servicefabric/azure/servicefabric/models/repair_task.py index 068b3c318f66..3fdd559ea96b 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task.py @@ -17,6 +17,7 @@ class RepairTask(Model): repair was requested, what its progress is, and what its final result was. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_approve_description.py b/azure-servicefabric/azure/servicefabric/models/repair_task_approve_description.py index 132dcbdb20a6..5c8857116d50 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_approve_description.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_approve_description.py @@ -16,6 +16,7 @@ class RepairTaskApproveDescription(Model): """Describes a request for forced approval of a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_approve_description_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_task_approve_description_py3.py index 78c312a24c29..52a303867d1b 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_approve_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_approve_description_py3.py @@ -16,6 +16,7 @@ class RepairTaskApproveDescription(Model): """Describes a request for forced approval of a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_cancel_description.py b/azure-servicefabric/azure/servicefabric/models/repair_task_cancel_description.py index 63767fb7a881..ddce49a70f7c 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_cancel_description.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_cancel_description.py @@ -16,6 +16,7 @@ class RepairTaskCancelDescription(Model): """Describes a request to cancel a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_cancel_description_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_task_cancel_description_py3.py index d4dcde4773fb..87ed714aa222 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_cancel_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_cancel_description_py3.py @@ -16,6 +16,7 @@ class RepairTaskCancelDescription(Model): """Describes a request to cancel a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_delete_description.py b/azure-servicefabric/azure/servicefabric/models/repair_task_delete_description.py index 910f4fe26e16..43f8391dd881 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_delete_description.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_delete_description.py @@ -16,6 +16,7 @@ class RepairTaskDeleteDescription(Model): """Describes a request to delete a completed repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_delete_description_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_task_delete_description_py3.py index 60ca772d0793..2573d9ff4798 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_delete_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_delete_description_py3.py @@ -16,6 +16,7 @@ class RepairTaskDeleteDescription(Model): """Describes a request to delete a completed repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_history.py b/azure-servicefabric/azure/servicefabric/models/repair_task_history.py index 476516dd75a2..82983e137b3e 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_history.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_history.py @@ -16,6 +16,7 @@ class RepairTaskHistory(Model): """A record of the times when the repair task entered each state. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param created_utc_timestamp: The time when the repair task entered the Created state. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_history_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_task_history_py3.py index 923526b08dd4..87de9ee40a04 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_history_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_history_py3.py @@ -16,6 +16,7 @@ class RepairTaskHistory(Model): """A record of the times when the repair task entered each state. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param created_utc_timestamp: The time when the repair task entered the Created state. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_task_py3.py index fbcc3c5f2f1a..08b2fe5ffacd 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_py3.py @@ -17,6 +17,7 @@ class RepairTask(Model): repair was requested, what its progress is, and what its final result was. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_update_health_policy_description.py b/azure-servicefabric/azure/servicefabric/models/repair_task_update_health_policy_description.py index 619160237755..32a432e48b73 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_update_health_policy_description.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_update_health_policy_description.py @@ -16,6 +16,7 @@ class RepairTaskUpdateHealthPolicyDescription(Model): """Describes a request to update the health policy of a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_update_health_policy_description_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_task_update_health_policy_description_py3.py index 58615aada594..a0941bb931a9 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_update_health_policy_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_update_health_policy_description_py3.py @@ -16,6 +16,7 @@ class RepairTaskUpdateHealthPolicyDescription(Model): """Describes a request to update the health policy of a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_update_info.py b/azure-servicefabric/azure/servicefabric/models/repair_task_update_info.py index e034e7c302ca..d7d732090ca4 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_update_info.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_update_info.py @@ -16,6 +16,7 @@ class RepairTaskUpdateInfo(Model): """Describes the result of an operation that created or updated a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/repair_task_update_info_py3.py b/azure-servicefabric/azure/servicefabric/models/repair_task_update_info_py3.py index 6d3897b62e67..4bc4e13535bc 100644 --- a/azure-servicefabric/azure/servicefabric/models/repair_task_update_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/repair_task_update_info_py3.py @@ -16,6 +16,7 @@ class RepairTaskUpdateInfo(Model): """Describes the result of an operation that created or updated a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/replica_health.py b/azure-servicefabric/azure/servicefabric/models/replica_health.py index 555519098fc0..9ee021024a22 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_health.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_health.py @@ -17,6 +17,7 @@ class ReplicaHealth(EntityHealth): instance health. Contains the replica aggregated health state, the health events and the unhealthy evaluations. + . You probably want to use the sub-classes and not this class directly. Known sub-classes are: StatefulServiceReplicaHealth, @@ -28,8 +29,8 @@ class ReplicaHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/replica_health_py3.py b/azure-servicefabric/azure/servicefabric/models/replica_health_py3.py index 1e67205ac908..7e19d59f187e 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_health_py3.py @@ -17,6 +17,7 @@ class ReplicaHealth(EntityHealth): instance health. Contains the replica aggregated health state, the health events and the unhealthy evaluations. + . You probably want to use the sub-classes and not this class directly. Known sub-classes are: StatefulServiceReplicaHealth, @@ -28,8 +29,8 @@ class ReplicaHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk.py b/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk.py index 8f3b8e9f8db4..f0400d18fea9 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk.py @@ -17,6 +17,7 @@ class ReplicaHealthStateChunk(EntityHealthStateChunk): stateless service instance. The replica health state contains the replica ID and its aggregated health state. + . :param health_state: The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible diff --git a/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_list.py b/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_list.py index 6f8ba7e8865d..ffb424cc85f6 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_list.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_list.py @@ -15,6 +15,7 @@ class ReplicaHealthStateChunkList(Model): """The list of replica 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 replica health state chunks that respect the input filters in the chunk query. diff --git a/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_list_py3.py b/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_list_py3.py index 90e847677494..52a0aa5c84b9 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_list_py3.py @@ -15,6 +15,7 @@ class ReplicaHealthStateChunkList(Model): """The list of replica 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 replica health state chunks that respect the input filters in the chunk query. diff --git a/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_py3.py b/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_py3.py index 8a21181e6ea8..b69428fb1c57 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_health_state_chunk_py3.py @@ -17,6 +17,7 @@ class ReplicaHealthStateChunk(EntityHealthStateChunk): stateless service instance. The replica health state contains the replica ID and its aggregated health state. + . :param health_state: The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible diff --git a/azure-servicefabric/azure/servicefabric/models/replica_health_state_filter.py b/azure-servicefabric/azure/servicefabric/models/replica_health_state_filter.py index a5cb71b4b310..d6154c73da77 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_health_state_filter.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_health_state_filter.py @@ -21,6 +21,7 @@ class ReplicaHealthStateFilter(Model): chunk. One filter can match zero, one or multiple replicas, depending on its properties. + . :param replica_or_instance_id_filter: Id of the stateful service replica or stateless service instance that matches the filter. The filter is @@ -42,7 +43,7 @@ class ReplicaHealthStateFilter(Model): If not specified, default value is None, unless the replica ID is specified. If the filter has default value and replica ID is specified, the matching replica is returned. - The state values are flag based enumeration, so the value could be a + 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 replicas with HealthState value of OK (2) and Warning (4). @@ -56,7 +57,8 @@ class ReplicaHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int """ diff --git a/azure-servicefabric/azure/servicefabric/models/replica_health_state_filter_py3.py b/azure-servicefabric/azure/servicefabric/models/replica_health_state_filter_py3.py index 74827322c7ae..87f3c72aa8b4 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_health_state_filter_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_health_state_filter_py3.py @@ -21,6 +21,7 @@ class ReplicaHealthStateFilter(Model): chunk. One filter can match zero, one or multiple replicas, depending on its properties. + . :param replica_or_instance_id_filter: Id of the stateful service replica or stateless service instance that matches the filter. The filter is @@ -42,7 +43,7 @@ class ReplicaHealthStateFilter(Model): If not specified, default value is None, unless the replica ID is specified. If the filter has default value and replica ID is specified, the matching replica is returned. - The state values are flag based enumeration, so the value could be a + 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 replicas with HealthState value of OK (2) and Warning (4). @@ -56,7 +57,8 @@ class ReplicaHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int """ diff --git a/azure-servicefabric/azure/servicefabric/models/replicator_queue_status.py b/azure-servicefabric/azure/servicefabric/models/replicator_queue_status.py index 043c06709773..2a721255e265 100644 --- a/azure-servicefabric/azure/servicefabric/models/replicator_queue_status.py +++ b/azure-servicefabric/azure/servicefabric/models/replicator_queue_status.py @@ -20,6 +20,7 @@ class ReplicatorQueueStatus(Model): timestamp, etc. Depending on the role of the replicator, the properties in this type imply different meanings. + . :param queue_utilization_percentage: Represents the utilization of the queue. A value of 0 indicates that the queue is empty and a value of 100 diff --git a/azure-servicefabric/azure/servicefabric/models/replicator_queue_status_py3.py b/azure-servicefabric/azure/servicefabric/models/replicator_queue_status_py3.py index 112316e92c7d..acacebc3bb95 100644 --- a/azure-servicefabric/azure/servicefabric/models/replicator_queue_status_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/replicator_queue_status_py3.py @@ -20,6 +20,7 @@ class ReplicatorQueueStatus(Model): timestamp, etc. Depending on the role of the replicator, the properties in this type imply different meanings. + . :param queue_utilization_percentage: Represents the utilization of the queue. A value of 0 indicates that the queue is empty and a value of 100 diff --git a/azure-servicefabric/azure/servicefabric/models/replicator_status.py b/azure-servicefabric/azure/servicefabric/models/replicator_status.py index 7e1fb2a6fc13..c070d3786a6c 100644 --- a/azure-servicefabric/azure/servicefabric/models/replicator_status.py +++ b/azure-servicefabric/azure/servicefabric/models/replicator_status.py @@ -17,6 +17,7 @@ class ReplicatorStatus(Model): Contains information about the service fabric replicator like the replication/copy queue utilization, last acknowledgement received timestamp, etc. + . You probably want to use the sub-classes and not this class directly. Known sub-classes are: PrimaryReplicatorStatus, SecondaryReplicatorStatus diff --git a/azure-servicefabric/azure/servicefabric/models/replicator_status_py3.py b/azure-servicefabric/azure/servicefabric/models/replicator_status_py3.py index b11fc83d92ec..5f9e0bf8ecd0 100644 --- a/azure-servicefabric/azure/servicefabric/models/replicator_status_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/replicator_status_py3.py @@ -17,6 +17,7 @@ class ReplicatorStatus(Model): Contains information about the service fabric replicator like the replication/copy queue utilization, last acknowledgement received timestamp, etc. + . You probably want to use the sub-classes and not this class directly. Known sub-classes are: PrimaryReplicatorStatus, SecondaryReplicatorStatus diff --git a/azure-servicefabric/azure/servicefabric/models/resource_limits.py b/azure-servicefabric/azure/servicefabric/models/resource_limits.py new file mode 100644 index 000000000000..9653965c0df6 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/resource_limits.py @@ -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 msrest.serialization import Model + + +class ResourceLimits(Model): + """This type describes the resource limits for a given container. It describes + the most amount of resources a container is allowed to use before being + restarted. + + :param memory_in_gb: The memory limit in GB. + :type memory_in_gb: float + :param cpu: CPU limits in cores. At present, only full cores are + supported. + :type cpu: float + """ + + _attribute_map = { + 'memory_in_gb': {'key': 'memoryInGB', 'type': 'float'}, + 'cpu': {'key': 'cpu', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(ResourceLimits, self).__init__(**kwargs) + self.memory_in_gb = kwargs.get('memory_in_gb', None) + self.cpu = kwargs.get('cpu', None) diff --git a/azure-servicefabric/azure/servicefabric/models/resource_limits_py3.py b/azure-servicefabric/azure/servicefabric/models/resource_limits_py3.py new file mode 100644 index 000000000000..2817c55a584a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/resource_limits_py3.py @@ -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 msrest.serialization import Model + + +class ResourceLimits(Model): + """This type describes the resource limits for a given container. It describes + the most amount of resources a container is allowed to use before being + restarted. + + :param memory_in_gb: The memory limit in GB. + :type memory_in_gb: float + :param cpu: CPU limits in cores. At present, only full cores are + supported. + :type cpu: float + """ + + _attribute_map = { + 'memory_in_gb': {'key': 'memoryInGB', 'type': 'float'}, + 'cpu': {'key': 'cpu', 'type': 'float'}, + } + + def __init__(self, *, memory_in_gb: float=None, cpu: float=None, **kwargs) -> None: + super(ResourceLimits, self).__init__(**kwargs) + self.memory_in_gb = memory_in_gb + self.cpu = cpu diff --git a/azure-servicefabric/azure/servicefabric/models/resource_requests.py b/azure-servicefabric/azure/servicefabric/models/resource_requests.py new file mode 100644 index 000000000000..b185f6486271 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/resource_requests.py @@ -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 ResourceRequests(Model): + """This type describes the requested resources for a given container. It + describes the least amount of resources required for the container. A + container can consume more than requested resources up to the specified + limits before being restarted. Currently, the requested resources are + treated as limits. + . + + All required parameters must be populated in order to send to Azure. + + :param memory_in_gb: Required. The memory request in GB for this + container. + :type memory_in_gb: float + :param cpu: Required. Requested number of CPU cores. At present, only full + cores are supported. + :type cpu: float + """ + + _validation = { + 'memory_in_gb': {'required': True}, + 'cpu': {'required': True}, + } + + _attribute_map = { + 'memory_in_gb': {'key': 'memoryInGB', 'type': 'float'}, + 'cpu': {'key': 'cpu', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(ResourceRequests, self).__init__(**kwargs) + self.memory_in_gb = kwargs.get('memory_in_gb', None) + self.cpu = kwargs.get('cpu', None) diff --git a/azure-servicefabric/azure/servicefabric/models/resource_requests_py3.py b/azure-servicefabric/azure/servicefabric/models/resource_requests_py3.py new file mode 100644 index 000000000000..a51aef471c63 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/resource_requests_py3.py @@ -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 ResourceRequests(Model): + """This type describes the requested resources for a given container. It + describes the least amount of resources required for the container. A + container can consume more than requested resources up to the specified + limits before being restarted. Currently, the requested resources are + treated as limits. + . + + All required parameters must be populated in order to send to Azure. + + :param memory_in_gb: Required. The memory request in GB for this + container. + :type memory_in_gb: float + :param cpu: Required. Requested number of CPU cores. At present, only full + cores are supported. + :type cpu: float + """ + + _validation = { + 'memory_in_gb': {'required': True}, + 'cpu': {'required': True}, + } + + _attribute_map = { + 'memory_in_gb': {'key': 'memoryInGB', 'type': 'float'}, + 'cpu': {'key': 'cpu', 'type': 'float'}, + } + + def __init__(self, *, memory_in_gb: float, cpu: float, **kwargs) -> None: + super(ResourceRequests, self).__init__(**kwargs) + self.memory_in_gb = memory_in_gb + self.cpu = cpu diff --git a/azure-servicefabric/azure/servicefabric/models/resource_requirements.py b/azure-servicefabric/azure/servicefabric/models/resource_requirements.py new file mode 100644 index 000000000000..e28015728be1 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/resource_requirements.py @@ -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 ResourceRequirements(Model): + """This type describes the resource requirements for a container or a service. + + All required parameters must be populated in order to send to Azure. + + :param requests: Required. Describes the requested resources for a given + container. + :type requests: ~azure.servicefabric.models.ResourceRequests + :param limits: Describes the maximum limits on the resources for a given + container. + :type limits: ~azure.servicefabric.models.ResourceLimits + """ + + _validation = { + 'requests': {'required': True}, + } + + _attribute_map = { + 'requests': {'key': 'requests', 'type': 'ResourceRequests'}, + 'limits': {'key': 'limits', 'type': 'ResourceLimits'}, + } + + def __init__(self, **kwargs): + super(ResourceRequirements, self).__init__(**kwargs) + self.requests = kwargs.get('requests', None) + self.limits = kwargs.get('limits', None) diff --git a/azure-servicefabric/azure/servicefabric/models/resource_requirements_py3.py b/azure-servicefabric/azure/servicefabric/models/resource_requirements_py3.py new file mode 100644 index 000000000000..09945aa5c5a0 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/resource_requirements_py3.py @@ -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 ResourceRequirements(Model): + """This type describes the resource requirements for a container or a service. + + All required parameters must be populated in order to send to Azure. + + :param requests: Required. Describes the requested resources for a given + container. + :type requests: ~azure.servicefabric.models.ResourceRequests + :param limits: Describes the maximum limits on the resources for a given + container. + :type limits: ~azure.servicefabric.models.ResourceLimits + """ + + _validation = { + 'requests': {'required': True}, + } + + _attribute_map = { + 'requests': {'key': 'requests', 'type': 'ResourceRequests'}, + 'limits': {'key': 'limits', 'type': 'ResourceLimits'}, + } + + def __init__(self, *, requests, limits=None, **kwargs) -> None: + super(ResourceRequirements, self).__init__(**kwargs) + self.requests = requests + self.limits = limits diff --git a/azure-servicefabric/azure/servicefabric/models/restart_deployed_code_package_description.py b/azure-servicefabric/azure/servicefabric/models/restart_deployed_code_package_description.py index 8f2cf70886e0..ab89e8d49b6f 100644 --- a/azure-servicefabric/azure/servicefabric/models/restart_deployed_code_package_description.py +++ b/azure-servicefabric/azure/servicefabric/models/restart_deployed_code_package_description.py @@ -15,6 +15,7 @@ class RestartDeployedCodePackageDescription(Model): """Defines description for restarting a deployed code package on Service Fabric node. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/restart_deployed_code_package_description_py3.py b/azure-servicefabric/azure/servicefabric/models/restart_deployed_code_package_description_py3.py index 6bd67699e57f..7510a387303d 100644 --- a/azure-servicefabric/azure/servicefabric/models/restart_deployed_code_package_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/restart_deployed_code_package_description_py3.py @@ -15,6 +15,7 @@ class RestartDeployedCodePackageDescription(Model): """Defines description for restarting a deployed code package on Service Fabric node. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/restart_node_description.py b/azure-servicefabric/azure/servicefabric/models/restart_node_description.py index cbcd8643b3ec..f913764a3170 100644 --- a/azure-servicefabric/azure/servicefabric/models/restart_node_description.py +++ b/azure-servicefabric/azure/servicefabric/models/restart_node_description.py @@ -24,7 +24,7 @@ class RestartNodeDescription(Model): value: "0" . :type node_instance_id: str :param create_fabric_dump: Specify True to create a dump of the fabric - node process. This is case sensitive. Possible values include: 'False', + node process. This is case-sensitive. Possible values include: 'False', 'True'. Default value: "False" . :type create_fabric_dump: str or ~azure.servicefabric.models.CreateFabricDump diff --git a/azure-servicefabric/azure/servicefabric/models/restart_node_description_py3.py b/azure-servicefabric/azure/servicefabric/models/restart_node_description_py3.py index f70d52cba01d..025da5984f22 100644 --- a/azure-servicefabric/azure/servicefabric/models/restart_node_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/restart_node_description_py3.py @@ -24,7 +24,7 @@ class RestartNodeDescription(Model): value: "0" . :type node_instance_id: str :param create_fabric_dump: Specify True to create a dump of the fabric - node process. This is case sensitive. Possible values include: 'False', + node process. This is case-sensitive. Possible values include: 'False', 'True'. Default value: "False" . :type create_fabric_dump: str or ~azure.servicefabric.models.CreateFabricDump diff --git a/azure-servicefabric/azure/servicefabric/models/restore_progress_info.py b/azure-servicefabric/azure/servicefabric/models/restore_progress_info.py index 8f893348ff67..39f0b2b89714 100644 --- a/azure-servicefabric/azure/servicefabric/models/restore_progress_info.py +++ b/azure-servicefabric/azure/servicefabric/models/restore_progress_info.py @@ -16,8 +16,9 @@ class RestoreProgressInfo(Model): """Describes the progress of a restore operation on a partition. :param restore_state: Represents the current state of the partition - restore operation. Possible values include: 'Invalid', 'Accepted', - 'RestoreInProgress', 'Success', 'Failure', 'Timeout' + restore operation. + . Possible values include: 'Invalid', 'Accepted', 'RestoreInProgress', + 'Success', 'Failure', 'Timeout' :type restore_state: str or ~azure.servicefabric.models.RestoreState :param time_stamp_utc: Timestamp when operation succeeded or failed. :type time_stamp_utc: datetime diff --git a/azure-servicefabric/azure/servicefabric/models/restore_progress_info_py3.py b/azure-servicefabric/azure/servicefabric/models/restore_progress_info_py3.py index ec761d523099..f6028c11604c 100644 --- a/azure-servicefabric/azure/servicefabric/models/restore_progress_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/restore_progress_info_py3.py @@ -16,8 +16,9 @@ class RestoreProgressInfo(Model): """Describes the progress of a restore operation on a partition. :param restore_state: Represents the current state of the partition - restore operation. Possible values include: 'Invalid', 'Accepted', - 'RestoreInProgress', 'Success', 'Failure', 'Timeout' + restore operation. + . Possible values include: 'Invalid', 'Accepted', 'RestoreInProgress', + 'Success', 'Failure', 'Timeout' :type restore_state: str or ~azure.servicefabric.models.RestoreState :param time_stamp_utc: Timestamp when operation succeeded or failed. :type time_stamp_utc: datetime diff --git a/azure-servicefabric/azure/servicefabric/models/rolling_upgrade_update_description.py b/azure-servicefabric/azure/servicefabric/models/rolling_upgrade_update_description.py index 3bf8f6523702..b185c092d611 100644 --- a/azure-servicefabric/azure/servicefabric/models/rolling_upgrade_update_description.py +++ b/azure-servicefabric/azure/servicefabric/models/rolling_upgrade_update_description.py @@ -41,7 +41,8 @@ class RollingUpgradeUpdateDescription(Model): Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade - mode. Possible values include: 'Invalid', 'Rollback', 'Manual' + mode. + . Possible values include: 'Invalid', 'Rollback', 'Manual' :type failure_action: str or ~azure.servicefabric.models.FailureAction :param health_check_wait_duration_in_milliseconds: The amount of time to wait after completing an upgrade domain before applying health policies. diff --git a/azure-servicefabric/azure/servicefabric/models/rolling_upgrade_update_description_py3.py b/azure-servicefabric/azure/servicefabric/models/rolling_upgrade_update_description_py3.py index e29005cc47c2..116354ac6439 100644 --- a/azure-servicefabric/azure/servicefabric/models/rolling_upgrade_update_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/rolling_upgrade_update_description_py3.py @@ -41,7 +41,8 @@ class RollingUpgradeUpdateDescription(Model): Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade - mode. Possible values include: 'Invalid', 'Rollback', 'Manual' + mode. + . Possible values include: 'Invalid', 'Rollback', 'Manual' :type failure_action: str or ~azure.servicefabric.models.FailureAction :param health_check_wait_duration_in_milliseconds: The amount of time to wait after completing an upgrade domain before applying health policies. diff --git a/azure-servicefabric/azure/servicefabric/models/service_backup_configuration_info.py b/azure-servicefabric/azure/servicefabric/models/service_backup_configuration_info.py index 7ee1cd776236..1bc4f4c45936 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_backup_configuration_info.py +++ b/azure-servicefabric/azure/servicefabric/models/service_backup_configuration_info.py @@ -23,8 +23,9 @@ class ServiceBackupConfigurationInfo(BackupConfigurationInfo): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/service_backup_configuration_info_py3.py b/azure-servicefabric/azure/servicefabric/models/service_backup_configuration_info_py3.py index 5d708f47948f..0156024f0b09 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_backup_configuration_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_backup_configuration_info_py3.py @@ -23,8 +23,9 @@ class ServiceBackupConfigurationInfo(BackupConfigurationInfo): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/service_created_event.py b/azure-servicefabric/azure/servicefabric/models/service_created_event.py index 18ef6ff9c67c..41507f2da246 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_created_event.py @@ -27,7 +27,7 @@ class ServiceCreatedEvent(ServiceEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py index 4a107d35aef9..85da62411112 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py @@ -27,7 +27,7 @@ class ServiceCreatedEvent(ServiceEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_deleted_event.py b/azure-servicefabric/azure/servicefabric/models/service_deleted_event.py index b6107146a993..fa14df02ecee 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_deleted_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_deleted_event.py @@ -27,7 +27,7 @@ class ServiceDeletedEvent(ServiceEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_deleted_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_deleted_event_py3.py index ae03f223b651..4bada4904170 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_deleted_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_deleted_event_py3.py @@ -27,7 +27,7 @@ class ServiceDeletedEvent(ServiceEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_event.py b/azure-servicefabric/azure/servicefabric/models/service_event.py index 07587ca446fd..8c7937b204c5 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_event.py @@ -31,7 +31,7 @@ class ServiceEvent(FabricEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_event_py3.py index f9b326e48fa9..1be7606566c1 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_event_py3.py @@ -31,7 +31,7 @@ class ServiceEvent(FabricEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_fabric_client_ap_is_enums.py b/azure-servicefabric/azure/servicefabric/models/service_fabric_client_ap_is_enums.py index ebaeb12c0256..95f1696c8ce1 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_fabric_client_ap_is_enums.py +++ b/azure-servicefabric/azure/servicefabric/models/service_fabric_client_ap_is_enums.py @@ -113,7 +113,7 @@ class NodeUpgradePhase(str, Enum): class FailureReason(str, Enum): none = "None" #: Indicates the reason is invalid or unknown. All Service Fabric enumerations have the invalid type. The value is zero. - interrupted = "Interrupted" #: There was an external request to rollback the upgrade. The value is 1 + interrupted = "Interrupted" #: There was an external request to roll back the upgrade. The value is 1 health_check = "HealthCheck" #: The upgrade failed due to health policy violations. The value is 2 upgrade_domain_timeout = "UpgradeDomainTimeout" #: An upgrade domain took longer than the allowed upgrade domain timeout to process. The value is 3 overall_upgrade_timeout = "OverallUpgradeTimeout" #: The overall upgrade took longer than the allowed upgrade timeout to process. The value is 4 @@ -268,6 +268,11 @@ class FabricErrorCodes(str, Enum): fabric_e_backup_policy_already_existing = "FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING" fabric_e_invalid_service_scaling_policy = "FABRIC_E_INVALID_SERVICE_SCALING_POLICY" e_invalidarg = "E_INVALIDARG" + fabric_e_single_instance_application_already_exists = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS" + fabric_e_single_instance_application_not_found = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND" + fabric_e_volume_already_exists = "FABRIC_E_VOLUME_ALREADY_EXISTS" + fabric_e_volume_not_found = "FABRIC_E_VOLUME_NOT_FOUND" + serialization_error = "SerializationError" class FabricEventKind(str, Enum): @@ -875,6 +880,38 @@ class ScalingMechanismKind(str, Enum): add_remove_incremental_named_partition = "AddRemoveIncrementalNamedPartition" #: Indicates a mechanism for scaling where new named partitions are added or removed from a service. The value is 2. +class ServiceResourceStatus(str, Enum): + + unknown = "Unknown" + active = "Active" + upgrading = "Upgrading" + deleting = "Deleting" + creating = "Creating" + failed = "Failed" + + +class ApplicationResourceStatus(str, Enum): + + invalid = "Invalid" + ready = "Ready" + upgrading = "Upgrading" + creating = "Creating" + deleting = "Deleting" + failed = "Failed" + + +class DiagnosticsSinkKind(str, Enum): + + invalid = "Invalid" #: Indicates an invalid sink kind. All Service Fabric enumerations have the invalid type. + azure_internal_monitoring_pipeline = "AzureInternalMonitoringPipeline" #: Diagnostics settings for Geneva. + + +class OperatingSystemTypes(str, Enum): + + linux = "Linux" + windows = "Windows" + + class NodeStatusFilter(str, Enum): default = "default" #: This filter value will match all of the nodes excepts the ones with with status as Unknown or Removed. diff --git a/azure-servicefabric/azure/servicefabric/models/service_from_template_description.py b/azure-servicefabric/azure/servicefabric/models/service_from_template_description.py index 6a3a2903cc31..664e5e71febc 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_from_template_description.py +++ b/azure-servicefabric/azure/servicefabric/models/service_from_template_description.py @@ -15,6 +15,7 @@ class ServiceFromTemplateDescription(Model): """Defines description for creating a Service Fabric service from a template defined in the application manifest. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_from_template_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_from_template_description_py3.py index be8bf5e2bf53..6afb6e5e79ab 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_from_template_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_from_template_description_py3.py @@ -15,6 +15,7 @@ class ServiceFromTemplateDescription(Model): """Defines description for creating a Service Fabric service from a template defined in the application manifest. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_health.py b/azure-servicefabric/azure/servicefabric/models/service_health.py index 885831d1cc76..44df7a175d8f 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health.py @@ -19,8 +19,8 @@ class ServiceHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_py3.py b/azure-servicefabric/azure/servicefabric/models/service_health_py3.py index 73650307264d..b7e5910af340 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_py3.py @@ -19,8 +19,8 @@ class ServiceHealth(EntityHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event.py index 2d4d47ca5db1..807e50a197cc 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event.py @@ -27,7 +27,7 @@ class ServiceHealthReportCreatedEvent(ServiceEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event_py3.py index 90b0a5d17021..bceb16a455fc 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event_py3.py @@ -27,7 +27,7 @@ class ServiceHealthReportCreatedEvent(ServiceEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event.py index a8e6e63e41bb..b5a9c3ac9a60 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event.py @@ -27,7 +27,7 @@ class ServiceHealthReportExpiredEvent(ServiceEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event_py3.py index 610abf6e6178..72911d581f3e 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event_py3.py @@ -27,7 +27,7 @@ class ServiceHealthReportExpiredEvent(ServiceEvent): :type has_correlated_events: bool :param kind: Required. Constant filled by server. :type kind: str - :param service_id: Required. The identity of the service. This is an + :param service_id: Required. The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk.py b/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk.py index b1bb24cc5a52..171e0a37af32 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk.py @@ -16,6 +16,7 @@ class ServiceHealthStateChunk(EntityHealthStateChunk): """Represents the health state chunk of a service, which contains the service name, its aggregated health state and any partitions that respect the filters in the 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 diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_list.py b/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_list.py index 63511118e85c..0d56d3453464 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_list.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_list.py @@ -15,6 +15,7 @@ class ServiceHealthStateChunkList(Model): """The list of service 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 service health state chunks that respect the input filters in the chunk query. diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_list_py3.py b/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_list_py3.py index 9f7473042e06..a34a9cd9fd78 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_list_py3.py @@ -15,6 +15,7 @@ class ServiceHealthStateChunkList(Model): """The list of service 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 service health state chunks that respect the input filters in the chunk query. diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_py3.py b/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_py3.py index 18f343ce3abf..e3d48ec306aa 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_state_chunk_py3.py @@ -16,6 +16,7 @@ class ServiceHealthStateChunk(EntityHealthStateChunk): """Represents the health state chunk of a service, which contains the service name, its aggregated health state and any partitions that respect the filters in the 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 diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_state_filter.py b/azure-servicefabric/azure/servicefabric/models/service_health_state_filter.py index 1fb07f42369a..38e26549ac5b 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_state_filter.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_state_filter.py @@ -19,6 +19,7 @@ class ServiceHealthStateFilter(Model): specified in the cluster health chunk query description. One filter can match zero, one or multiple services, depending on its properties. + . :param service_name_filter: The name of the service that matches the filter. The filter is applied only to the specified service, if it exists. @@ -39,7 +40,7 @@ class ServiceHealthStateFilter(Model): If not specified, default value is None, unless the service name is specified. If the filter has default value and service name is specified, the matching service is returned. - The state values are flag based enumeration, so the value could be a + 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 services with HealthState value of OK (2) and Warning (4). @@ -53,7 +54,8 @@ class ServiceHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int :param partition_filters: Defines a list of filters that specify which partitions to be included in the returned cluster health chunk as children diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_state_filter_py3.py b/azure-servicefabric/azure/servicefabric/models/service_health_state_filter_py3.py index d02e37499e11..992266056040 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_state_filter_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_state_filter_py3.py @@ -19,6 +19,7 @@ class ServiceHealthStateFilter(Model): specified in the cluster health chunk query description. One filter can match zero, one or multiple services, depending on its properties. + . :param service_name_filter: The name of the service that matches the filter. The filter is applied only to the specified service, if it exists. @@ -39,7 +40,7 @@ class ServiceHealthStateFilter(Model): If not specified, default value is None, unless the service name is specified. If the filter has default value and service name is specified, the matching service is returned. - The state values are flag based enumeration, so the value could be a + 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 services with HealthState value of OK (2) and Warning (4). @@ -53,7 +54,8 @@ class ServiceHealthStateFilter(Model): - 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 . + 65535. + . Default value: 0 . :type health_state_filter: int :param partition_filters: Defines a list of filters that specify which partitions to be included in the returned cluster health chunk as children diff --git a/azure-servicefabric/azure/servicefabric/models/service_info.py b/azure-servicefabric/azure/servicefabric/models/service_info.py index cab01e120a74..d6e72ba01938 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_info.py +++ b/azure-servicefabric/azure/servicefabric/models/service_info.py @@ -20,9 +20,9 @@ class ServiceInfo(Model): All required parameters must be populated in order to send to Azure. - :param id: The identity of the service. This is an encoded representation - of the service name. This is used in the REST APIs to identify the service - resource. + :param id: The identity of the service. This ID is an encoded + representation of the service name. This is used in the REST APIs to + identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\\~svc1" in 6.0+ and diff --git a/azure-servicefabric/azure/servicefabric/models/service_info_py3.py b/azure-servicefabric/azure/servicefabric/models/service_info_py3.py index ea32af0f1c35..2cba52c53cba 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_info_py3.py @@ -20,9 +20,9 @@ class ServiceInfo(Model): All required parameters must be populated in order to send to Azure. - :param id: The identity of the service. This is an encoded representation - of the service name. This is used in the REST APIs to identify the service - resource. + :param id: The identity of the service. This ID is an encoded + representation of the service name. This is used in the REST APIs to + identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\\~svc1" in 6.0+ and diff --git a/azure-servicefabric/azure/servicefabric/models/service_load_metric_description.py b/azure-servicefabric/azure/servicefabric/models/service_load_metric_description.py index 6e24680531e7..00bc3f3070ad 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_load_metric_description.py +++ b/azure-servicefabric/azure/servicefabric/models/service_load_metric_description.py @@ -19,8 +19,8 @@ class ServiceLoadMetricDescription(Model): :param name: Required. The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name - that is specified in Name exactly. Note that metric names are case - sensitive. + that is specified in Name exactly. Note that metric names are + case-sensitive. :type name: str :param weight: The service load metric relative weight, compared to other metrics configured for this service, as a number. Possible values include: diff --git a/azure-servicefabric/azure/servicefabric/models/service_load_metric_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_load_metric_description_py3.py index f98d85eb533e..7b764fbec1ec 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_load_metric_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_load_metric_description_py3.py @@ -19,8 +19,8 @@ class ServiceLoadMetricDescription(Model): :param name: Required. The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name - that is specified in Name exactly. Note that metric names are case - sensitive. + that is specified in Name exactly. Note that metric names are + case-sensitive. :type name: str :param weight: The service load metric relative weight, compared to other metrics configured for this service, as a number. Possible values include: diff --git a/azure-servicefabric/azure/servicefabric/models/service_name_info.py b/azure-servicefabric/azure/servicefabric/models/service_name_info.py index 38a691f1abff..75fd440e2206 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_name_info.py +++ b/azure-servicefabric/azure/servicefabric/models/service_name_info.py @@ -15,9 +15,9 @@ class ServiceNameInfo(Model): """Information about the service name. - :param id: The identity of the service. This is an encoded representation - of the service name. This is used in the REST APIs to identify the service - resource. + :param id: The identity of the service. This ID is an encoded + representation of the service name. This is used in the REST APIs to + identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\\~svc1" in 6.0+ and diff --git a/azure-servicefabric/azure/servicefabric/models/service_name_info_py3.py b/azure-servicefabric/azure/servicefabric/models/service_name_info_py3.py index 62ffe9b8761b..474752f8d37f 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_name_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_name_info_py3.py @@ -15,9 +15,9 @@ class ServiceNameInfo(Model): """Information about the service name. - :param id: The identity of the service. This is an encoded representation - of the service name. This is used in the REST APIs to identify the service - resource. + :param id: The identity of the service. This ID is an encoded + representation of the service name. This is used in the REST APIs to + identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\\~svc1" in 6.0+ and diff --git a/azure-servicefabric/azure/servicefabric/models/service_placement_non_partially_place_service_policy_description.py b/azure-servicefabric/azure/servicefabric/models/service_placement_non_partially_place_service_policy_description.py index f0eb52e5803e..e15580ab053d 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_placement_non_partially_place_service_policy_description.py +++ b/azure-servicefabric/azure/servicefabric/models/service_placement_non_partially_place_service_policy_description.py @@ -16,6 +16,7 @@ class ServicePlacementNonPartiallyPlaceServicePolicyDescription(ServicePlacement """Describes the policy to be used for placement of a Service Fabric service where all replicas must be able to be placed in order for any replicas to be created. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_placement_non_partially_place_service_policy_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_placement_non_partially_place_service_policy_description_py3.py index 1ecf5dcb5011..01cfe0ca2f5e 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_placement_non_partially_place_service_policy_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_placement_non_partially_place_service_policy_description_py3.py @@ -16,6 +16,7 @@ class ServicePlacementNonPartiallyPlaceServicePolicyDescription(ServicePlacement """Describes the policy to be used for placement of a Service Fabric service where all replicas must be able to be placed in order for any replicas to be created. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_placement_prefer_primary_domain_policy_description.py b/azure-servicefabric/azure/servicefabric/models/service_placement_prefer_primary_domain_policy_description.py index 5607a81b9f46..2cb54cde1032 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_placement_prefer_primary_domain_policy_description.py +++ b/azure-servicefabric/azure/servicefabric/models/service_placement_prefer_primary_domain_policy_description.py @@ -23,6 +23,7 @@ class ServicePlacementPreferPrimaryDomainPolicyDescription(ServicePlacementPolic regional or datacenter boundaries. Note that since this is an optimization it is possible that the Primary replica may not end up located in this domain due to failures, capacity limits, or other constraints. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_placement_prefer_primary_domain_policy_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_placement_prefer_primary_domain_policy_description_py3.py index cc4c1f2053d3..ff58c6b86db6 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_placement_prefer_primary_domain_policy_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_placement_prefer_primary_domain_policy_description_py3.py @@ -23,6 +23,7 @@ class ServicePlacementPreferPrimaryDomainPolicyDescription(ServicePlacementPolic regional or datacenter boundaries. Note that since this is an optimization it is possible that the Primary replica may not end up located in this domain due to failures, capacity limits, or other constraints. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_placement_require_domain_distribution_policy_description.py b/azure-servicefabric/azure/servicefabric/models/service_placement_require_domain_distribution_policy_description.py index b55462133715..c71ddf9a8de9 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_placement_require_domain_distribution_policy_description.py +++ b/azure-servicefabric/azure/servicefabric/models/service_placement_require_domain_distribution_policy_description.py @@ -24,6 +24,7 @@ class ServicePlacementRequireDomainDistributionPolicyDescription(ServicePlacemen the replica that was placed in that datacenter will be packed into one of the remaining datacenters. If this is not desirable then this policy should be set. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_placement_require_domain_distribution_policy_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_placement_require_domain_distribution_policy_description_py3.py index b7d886aa9b0e..101e872e8545 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_placement_require_domain_distribution_policy_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_placement_require_domain_distribution_policy_description_py3.py @@ -24,6 +24,7 @@ class ServicePlacementRequireDomainDistributionPolicyDescription(ServicePlacemen the replica that was placed in that datacenter will be packed into one of the remaining datacenters. If this is not desirable then this policy should be set. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_replica_properties.py b/azure-servicefabric/azure/servicefabric/models/service_replica_properties.py new file mode 100644 index 000000000000..7b959cd22bae --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/service_replica_properties.py @@ -0,0 +1,54 @@ +# 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 ServiceReplicaProperties(Model): + """Describes the properties of a service replica. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The Operating system type required by the code + in service. + . Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.servicefabric.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.servicefabric.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'code_packages': {'key': 'codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + } + + def __init__(self, **kwargs): + super(ServiceReplicaProperties, self).__init__(**kwargs) + self.os_type = kwargs.get('os_type', None) + self.code_packages = kwargs.get('code_packages', None) + self.network_refs = kwargs.get('network_refs', None) + self.diagnostics = kwargs.get('diagnostics', None) diff --git a/azure-servicefabric/azure/servicefabric/models/service_replica_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/service_replica_properties_py3.py new file mode 100644 index 000000000000..ccd511fbefd8 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/service_replica_properties_py3.py @@ -0,0 +1,54 @@ +# 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 ServiceReplicaProperties(Model): + """Describes the properties of a service replica. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The Operating system type required by the code + in service. + . Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.servicefabric.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.servicefabric.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'code_packages': {'key': 'codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + } + + def __init__(self, *, os_type, code_packages, network_refs=None, diagnostics=None, **kwargs) -> None: + super(ServiceReplicaProperties, self).__init__(**kwargs) + self.os_type = os_type + self.code_packages = code_packages + self.network_refs = network_refs + self.diagnostics = diagnostics diff --git a/azure-servicefabric/azure/servicefabric/models/service_resource_description.py b/azure-servicefabric/azure/servicefabric/models/service_resource_description.py new file mode 100644 index 000000000000..cdbb602a1333 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/service_resource_description.py @@ -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 ServiceResourceDescription(Model): + """Describes a service fabric service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The Operating system type required by the code + in service. + . Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.servicefabric.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.servicefabric.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + :param description: User readable description of the service. + :type description: str + :param replica_count: The number of replicas of the service to create. + Defaults to 1 if not specified. + :type replica_count: int + :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 + :ivar status: Represents the status of the service. Possible values + include: 'Unknown', 'Active', 'Upgrading', 'Deleting', 'Creating', + 'Failed' + :vartype status: str or ~azure.servicefabric.models.ServiceResourceStatus + :param name: Required. Service resource name. + :type name: str + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + 'status': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'properties.osType', 'type': 'str'}, + 'code_packages': {'key': 'properties.codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'properties.networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsRef'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'replica_count': {'key': 'properties.replicaCount', 'type': 'int'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceResourceDescription, self).__init__(**kwargs) + self.os_type = kwargs.get('os_type', None) + self.code_packages = kwargs.get('code_packages', None) + self.network_refs = kwargs.get('network_refs', None) + self.diagnostics = kwargs.get('diagnostics', None) + self.description = kwargs.get('description', None) + self.replica_count = kwargs.get('replica_count', None) + self.health_state = kwargs.get('health_state', None) + self.status = None + self.name = kwargs.get('name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/service_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_resource_description_py3.py new file mode 100644 index 000000000000..8e5c48c5038b --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/service_resource_description_py3.py @@ -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 ServiceResourceDescription(Model): + """Describes a service fabric service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The Operating system type required by the code + in service. + . Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.servicefabric.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.servicefabric.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + :param description: User readable description of the service. + :type description: str + :param replica_count: The number of replicas of the service to create. + Defaults to 1 if not specified. + :type replica_count: int + :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 + :ivar status: Represents the status of the service. Possible values + include: 'Unknown', 'Active', 'Upgrading', 'Deleting', 'Creating', + 'Failed' + :vartype status: str or ~azure.servicefabric.models.ServiceResourceStatus + :param name: Required. Service resource name. + :type name: str + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + 'status': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'properties.osType', 'type': 'str'}, + 'code_packages': {'key': 'properties.codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'properties.networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsRef'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'replica_count': {'key': 'properties.replicaCount', 'type': 'int'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, os_type, code_packages, name: str, network_refs=None, diagnostics=None, description: str=None, replica_count: int=None, health_state=None, **kwargs) -> None: + super(ServiceResourceDescription, self).__init__(**kwargs) + self.os_type = os_type + self.code_packages = code_packages + self.network_refs = network_refs + self.diagnostics = diagnostics + self.description = description + self.replica_count = replica_count + self.health_state = health_state + self.status = None + self.name = name diff --git a/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description.py b/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description.py new file mode 100644 index 000000000000..3f9d0d14fb2b --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description.py @@ -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 .service_replica_properties import ServiceReplicaProperties + + +class ServiceResourceReplicaDescription(ServiceReplicaProperties): + """Describes a replica of a service resource. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The Operating system type required by the code + in service. + . Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.servicefabric.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.servicefabric.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + :param replica_name: Required. Name of the replica. + :type replica_name: str + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + 'replica_name': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'code_packages': {'key': 'codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + 'replica_name': {'key': 'replicaName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceResourceReplicaDescription, self).__init__(**kwargs) + self.replica_name = kwargs.get('replica_name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description_py3.py new file mode 100644 index 000000000000..7a1595c509e7 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description_py3.py @@ -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 .service_replica_properties_py3 import ServiceReplicaProperties + + +class ServiceResourceReplicaDescription(ServiceReplicaProperties): + """Describes a replica of a service resource. + + All required parameters must be populated in order to send to Azure. + + :param os_type: Required. The Operating system type required by the code + in service. + . Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param code_packages: Required. Describes the set of code packages that + forms the service. A code package describes the container and the + properties for running it. All the code packages are started together on + the same host and share the same context (network, process etc.). + :type code_packages: + list[~azure.servicefabric.models.ContainerCodePackageProperties] + :param network_refs: The names of the private networks that this service + needs to be part of. + :type network_refs: list[~azure.servicefabric.models.NetworkRef] + :param diagnostics: Reference to sinks in DiagnosticsDescription. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + :param replica_name: Required. Name of the replica. + :type replica_name: str + """ + + _validation = { + 'os_type': {'required': True}, + 'code_packages': {'required': True}, + 'replica_name': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'code_packages': {'key': 'codePackages', 'type': '[ContainerCodePackageProperties]'}, + 'network_refs': {'key': 'networkRefs', 'type': '[NetworkRef]'}, + 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + 'replica_name': {'key': 'replicaName', 'type': 'str'}, + } + + def __init__(self, *, os_type, code_packages, replica_name: str, network_refs=None, diagnostics=None, **kwargs) -> None: + super(ServiceResourceReplicaDescription, self).__init__(os_type=os_type, code_packages=code_packages, network_refs=network_refs, diagnostics=diagnostics, **kwargs) + self.replica_name = replica_name diff --git a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy.py b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy.py index 6bb8bd0e1e45..a4f29b294bab 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy.py +++ b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy.py @@ -15,6 +15,7 @@ class ServiceTypeHealthPolicy(Model): """Represents the health policy used to evaluate the health of services belonging to a service type. + . :param max_percent_unhealthy_partitions_per_service: The maximum allowed percentage of unhealthy partitions per service. Allowed values are Byte @@ -26,7 +27,8 @@ class ServiceTypeHealthPolicy(Model): The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. The computation rounds up to tolerate one failure on small numbers of - partitions. Default percentage is zero. Default value: 0 . + partitions. Default percentage is zero. + . Default value: 0 . :type max_percent_unhealthy_partitions_per_service: int :param max_percent_unhealthy_replicas_per_partition: The maximum allowed percentage of unhealthy replicas per partition. Allowed values are Byte @@ -38,7 +40,8 @@ class ServiceTypeHealthPolicy(Model): The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. The computation rounds up to tolerate one failure on small numbers of - replicas. Default percentage is zero. Default value: 0 . + replicas. Default percentage is zero. + . Default value: 0 . :type max_percent_unhealthy_replicas_per_partition: int :param max_percent_unhealthy_services: The maximum maximum allowed percentage of unhealthy services. Allowed values are Byte values from zero @@ -51,7 +54,8 @@ class ServiceTypeHealthPolicy(Model): specific service type over the total number of services of the specific service type. The computation rounds up to tolerate one failure on small numbers of - services. Default percentage is zero. Default value: 0 . + services. Default percentage is zero. + . Default value: 0 . :type max_percent_unhealthy_services: int """ diff --git a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_map_item.py b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_map_item.py index 6f056b946c43..7eee5e0d2cce 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_map_item.py +++ b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_map_item.py @@ -14,6 +14,7 @@ class ServiceTypeHealthPolicyMapItem(Model): """Defines an item in ServiceTypeHealthPolicyMap. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_map_item_py3.py b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_map_item_py3.py index 87e5baea5f2e..f17da0c00fc7 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_map_item_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_map_item_py3.py @@ -14,6 +14,7 @@ class ServiceTypeHealthPolicyMapItem(Model): """Defines an item in ServiceTypeHealthPolicyMap. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_py3.py b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_py3.py index 11941a78796f..e5bd3fa81be9 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_py3.py @@ -15,6 +15,7 @@ class ServiceTypeHealthPolicy(Model): """Represents the health policy used to evaluate the health of services belonging to a service type. + . :param max_percent_unhealthy_partitions_per_service: The maximum allowed percentage of unhealthy partitions per service. Allowed values are Byte @@ -26,7 +27,8 @@ class ServiceTypeHealthPolicy(Model): The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. The computation rounds up to tolerate one failure on small numbers of - partitions. Default percentage is zero. Default value: 0 . + partitions. Default percentage is zero. + . Default value: 0 . :type max_percent_unhealthy_partitions_per_service: int :param max_percent_unhealthy_replicas_per_partition: The maximum allowed percentage of unhealthy replicas per partition. Allowed values are Byte @@ -38,7 +40,8 @@ class ServiceTypeHealthPolicy(Model): The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. The computation rounds up to tolerate one failure on small numbers of - replicas. Default percentage is zero. Default value: 0 . + replicas. Default percentage is zero. + . Default value: 0 . :type max_percent_unhealthy_replicas_per_partition: int :param max_percent_unhealthy_services: The maximum maximum allowed percentage of unhealthy services. Allowed values are Byte values from zero @@ -51,7 +54,8 @@ class ServiceTypeHealthPolicy(Model): specific service type over the total number of services of the specific service type. The computation rounds up to tolerate one failure on small numbers of - services. Default percentage is zero. Default value: 0 . + services. Default percentage is zero. + . Default value: 0 . :type max_percent_unhealthy_services: int """ diff --git a/azure-servicefabric/azure/servicefabric/models/setting.py b/azure-servicefabric/azure/servicefabric/models/setting.py new file mode 100644 index 000000000000..23fc418e0bec --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/setting.py @@ -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 Setting(Model): + """Describes a setting for the container. + + :param name: The name of the setting. + :type name: str + :param value: The value of the setting. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Setting, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-servicefabric/azure/servicefabric/models/setting_py3.py b/azure-servicefabric/azure/servicefabric/models/setting_py3.py new file mode 100644 index 000000000000..1a042b3d640e --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/setting_py3.py @@ -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 Setting(Model): + """Describes a setting for the container. + + :param name: The name of the setting. + :type name: str + :param value: The value of the setting. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: + super(Setting, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_service_info.py b/azure-servicefabric/azure/servicefabric/models/stateful_service_info.py index c9c37b96e98e..38bf04d846a0 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_service_info.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_service_info.py @@ -17,9 +17,9 @@ class StatefulServiceInfo(ServiceInfo): All required parameters must be populated in order to send to Azure. - :param id: The identity of the service. This is an encoded representation - of the service name. This is used in the REST APIs to identify the service - resource. + :param id: The identity of the service. This ID is an encoded + representation of the service name. This is used in the REST APIs to + identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\\~svc1" in 6.0+ and diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_service_info_py3.py b/azure-servicefabric/azure/servicefabric/models/stateful_service_info_py3.py index d5ec2c7d43b0..4a0f30fb8a09 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_service_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_service_info_py3.py @@ -17,9 +17,9 @@ class StatefulServiceInfo(ServiceInfo): All required parameters must be populated in order to send to Azure. - :param id: The identity of the service. This is an encoded representation - of the service name. This is used in the REST APIs to identify the service - resource. + :param id: The identity of the service. This ID is an encoded + representation of the service name. This is used in the REST APIs to + identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\\~svc1" in 6.0+ and diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_service_replica_health.py b/azure-servicefabric/azure/servicefabric/models/stateful_service_replica_health.py index 45dc4c34dbdc..cf2ba75f4c73 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_service_replica_health.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_service_replica_health.py @@ -16,6 +16,7 @@ class StatefulServiceReplicaHealth(ReplicaHealth): """Represents the health of the stateful service replica. Contains the replica aggregated health state, the health events and the unhealthy evaluations. + . All required parameters must be populated in order to send to Azure. @@ -23,8 +24,8 @@ class StatefulServiceReplicaHealth(ReplicaHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_service_replica_health_py3.py b/azure-servicefabric/azure/servicefabric/models/stateful_service_replica_health_py3.py index bc07ec80a519..cb7bd60d84ec 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_service_replica_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_service_replica_health_py3.py @@ -16,6 +16,7 @@ class StatefulServiceReplicaHealth(ReplicaHealth): """Represents the health of the stateful service replica. Contains the replica aggregated health state, the health events and the unhealthy evaluations. + . All required parameters must be populated in order to send to Azure. @@ -23,8 +24,8 @@ class StatefulServiceReplicaHealth(ReplicaHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/stateless_service_info.py b/azure-servicefabric/azure/servicefabric/models/stateless_service_info.py index be936ce20f77..234c4e1852a4 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateless_service_info.py +++ b/azure-servicefabric/azure/servicefabric/models/stateless_service_info.py @@ -17,9 +17,9 @@ class StatelessServiceInfo(ServiceInfo): All required parameters must be populated in order to send to Azure. - :param id: The identity of the service. This is an encoded representation - of the service name. This is used in the REST APIs to identify the service - resource. + :param id: The identity of the service. This ID is an encoded + representation of the service name. This is used in the REST APIs to + identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\\~svc1" in 6.0+ and diff --git a/azure-servicefabric/azure/servicefabric/models/stateless_service_info_py3.py b/azure-servicefabric/azure/servicefabric/models/stateless_service_info_py3.py index 8a337cf8cfbb..6c09bd4ee5c6 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateless_service_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateless_service_info_py3.py @@ -17,9 +17,9 @@ class StatelessServiceInfo(ServiceInfo): All required parameters must be populated in order to send to Azure. - :param id: The identity of the service. This is an encoded representation - of the service name. This is used in the REST APIs to identify the service - resource. + :param id: The identity of the service. This ID is an encoded + representation of the service name. This is used in the REST APIs to + identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\\~svc1" in 6.0+ and diff --git a/azure-servicefabric/azure/servicefabric/models/stateless_service_instance_health.py b/azure-servicefabric/azure/servicefabric/models/stateless_service_instance_health.py index aadcd573ae3f..7cf91c0010ae 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateless_service_instance_health.py +++ b/azure-servicefabric/azure/servicefabric/models/stateless_service_instance_health.py @@ -16,6 +16,7 @@ class StatelessServiceInstanceHealth(ReplicaHealth): """Represents the health of the stateless service instance. Contains the instance aggregated health state, the health events and the unhealthy evaluations. + . All required parameters must be populated in order to send to Azure. @@ -23,8 +24,8 @@ class StatelessServiceInstanceHealth(ReplicaHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/stateless_service_instance_health_py3.py b/azure-servicefabric/azure/servicefabric/models/stateless_service_instance_health_py3.py index ce8448d1a82b..cb25ea314885 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateless_service_instance_health_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateless_service_instance_health_py3.py @@ -16,6 +16,7 @@ class StatelessServiceInstanceHealth(ReplicaHealth): """Represents the health of the stateless service instance. Contains the instance aggregated health state, the health events and the unhealthy evaluations. + . All required parameters must be populated in order to send to Azure. @@ -23,8 +24,8 @@ class StatelessServiceInstanceHealth(ReplicaHealth): 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' + 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. diff --git a/azure-servicefabric/azure/servicefabric/models/test_error_chaos_event.py b/azure-servicefabric/azure/servicefabric/models/test_error_chaos_event.py index 70ea29ad9b4e..fc1d0f7341b7 100644 --- a/azure-servicefabric/azure/servicefabric/models/test_error_chaos_event.py +++ b/azure-servicefabric/azure/servicefabric/models/test_error_chaos_event.py @@ -18,6 +18,7 @@ class TestErrorChaosEvent(ChaosEvent): For example, due to the cluster snapshot being inconsistent, while faulting an entity, Chaos found that the entity was already faulted -- which would be an unexpected event. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/test_error_chaos_event_py3.py b/azure-servicefabric/azure/servicefabric/models/test_error_chaos_event_py3.py index 3ab8f58767e9..d27b42714afc 100644 --- a/azure-servicefabric/azure/servicefabric/models/test_error_chaos_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/test_error_chaos_event_py3.py @@ -18,6 +18,7 @@ class TestErrorChaosEvent(ChaosEvent): For example, due to the cluster snapshot being inconsistent, while faulting an entity, Chaos found that the entity was already faulted -- which would be an unexpected event. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/time_based_backup_schedule_description.py b/azure-servicefabric/azure/servicefabric/models/time_based_backup_schedule_description.py index b2f36cd733bc..8fbdd1e8daea 100644 --- a/azure-servicefabric/azure/servicefabric/models/time_based_backup_schedule_description.py +++ b/azure-servicefabric/azure/servicefabric/models/time_based_backup_schedule_description.py @@ -20,8 +20,8 @@ class TimeBasedBackupScheduleDescription(BackupScheduleDescription): :param schedule_kind: Required. Constant filled by server. :type schedule_kind: str :param schedule_frequency_type: Required. Describes the frequency with - which to run the time based backup schedule. Possible values include: - 'Invalid', 'Daily', 'Weekly' + which to run the time based backup schedule. + . Possible values include: 'Invalid', 'Daily', 'Weekly' :type schedule_frequency_type: str or ~azure.servicefabric.models.BackupScheduleFrequencyType :param run_days: List of days of a week when to trigger the periodic diff --git a/azure-servicefabric/azure/servicefabric/models/time_based_backup_schedule_description_py3.py b/azure-servicefabric/azure/servicefabric/models/time_based_backup_schedule_description_py3.py index 63b0d0b89bef..b607c160da87 100644 --- a/azure-servicefabric/azure/servicefabric/models/time_based_backup_schedule_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/time_based_backup_schedule_description_py3.py @@ -20,8 +20,8 @@ class TimeBasedBackupScheduleDescription(BackupScheduleDescription): :param schedule_kind: Required. Constant filled by server. :type schedule_kind: str :param schedule_frequency_type: Required. Describes the frequency with - which to run the time based backup schedule. Possible values include: - 'Invalid', 'Daily', 'Weekly' + which to run the time based backup schedule. + . Possible values include: 'Invalid', 'Daily', 'Weekly' :type schedule_frequency_type: str or ~azure.servicefabric.models.BackupScheduleFrequencyType :param run_days: List of days of a week when to trigger the periodic diff --git a/azure-servicefabric/azure/servicefabric/models/unprovision_application_type_description_info.py b/azure-servicefabric/azure/servicefabric/models/unprovision_application_type_description_info.py index 32db152ee5fa..d946b380f480 100644 --- a/azure-servicefabric/azure/servicefabric/models/unprovision_application_type_description_info.py +++ b/azure-servicefabric/azure/servicefabric/models/unprovision_application_type_description_info.py @@ -25,7 +25,7 @@ class UnprovisionApplicationTypeDescriptionInfo(Model): should occur asynchronously. When set to true, the unprovision operation returns when the request is accepted by the system, and the unprovision operation continues without any timeout limit. The default value is false. - However, we recommend to set it to true for large application packages + However, we recommend setting it to true for large application packages that were provisioned. :type async_property: bool """ diff --git a/azure-servicefabric/azure/servicefabric/models/unprovision_application_type_description_info_py3.py b/azure-servicefabric/azure/servicefabric/models/unprovision_application_type_description_info_py3.py index b214244065b2..abc8598aa51c 100644 --- a/azure-servicefabric/azure/servicefabric/models/unprovision_application_type_description_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/unprovision_application_type_description_info_py3.py @@ -25,7 +25,7 @@ class UnprovisionApplicationTypeDescriptionInfo(Model): should occur asynchronously. When set to true, the unprovision operation returns when the request is accepted by the system, and the unprovision operation continues without any timeout limit. The default value is false. - However, we recommend to set it to true for large application packages + However, we recommend setting it to true for large application packages that were provisioned. :type async_property: bool """ diff --git a/azure-servicefabric/azure/servicefabric/models/upgrade_domain_delta_nodes_check_health_evaluation.py b/azure-servicefabric/azure/servicefabric/models/upgrade_domain_delta_nodes_check_health_evaluation.py index 02d0947d5579..312969d9e130 100644 --- a/azure-servicefabric/azure/servicefabric/models/upgrade_domain_delta_nodes_check_health_evaluation.py +++ b/azure-servicefabric/azure/servicefabric/models/upgrade_domain_delta_nodes_check_health_evaluation.py @@ -18,6 +18,7 @@ class UpgradeDomainDeltaNodesCheckHealthEvaluation(HealthEvaluation): impacted current aggregated health state. Can be returned during cluster upgrade when cluster aggregated health state is Warning or Error. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/upgrade_domain_delta_nodes_check_health_evaluation_py3.py b/azure-servicefabric/azure/servicefabric/models/upgrade_domain_delta_nodes_check_health_evaluation_py3.py index 9df9759b27ce..ee6197757b7c 100644 --- a/azure-servicefabric/azure/servicefabric/models/upgrade_domain_delta_nodes_check_health_evaluation_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/upgrade_domain_delta_nodes_check_health_evaluation_py3.py @@ -18,6 +18,7 @@ class UpgradeDomainDeltaNodesCheckHealthEvaluation(HealthEvaluation): impacted current aggregated health state. Can be returned during cluster upgrade when cluster aggregated health state is Warning or Error. + . All required parameters must be populated in order to send to Azure. diff --git a/azure-servicefabric/azure/servicefabric/models/volume_provider_parameters_azure_file.py b/azure-servicefabric/azure/servicefabric/models/volume_provider_parameters_azure_file.py new file mode 100644 index 000000000000..c10943e94cf4 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/volume_provider_parameters_azure_file.py @@ -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 VolumeProviderParametersAzureFile(Model): + """This type describes a volume provided by an Azure Files file share. + + All required parameters must be populated in order to send to Azure. + + :param account_name: Required. Name of the Azure storage account for the + File Share. + :type account_name: str + :param account_key: Access key of the Azure storage account for the File + Share. + :type account_key: str + :param share_name: Required. Name of the Azure Files file share that + provides storage for the volume. + :type share_name: str + """ + + _validation = { + 'account_name': {'required': True}, + 'share_name': {'required': True}, + } + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'account_key': {'key': 'accountKey', 'type': 'str'}, + 'share_name': {'key': 'shareName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VolumeProviderParametersAzureFile, self).__init__(**kwargs) + self.account_name = kwargs.get('account_name', None) + self.account_key = kwargs.get('account_key', None) + self.share_name = kwargs.get('share_name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/volume_provider_parameters_azure_file_py3.py b/azure-servicefabric/azure/servicefabric/models/volume_provider_parameters_azure_file_py3.py new file mode 100644 index 000000000000..c8fea05b1ef8 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/volume_provider_parameters_azure_file_py3.py @@ -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 VolumeProviderParametersAzureFile(Model): + """This type describes a volume provided by an Azure Files file share. + + All required parameters must be populated in order to send to Azure. + + :param account_name: Required. Name of the Azure storage account for the + File Share. + :type account_name: str + :param account_key: Access key of the Azure storage account for the File + Share. + :type account_key: str + :param share_name: Required. Name of the Azure Files file share that + provides storage for the volume. + :type share_name: str + """ + + _validation = { + 'account_name': {'required': True}, + 'share_name': {'required': True}, + } + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'account_key': {'key': 'accountKey', 'type': 'str'}, + 'share_name': {'key': 'shareName', 'type': 'str'}, + } + + def __init__(self, *, account_name: str, share_name: str, account_key: str=None, **kwargs) -> None: + super(VolumeProviderParametersAzureFile, self).__init__(**kwargs) + self.account_name = account_name + self.account_key = account_key + self.share_name = share_name diff --git a/azure-servicefabric/azure/servicefabric/models/volume_resource_description.py b/azure-servicefabric/azure/servicefabric/models/volume_resource_description.py new file mode 100644 index 000000000000..1128c2c47240 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/volume_resource_description.py @@ -0,0 +1,54 @@ +# 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 VolumeResourceDescription(Model): + """Describes a service fabric volume resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :ivar provider: Required. Provider of the volume. Default value: + "SFAzureFile" . + :vartype provider: str + :param azure_file_parameters: This type describes a volume provided by an + Azure Files file share. + :type azure_file_parameters: + ~azure.servicefabric.models.VolumeProviderParametersAzureFile + :param name: Required. Volume resource name. + :type name: str + """ + + _validation = { + 'provider': {'required': True, 'constant': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'properties.description', 'type': 'str'}, + 'provider': {'key': 'properties.provider', 'type': 'str'}, + 'azure_file_parameters': {'key': 'properties.azureFileParameters', 'type': 'VolumeProviderParametersAzureFile'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + provider = "SFAzureFile" + + def __init__(self, **kwargs): + super(VolumeResourceDescription, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.azure_file_parameters = kwargs.get('azure_file_parameters', None) + self.name = kwargs.get('name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/volume_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/volume_resource_description_py3.py new file mode 100644 index 000000000000..aa4ef2da3c24 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/volume_resource_description_py3.py @@ -0,0 +1,54 @@ +# 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 VolumeResourceDescription(Model): + """Describes a service fabric volume resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :ivar provider: Required. Provider of the volume. Default value: + "SFAzureFile" . + :vartype provider: str + :param azure_file_parameters: This type describes a volume provided by an + Azure Files file share. + :type azure_file_parameters: + ~azure.servicefabric.models.VolumeProviderParametersAzureFile + :param name: Required. Volume resource name. + :type name: str + """ + + _validation = { + 'provider': {'required': True, 'constant': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'properties.description', 'type': 'str'}, + 'provider': {'key': 'properties.provider', 'type': 'str'}, + 'azure_file_parameters': {'key': 'properties.azureFileParameters', 'type': 'VolumeProviderParametersAzureFile'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + provider = "SFAzureFile" + + def __init__(self, *, name: str, description: str=None, azure_file_parameters=None, **kwargs) -> None: + super(VolumeResourceDescription, self).__init__(**kwargs) + self.description = description + self.azure_file_parameters = azure_file_parameters + self.name = name diff --git a/azure-servicefabric/azure/servicefabric/service_fabric_client_ap_is.py b/azure-servicefabric/azure/servicefabric/service_fabric_client_ap_is.py index ad92a3cdb520..84eba8f94013 100644 --- a/azure-servicefabric/azure/servicefabric/service_fabric_client_ap_is.py +++ b/azure-servicefabric/azure/servicefabric/service_fabric_client_ap_is.py @@ -13,6 +13,7 @@ from msrest import Configuration, Serializer, Deserializer from .version import VERSION from msrest.pipeline import ClientRawResponse +from msrest.exceptions import HttpOperationError from . import models @@ -61,7 +62,7 @@ def __init__( super(ServiceFabricClientAPIs, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '6.2.0.9' + self.api_version = '6.3.0.9' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -73,15 +74,16 @@ def get_cluster_manifest( Get the Service Fabric cluster manifest. The cluster manifest contains properties of the cluster that include different node types on the cluster, - security configurations, fault and upgrade domain topologies, etc. + security configurations, fault, and upgrade domain topologies, etc. These properties are specified as part of the ClusterConfig.JSON file - while deploying a stand alone cluster. However, most of the information + while deploying a stand-alone cluster. However, most of the information in the cluster manifest is generated internally by service fabric during cluster deployment in - other deployment scenarios (e.g. when using azure portal). + other deployment scenarios (e.g. when using Azure portal). The contents of the cluster manifest are for informational purposes only and users are not expected to take a dependency on the format of the file contents or its interpretation. + . :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -112,13 +114,13 @@ def get_cluster_manifest( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -139,12 +141,12 @@ def get_cluster_health( self, nodes_health_state_filter=0, applications_health_state_filter=0, events_health_state_filter=0, exclude_health_statistics=False, include_system_application_health_statistics=False, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets the health of a Service Fabric cluster. - Gets the health of a Service Fabric cluster. Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health state. Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter the collection of nodes and applications returned based on their aggregated health state. + . :param nodes_health_state_filter: Allows filtering of the node health state objects returned in the result of cluster health query @@ -153,7 +155,7 @@ def get_cluster_health( following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the aggregated health state. If not specified, all entries are returned. - The state values are flag based enumeration, so the value could be a + 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 then health state of nodes with HealthState value of OK (2) and Warning (4) are returned. @@ -180,7 +182,7 @@ def get_cluster_health( match the filter are returned. All applications are used to evaluate the aggregated health state. If not specified, all entries are returned. - The state values are flag based enumeration, so the value could be a + 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 then health state of applications with HealthState value of OK (2) and Warning (4) are @@ -204,11 +206,11 @@ def get_cluster_health( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -278,13 +280,13 @@ def get_cluster_health( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -305,7 +307,6 @@ def get_cluster_health_using_policy( self, nodes_health_state_filter=0, applications_health_state_filter=0, events_health_state_filter=0, exclude_health_statistics=False, include_system_application_health_statistics=False, timeout=60, application_health_policy_map=None, cluster_health_policy=None, custom_headers=None, raw=False, **operation_config): """Gets the health of a Service Fabric cluster using the specified policy. - Gets the health of a Service Fabric cluster. Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health state. Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter @@ -313,6 +314,7 @@ def get_cluster_health_using_policy( their aggregated health state. Use ClusterHealthPolicies to override the health policies used to evaluate the health. + . :param nodes_health_state_filter: Allows filtering of the node health state objects returned in the result of cluster health query @@ -321,7 +323,7 @@ def get_cluster_health_using_policy( following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the aggregated health state. If not specified, all entries are returned. - The state values are flag based enumeration, so the value could be a + 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 then health state of nodes with HealthState value of OK (2) and Warning (4) are returned. @@ -348,7 +350,7 @@ def get_cluster_health_using_policy( match the filter are returned. All applications are used to evaluate the aggregated health state. If not specified, all entries are returned. - The state values are flag based enumeration, so the value could be a + 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 then health state of applications with HealthState value of OK (2) and Warning (4) are @@ -372,11 +374,11 @@ def get_cluster_health_using_policy( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -465,6 +467,7 @@ def get_cluster_health_using_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -476,9 +479,8 @@ def get_cluster_health_using_policy( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -505,6 +507,7 @@ def get_cluster_health_chunk( To expand the cluster health and get the health state of all or some of the entities, use the POST URI and specify the cluster health chunk query description. + . :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -535,13 +538,13 @@ def get_cluster_health_chunk( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -575,6 +578,7 @@ def get_cluster_health_chunk_using_policy_and_advanced_filters( specified name, and for this application, return only services that are in Error or Warning, and all partitions and replicas for one of these services. + . :param cluster_health_chunk_query_description: Describes the cluster and application health policies used to evaluate the cluster health @@ -628,6 +632,7 @@ def get_cluster_health_chunk_using_policy_and_advanced_filters( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -639,9 +644,8 @@ def get_cluster_health_chunk_using_policy_and_advanced_filters( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -674,13 +678,14 @@ def report_cluster_health( To see whether the report was applied in the health store, run GetClusterHealth and check that the report appears in the HealthEvents section. + . :param health_information: Describes the health information for the health report. This information needs to be present in all of the health reports sent to the health manager. :type health_information: ~azure.servicefabric.models.HealthInformation - :param immediate: A flag which indicates whether the report should be + :param immediate: A flag that indicates whether the report should be sent immediately. A health report is sent to a Service Fabric gateway Application, which forwards to the health store. @@ -738,9 +743,8 @@ def report_cluster_health( body_content = self._serialize.body(health_information, 'HealthInformation') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -792,13 +796,13 @@ def get_provisioned_fabric_code_version_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -857,13 +861,13 @@ def get_provisioned_fabric_config_version_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -885,7 +889,7 @@ def get_cluster_upgrade_progress( """Gets the progress of the current cluster upgrade. Gets the current progress of the ongoing cluster upgrade. If no upgrade - is currently in progress, gets the last state of the previous cluster + is currently in progress, get the last state of the previous cluster upgrade. :param timeout: The server timeout for performing the operation in @@ -917,13 +921,13 @@ def get_cluster_upgrade_progress( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -944,10 +948,10 @@ def get_cluster_configuration( self, configuration_api_version, timeout=60, custom_headers=None, raw=False, **operation_config): """Get the Service Fabric standalone cluster configuration. - Get the Service Fabric standalone cluster configuration. The cluster - configuration contains properties of the cluster that include different - node types on the cluster, - security configurations, fault and upgrade domain topologies, etc. + The cluster configuration contains properties of the cluster that + include different node types on the cluster, + security configurations, fault, and upgrade domain topologies, etc. + . :param configuration_api_version: The API version of the Standalone cluster json configuration. @@ -982,13 +986,13 @@ def get_cluster_configuration( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1012,6 +1016,7 @@ def get_cluster_configuration_upgrade_status( Get the cluster configuration upgrade status details of a Service Fabric standalone cluster. + . :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -1044,13 +1049,13 @@ def get_cluster_configuration_upgrade_status( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1104,13 +1109,13 @@ def get_upgrade_orchestration_service_state( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1171,6 +1176,7 @@ def set_upgrade_orchestration_service_state( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -1179,9 +1185,8 @@ def set_upgrade_orchestration_service_state( body_content = self._serialize.body(upgrade_orchestration_service_state, 'UpgradeOrchestrationServiceState') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1248,9 +1253,8 @@ def provision_cluster( body_content = self._serialize.body(provision_fabric_description, 'ProvisionFabricDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1265,9 +1269,7 @@ def unprovision_cluster( """Unprovision the code or configuration packages of a Service Fabric cluster. - Unprovision the code or configuration packages of a Service Fabric - cluster. It is supported to unprovision code and configuration - separately. + It is supported to unprovision code and configuration separately. :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -1311,9 +1313,8 @@ def unprovision_cluster( body_content = self._serialize.body(unprovision_fabric_description, 'UnprovisionFabricDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1357,13 +1358,12 @@ def rollback_cluster_upgrade( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -1421,9 +1421,8 @@ def resume_cluster_upgrade( body_content = self._serialize.body(resume_cluster_upgrade_description, 'ResumeClusterUpgradeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1482,9 +1481,8 @@ def start_cluster_upgrade( body_content = self._serialize.body(start_cluster_upgrade_description, 'StartClusterUpgradeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -1542,9 +1540,8 @@ def start_cluster_configuration_upgrade( body_content = self._serialize.body(cluster_configuration_upgrade_description, 'ClusterConfigurationUpgradeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -1601,9 +1598,8 @@ def update_cluster_upgrade( body_content = self._serialize.body(update_cluster_upgrade_description, 'UpdateClusterUpgradeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1623,6 +1619,7 @@ def get_aad_metadata( This API is not supposed to be called separately. It provides information needed to set up an Azure Active Directory secured connection with a Service Fabric cluster. + . :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -1653,13 +1650,13 @@ def get_aad_metadata( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1677,19 +1674,18 @@ def get_aad_metadata( get_aad_metadata.metadata = {'url': '/$/GetAadMetadata'} def get_node_info_list( - self, continuation_token=None, node_status_filter="default", timeout=60, custom_headers=None, raw=False, **operation_config): + self, continuation_token=None, node_status_filter="default", max_results=0, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets the list of nodes in the Service Fabric cluster. - Gets the list of nodes in the Service Fabric cluster. The response - includes the name, status, id, health, uptime, and other details about - the node. + The response includes the name, status, ID, health, uptime, and other + details about the nodes. :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param node_status_filter: Allows filtering the nodes based on the @@ -1699,6 +1695,14 @@ def get_node_info_list( 'disabling', 'disabled', 'unknown', 'removed' :type node_status_filter: str or ~azure.servicefabric.models.NodeStatusFilter + :param max_results: The maximum number of results to be returned as + part of the paged queries. This parameter defines the upper bound on + the number of results returned. The results returned can be less than + the specified maximum results if they do not fit in the message as per + the max message size restrictions defined in the configuration. If + this parameter is zero or not specified, the paged query includes as + many results as possible that fit in the return message. + :type max_results: long :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default @@ -1715,7 +1719,7 @@ def get_node_info_list( :raises: :class:`FabricErrorException` """ - api_version = "6.0" + api_version = "6.3" # Construct URL url = self.get_node_info_list.metadata['url'] @@ -1727,18 +1731,20 @@ def get_node_info_list( query_parameters['ContinuationToken'] = self._serialize.query("continuation_token", continuation_token, 'str', skip_quote=True) if node_status_filter is not None: query_parameters['NodeStatusFilter'] = self._serialize.query("node_status_filter", node_status_filter, 'str') + if max_results is not None: + query_parameters['MaxResults'] = self._serialize.query("max_results", max_results, 'long', minimum=0) if timeout is not None: query_parameters['timeout'] = self._serialize.query("timeout", timeout, 'long', maximum=4294967295, minimum=1) # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1760,9 +1766,8 @@ def get_node_info( """Gets the information about a specific node in the Service Fabric cluster. - Gets the information about a specific node in the Service Fabric - Cluster. The response includes the name, status, id, health, uptime, - and other details about the node. + The response includes the name, status, ID, health, uptime, and other + details about the node. :param node_name: The name of the node. :type node_name: str @@ -1799,13 +1804,13 @@ def get_node_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -1839,11 +1844,11 @@ def get_node_health( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -1892,13 +1897,13 @@ def get_node_health( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -1935,11 +1940,11 @@ def get_node_health_using_policy( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -1994,6 +1999,7 @@ def get_node_health_using_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -2005,9 +2011,8 @@ def get_node_health_using_policy( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2040,6 +2045,7 @@ def report_node_health( To see whether the report was applied in the health store, run GetNodeHealth and check that the report appears in the HealthEvents section. + . :param node_name: The name of the node. :type node_name: str @@ -2048,7 +2054,7 @@ def report_node_health( health reports sent to the health manager. :type health_information: ~azure.servicefabric.models.HealthInformation - :param immediate: A flag which indicates whether the report should be + :param immediate: A flag that indicates whether the report should be sent immediately. A health report is sent to a Service Fabric gateway Application, which forwards to the health store. @@ -2110,9 +2116,8 @@ def report_node_health( body_content = self._serialize.body(health_information, 'HealthInformation') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2164,13 +2169,13 @@ def get_node_load_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2195,13 +2200,13 @@ def disable_node( Deactivate a Service Fabric cluster node with the specified deactivation intent. Once the deactivation is in progress, the deactivation intent can be increased, but not decreased (for example, a - node which is was deactivated with the Pause intent can be deactivated + node that is deactivated with the Pause intent can be deactivated further with Restart, but not the other way around. Nodes may be reactivated using the Activate a node operation any time after they are - deactivated. If the deactivation is not complete this will cancel the - deactivation. A node which goes down and comes back up while - deactivated will still need to be reactivated before services will be - placed on that node. + deactivated. If the deactivation is not complete, this will cancel the + deactivation. A node that goes down and comes back up while deactivated + will still need to be reactivated before services will be placed on + that node. :param node_name: The name of the node. :type node_name: str @@ -2211,8 +2216,8 @@ def disable_node( value for this parameter is 60 seconds. :type timeout: long :param deactivation_intent: Describes the intent or reason for - deactivating the node. The possible values are following. Possible - values include: 'Pause', 'Restart', 'RemoveData' + deactivating the node. The possible values are following. + . Possible values include: 'Pause', 'Restart', 'RemoveData' :type deactivation_intent: str or ~azure.servicefabric.models.DeactivationIntent :param dict custom_headers: headers that will be added to the request @@ -2252,9 +2257,8 @@ def disable_node( body_content = self._serialize.body(deactivation_intent_description, 'DeactivationIntentDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2266,9 +2270,9 @@ def disable_node( def enable_node( self, node_name, timeout=60, custom_headers=None, raw=False, **operation_config): - """Activate a Service Fabric cluster node which is currently deactivated. + """Activate a Service Fabric cluster node that is currently deactivated. - Activates a Service Fabric cluster node which is currently deactivated. + Activates a Service Fabric cluster node that is currently deactivated. Once activated, the node will again become a viable target for placing new replicas, and any deactivated replicas remaining on the node will be reactivated. @@ -2307,13 +2311,12 @@ def enable_node( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2328,15 +2331,14 @@ def remove_node_state( """Notifies Service Fabric that the persisted state on a node has been permanently removed or lost. - Notifies Service Fabric that the persisted state on a node has been - permanently removed or lost. This implies that it is not possible to - recover the persisted state of that node. This generally happens if a - hard disk has been wiped clean, or if a hard disk crashes. The node has - to be down for this operation to be successful. This operation lets - Service Fabric know that the replicas on that node no longer exist, and - that Service Fabric should stop waiting for those replicas to come back - up. Do not run this cmdlet if the state on the node has not been - removed and the node can comes back up with its state intact. + This implies that it is not possible to recover the persisted state of + that node. This generally happens if a hard disk has been wiped clean, + or if a hard disk crashes. The node has to be down for this operation + to be successful. This operation lets Service Fabric know that the + replicas on that node no longer exist, and that Service Fabric should + stop waiting for those replicas to come back up. Do not run this cmdlet + if the state on the node has not been removed and the node can come + back up with its state intact. :param node_name: The name of the node. :type node_name: str @@ -2372,13 +2374,12 @@ def remove_node_state( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2407,7 +2408,7 @@ def restart_node( value for this parameter is 60 seconds. :type timeout: long :param create_fabric_dump: Specify True to create a dump of the fabric - node process. This is case sensitive. Possible values include: + node process. This is case-sensitive. Possible values include: 'False', 'True' :type create_fabric_dump: str or ~azure.servicefabric.models.CreateFabricDump @@ -2448,9 +2449,8 @@ def restart_node( body_content = self._serialize.body(restart_node_description, 'RestartNodeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2467,13 +2467,13 @@ def get_application_type_info_list( Returns the information about the application types that are provisioned or in the process of being provisioned in the Service Fabric cluster. Each version of an application type is returned as one - application type. The response includes the name, version, status and + application type. The response includes the name, version, status, and other details about the application type. This is a paged query, meaning that if not all of the application types fit in a page, one - page of results is returned as well as a continuation token which can + page of results is returned as well as a continuation token, which can be used to get the next page. For example, if there are 10 application - types but a page only fits the first 3 application types, or if max - results is set to 3, then 3 is returned. To access the rest of the + types but a page only fits the first three application types, or if max + results is set to 3, then three is returned. To access the rest of the results, retrieve subsequent pages by using the returned continuation token in the next query. An empty continuation token is returned if there are no subsequent pages. @@ -2495,11 +2495,11 @@ def get_application_type_info_list( application parameters will be excluded from the result. :type exclude_application_parameters: bool :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -2507,7 +2507,7 @@ def get_application_type_info_list( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -2547,13 +2547,13 @@ def get_application_type_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2581,13 +2581,13 @@ def get_application_type_info_list_by_name( exactly the one specified as the parameter, and which comply with the given query parameters. All versions of the application type matching the application type name are returned, with each version returned as - one application type. The response includes the name, version, status + one application type. The response includes the name, version, status, and other details about the application type. This is a paged query, meaning that if not all of the application types fit in a page, one - page of results is returned as well as a continuation token which can + page of results is returned as well as a continuation token, which can be used to get the next page. For example, if there are 10 application - types but a page only fits the first 3 application types, or if max - results is set to 3, then 3 is returned. To access the rest of the + types but a page only fits the first three application types, or if max + results is set to 3, then three is returned. To access the rest of the results, retrieve subsequent pages by using the returned continuation token in the next query. An empty continuation token is returned if there are no subsequent pages. @@ -2600,11 +2600,11 @@ def get_application_type_info_list_by_name( application parameters will be excluded from the result. :type exclude_application_parameters: bool :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -2612,7 +2612,7 @@ def get_application_type_info_list_by_name( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -2656,13 +2656,13 @@ def get_application_type_info_list_by_name( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2690,6 +2690,7 @@ def provision_application_type( The provision operation can be performed either on the application package specified by the relativePathInImageStore, or by using the URI of the external '.sfpkg'. + . :param provision_application_type_description_base_required_body_param: The @@ -2733,9 +2734,8 @@ def provision_application_type( body_content = self._serialize.body(provision_application_type_description_base_required_body_param, 'ProvisionApplicationTypeDescriptionBase') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 202]: raise models.FabricErrorException(self._deserialize, response) @@ -2750,11 +2750,10 @@ def unprovision_application_type( """Removes or unregisters a Service Fabric application type from the cluster. - Removes or unregisters a Service Fabric application type from the - cluster. This operation can only be performed if all application - instances of the application type has been deleted. Once the - application type is unregistered, no new application instances can be - created for this particular application type. + This operation can only be performed if all application instances of + the application type have been deleted. Once the application type is + unregistered, no new application instances can be created for this + particular application type. :param application_type_name: The name of the application type. :type application_type_name: str @@ -2770,7 +2769,7 @@ def unprovision_application_type( should occur asynchronously. When set to true, the unprovision operation returns when the request is accepted by the system, and the unprovision operation continues without any timeout limit. The default - value is false. However, we recommend to set it to true for large + value is false. However, we recommend setting it to true for large application packages that were provisioned. :type async_parameter: bool :param dict custom_headers: headers that will be added to the request @@ -2783,7 +2782,7 @@ def unprovision_application_type( :raises: :class:`FabricErrorException` """ - unprovision_application_type_description_info = models.UnprovisionApplicationTypeDescriptionInfo(application_type_version=application_type_version) + unprovision_application_type_description_info = models.UnprovisionApplicationTypeDescriptionInfo(application_type_version=application_type_version, async_property=async_parameter) api_version = "6.0" @@ -2810,9 +2809,8 @@ def unprovision_application_type( body_content = self._serialize.body(unprovision_application_type_description_info, 'UnprovisionApplicationTypeDescriptionInfo') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 202]: raise models.FabricErrorException(self._deserialize, response) @@ -2871,13 +2869,13 @@ def get_service_type_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -2947,13 +2945,13 @@ def get_service_type_info_by_name( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -3019,13 +3017,13 @@ def get_service_manifest( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -3105,13 +3103,13 @@ def get_deployed_service_type_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -3196,13 +3194,13 @@ def get_deployed_service_type_info_by_name( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -3265,9 +3263,8 @@ def create_application( body_content = self._serialize.body(application_description, 'ApplicationDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.FabricErrorException(self._deserialize, response) @@ -3281,15 +3278,14 @@ def delete_application( self, application_id, force_remove=None, timeout=60, custom_headers=None, raw=False, **operation_config): """Deletes an existing Service Fabric application. - Deletes an existing Service Fabric application. An application must be - created before it can be deleted. Deleting an application will delete - all services that are part of that application. By default, Service - Fabric will try to close service replicas in a graceful manner and then - delete the service. However, if a service is having issues closing the - replica gracefully, the delete operation may take a long time or get - stuck. Use the optional ForceRemove flag to skip the graceful close - sequence and forcefully delete the application and all of the its - services. + An application must be created before it can be deleted. Deleting an + application will delete all services that are part of that application. + By default, Service Fabric will try to close service replicas in a + graceful manner and then delete the service. However, if a service is + having issues closing the replica gracefully, the delete operation may + take a long time or get stuck. Use the optional ForceRemove flag to + skip the graceful close sequence and forcefully delete the application + and all of its services. :param application_id: The identity of the application. This is typically the full name of the application without the 'fabric:' URI @@ -3340,13 +3336,12 @@ def delete_application( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -3409,13 +3404,13 @@ def get_application_load_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -3442,12 +3437,12 @@ def get_application_info_list( specified filters. The response includes the name, type, status, parameters, and other details about the application. If the applications do not fit in a page, one page of results is returned as - well as a continuation token which can be used to get the next page. + well as a continuation token, which can be used to get the next page. Filters ApplicationTypeName and ApplicationDefinitionKindFilter cannot be specified at the same time. :param application_definition_kind_filter: Used to filter on - ApplicationDefinitionKind which is the mechanism used to define a + ApplicationDefinitionKind, which is the mechanism used to define a Service Fabric application. - Default - Default value, which performs the same function as selecting "All". The value is 0. @@ -3467,11 +3462,11 @@ def get_application_info_list( application parameters will be excluded from the result. :type exclude_application_parameters: bool :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -3479,7 +3474,7 @@ def get_application_info_list( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -3521,13 +3516,13 @@ def get_application_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -3551,7 +3546,7 @@ def get_application_info( Returns the information about the application that was created or in the process of being created in the Service Fabric cluster and whose name matches the one specified as the parameter. The response includes - the name, type, status, parameters and other details about the + the name, type, status, parameters, and other details about the application. :param application_id: The identity of the application. This is @@ -3601,13 +3596,13 @@ def get_application_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -3647,11 +3642,11 @@ def get_application_health( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -3673,8 +3668,8 @@ def get_application_health( filter will be returned. All deployed applications are used to evaluate the aggregated health state. If not specified, all entries are returned. - The state values are flag based enumeration, so the value could be a - combination of these value obtained using bitwise 'OR' operator. + 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 then health state of deployed applications with HealthState value of OK (2) and Warning (4) are returned. @@ -3698,8 +3693,9 @@ def get_application_health( the following health states. Only services that match the filter are returned. All services are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value + If not specified, all entries are 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 then health state of services with HealthState value of OK (2) and Warning (4) will be returned. @@ -3763,13 +3759,13 @@ def get_application_health( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -3812,11 +3808,11 @@ def get_application_health_using_policy( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -3838,8 +3834,8 @@ def get_application_health_using_policy( filter will be returned. All deployed applications are used to evaluate the aggregated health state. If not specified, all entries are returned. - The state values are flag based enumeration, so the value could be a - combination of these value obtained using bitwise 'OR' operator. + 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 then health state of deployed applications with HealthState value of OK (2) and Warning (4) are returned. @@ -3863,8 +3859,9 @@ def get_application_health_using_policy( the following health states. Only services that match the filter are returned. All services are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value + If not specified, all entries are 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 then health state of services with HealthState value of OK (2) and Warning (4) will be returned. @@ -3934,6 +3931,7 @@ def get_application_health_using_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -3945,9 +3943,8 @@ def get_application_health_using_policy( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -3980,6 +3977,7 @@ def report_application_health( To see whether the report was applied in the health store, get application health and check that the report appears in the HealthEvents section. + . :param application_id: The identity of the application. This is typically the full name of the application without the 'fabric:' URI @@ -3995,7 +3993,7 @@ def report_application_health( health reports sent to the health manager. :type health_information: ~azure.servicefabric.models.HealthInformation - :param immediate: A flag which indicates whether the report should be + :param immediate: A flag that indicates whether the report should be sent immediately. A health report is sent to a Service Fabric gateway Application, which forwards to the health store. @@ -4057,9 +4055,8 @@ def report_application_health( body_content = self._serialize.body(health_information, 'HealthInformation') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4129,9 +4126,8 @@ def start_application_upgrade( body_content = self._serialize.body(application_upgrade_description, 'ApplicationUpgradeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4191,13 +4187,13 @@ def get_application_upgrade( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4276,9 +4272,8 @@ def update_application_upgrade( body_content = self._serialize.body(application_upgrade_update_description, 'ApplicationUpgradeUpdateDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4352,9 +4347,8 @@ def resume_application_upgrade( body_content = self._serialize.body(resume_application_upgrade_description, 'ResumeApplicationUpgradeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4370,7 +4364,7 @@ def rollback_application_upgrade( the Service Fabric cluster. Starts rolling back the current application upgrade to the previous - version. This API can only be used to rollback the current in-progress + version. This API can only be used to roll back the current in-progress upgrade that is rolling forward to new version. If the application is not currently being upgraded use StartApplicationUpgrade API to upgrade it to desired version, including rolling back to a previous version. @@ -4416,13 +4410,12 @@ def rollback_application_upgrade( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4443,6 +4436,7 @@ def get_deployed_application_info_list( requires that the node name corresponds to a node on the cluster. The query fails if the provided node name does not point to any active Service Fabric nodes on the cluster. + . :param node_name: The name of the node. :type node_name: str @@ -4459,11 +4453,11 @@ def get_deployed_application_info_list( As a result, the query is more expensive and may take a longer time. :type include_health_state: bool :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -4471,7 +4465,7 @@ def get_deployed_application_info_list( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param dict custom_headers: headers that will be added to the request @@ -4509,13 +4503,13 @@ def get_deployed_application_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4537,13 +4531,13 @@ def get_deployed_application_info( """Gets the information about an application deployed on a Service Fabric node. - Gets the information about an application deployed on a Service Fabric - node. This query returns system application information if the - application ID provided is for system application. Results encompass - deployed applications in active, activating, and downloading states. - This query requires that the node name corresponds to a node on the - cluster. The query fails if the provided node name does not point to - any active Service Fabric nodes on the cluster. + This query returns system application information if the application ID + provided is for system application. Results encompass deployed + applications in active, activating, and downloading states. This query + requires that the node name corresponds to a node on the cluster. The + query fails if the provided node name does not point to any active + Service Fabric nodes on the cluster. + . :param node_name: The name of the node. :type node_name: str @@ -4599,13 +4593,13 @@ def get_deployed_application_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -4651,11 +4645,11 @@ def get_deployed_application_health( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -4679,8 +4673,8 @@ def get_deployed_application_health( deployed service packages are used to evaluate the aggregated health state of the deployed application. If not specified, all entries are returned. - The state values are flag based enumeration, so the value can be a - combination of these value obtained using bitwise 'OR' operator. + The state values are flag-based enumeration, so the value can be a + combination of these values, obtained using the bitwise 'OR' operator. For example, if the provided value is 6 then health state of service packages with HealthState value of OK (2) and Warning (4) are returned. @@ -4743,13 +4737,13 @@ def get_deployed_application_health( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4782,6 +4776,7 @@ def get_deployed_application_health_using_policy( 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while evaluating the health of the deployed application. + . :param node_name: The name of the node. :type node_name: str @@ -4800,11 +4795,11 @@ def get_deployed_application_health_using_policy( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -4828,8 +4823,8 @@ def get_deployed_application_health_using_policy( deployed service packages are used to evaluate the aggregated health state of the deployed application. If not specified, all entries are returned. - The state values are flag based enumeration, so the value can be a - combination of these value obtained using bitwise 'OR' operator. + The state values are flag-based enumeration, so the value can be a + combination of these values, obtained using the bitwise 'OR' operator. For example, if the provided value is 6 then health state of service packages with HealthState value of OK (2) and Warning (4) are returned. @@ -4898,6 +4893,7 @@ def get_deployed_application_health_using_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -4909,9 +4905,8 @@ def get_deployed_application_health_using_policy( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -4945,6 +4940,7 @@ def report_deployed_application_health( To see whether the report was applied in the health store, get deployed application health and check that the report appears in the HealthEvents section. + . :param node_name: The name of the node. :type node_name: str @@ -4962,7 +4958,7 @@ def report_deployed_application_health( health reports sent to the health manager. :type health_information: ~azure.servicefabric.models.HealthInformation - :param immediate: A flag which indicates whether the report should be + :param immediate: A flag that indicates whether the report should be sent immediately. A health report is sent to a Service Fabric gateway Application, which forwards to the health store. @@ -5025,9 +5021,8 @@ def report_deployed_application_health( body_content = self._serialize.body(health_information, 'HealthInformation') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -5041,8 +5036,7 @@ def get_application_manifest( self, application_type_name, application_type_version, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets the manifest describing an application type. - Gets the manifest describing an application type. The response contains - the application manifest XML as a string. + The response contains the application manifest XML as a string. :param application_type_name: The name of the application type. :type application_type_name: str @@ -5082,13 +5076,13 @@ def get_application_manifest( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -5108,10 +5102,10 @@ def get_application_manifest( def get_service_info_list( self, application_id, service_type_name=None, continuation_token=None, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets the information about all services belonging to the application - specified by the application id. + specified by the application ID. Returns the information about all services belonging to the application - specified by the application id. + specified by the application ID. :param application_id: The identity of the application. This is typically the full name of the application without the 'fabric:' URI @@ -5126,11 +5120,11 @@ def get_service_info_list( services to query for. :type service_type_name: str :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param timeout: The server timeout for performing the operation in @@ -5170,13 +5164,13 @@ def get_service_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -5210,8 +5204,8 @@ def get_service_info( application identity would be "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. :type application_id: str - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -5252,13 +5246,13 @@ def get_service_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -5283,8 +5277,8 @@ def get_application_name_info( FABRIC_E_SERVICE_DOES_NOT_EXIST error is returned if a service with the provided service ID does not exist. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -5324,13 +5318,13 @@ def get_application_name_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -5410,9 +5404,8 @@ def create_service( body_content = self._serialize.body(service_description, 'ServiceDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -5486,9 +5479,8 @@ def create_service_from_template( body_content = self._serialize.body(service_from_template_description, 'ServiceFromTemplateDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -5502,16 +5494,15 @@ def delete_service( self, service_id, force_remove=None, timeout=60, custom_headers=None, raw=False, **operation_config): """Deletes an existing Service Fabric service. - Deletes an existing Service Fabric service. A service must be created - before it can be deleted. By default, Service Fabric will try to close - service replicas in a graceful manner and then delete the service. - However, if the service is having issues closing the replica - gracefully, the delete operation may take a long time or get stuck. Use - the optional ForceRemove flag to skip the graceful close sequence and - forcefully delete the service. + A service must be created before it can be deleted. By default, Service + Fabric will try to close service replicas in a graceful manner and then + delete the service. However, if the service is having issues closing + the replica gracefully, the delete operation may take a long time or + get stuck. Use the optional ForceRemove flag to skip the graceful close + sequence and forcefully delete the service. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -5558,13 +5549,12 @@ def delete_service( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -5583,15 +5573,15 @@ def update_service( service. The set of properties that can be updated are a subset of the properties that were specified at the time of creating the service. The current set of properties can be obtained using `GetServiceDescription` - API. Please note that updating the properties of a running service is + API. Note that updating the properties of a running service is different than upgrading your application using `StartApplicationUpgrade` API. The upgrade is a long running background operation that involves moving the application from one version to another, one upgrade domain at a time, whereas update applies the new properties immediately to the service. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -5642,9 +5632,8 @@ def update_service( body_content = self._serialize.body(service_update_description, 'ServiceUpdateDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -5661,8 +5650,8 @@ def get_service_description( Gets the description of an existing Service Fabric service. A service must be created before its description can be obtained. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -5702,13 +5691,13 @@ def get_service_description( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -5736,9 +5725,10 @@ def get_service_health( returned. If you specify a service that does not exist in the health store, this request returns an error. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -5751,11 +5741,11 @@ def get_service_health( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -5776,8 +5766,9 @@ def get_service_health( the following health states. Only partitions that match the filter are returned. All partitions are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + value obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of partitions with HealthState value of OK (2) and Warning (4) will be returned. @@ -5839,13 +5830,13 @@ def get_service_health( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -5879,9 +5870,10 @@ def get_service_health_using_policy( returned. If you specify a service that does not exist in the health store, this request returns an error. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -5894,11 +5886,11 @@ def get_service_health_using_policy( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -5919,8 +5911,9 @@ def get_service_health_using_policy( the following health states. Only partitions that match the filter are returned. All partitions are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + value obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of partitions with HealthState value of OK (2) and Warning (4) will be returned. @@ -5988,6 +5981,7 @@ def get_service_health_using_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -5999,9 +5993,8 @@ def get_service_health_using_policy( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6034,9 +6027,10 @@ def report_service_health( To see whether the report was applied in the health store, run GetServiceHealth and check that the report appears in the HealthEvents section. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -6048,7 +6042,7 @@ def report_service_health( health reports sent to the health manager. :type health_information: ~azure.servicefabric.models.HealthInformation - :param immediate: A flag which indicates whether the report should be + :param immediate: A flag that indicates whether the report should be sent immediately. A health report is sent to a Service Fabric gateway Application, which forwards to the health store. @@ -6110,9 +6104,8 @@ def report_service_health( body_content = self._serialize.body(health_information, 'HealthInformation') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6129,8 +6122,8 @@ def resolve_service( Resolve a Service Fabric service partition to get the endpoints of the service replicas. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -6155,7 +6148,7 @@ def resolve_service( :type partition_key_value: str :param previous_rsp_version: The value in the Version field of the response that was received previously. This is required if the user - knows that the result that was got previously is stale. + knows that the result that was gotten previously is stale. :type previous_rsp_version: str :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -6196,13 +6189,13 @@ def resolve_service( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6223,13 +6216,12 @@ def get_partition_info_list( self, service_id, continuation_token=None, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets the list of partitions of a Service Fabric service. - Gets the list of partitions of a Service Fabric service. The response - includes the partition ID, partitioning scheme information, keys - supported by the partition, status, health, and other details about the - partition. + The response includes the partition ID, partitioning scheme + information, keys supported by the partition, status, health, and other + details about the partition. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -6237,11 +6229,11 @@ def get_partition_info_list( "myapp/app1/svc1" in previous versions. :type service_id: str :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param timeout: The server timeout for performing the operation in @@ -6280,13 +6272,13 @@ def get_partition_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6347,13 +6339,13 @@ def get_partition_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -6412,13 +6404,13 @@ def get_service_name_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6439,13 +6431,13 @@ def get_partition_health( self, partition_id, events_health_state_filter=0, replicas_health_state_filter=0, exclude_health_statistics=False, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets the health of the specified Service Fabric partition. - Gets the health information of the specified partition. Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health state. Use ReplicasHealthStateFilter to filter the collection of ReplicaHealthState objects on the partition. If you specify a partition that does not exist in the health store, this request returns an error. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -6455,11 +6447,11 @@ def get_partition_health( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -6479,8 +6471,8 @@ def get_partition_health( HealthStateFilter. Only replicas that match the filter will be returned. All replicas will be used to evaluate the aggregated health state. If not specified, all entries will be returned.The state values - are flag based enumeration, so the value could be a combination of - these value obtained using bitwise 'OR' operator. For example, If the + 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 then all of the events with HealthState value of OK (2) and Warning (4) will be returned. The possible values for this parameter include integer value of one of the following health states. @@ -6542,13 +6534,13 @@ def get_partition_health( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6584,6 +6576,7 @@ def get_partition_health_using_policy( policies used to evaluate the health. If you specify a partition that does not exist in the health store, this request returns an error. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -6593,11 +6586,11 @@ def get_partition_health_using_policy( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -6617,8 +6610,8 @@ def get_partition_health_using_policy( HealthStateFilter. Only replicas that match the filter will be returned. All replicas will be used to evaluate the aggregated health state. If not specified, all entries will be returned.The state values - are flag based enumeration, so the value could be a combination of - these value obtained using bitwise 'OR' operator. For example, If the + 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 then all of the events with HealthState value of OK (2) and Warning (4) will be returned. The possible values for this parameter include integer value of one of the following health states. @@ -6686,6 +6679,7 @@ def get_partition_health_using_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -6697,9 +6691,8 @@ def get_partition_health_using_policy( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6732,6 +6725,7 @@ def report_partition_health( To see whether the report was applied in the health store, run GetPartitionHealth and check that the report appears in the HealthEvents section. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -6740,7 +6734,7 @@ def report_partition_health( health reports sent to the health manager. :type health_information: ~azure.servicefabric.models.HealthInformation - :param immediate: A flag which indicates whether the report should be + :param immediate: A flag that indicates whether the report should be sent immediately. A health report is sent to a Service Fabric gateway Application, which forwards to the health store. @@ -6802,9 +6796,8 @@ def report_partition_health( body_content = self._serialize.body(health_information, 'HealthInformation') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6823,6 +6816,7 @@ def get_partition_load_information( partition. Each report includes the load metric name, value, and last reported time in UTC. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -6859,13 +6853,13 @@ def get_partition_load_information( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6923,13 +6917,12 @@ def reset_partition_load( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -6942,10 +6935,8 @@ def reset_partition_load( def recover_partition( self, partition_id, timeout=60, custom_headers=None, raw=False, **operation_config): """Indicates to the Service Fabric cluster that it should attempt to - recover a specific partition which is currently stuck in quorum loss. + recover a specific partition that is currently stuck in quorum loss. - Indicates to the Service Fabric cluster that it should attempt to - recover a specific partition which is currently stuck in quorum loss. This operation should only be performed if it is known that the replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. @@ -6984,13 +6975,12 @@ def recover_partition( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7003,16 +6993,16 @@ def recover_partition( def recover_service_partitions( self, service_id, timeout=60, custom_headers=None, raw=False, **operation_config): """Indicates to the Service Fabric cluster that it should attempt to - recover the specified service which is currently stuck in quorum loss. + recover the specified service that is currently stuck in quorum loss. Indicates to the Service Fabric cluster that it should attempt to - recover the specified service which is currently stuck in quorum loss. + recover the specified service that is currently stuck in quorum loss. This operation should only be performed if it is known that the replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -7051,13 +7041,12 @@ def recover_service_partitions( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7070,10 +7059,10 @@ def recover_service_partitions( def recover_system_partitions( self, timeout=60, custom_headers=None, raw=False, **operation_config): """Indicates to the Service Fabric cluster that it should attempt to - recover the system services which are currently stuck in quorum loss. + recover the system services that are currently stuck in quorum loss. Indicates to the Service Fabric cluster that it should attempt to - recover the system services which are currently stuck in quorum loss. + recover the system services that are currently stuck in quorum loss. This operation should only be performed if it is known that the replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. @@ -7106,13 +7095,12 @@ def recover_system_partitions( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7128,11 +7116,9 @@ def recover_all_partitions( recover any services (including system services) which are currently stuck in quorum loss. - Indicates to the Service Fabric cluster that it should attempt to - recover any services (including system services) which are currently - stuck in quorum loss. This operation should only be performed if it is - known that the replicas that are down cannot be recovered. Incorrect - use of this API can cause potential data loss. + This operation should only be performed if it is known that the + replicas that are down cannot be recovered. Incorrect use of this API + can cause potential data loss. :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -7162,13 +7148,12 @@ def recover_all_partitions( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7196,6 +7181,7 @@ def create_repair_task( you can safely perform repair actions on those nodes. This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param repair_task: Describes the repair task to be created or updated. @@ -7222,6 +7208,7 @@ def create_repair_task( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -7230,9 +7217,8 @@ def create_repair_task( body_content = self._serialize.body(repair_task, 'RepairTask') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7255,6 +7241,7 @@ def cancel_repair_task( This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param repair_task_cancel_description: Describes the repair task to be cancelled. @@ -7282,6 +7269,7 @@ def cancel_repair_task( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -7290,9 +7278,8 @@ def cancel_repair_task( body_content = self._serialize.body(repair_task_cancel_description, 'RepairTaskCancelDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7315,6 +7302,7 @@ def delete_repair_task( This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param task_id: The ID of the completed repair task to be deleted. :type task_id: str @@ -7354,9 +7342,8 @@ def delete_repair_task( body_content = self._serialize.body(repair_task_delete_description, 'RepairTaskDeleteDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7372,6 +7359,7 @@ def get_repair_task_list( This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param task_id_filter: The repair task ID prefix to be matched. :type task_id_filter: str @@ -7416,13 +7404,13 @@ def get_repair_task_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7445,6 +7433,7 @@ def force_approve_repair_task( This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param task_id: The ID of the repair task. :type task_id: str @@ -7477,6 +7466,7 @@ def force_approve_repair_task( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -7485,9 +7475,8 @@ def force_approve_repair_task( body_content = self._serialize.body(repair_task_approve_description, 'RepairTaskApproveDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7510,6 +7499,7 @@ def update_repair_task_health_policy( This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param repair_task_update_health_policy_description: Describes the repair task healthy policy to be updated. @@ -7537,6 +7527,7 @@ def update_repair_task_health_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -7545,9 +7536,8 @@ def update_repair_task_health_policy( body_content = self._serialize.body(repair_task_update_health_policy_description, 'RepairTaskUpdateHealthPolicyDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7570,6 +7560,7 @@ def update_repair_execution_state( This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param repair_task: Describes the repair task to be created or updated. @@ -7596,6 +7587,7 @@ def update_repair_execution_state( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -7604,9 +7596,8 @@ def update_repair_execution_state( body_content = self._serialize.body(repair_task, 'RepairTask') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7629,17 +7620,17 @@ def get_replica_info_list( partition. The GetReplicas endpoint returns information about the replicas of the - specified partition. The response includes the id, role, status, + specified partition. The response includes the ID, role, status, health, node name, uptime, and other details about the replica. :param partition_id: The identity of the partition. :type partition_id: str :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param timeout: The server timeout for performing the operation in @@ -7677,13 +7668,13 @@ def get_replica_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7704,7 +7695,7 @@ def get_replica_info( self, partition_id, replica_id, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets the information about a replica of a Service Fabric partition. - The response includes the id, role, status, health, node name, uptime, + The response includes the ID, role, status, health, node name, uptime, and other details about the replica. :param partition_id: The identity of the partition. @@ -7745,13 +7736,13 @@ def get_replica_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -7776,6 +7767,7 @@ def get_replica_health( Gets the health of a Service Fabric replica. Use EventsHealthStateFilter to filter the collection of health events reported on the replica based on the health state. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -7787,11 +7779,11 @@ def get_replica_health( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -7841,13 +7833,13 @@ def get_replica_health( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7877,6 +7869,7 @@ def get_replica_health_using_policy( used to evaluate the health. This API only uses 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while evaluating the health of the replica. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -7888,11 +7881,11 @@ def get_replica_health_using_policy( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -7948,6 +7941,7 @@ def get_replica_health_using_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -7959,9 +7953,8 @@ def get_replica_health_using_policy( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -7994,6 +7987,7 @@ def report_replica_health( To see whether the report was applied in the health store, run GetReplicaHealth and check that the report appears in the HealthEvents section. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -8010,7 +8004,7 @@ def report_replica_health( health reports sent to the health manager. :type health_information: ~azure.servicefabric.models.HealthInformation - :param immediate: A flag which indicates whether the report should be + :param immediate: A flag that indicates whether the report should be sent immediately. A health report is sent to a Service Fabric gateway Application, which forwards to the health store. @@ -8074,9 +8068,8 @@ def report_replica_health( body_content = self._serialize.body(health_information, 'HealthInformation') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8151,13 +8144,13 @@ def get_deployed_service_replica_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) @@ -8179,7 +8172,7 @@ def get_deployed_service_replica_detail_info( """Gets the details of replica deployed on a Service Fabric node. Gets the details of the replica deployed on a Service Fabric node. The - information include service kind, service name, current service + information includes service kind, service name, current service operation, current service operation start date time, partition ID, replica/instance ID, reported load, and other information. @@ -8225,13 +8218,13 @@ def get_deployed_service_replica_detail_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8253,7 +8246,7 @@ def get_deployed_service_replica_detail_info_by_partition_id( """Gets the details of replica deployed on a Service Fabric node. Gets the details of the replica deployed on a Service Fabric node. The - information include service kind, service name, current service + information includes service kind, service name, current service operation, current service operation start date time, partition ID, replica/instance ID, reported load, and other information. @@ -8296,13 +8289,13 @@ def get_deployed_service_replica_detail_info_by_partition_id( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8368,13 +8361,12 @@ def restart_replica( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8395,7 +8387,7 @@ def remove_replica( replica state removal path, and simulates the report fault permanent path through client APIs. Warning - There are no safety checks performed when this API is used. Incorrect use of this API can lead to - data loss for stateful services.In addition, the forceRemove flag + data loss for stateful services. In addition, the forceRemove flag impacts all other replicas hosted in the same process. :param node_name: The name of the node. @@ -8446,13 +8438,12 @@ def remove_replica( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8514,13 +8505,13 @@ def get_deployed_service_package_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8595,20 +8586,20 @@ def get_deployed_service_package_info_list_by_name( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.FabricErrorException(self._deserialize, response) deserialized = None - if response.status_code == 204: + if response.status_code == 200: deserialized = self._deserialize('[DeployedServicePackageInfo]', response) if raw: @@ -8620,10 +8611,10 @@ def get_deployed_service_package_info_list_by_name( def get_deployed_service_package_health( self, node_name, application_id, service_package_name, events_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config): - """Gets the information about health of an service package for a specific + """Gets the information about health of a service package for a specific application deployed for a Service Fabric node and application. - Gets the information about health of service package for a specific + Gets the information about health of a service package for a specific application deployed on a Service Fabric node. Use EventsHealthStateFilter to optionally filter for the collection of HealthEvent objects reported on the deployed service package based on @@ -8648,11 +8639,11 @@ def get_deployed_service_package_health( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -8703,13 +8694,13 @@ def get_deployed_service_package_health( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8732,7 +8723,7 @@ def get_deployed_service_package_health_using_policy( application deployed on a Service Fabric node using the specified policy. - Gets the information about health of an service package for a specific + Gets the information about health of a service package for a specific application deployed on a Service Fabric node. using the specified policy. Use EventsHealthStateFilter to optionally filter for the collection of HealthEvent objects reported on the deployed service @@ -8741,6 +8732,7 @@ def get_deployed_service_package_health_using_policy( This API only uses 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while evaluating the health of the deployed service package. + . :param node_name: The name of the node. :type node_name: str @@ -8761,11 +8753,11 @@ def get_deployed_service_package_health_using_policy( the following health states. Only events that match the filter are returned. All events are used to evaluate the aggregated health state. - If not specified, all entries are returned. The state values are flag - based enumeration, so the value could be a combination of these value - obtained using bitwise 'OR' operator. For example, If the provided - value is 6 then all of the events with HealthState value of OK (2) and - Warning (4) are returned. + If not specified, all entries are returned. The state values are + flag-based enumeration, so the value could be a combination of these + values, obtained using the bitwise 'OR' operator. For example, If the + provided value is 6 then all of the events with HealthState value of + OK (2) and Warning (4) are returned. - 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 @@ -8822,6 +8814,7 @@ def get_deployed_service_package_health_using_policy( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -8833,9 +8826,8 @@ def get_deployed_service_package_health_using_policy( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8868,6 +8860,7 @@ def report_deployed_service_package_health( To see whether the report was applied in the health store, get deployed service package health and check that the report appears in the HealthEvents section. + . :param node_name: The name of the node. :type node_name: str @@ -8887,7 +8880,7 @@ def report_deployed_service_package_health( health reports sent to the health manager. :type health_information: ~azure.servicefabric.models.HealthInformation - :param immediate: A flag which indicates whether the report should be + :param immediate: A flag that indicates whether the report should be sent immediately. A health report is sent to a Service Fabric gateway Application, which forwards to the health store. @@ -8951,9 +8944,8 @@ def report_deployed_service_package_health( body_content = self._serialize.body(health_information, 'HealthInformation') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -8974,6 +8966,7 @@ def deploy_service_package_to_node( and container images to be present on the node before the actual application deployment and upgrade, thus significantly reducing the total time required for the deployment or upgrade. + . :param node_name: The name of the node. :type node_name: str @@ -9021,9 +9014,8 @@ def deploy_service_package_to_node( body_content = self._serialize.body(deploy_service_package_to_node_description, 'DeployServicePackageToNodeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9096,13 +9088,13 @@ def get_deployed_code_package_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9183,9 +9175,8 @@ def restart_deployed_code_package( body_content = self._serialize.body(restart_deployed_code_package_description, 'RestartDeployedCodePackageDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9267,13 +9258,13 @@ def get_container_logs_deployed_on_node( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9359,6 +9350,7 @@ def invoke_container_api( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -9367,9 +9359,8 @@ def invoke_container_api( body_content = self._serialize.body(container_api_request_body, 'ContainerApiRequestBody') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9393,7 +9384,7 @@ def create_compose_deployment( Compose is a file format that describes multi-container applications. This API allows deploying container based applications defined in compose format in a Service Fabric cluster. Once the deployment is - created it's status can be tracked via `GetComposeDeploymentStatus` + created, its status can be tracked via the `GetComposeDeploymentStatus` API. :param create_compose_deployment_description: Describes the compose @@ -9436,9 +9427,8 @@ def create_compose_deployment( body_content = self._serialize.body(create_compose_deployment_description, 'CreateComposeDeploymentDescription') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -9455,7 +9445,7 @@ def get_compose_deployment_status( Returns the status of the compose deployment that was created or in the process of being created in the Service Fabric cluster and whose name matches the one specified as the parameter. The response includes the - name, status and other details about the deployment. + name, status, and other details about the deployment. :param deployment_name: The identity of the deployment. :type deployment_name: str @@ -9492,13 +9482,13 @@ def get_compose_deployment_status( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9522,17 +9512,17 @@ def get_compose_deployment_status_list( Gets the status about the compose deployments that were created or in the process of being created in the Service Fabric cluster. The - response includes the name, status and other details about the compose + response includes the name, status, and other details about the compose deployments. If the list of deployments do not fit in a page, one page - of results is returned as well as a continuation token which can be + of results is returned as well as a continuation token, which can be used to get the next page. :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -9540,7 +9530,7 @@ def get_compose_deployment_status_list( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -9578,13 +9568,13 @@ def get_compose_deployment_status_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9646,13 +9636,13 @@ def get_compose_deployment_upgrade_progress( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9709,13 +9699,12 @@ def remove_compose_deployment( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -9778,9 +9767,8 @@ def start_compose_deployment_upgrade( body_content = self._serialize.body(compose_deployment_upgrade_description, 'ComposeDeploymentUpgradeDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -9797,6 +9785,7 @@ def get_chaos( Get the status of Chaos indicating whether or not Chaos is running, the Chaos parameters used for running Chaos and the status of the Chaos Schedule. + . :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -9827,13 +9816,13 @@ def get_chaos( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9858,9 +9847,10 @@ def start_chaos( the passed in Chaos parameters. If Chaos is already running when this call is made, the call fails with the error code FABRIC_E_CHAOS_ALREADY_RUNNING. - Please refer to the article [Induce controlled Chaos in Service Fabric - clusters](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-controlled-chaos) + Refer to the article [Induce controlled Chaos in Service Fabric + clusters](https://docs.microsoft.com/azure/service-fabric/service-fabric-controlled-chaos) for more details. + . :param chaos_parameters: Describes all the parameters to configure a Chaos run. @@ -9901,9 +9891,8 @@ def start_chaos( body_content = self._serialize.body(chaos_parameters, 'ChaosParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9921,9 +9910,10 @@ def stop_chaos( Stops Chaos from executing new faults. In-flight faults will continue to execute until they are complete. The current Chaos Schedule is put into a stopped state. - Once a schedule is stopped it will stay in the stopped state and not be - used to Chaos Schedule new runs of Chaos. A new Chaos Schedule must be - set in order to resume scheduling. + Once a schedule is stopped, it will stay in the stopped state and not + be used to Chaos Schedule new runs of Chaos. A new Chaos Schedule must + be set in order to resume scheduling. + . :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -9953,13 +9943,12 @@ def stop_chaos( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -9983,25 +9972,26 @@ def get_chaos_events( returned in multiple segments where a segment contains no more than 100 Chaos events and to get the next segment you make a call to this API with the continuation token. + . :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param start_time_utc: The Windows file time representing the start time of the time range for which a Chaos report is to be generated. - Please consult [DateTime.ToFileTimeUtc - Method](https://msdn.microsoft.com/en-us/library/system.datetime.tofiletimeutc(v=vs.110).aspx) + Consult [DateTime.ToFileTimeUtc + Method](https://msdn.microsoft.com/library/system.datetime.tofiletimeutc(v=vs.110).aspx) for details. :type start_time_utc: str :param end_time_utc: The Windows file time representing the end time - of the time range for which a Chaos report is to be generated. Please - consult [DateTime.ToFileTimeUtc - Method](https://msdn.microsoft.com/en-us/library/system.datetime.tofiletimeutc(v=vs.110).aspx) + of the time range for which a Chaos report is to be generated. Consult + [DateTime.ToFileTimeUtc + Method](https://msdn.microsoft.com/library/system.datetime.tofiletimeutc(v=vs.110).aspx) for details. :type end_time_utc: str :param max_results: The maximum number of results to be returned as @@ -10009,7 +9999,7 @@ def get_chaos_events( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -10049,13 +10039,13 @@ def get_chaos_events( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10073,12 +10063,18 @@ def get_chaos_events( get_chaos_events.metadata = {'url': '/Tools/Chaos/Events'} def get_chaos_schedule( - self, custom_headers=None, raw=False, **operation_config): + self, timeout=60, custom_headers=None, raw=False, **operation_config): """Get the Chaos Schedule defining when and how to run Chaos. Gets the version of the Chaos Schedule in use and the Chaos Schedule that defines when and how to run Chaos. + . + :param timeout: The server timeout for performing the operation in + seconds. This timeout specifies the time duration that the client is + willing to wait for the requested operation to complete. The default + value for this parameter is 60 seconds. + :type timeout: long :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -10098,16 +10094,18 @@ def get_chaos_schedule( # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if timeout is not None: + query_parameters['timeout'] = self._serialize.query("timeout", timeout, 'long', maximum=4294967295, minimum=1) # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10125,21 +10123,24 @@ def get_chaos_schedule( get_chaos_schedule.metadata = {'url': '/Tools/Chaos/Schedule'} def post_chaos_schedule( - self, version=None, schedule=None, custom_headers=None, raw=False, **operation_config): + self, timeout=60, version=None, schedule=None, custom_headers=None, raw=False, **operation_config): """Set the schedule used by Chaos. - Set the Chaos Schedule currently in use by Chaos. Chaos will - automatically schedule runs based on the Chaos Schedule. - The version in the provided input schedule must match the version of - the Chaos Schedule on the server. - If the version provided does not match the version on the server, the - Chaos Schedule is not updated. - If the version provided matches the version on the server, then the - Chaos Schedule is updated and the version of the Chaos Schedule on the - server is incremented up by one and wraps back to 0 after - 2,147,483,647. + Chaos will automatically schedule runs based on the Chaos Schedule. + The Chaos Schedule will be updated if the provided version matches the + version on the server. + When updating the Chaos Schedule, the version on the server is + incremented by 1. + The version on the server will wrap back to 0 after reaching a large + number. If Chaos is running when this call is made, the call will fail. + . + :param timeout: The server timeout for performing the operation in + seconds. This timeout specifies the time duration that the client is + willing to wait for the requested operation to complete. The default + value for this parameter is 60 seconds. + :type timeout: long :param version: The version number of the Schedule. :type version: int :param schedule: Defines the schedule used by Chaos. @@ -10164,6 +10165,8 @@ def post_chaos_schedule( # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if timeout is not None: + query_parameters['timeout'] = self._serialize.query("timeout", timeout, 'long', maximum=4294967295, minimum=1) # Construct headers header_parameters = {} @@ -10175,9 +10178,8 @@ def post_chaos_schedule( body_content = self._serialize.body(chaos_schedule, 'ChaosScheduleDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10202,6 +10204,7 @@ def upload_file( isn't aware of the file hierarchy of the application package; you need to create a mark file per folder and upload it last, to let the image store service know that the folder is complete. + . :param content_path: Relative path to file or folder in the image store from its root. @@ -10238,13 +10241,12 @@ def upload_file( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10259,7 +10261,8 @@ def get_image_store_content( """Gets the image store content information. Returns the information about the image store content at the specified - contentPath relative to the root of the image store. + contentPath. The contentPath is relative to the root of the image + store. :param content_path: Relative path to file or folder in the image store from its root. @@ -10297,13 +10300,13 @@ def get_image_store_content( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10363,13 +10366,12 @@ def delete_image_store_content( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10415,13 +10417,13 @@ def get_image_store_root_content( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10485,9 +10487,8 @@ def copy_image_store_content( body_content = self._serialize.body(image_store_copy_description, 'ImageStoreCopyDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10503,6 +10504,7 @@ def delete_image_store_upload_session( The DELETE request will cause the existing upload session to expire and remove any previously uploaded file chunks. + . :param session_id: A GUID generated by the user for a file uploading. It identifies an image store upload session which keeps track of all @@ -10537,13 +10539,12 @@ def delete_image_store_upload_session( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10560,7 +10561,8 @@ def commit_image_store_upload_session( When all file chunks have been uploaded, the upload session needs to be committed explicitly to complete the upload. Image store preserves the upload session until the expiration time, which is 30 minutes after the - last chunk received. . + last chunk received. + . :param session_id: A GUID generated by the user for a file uploading. It identifies an image store upload session which keeps track of all @@ -10595,13 +10597,12 @@ def commit_image_store_upload_session( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10616,7 +10617,8 @@ def get_image_store_upload_session_by_id( """Get the image store upload session by ID. Gets the image store upload session identified by the given ID. User - can query the upload session at any time during uploading. . + can query the upload session at any time during uploading. + . :param session_id: A GUID generated by the user for a file uploading. It identifies an image store upload session which keeps track of all @@ -10652,13 +10654,13 @@ def get_image_store_upload_session_by_id( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10681,7 +10683,8 @@ def get_image_store_upload_session_by_path( Gets the image store upload session associated with the given image store relative path. User can query the upload session at any time - during uploading. . + during uploading. + . :param content_path: Relative path to file or folder in the image store from its root. @@ -10719,13 +10722,13 @@ def get_image_store_upload_session_by_path( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10756,6 +10759,7 @@ def upload_file_chunk( Chunks don't have to be uploaded in order. If the file represented by the image store relative path already exists, it will be overwritten when the upload session commits. + . :param content_path: Relative path to file or folder in the image store from its root. @@ -10805,14 +10809,13 @@ def upload_file_chunk( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) header_parameters['Content-Range'] = self._serialize.header("content_range", content_range, 'str') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10837,13 +10840,14 @@ def invoke_infrastructure_command( the infrastructure on which the cluster is running. This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param command: The text of the command to be invoked. The content of the command is infrastructure-specific. :type command: str :param service_id: The identity of the infrastructure service. This is the full name of the infrastructure service without the 'fabric:' URI - scheme. This parameter required only for the cluster that have more + scheme. This parameter required only for the cluster that has more than one instance of infrastructure service running. :type service_id: str :param timeout: The server timeout for performing the operation in @@ -10877,13 +10881,13 @@ def invoke_infrastructure_command( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10914,13 +10918,14 @@ def invoke_infrastructure_query( the infrastructure on which the cluster is running. This API supports the Service Fabric platform; it is not meant to be used directly from your code. + . :param command: The text of the command to be invoked. The content of the command is infrastructure-specific. :type command: str :param service_id: The identity of the infrastructure service. This is the full name of the infrastructure service without the 'fabric:' URI - scheme. This parameter required only for the cluster that have more + scheme. This parameter required only for the cluster that has more than one instance of infrastructure service running. :type service_id: str :param timeout: The server timeout for performing the operation in @@ -10954,13 +10959,13 @@ def invoke_infrastructure_query( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -10984,11 +10989,11 @@ def start_data_loss( This API will induce data loss for the specified partition. It will trigger a call to the OnDataLoss API of the partition. - Actual data loss will depend on the specified DataLossMode - PartialDataLoss - Only a quorum of replicas are removed and OnDataLoss - is triggered for the partition but actual data loss depends on the - presence of in-flight replication. - FullDataLoss - All replicas are removed hence all data is lost and + Actual data loss will depend on the specified DataLossMode. + - PartialDataLoss - Only a quorum of replicas are removed and + OnDataLoss is triggered for the partition but actual data loss depends + on the presence of in-flight replication. + - FullDataLoss - All replicas are removed hence all data is lost and OnDataLoss is triggered. This API should only be called with a stateful service as the target. Calling this API with a system service as the target is not advised. @@ -10999,9 +11004,10 @@ def start_data_loss( cause data loss. Call the GetDataLossProgress API with the same OperationId to return information on the operation started with this API. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -11052,13 +11058,12 @@ def start_data_loss( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -11075,9 +11080,10 @@ def get_data_loss_progress( Gets the progress of a data loss operation started with StartDataLoss, using the OperationId. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -11124,13 +11130,13 @@ def get_data_loss_progress( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -11151,16 +11157,17 @@ def start_quorum_loss( self, service_id, partition_id, operation_id, quorum_loss_mode, quorum_loss_duration, timeout=60, custom_headers=None, raw=False, **operation_config): """Induces quorum loss for a given stateful service partition. - Induces quorum loss for a given stateful service partition. This API - is useful for a temporary quorum loss situation on your service. + This API is useful for a temporary quorum loss situation on your + service. Call the GetQuorumLossProgress API with the same OperationId to return information on the operation started with this API. This can only be called on stateful persisted (HasPersistedState==true) services. Do not use this API on stateless services or stateful in-memory only services. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -11217,13 +11224,12 @@ def start_quorum_loss( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -11240,9 +11246,10 @@ def get_quorum_loss_progress( Gets the progress of a quorum loss operation started with StartQuorumLoss, using the provided OperationId. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -11289,13 +11296,13 @@ def get_quorum_loss_progress( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -11322,9 +11329,10 @@ def start_partition_restart( must be AllReplicasOrInstances. Call the GetPartitionRestartProgress API using the same OperationId to get the progress. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -11376,13 +11384,12 @@ def start_partition_restart( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -11399,9 +11406,10 @@ def get_partition_restart_progress( Gets the progress of a PartitionRestart started with StartPartitionRestart using the provided OperationId. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -11448,13 +11456,13 @@ def get_partition_restart_progress( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -11483,6 +11491,7 @@ def start_node_transition( have finished transitioning yet. Call GetNodeTransitionProgress with the same OperationId to get the progress of the operation. + . :param node_name: The name of the node. :type node_name: str @@ -11538,13 +11547,12 @@ def start_node_transition( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -11560,6 +11568,7 @@ def get_node_transition_progress( Gets the progress of an operation started with StartNodeTransition using the provided OperationId. + . :param node_name: The name of the node. :type node_name: str @@ -11600,13 +11609,13 @@ def get_node_transition_progress( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -11633,21 +11642,21 @@ def get_fault_operation_list( :param type_filter: Used to filter on OperationType for user-induced operations. - 65535 - select all - 1 - select PartitionDataLoss. - 2 - select PartitionQuorumLoss. - 4 - select PartitionRestart. - 8 - select NodeTransition. + - 65535 - select all + - 1 - select PartitionDataLoss. + - 2 - select PartitionQuorumLoss. + - 4 - select PartitionRestart. + - 8 - select NodeTransition. :type type_filter: int :param state_filter: Used to filter on OperationState's for user-induced operations. - 65535 - select All - 1 - select Running - 2 - select RollingBack - 8 - select Completed - 16 - select Faulted - 32 - select Cancelled - 64 - select ForceCancelled + - 65535 - select All + - 1 - select Running + - 2 - select RollingBack + - 8 - select Completed + - 16 - select Faulted + - 32 - select Cancelled + - 64 - select ForceCancelled :type state_filter: int :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -11680,13 +11689,13 @@ def get_fault_operation_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -11707,12 +11716,9 @@ def cancel_operation( self, operation_id, force=False, timeout=60, custom_headers=None, raw=False, **operation_config): """Cancels a user-induced fault operation. - The following is a list of APIs that start fault operations that may be - cancelled using CancelOperation - - - StartDataLoss - - StartQuorumLoss - - StartPartitionRestart - - StartNodeTransition + The following APIs start fault operations that may be cancelled by + using CancelOperation: StartDataLoss, StartQuorumLoss, + StartPartitionRestart, StartNodeTransition. If force is false, then the specified user-induced operation will be gracefully stopped and cleaned up. If force is true, the command will be aborted, and some internal state @@ -11722,9 +11728,9 @@ def cancel_operation( been called on the same test command with force set to false first, or unless the test command already has an OperationState of OperationState.RollingBack. - Clarification: OperationState.RollingBack means that the system will/is - be cleaning up internal system state caused by executing the command. - It will not restore data if the + Clarification: OperationState.RollingBack means that the system will + be/is cleaning up internal system state caused by executing the + command. It will not restore data if the test command was to cause data loss. For example, if you call StartDataLoss then call this API, the system will only clean up internal state from running the command. @@ -11732,6 +11738,7 @@ def cancel_operation( progressed far enough to cause data loss. Important note: if this API is invoked with force==true, internal state may be left behind. + . :param operation_id: A GUID that identifies a call of this API. This is passed into the corresponding GetProgress API @@ -11770,13 +11777,12 @@ def cancel_operation( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -11792,6 +11798,7 @@ def create_backup_policy( Creates a backup policy which can be associated later with a Service Fabric application, service or a partition for periodic backup. + . :param backup_policy_description: Describes the backup policy. :type backup_policy_description: @@ -11832,9 +11839,8 @@ def create_backup_policy( body_content = self._serialize.body(backup_policy_description, 'BackupPolicyDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.FabricErrorException(self._deserialize, response) @@ -11852,6 +11858,7 @@ def delete_backup_policy( before it can be deleted. A currently active backup policy, associated with any Service Fabric application, service or partition, cannot be deleted without first deleting the mapping. + . :param backup_policy_name: The name of the backup policy. :type backup_policy_name: str @@ -11887,13 +11894,12 @@ def delete_backup_policy( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -11908,13 +11914,14 @@ def get_backup_policy_list( """Gets all the backup policies configured. Get a list of all the backup policies configured. + . :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -11922,7 +11929,7 @@ def get_backup_policy_list( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -11959,13 +11966,13 @@ def get_backup_policy_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -11986,7 +11993,8 @@ def get_backup_policy_by_name( self, backup_policy_name, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets a particular backup policy by name. - Gets a particular backup policy identified by {backupPolicyName}. + Gets a particular backup policy identified by {backupPolicyName} + . :param backup_policy_name: The name of the backup policy. :type backup_policy_name: str @@ -12023,13 +12031,13 @@ def get_backup_policy_by_name( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -12052,15 +12060,16 @@ def get_all_entities_backed_up_by_policy( Returns a list of Service Fabric application, service or partition which are associated with this backup policy. + . :param backup_policy_name: The name of the backup policy. :type backup_policy_name: str :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -12068,7 +12077,7 @@ def get_all_entities_backed_up_by_policy( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -12108,13 +12117,13 @@ def get_all_entities_backed_up_by_policy( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -12135,7 +12144,8 @@ def update_backup_policy( self, backup_policy_description, backup_policy_name, timeout=60, custom_headers=None, raw=False, **operation_config): """Updates the backup policy. - Updates the backup policy identified by {backupPolicyName}. + Updates the backup policy identified by {backupPolicyName} + . :param backup_policy_description: Describes the backup policy. :type backup_policy_description: @@ -12182,9 +12192,8 @@ def update_backup_policy( body_content = self._serialize.body(backup_policy_description, 'BackupPolicyDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -12204,6 +12213,7 @@ def enable_application_backup( per the specified backup policy description. Note only C# based Reliable Actor and Reliable Stateful services are currently supported for periodic backup. + . :param application_id: The identity of the application. This is typically the full name of the application without the 'fabric:' URI @@ -12259,9 +12269,8 @@ def enable_application_backup( body_content = self._serialize.body(enable_backup_description, 'EnableBackupDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -12277,6 +12286,7 @@ def disable_application_backup( Disables periodic backup of Service Fabric application which was previously enabled. + . :param application_id: The identity of the application. This is typically the full name of the application without the 'fabric:' URI @@ -12319,13 +12329,12 @@ def disable_application_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -12341,6 +12350,7 @@ def get_application_backup_configuration_info( Gets the Service Fabric backup configuration information for the application and the services and partitions under this application. + . :param application_id: The identity of the application. This is typically the full name of the application without the 'fabric:' URI @@ -12352,11 +12362,11 @@ def get_application_backup_configuration_info( previous versions. :type application_id: str :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -12364,7 +12374,7 @@ def get_application_backup_configuration_info( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -12405,13 +12415,13 @@ def get_application_backup_configuration_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -12438,6 +12448,7 @@ def get_application_backup_list( the backup location configured in the backup policy. It also allows filtering of the result based on start and end datetime or just fetching the latest available backup for every partition. + . :param application_id: The identity of the application. This is typically the full name of the application without the 'fabric:' URI @@ -12467,11 +12478,11 @@ def get_application_backup_list( enumeration is done till the most recent backup. :type end_date_time_filter: datetime :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -12479,7 +12490,7 @@ def get_application_backup_list( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param dict custom_headers: headers that will be added to the request @@ -12520,13 +12531,13 @@ def get_application_backup_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -12594,13 +12605,12 @@ def suspend_application_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -12660,13 +12670,12 @@ def resume_application_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -12690,9 +12699,10 @@ def enable_service_backup( overridden at the partition level). Note only C# based Reliable Actor and Reliable Stateful services are currently supported for periodic backup. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -12744,9 +12754,8 @@ def enable_service_backup( body_content = self._serialize.body(enable_backup_description, 'EnableBackupDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -12766,9 +12775,10 @@ def disable_service_backup( In case the backup is enabled for the Service Fabric application, which this service is part of, this service would continue to be periodically backed up as per the policy mapped at the application level. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -12807,13 +12817,12 @@ def disable_service_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -12829,9 +12838,10 @@ def get_service_backup_configuration_info( Gets the Service Fabric backup configuration information for the service and the partitions under this service. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -12839,11 +12849,11 @@ def get_service_backup_configuration_info( "myapp/app1/svc1" in previous versions. :type service_id: str :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -12851,7 +12861,7 @@ def get_service_backup_configuration_info( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param timeout: The server timeout for performing the operation in @@ -12892,13 +12902,13 @@ def get_service_backup_configuration_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -12924,9 +12934,10 @@ def get_service_backup_list( backup store configured in the backup policy. It also allows filtering of the result based on start and end datetime or just fetching the latest available backup for every partition. + . - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -12952,11 +12963,11 @@ def get_service_backup_list( enumeration is done till the most recent backup. :type end_date_time_filter: datetime :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -12964,7 +12975,7 @@ def get_service_backup_list( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param dict custom_headers: headers that will be added to the request @@ -13005,13 +13016,13 @@ def get_service_backup_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -13037,8 +13048,8 @@ def suspend_service_backup( applies to the entire service's hierarchy. It means all the partitions under this service are now suspended for backup. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -13077,13 +13088,12 @@ def suspend_service_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -13101,8 +13111,8 @@ def resume_service_backup( The previously suspended Service Fabric service resumes taking periodic backup as per the backup policy currently configured for the same. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -13141,13 +13151,12 @@ def resume_service_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -13168,6 +13177,7 @@ def enable_partition_backup( used to take the periodic backup of this partition. Note only C# based Reliable Actor and Reliable Stateful services are currently supported for periodic backup. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -13216,9 +13226,8 @@ def enable_partition_backup( body_content = self._serialize.body(enable_backup_description, 'EnableBackupDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -13239,6 +13248,7 @@ def disable_partition_backup( service, which this partition is part of, this partition would continue to be periodically backed up as per the policy mapped at the higher level entity. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -13274,13 +13284,12 @@ def disable_partition_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -13296,6 +13305,7 @@ def get_partition_backup_configuration_info( Gets the Service Fabric Backup configuration information for the specified partition. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -13333,13 +13343,13 @@ def get_partition_backup_configuration_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -13365,6 +13375,7 @@ def get_partition_backup_list( configured in the backup policy. It also allows filtering of the result based on start and end datetime or just fetching the latest available backup for the partition. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -13420,13 +13431,13 @@ def get_partition_backup_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -13484,13 +13495,12 @@ def suspend_partition_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -13541,13 +13551,12 @@ def resume_partition_backup( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -13569,6 +13578,7 @@ def backup_partition( tracked using the GetBackupProgress operation. In case, the operation times out, specify a greater backup timeout value in the query parameter. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -13633,9 +13643,8 @@ def backup_partition( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -13651,6 +13660,7 @@ def get_partition_backup_progress( Returns information about the state of the latest backup along with details or failure reason in case of completion. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -13687,13 +13697,13 @@ def get_partition_backup_progress( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -13724,6 +13734,7 @@ def restore_partition( progress can be tracked using the GetRestoreProgress operation. In case, the operation times out, specify a greater restore timeout value in the query parameter. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -13781,9 +13792,8 @@ def restore_partition( body_content = self._serialize.body(restore_partition_description, 'RestorePartitionDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.FabricErrorException(self._deserialize, response) @@ -13800,6 +13810,7 @@ def get_partition_restore_progress( Returns information about the state of the latest restore operation along with details or failure reason in case of completion. + . :param partition_id: The identity of the partition. :type partition_id: str @@ -13836,13 +13847,13 @@ def get_partition_restore_progress( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -13867,6 +13878,7 @@ def get_backups_from_backup_location( Gets the list of backups available for the specified backed up entity (Application, Service or Partition) at the specified backup location (FileShare or Azure Blob Storage). + . :param get_backup_by_storage_query_description: Describes the filters and backup storage details to be used for enumerating backups. @@ -13878,11 +13890,11 @@ def get_backups_from_backup_location( value for this parameter is 60 seconds. :type timeout: long :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param max_results: The maximum number of results to be returned as @@ -13890,7 +13902,7 @@ def get_backups_from_backup_location( the number of results returned. The results returned can be less than the specified maximum results if they do not fit in the message as per the max message size restrictions defined in the configuration. If - this parameter is zero or not specified, the paged queries includes as + this parameter is zero or not specified, the paged query includes as many results as possible that fit in the return message. :type max_results: long :param dict custom_headers: headers that will be added to the request @@ -13921,6 +13933,7 @@ def get_backups_from_backup_location( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -13929,9 +13942,8 @@ def get_backups_from_backup_location( body_content = self._serialize.body(get_backup_by_storage_query_description, 'GetBackupByStorageQueryDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -13995,9 +14007,8 @@ def create_name( body_content = self._serialize.body(name_description, 'NameDescription') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.FabricErrorException(self._deserialize, response) @@ -14048,13 +14059,12 @@ def get_name_exists_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14107,13 +14117,12 @@ def delete_name( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14129,7 +14138,7 @@ def get_sub_name_info_list( Enumerates all the Service Fabric names under a given name. If the subnames do not fit in a page, one page of results is returned as well - as a continuation token which can be used to get the next page. + as a continuation token, which can be used to get the next page. Querying a name that doesn't exist will fail. :param name_id: The Service Fabric name, without the 'fabric:' URI @@ -14139,11 +14148,11 @@ def get_sub_name_info_list( be recursive. :type recursive: bool :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param timeout: The server timeout for performing the operation in @@ -14183,13 +14192,13 @@ def get_sub_name_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14210,9 +14219,9 @@ def get_property_info_list( self, name_id, include_values=False, continuation_token=None, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets information on all Service Fabric properties under a given name. - A Service Fabric name can have one or more named properties that stores + A Service Fabric name can have one or more named properties that store custom information. This operation gets the information about these - properties in a paged list. The information include name, value and + properties in a paged list. The information includes name, value, and metadata about each of the properties. :param name_id: The Service Fabric name, without the 'fabric:' URI @@ -14223,11 +14232,11 @@ def get_property_info_list( metadata; False to return only property metadata. :type include_values: bool :param continuation_token: The continuation token parameter is used to - obtain next set of results. A continuation token with a non empty + obtain next set of results. A continuation token with a non-empty value 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 does not contain a + no further results, then the continuation token does not contain a value. The value of this parameter should not be URL encoded. :type continuation_token: str :param timeout: The server timeout for performing the operation in @@ -14267,13 +14276,13 @@ def get_property_info_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14344,9 +14353,8 @@ def put_property( body_content = self._serialize.body(property_description, 'PropertyDescription') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14402,13 +14410,13 @@ def get_property_info( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14470,13 +14478,12 @@ def delete_property( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14535,6 +14542,7 @@ def submit_property_batch( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) @@ -14543,9 +14551,8 @@ def submit_property_batch( body_content = self._serialize.body(property_batch_description_list, 'PropertyBatchDescriptionList') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 409]: raise models.FabricErrorException(self._deserialize, response) @@ -14625,13 +14632,13 @@ def get_cluster_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14709,13 +14716,13 @@ def get_containers_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14799,13 +14806,13 @@ def get_node_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14883,13 +14890,13 @@ def get_nodes_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -14980,13 +14987,13 @@ def get_application_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15064,13 +15071,13 @@ def get_applications_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15093,8 +15100,8 @@ def get_service_event_list( The response is list of ServiceEvent objects. - :param service_id: The identity of the service. This is typically the - full name of the service without the 'fabric:' URI scheme. + :param service_id: The identity of the service. This ID is typically + the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the @@ -15160,13 +15167,13 @@ def get_service_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15244,13 +15251,13 @@ def get_services_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15334,13 +15341,13 @@ def get_partition_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15418,13 +15425,13 @@ def get_partitions_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15511,13 +15518,13 @@ def get_partition_replica_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15601,13 +15608,13 @@ def get_partition_replicas_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15665,13 +15672,13 @@ def get_correlated_event_list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.FabricErrorException(self._deserialize, response) @@ -15687,3 +15694,593 @@ def get_correlated_event_list( return deserialized get_correlated_event_list.metadata = {'url': '/EventsStore/CorrelatedEvents/{eventInstanceId}/$/Events'} + + def create_application_resource( + self, application_resource_name, application_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates an application resource. + + Creates an application with the specified name and description. If an + application with the same name already exists, then its description are + updated to the one indicated in this request. + + :param application_resource_name: Service Fabric application resource + name. + :type application_resource_name: str + :param application_resource_description: Description for creating an + application resource. + :type application_resource_description: + ~azure.servicefabric.models.ApplicationResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.create_application_resource.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(application_resource_description, 'ApplicationResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [201, 202]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + create_application_resource.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} + + def get_application_resource( + self, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the application with the given name. + + Gets the application with the given name. This includes the information + about the application's services and other runtime information. + + :param application_resource_name: Service Fabric application resource + name. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationResourceDescription or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.ApplicationResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.get_application_resource.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_application_resource.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} + + def delete_application_resource( + self, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified application. + + Deletes the application identified by the name. + + :param application_resource_name: Service Fabric application resource + name. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.delete_application_resource.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete_application_resource.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} + + def get_services( + self, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets all the services in the application resource. + + The operation returns the service descriptions of all the services in + the application resource. . + + :param application_resource_name: Service Fabric application resource + name. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedServiceResourceDescriptionList or ClientRawResponse if + raw=true + :rtype: + ~azure.servicefabric.models.PagedServiceResourceDescriptionList or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`HttpOperationError` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.get_services.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedServiceResourceDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_services.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services'} + + def get_service( + self, application_resource_name, service_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the description of the specified service in an application + resource. + + Gets the description of the service resource. + + :param application_resource_name: Service Fabric application resource + name. + :type application_resource_name: str + :param service_resource_name: Service Fabric service resource name. + :type service_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ServiceResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.ServiceResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`HttpOperationError` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.get_service.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_service.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}'} + + def get_replicas( + self, application_resource_name, service_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets replicas of a given service in an applciation resource. + + Gets the information about all replicas of a given service of an + application. The information includes the runtime properties of the + replica instance. + + :param application_resource_name: Service Fabric application resource + name. + :type application_resource_name: str + :param service_resource_name: Service Fabric service resource name. + :type service_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedServiceResourceReplicaDescriptionList or + ClientRawResponse if raw=true + :rtype: + ~azure.servicefabric.models.PagedServiceResourceReplicaDescriptionList + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`HttpOperationError` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.get_replicas.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedServiceResourceReplicaDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_replicas.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/replicas'} + + def get_replica( + self, application_resource_name, service_resource_name, replica_name, custom_headers=None, raw=False, **operation_config): + """Gets a specific replica of a given service in an application resource. + + Gets the information about the specified replica of a given service of + an application. The information includes the runtime properties of the + replica instance. + + :param application_resource_name: Service Fabric application resource + name. + :type application_resource_name: str + :param service_resource_name: Service Fabric service resource name. + :type service_resource_name: str + :param replica_name: Service Fabric replica name. + :type replica_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ServiceResourceReplicaDescription or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.ServiceResourceReplicaDescription + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`HttpOperationError` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.get_replica.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True), + 'replicaName': self._serialize.url("replica_name", replica_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceResourceReplicaDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_replica.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}'} + + def create_volume_resource( + self, volume_resource_name, volume_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates a volume resource. + + Creates a volume resource with the specified name and description. If a + volume with the same name already exists, then its description is + updated to the one indicated in this request. + . + + :param volume_resource_name: Service Fabric volume resource name. + :type volume_resource_name: str + :param volume_resource_description: Description for creating a volume + resource. + :type volume_resource_description: + ~azure.servicefabric.models.VolumeResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.create_volume_resource.metadata['url'] + path_format_arguments = { + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(volume_resource_description, 'VolumeResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [201, 202]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + create_volume_resource.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} + + def get_volume_resource( + self, volume_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the volume resource. + + Gets the information about the volume resource with a given name. This + information includes the volume description and other runtime + information. + . + + :param volume_resource_name: Service Fabric volume resource name. + :type volume_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VolumeResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.VolumeResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.get_volume_resource.metadata['url'] + path_format_arguments = { + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VolumeResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_volume_resource.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} + + def delete_volume_resource( + self, volume_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the volume resource. + + Deletes the volume identified by the name. + + :param volume_resource_name: Service Fabric volume resource name. + :type volume_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + api_version = "6.3-preview" + + # Construct URL + url = self.delete_volume_resource.metadata['url'] + path_format_arguments = { + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete_volume_resource.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} diff --git a/azure-servicefabric/azure/servicefabric/version.py b/azure-servicefabric/azure/servicefabric/version.py index c19e20336924..04fad6f3ebf3 100644 --- a/azure-servicefabric/azure/servicefabric/version.py +++ b/azure-servicefabric/azure/servicefabric/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "6.2.0.0" +VERSION = "6.3.0.0"