-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
0379912
commit e4049b3
Showing
149 changed files
with
4,147 additions
and
1,115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
azure-servicefabric/azure/servicefabric/models/application_resource_description.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
86 changes: 86 additions & 0 deletions
86
azure-servicefabric/azure/servicefabric/models/application_resource_description_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.