Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR servicefabricmesh/resource-manager] BugFix: defaultSinkRefs is an array of string #2941

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .service_fabric_mesh_management_client import ServiceFabricMeshManagementClient
from .version import VERSION

__all__ = ['ServiceFabricMeshManagementClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# 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.
# --------------------------------------------------------------------------

try:
from .resource_py3 import Resource
from .proxy_resource_py3 import ProxyResource
from .managed_proxy_resource_py3 import ManagedProxyResource
from .tracked_resource_py3 import TrackedResource
from .provisioned_resource_properties_py3 import ProvisionedResourceProperties
from .layer4_ingress_config_py3 import Layer4IngressConfig
from .ingress_config_py3 import IngressConfig
from .network_resource_description_py3 import NetworkResourceDescription
from .network_properties_py3 import NetworkProperties
from .volume_provider_parameters_azure_file_py3 import VolumeProviderParametersAzureFile
from .volume_resource_description_py3 import VolumeResourceDescription
from .volume_properties_py3 import VolumeProperties
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 .application_properties_py3 import ApplicationProperties
from .container_state_py3 import ContainerState
from .container_event_py3 import ContainerEvent
from .container_instance_view_py3 import ContainerInstanceView
from .container_label_py3 import ContainerLabel
from .container_logs_py3 import ContainerLogs
from .image_registry_credential_py3 import ImageRegistryCredential
from .resource_limits_py3 import ResourceLimits
from .resource_requests_py3 import ResourceRequests
from .resource_requirements_py3 import ResourceRequirements
from .available_operation_display_py3 import AvailableOperationDisplay
from .operation_result_py3 import OperationResult
from .error_model_py3 import ErrorModel, ErrorModelException
from .environment_variable_py3 import EnvironmentVariable
from .setting_py3 import Setting
from .endpoint_properties_py3 import EndpointProperties
from .container_volume_py3 import ContainerVolume
from .diagnostics_ref_py3 import DiagnosticsRef
from .container_code_package_properties_py3 import ContainerCodePackageProperties
from .service_replica_description_py3 import ServiceReplicaDescription
from .network_ref_py3 import NetworkRef
from .service_replica_properties_py3 import ServiceReplicaProperties
from .azure_internal_monitoring_pipeline_sink_description_py3 import AzureInternalMonitoringPipelineSinkDescription
except (SyntaxError, ImportError):
from .resource import Resource
from .proxy_resource import ProxyResource
from .managed_proxy_resource import ManagedProxyResource
from .tracked_resource import TrackedResource
from .provisioned_resource_properties import ProvisionedResourceProperties
from .layer4_ingress_config import Layer4IngressConfig
from .ingress_config import IngressConfig
from .network_resource_description import NetworkResourceDescription
from .network_properties import NetworkProperties
from .volume_provider_parameters_azure_file import VolumeProviderParametersAzureFile
from .volume_resource_description import VolumeResourceDescription
from .volume_properties import VolumeProperties
from .service_resource_description import ServiceResourceDescription
from .diagnostics_sink_properties import DiagnosticsSinkProperties
from .diagnostics_description import DiagnosticsDescription
from .application_resource_description import ApplicationResourceDescription
from .application_properties import ApplicationProperties
from .container_state import ContainerState
from .container_event import ContainerEvent
from .container_instance_view import ContainerInstanceView
from .container_label import ContainerLabel
from .container_logs import ContainerLogs
from .image_registry_credential import ImageRegistryCredential
from .resource_limits import ResourceLimits
from .resource_requests import ResourceRequests
from .resource_requirements import ResourceRequirements
from .available_operation_display import AvailableOperationDisplay
from .operation_result import OperationResult
from .error_model import ErrorModel, ErrorModelException
from .environment_variable import EnvironmentVariable
from .setting import Setting
from .endpoint_properties import EndpointProperties
from .container_volume import ContainerVolume
from .diagnostics_ref import DiagnosticsRef
from .container_code_package_properties import ContainerCodePackageProperties
from .service_replica_description import ServiceReplicaDescription
from .network_ref import NetworkRef
from .service_replica_properties import ServiceReplicaProperties
from .azure_internal_monitoring_pipeline_sink_description import AzureInternalMonitoringPipelineSinkDescription
from .application_resource_description_paged import ApplicationResourceDescriptionPaged
from .service_resource_description_paged import ServiceResourceDescriptionPaged
from .service_replica_description_paged import ServiceReplicaDescriptionPaged
from .operation_result_paged import OperationResultPaged
from .network_resource_description_paged import NetworkResourceDescriptionPaged
from .volume_resource_description_paged import VolumeResourceDescriptionPaged
from .service_fabric_mesh_management_client_enums import (
IngressQoSLevel,
HealthState,
ServiceResourceStatus,
ApplicationResourceStatus,
OperatingSystemTypes,
DiagnosticsSinkKind,
)

__all__ = [
'Resource',
'ProxyResource',
'ManagedProxyResource',
'TrackedResource',
'ProvisionedResourceProperties',
'Layer4IngressConfig',
'IngressConfig',
'NetworkResourceDescription',
'NetworkProperties',
'VolumeProviderParametersAzureFile',
'VolumeResourceDescription',
'VolumeProperties',
'ServiceResourceDescription',
'DiagnosticsSinkProperties',
'DiagnosticsDescription',
'ApplicationResourceDescription',
'ApplicationProperties',
'ContainerState',
'ContainerEvent',
'ContainerInstanceView',
'ContainerLabel',
'ContainerLogs',
'ImageRegistryCredential',
'ResourceLimits',
'ResourceRequests',
'ResourceRequirements',
'AvailableOperationDisplay',
'OperationResult',
'ErrorModel', 'ErrorModelException',
'EnvironmentVariable',
'Setting',
'EndpointProperties',
'ContainerVolume',
'DiagnosticsRef',
'ContainerCodePackageProperties',
'ServiceReplicaDescription',
'NetworkRef',
'ServiceReplicaProperties',
'AzureInternalMonitoringPipelineSinkDescription',
'ApplicationResourceDescriptionPaged',
'ServiceResourceDescriptionPaged',
'ServiceReplicaDescriptionPaged',
'OperationResultPaged',
'NetworkResourceDescriptionPaged',
'VolumeResourceDescriptionPaged',
'IngressQoSLevel',
'HealthState',
'ServiceResourceStatus',
'ApplicationResourceStatus',
'OperatingSystemTypes',
'DiagnosticsSinkKind',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# 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 ApplicationProperties(Model):
"""This type describes properties of an application resource.

Variables are only populated by the server, and will be ignored when
sending a request.

: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.mgmt.servicefabricmesh.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.mgmt.servicefabricmesh.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.mgmt.servicefabricmesh.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.mgmt.servicefabricmesh.models.DiagnosticsDescription
"""

_validation = {
'health_state': {'readonly': True},
'unhealthy_evaluation': {'readonly': True},
'status': {'readonly': True},
'status_details': {'readonly': True},
'service_names': {'readonly': True},
}

_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'debug_params': {'key': 'debugParams', 'type': 'str'},
'services': {'key': 'services', 'type': '[ServiceResourceDescription]'},
'health_state': {'key': 'healthState', 'type': 'str'},
'unhealthy_evaluation': {'key': 'unhealthyEvaluation', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
'status_details': {'key': 'statusDetails', 'type': 'str'},
'service_names': {'key': 'serviceNames', 'type': '[str]'},
'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsDescription'},
}

def __init__(self, **kwargs):
super(ApplicationProperties, 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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# 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 ApplicationProperties(Model):
"""This type describes properties of an application resource.

Variables are only populated by the server, and will be ignored when
sending a request.

: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.mgmt.servicefabricmesh.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.mgmt.servicefabricmesh.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.mgmt.servicefabricmesh.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.mgmt.servicefabricmesh.models.DiagnosticsDescription
"""

_validation = {
'health_state': {'readonly': True},
'unhealthy_evaluation': {'readonly': True},
'status': {'readonly': True},
'status_details': {'readonly': True},
'service_names': {'readonly': True},
}

_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'debug_params': {'key': 'debugParams', 'type': 'str'},
'services': {'key': 'services', 'type': '[ServiceResourceDescription]'},
'health_state': {'key': 'healthState', 'type': 'str'},
'unhealthy_evaluation': {'key': 'unhealthyEvaluation', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
'status_details': {'key': 'statusDetails', 'type': 'str'},
'service_names': {'key': 'serviceNames', 'type': '[str]'},
'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsDescription'},
}

def __init__(self, *, description: str=None, debug_params: str=None, services=None, diagnostics=None, **kwargs) -> None:
super(ApplicationProperties, 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
Loading