Skip to content

Commit

Permalink
[AutoPR] servicefabric/data-plane (#3002)
Browse files Browse the repository at this point in the history
* Generated from 8842b69926229d7097ef82a5c333ced9fcaa06dc (#2981)

ensure the correct case is used for the Resource folder in referencing the examples

* Generated from b9a3d8f42ed43d826d45af0ae6c88b871546302e (#3021)

Remove newline characters from the description property value. These extra characters are resulting in extra "." dot character in the python_sdk.

* Add in notes for 6.3.0.0 release (#3024)

* Add in notes for 6.3.0.0 release

* include python 3.7
  • Loading branch information
AutorestCI authored and lmazuel committed Jul 31, 2018
1 parent 0379912 commit e4049b3
Show file tree
Hide file tree
Showing 149 changed files with 4,147 additions and 1,115 deletions.
12 changes: 12 additions & 0 deletions azure-servicefabric/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
Release History
===============

6.3.0.0 (2018-07-27)
++++++++++++++++++++

**Bugfixes**

- Numerous improvements to descriptions and help texts

**Features**

- Add application health policies parameter for config upgrade
- Query to get nodes now supports specification to limit number of returned items

6.2.0.0 (2018-05-10)
++++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion azure-servicefabric/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Service Fabric Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5, 3.6, and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
83 changes: 83 additions & 0 deletions azure-servicefabric/azure/servicefabric/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -919,6 +969,10 @@
RepairTaskHealthCheckState,
ScalingTriggerKind,
ScalingMechanismKind,
ServiceResourceStatus,
ApplicationResourceStatus,
DiagnosticsSinkKind,
OperatingSystemTypes,
NodeStatusFilter,
ReplicaHealthReportServiceKind,
DataLossMode,
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -1422,6 +1501,10 @@
'RepairTaskHealthCheckState',
'ScalingTriggerKind',
'ScalingMechanismKind',
'ServiceResourceStatus',
'ApplicationResourceStatus',
'DiagnosticsSinkKind',
'OperatingSystemTypes',
'NodeStatusFilter',
'ReplicaHealthReportServiceKind',
'DataLossMode',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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).
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit e4049b3

Please sign in to comment.