Skip to content

Commit e4049b3

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] servicefabric/data-plane (#3002)
* 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
1 parent 0379912 commit e4049b3

File tree

149 files changed

+4147
-1115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+4147
-1115
lines changed

azure-servicefabric/HISTORY.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
Release History
44
===============
55

6+
6.3.0.0 (2018-07-27)
7+
++++++++++++++++++++
8+
9+
**Bugfixes**
10+
11+
- Numerous improvements to descriptions and help texts
12+
13+
**Features**
14+
15+
- Add application health policies parameter for config upgrade
16+
- Query to get nodes now supports specification to limit number of returned items
17+
618
6.2.0.0 (2018-05-10)
719
++++++++++++++++++++
820

azure-servicefabric/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is the Microsoft Azure Service Fabric Client Library.
66
Azure Resource Manager (ARM) is the next generation of management APIs that
77
replace the old Azure Service Management (ASM).
88

9-
This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.
9+
This package has been tested with Python 2.7, 3.4, 3.5, 3.6, and 3.7.
1010

1111
For the older Azure Service Management (ASM) libraries, see
1212
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

azure-servicefabric/azure/servicefabric/models/__init__.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,31 @@
423423
from .chaos_move_primary_fault_scheduled_event_py3 import ChaosMovePrimaryFaultScheduledEvent
424424
from .chaos_restart_replica_fault_scheduled_event_py3 import ChaosRestartReplicaFaultScheduledEvent
425425
from .chaos_restart_node_fault_scheduled_event_py3 import ChaosRestartNodeFaultScheduledEvent
426+
from .service_resource_description_py3 import ServiceResourceDescription
427+
from .diagnostics_sink_properties_py3 import DiagnosticsSinkProperties
428+
from .diagnostics_description_py3 import DiagnosticsDescription
429+
from .application_resource_description_py3 import ApplicationResourceDescription
430+
from .paged_service_resource_description_list_py3 import PagedServiceResourceDescriptionList
431+
from .service_resource_replica_description_py3 import ServiceResourceReplicaDescription
432+
from .paged_service_resource_replica_description_list_py3 import PagedServiceResourceReplicaDescriptionList
433+
from .volume_provider_parameters_azure_file_py3 import VolumeProviderParametersAzureFile
434+
from .volume_resource_description_py3 import VolumeResourceDescription
435+
from .image_registry_credential_py3 import ImageRegistryCredential
436+
from .environment_variable_py3 import EnvironmentVariable
437+
from .setting_py3 import Setting
438+
from .container_label_py3 import ContainerLabel
439+
from .endpoint_properties_py3 import EndpointProperties
440+
from .resource_requests_py3 import ResourceRequests
441+
from .resource_limits_py3 import ResourceLimits
442+
from .resource_requirements_py3 import ResourceRequirements
443+
from .container_volume_py3 import ContainerVolume
444+
from .container_state_py3 import ContainerState
445+
from .container_event_py3 import ContainerEvent
446+
from .container_instance_view_py3 import ContainerInstanceView
447+
from .diagnostics_ref_py3 import DiagnosticsRef
448+
from .container_code_package_properties_py3 import ContainerCodePackageProperties
449+
from .network_ref_py3 import NetworkRef
450+
from .service_replica_properties_py3 import ServiceReplicaProperties
426451
except (SyntaxError, ImportError):
427452
from .aad_metadata import AadMetadata
428453
from .aad_metadata_object import AadMetadataObject
@@ -837,6 +862,31 @@
837862
from .chaos_move_primary_fault_scheduled_event import ChaosMovePrimaryFaultScheduledEvent
838863
from .chaos_restart_replica_fault_scheduled_event import ChaosRestartReplicaFaultScheduledEvent
839864
from .chaos_restart_node_fault_scheduled_event import ChaosRestartNodeFaultScheduledEvent
865+
from .service_resource_description import ServiceResourceDescription
866+
from .diagnostics_sink_properties import DiagnosticsSinkProperties
867+
from .diagnostics_description import DiagnosticsDescription
868+
from .application_resource_description import ApplicationResourceDescription
869+
from .paged_service_resource_description_list import PagedServiceResourceDescriptionList
870+
from .service_resource_replica_description import ServiceResourceReplicaDescription
871+
from .paged_service_resource_replica_description_list import PagedServiceResourceReplicaDescriptionList
872+
from .volume_provider_parameters_azure_file import VolumeProviderParametersAzureFile
873+
from .volume_resource_description import VolumeResourceDescription
874+
from .image_registry_credential import ImageRegistryCredential
875+
from .environment_variable import EnvironmentVariable
876+
from .setting import Setting
877+
from .container_label import ContainerLabel
878+
from .endpoint_properties import EndpointProperties
879+
from .resource_requests import ResourceRequests
880+
from .resource_limits import ResourceLimits
881+
from .resource_requirements import ResourceRequirements
882+
from .container_volume import ContainerVolume
883+
from .container_state import ContainerState
884+
from .container_event import ContainerEvent
885+
from .container_instance_view import ContainerInstanceView
886+
from .diagnostics_ref import DiagnosticsRef
887+
from .container_code_package_properties import ContainerCodePackageProperties
888+
from .network_ref import NetworkRef
889+
from .service_replica_properties import ServiceReplicaProperties
840890
from .service_fabric_client_ap_is_enums import (
841891
ApplicationDefinitionKind,
842892
HealthState,
@@ -919,6 +969,10 @@
919969
RepairTaskHealthCheckState,
920970
ScalingTriggerKind,
921971
ScalingMechanismKind,
972+
ServiceResourceStatus,
973+
ApplicationResourceStatus,
974+
DiagnosticsSinkKind,
975+
OperatingSystemTypes,
922976
NodeStatusFilter,
923977
ReplicaHealthReportServiceKind,
924978
DataLossMode,
@@ -1341,6 +1395,31 @@
13411395
'ChaosMovePrimaryFaultScheduledEvent',
13421396
'ChaosRestartReplicaFaultScheduledEvent',
13431397
'ChaosRestartNodeFaultScheduledEvent',
1398+
'ServiceResourceDescription',
1399+
'DiagnosticsSinkProperties',
1400+
'DiagnosticsDescription',
1401+
'ApplicationResourceDescription',
1402+
'PagedServiceResourceDescriptionList',
1403+
'ServiceResourceReplicaDescription',
1404+
'PagedServiceResourceReplicaDescriptionList',
1405+
'VolumeProviderParametersAzureFile',
1406+
'VolumeResourceDescription',
1407+
'ImageRegistryCredential',
1408+
'EnvironmentVariable',
1409+
'Setting',
1410+
'ContainerLabel',
1411+
'EndpointProperties',
1412+
'ResourceRequests',
1413+
'ResourceLimits',
1414+
'ResourceRequirements',
1415+
'ContainerVolume',
1416+
'ContainerState',
1417+
'ContainerEvent',
1418+
'ContainerInstanceView',
1419+
'DiagnosticsRef',
1420+
'ContainerCodePackageProperties',
1421+
'NetworkRef',
1422+
'ServiceReplicaProperties',
13441423
'ApplicationDefinitionKind',
13451424
'HealthState',
13461425
'ApplicationStatus',
@@ -1422,6 +1501,10 @@
14221501
'RepairTaskHealthCheckState',
14231502
'ScalingTriggerKind',
14241503
'ScalingMechanismKind',
1504+
'ServiceResourceStatus',
1505+
'ApplicationResourceStatus',
1506+
'DiagnosticsSinkKind',
1507+
'OperatingSystemTypes',
14251508
'NodeStatusFilter',
14261509
'ReplicaHealthReportServiceKind',
14271510
'DataLossMode',

azure-servicefabric/azure/servicefabric/models/application_health_state_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ApplicationHealthStateFilter(Model):
4848
If not specified, default value is None, unless the application name or
4949
the application type name are specified. If the filter has default value
5050
and application name is specified, the matching application is returned.
51-
The state values are flag based enumeration, so the value could be a
51+
The state values are flag-based enumeration, so the value could be a
5252
combination of these values obtained using bitwise 'OR' operator.
5353
For example, if the provided value is 6, it matches applications with
5454
HealthState value of OK (2) and Warning (4).

azure-servicefabric/azure/servicefabric/models/application_health_state_filter_py3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ApplicationHealthStateFilter(Model):
4848
If not specified, default value is None, unless the application name or
4949
the application type name are specified. If the filter has default value
5050
and application name is specified, the matching application is returned.
51-
The state values are flag based enumeration, so the value could be a
51+
The state values are flag-based enumeration, so the value could be a
5252
combination of these values obtained using bitwise 'OR' operator.
5353
For example, if the provided value is 6, it matches applications with
5454
HealthState value of OK (2) and Warning (4).
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ApplicationResourceDescription(Model):
16+
"""Describes a service fabric application resource.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
All required parameters must be populated in order to send to Azure.
22+
23+
:param description: User readable description of the application.
24+
:type description: str
25+
:param debug_params: Internal use.
26+
:type debug_params: str
27+
:param services: describes the services in the application.
28+
:type services:
29+
list[~azure.servicefabric.models.ServiceResourceDescription]
30+
:ivar health_state: Describes the health state of an application resource.
31+
Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
32+
:vartype health_state: str or ~azure.servicefabric.models.HealthState
33+
:ivar unhealthy_evaluation: When the application's health state is not
34+
'Ok', this additional details from service fabric Health Manager for the
35+
user to know why the application is marked unhealthy.
36+
:vartype unhealthy_evaluation: str
37+
:ivar status: Status of the application resource. Possible values include:
38+
'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
39+
:vartype status: str or
40+
~azure.servicefabric.models.ApplicationResourceStatus
41+
:ivar status_details: Gives additional information about the current
42+
status of the application deployment.
43+
:vartype status_details: str
44+
:ivar service_names: Names of the services in the application.
45+
:vartype service_names: list[str]
46+
:param diagnostics: Describes the diagnostics definition and usage for an
47+
application resource.
48+
:type diagnostics: ~azure.servicefabric.models.DiagnosticsDescription
49+
:param name: Required. Application resource name.
50+
:type name: str
51+
"""
52+
53+
_validation = {
54+
'health_state': {'readonly': True},
55+
'unhealthy_evaluation': {'readonly': True},
56+
'status': {'readonly': True},
57+
'status_details': {'readonly': True},
58+
'service_names': {'readonly': True},
59+
'name': {'required': True},
60+
}
61+
62+
_attribute_map = {
63+
'description': {'key': 'properties.description', 'type': 'str'},
64+
'debug_params': {'key': 'properties.debugParams', 'type': 'str'},
65+
'services': {'key': 'properties.services', 'type': '[ServiceResourceDescription]'},
66+
'health_state': {'key': 'properties.healthState', 'type': 'str'},
67+
'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'},
68+
'status': {'key': 'properties.status', 'type': 'str'},
69+
'status_details': {'key': 'properties.statusDetails', 'type': 'str'},
70+
'service_names': {'key': 'properties.serviceNames', 'type': '[str]'},
71+
'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'},
72+
'name': {'key': 'name', 'type': 'str'},
73+
}
74+
75+
def __init__(self, **kwargs):
76+
super(ApplicationResourceDescription, self).__init__(**kwargs)
77+
self.description = kwargs.get('description', None)
78+
self.debug_params = kwargs.get('debug_params', None)
79+
self.services = kwargs.get('services', None)
80+
self.health_state = None
81+
self.unhealthy_evaluation = None
82+
self.status = None
83+
self.status_details = None
84+
self.service_names = None
85+
self.diagnostics = kwargs.get('diagnostics', None)
86+
self.name = kwargs.get('name', None)
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ApplicationResourceDescription(Model):
16+
"""Describes a service fabric application resource.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
All required parameters must be populated in order to send to Azure.
22+
23+
:param description: User readable description of the application.
24+
:type description: str
25+
:param debug_params: Internal use.
26+
:type debug_params: str
27+
:param services: describes the services in the application.
28+
:type services:
29+
list[~azure.servicefabric.models.ServiceResourceDescription]
30+
:ivar health_state: Describes the health state of an application resource.
31+
Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
32+
:vartype health_state: str or ~azure.servicefabric.models.HealthState
33+
:ivar unhealthy_evaluation: When the application's health state is not
34+
'Ok', this additional details from service fabric Health Manager for the
35+
user to know why the application is marked unhealthy.
36+
:vartype unhealthy_evaluation: str
37+
:ivar status: Status of the application resource. Possible values include:
38+
'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
39+
:vartype status: str or
40+
~azure.servicefabric.models.ApplicationResourceStatus
41+
:ivar status_details: Gives additional information about the current
42+
status of the application deployment.
43+
:vartype status_details: str
44+
:ivar service_names: Names of the services in the application.
45+
:vartype service_names: list[str]
46+
:param diagnostics: Describes the diagnostics definition and usage for an
47+
application resource.
48+
:type diagnostics: ~azure.servicefabric.models.DiagnosticsDescription
49+
:param name: Required. Application resource name.
50+
:type name: str
51+
"""
52+
53+
_validation = {
54+
'health_state': {'readonly': True},
55+
'unhealthy_evaluation': {'readonly': True},
56+
'status': {'readonly': True},
57+
'status_details': {'readonly': True},
58+
'service_names': {'readonly': True},
59+
'name': {'required': True},
60+
}
61+
62+
_attribute_map = {
63+
'description': {'key': 'properties.description', 'type': 'str'},
64+
'debug_params': {'key': 'properties.debugParams', 'type': 'str'},
65+
'services': {'key': 'properties.services', 'type': '[ServiceResourceDescription]'},
66+
'health_state': {'key': 'properties.healthState', 'type': 'str'},
67+
'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'},
68+
'status': {'key': 'properties.status', 'type': 'str'},
69+
'status_details': {'key': 'properties.statusDetails', 'type': 'str'},
70+
'service_names': {'key': 'properties.serviceNames', 'type': '[str]'},
71+
'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'},
72+
'name': {'key': 'name', 'type': 'str'},
73+
}
74+
75+
def __init__(self, *, name: str, description: str=None, debug_params: str=None, services=None, diagnostics=None, **kwargs) -> None:
76+
super(ApplicationResourceDescription, self).__init__(**kwargs)
77+
self.description = description
78+
self.debug_params = debug_params
79+
self.services = services
80+
self.health_state = None
81+
self.unhealthy_evaluation = None
82+
self.status = None
83+
self.status_details = None
84+
self.service_names = None
85+
self.diagnostics = diagnostics
86+
self.name = name

azure-servicefabric/azure/servicefabric/models/application_upgrade_description.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414

1515
class ApplicationUpgradeDescription(Model):
16-
"""Describes the parameters for an application upgrade. Please note that
17-
upgrade description replaces the existing application description. This
18-
means that if the parameters are not specified, the existing parameters on
19-
the applications will be overwritten with the empty parameters list. This
20-
would results in application using the default value of the parameters from
16+
"""Describes the parameters for an application upgrade. Note that upgrade
17+
description replaces the existing application description. This means that
18+
if the parameters are not specified, the existing parameters on the
19+
applications will be overwritten with the empty parameters list. This would
20+
result in the application using the default value of the parameters from
2121
the application manifest. If you do not want to change any existing
2222
parameter values, please get the application parameters first using the
2323
GetApplicationInfo query and then supply those values as Parameters in this

azure-servicefabric/azure/servicefabric/models/application_upgrade_description_py3.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414

1515
class ApplicationUpgradeDescription(Model):
16-
"""Describes the parameters for an application upgrade. Please note that
17-
upgrade description replaces the existing application description. This
18-
means that if the parameters are not specified, the existing parameters on
19-
the applications will be overwritten with the empty parameters list. This
20-
would results in application using the default value of the parameters from
16+
"""Describes the parameters for an application upgrade. Note that upgrade
17+
description replaces the existing application description. This means that
18+
if the parameters are not specified, the existing parameters on the
19+
applications will be overwritten with the empty parameters list. This would
20+
result in the application using the default value of the parameters from
2121
the application manifest. If you do not want to change any existing
2222
parameter values, please get the application parameters first using the
2323
GetApplicationInfo query and then supply those values as Parameters in this

azure-servicefabric/azure/servicefabric/models/application_upgrade_progress_info.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ class ApplicationUpgradeProgressInfo(Model):
4040
'UnmonitoredManual', 'Monitored'. Default value: "UnmonitoredAuto" .
4141
:type rolling_upgrade_mode: str or ~azure.servicefabric.models.UpgradeMode
4242
:param upgrade_description: Describes the parameters for an application
43-
upgrade. Please note that upgrade description replaces the existing
44-
application description. This means that if the parameters are not
45-
specified, the existing parameters on the applications will be overwritten
46-
with the empty parameters list. This would results in application using
47-
the default value of the parameters from the application manifest. If you
48-
do not want to change any existing parameter values, please get the
49-
application parameters first using the GetApplicationInfo query and then
50-
supply those values as Parameters in this ApplicationUpgradeDescription.
43+
upgrade. Note that upgrade description replaces the existing application
44+
description. This means that if the parameters are not specified, the
45+
existing parameters on the applications will be overwritten with the empty
46+
parameters list. This would result in the application using the default
47+
value of the parameters from the application manifest. If you do not want
48+
to change any existing parameter values, please get the application
49+
parameters first using the GetApplicationInfo query and then supply those
50+
values as Parameters in this ApplicationUpgradeDescription.
5151
:type upgrade_description:
5252
~azure.servicefabric.models.ApplicationUpgradeDescription
5353
:param upgrade_duration_in_milliseconds: The estimated total amount of

0 commit comments

Comments
 (0)