Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Generated from 9462becb5c9421c2eb5f52eaa7aead8a5487d059
Address more comments
  • Loading branch information
AutorestCI committed May 29, 2018
commit 57ebbd9174ccf83c6c9c17860b6bf4f0e2597444
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from .list_workspace_keys_result_py3 import ListWorkspaceKeysResult
from .error_detail_py3 import ErrorDetail
from .error_response_py3 import ErrorResponse
from .error_response_wrapper_py3 import ErrorResponseWrapper, ErrorResponseWrapperException
from .machine_learning_service_error_py3 import MachineLearningServiceError, MachineLearningServiceErrorException
from .compute_py3 import Compute
from .compute_resource_py3 import ComputeResource
from .system_service_py3 import SystemService
Expand Down Expand Up @@ -51,7 +51,7 @@
from .list_workspace_keys_result import ListWorkspaceKeysResult
from .error_detail import ErrorDetail
from .error_response import ErrorResponse
from .error_response_wrapper import ErrorResponseWrapper, ErrorResponseWrapperException
from .machine_learning_service_error import MachineLearningServiceError, MachineLearningServiceErrorException
from .compute import Compute
from .compute_resource import ComputeResource
from .system_service import SystemService
Expand Down Expand Up @@ -90,7 +90,7 @@
'ListWorkspaceKeysResult',
'ErrorDetail',
'ErrorResponse',
'ErrorResponseWrapper', 'ErrorResponseWrapperException',
'MachineLearningServiceError', 'MachineLearningServiceErrorException',
'Compute',
'ComputeResource',
'SystemService',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AKS(Compute):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
:param properties: AKS properties
Expand All @@ -57,7 +57,7 @@ class AKS(Compute):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'AKSProperties'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AKS(Compute):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
:param properties: AKS properties
Expand All @@ -57,7 +57,7 @@ class AKS(Compute):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'AKSProperties'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BatchAI(Compute):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
:param properties: BatchAI properties
Expand All @@ -58,7 +58,7 @@ class BatchAI(Compute):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'BatchAIProperties'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BatchAI(Compute):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
:param properties: BatchAI properties
Expand All @@ -58,7 +58,7 @@ class BatchAI(Compute):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'BatchAIProperties'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Compute(Model):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
"""
Expand All @@ -58,7 +58,7 @@ class Compute(Model):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Compute(Model):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
"""
Expand All @@ -58,7 +58,7 @@ class Compute(Model):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DataFactory(Compute):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
"""
Expand All @@ -55,7 +55,7 @@ class DataFactory(Compute):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DataFactory(Compute):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
"""
Expand All @@ -55,7 +55,7 @@ class DataFactory(Compute):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from msrest.exceptions import HttpOperationError


class ErrorResponseWrapper(Model):
class MachineLearningServiceError(Model):
"""Wrapper for error response to follow ARM guidelines.

:param error: The error response.
Expand All @@ -25,17 +25,17 @@ class ErrorResponseWrapper(Model):
}

def __init__(self, **kwargs):
super(ErrorResponseWrapper, self).__init__(**kwargs)
super(MachineLearningServiceError, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ErrorResponseWrapperException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorResponseWrapper'.
class MachineLearningServiceErrorException(HttpOperationError):
"""Server responsed with exception of type: 'MachineLearningServiceError'.

:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ErrorResponseWrapperException, self).__init__(deserialize, response, 'ErrorResponseWrapper', *args)
super(MachineLearningServiceErrorException, self).__init__(deserialize, response, 'MachineLearningServiceError', *args)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from msrest.exceptions import HttpOperationError


class ErrorResponseWrapper(Model):
class MachineLearningServiceError(Model):
"""Wrapper for error response to follow ARM guidelines.

:param error: The error response.
Expand All @@ -25,17 +25,17 @@ class ErrorResponseWrapper(Model):
}

def __init__(self, *, error=None, **kwargs) -> None:
super(ErrorResponseWrapper, self).__init__(**kwargs)
super(MachineLearningServiceError, self).__init__(**kwargs)
self.error = error


class ErrorResponseWrapperException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorResponseWrapper'.
class MachineLearningServiceErrorException(HttpOperationError):
"""Server responsed with exception of type: 'MachineLearningServiceError'.

:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ErrorResponseWrapperException, self).__init__(deserialize, response, 'ErrorResponseWrapper', *args)
super(MachineLearningServiceErrorException, self).__init__(deserialize, response, 'MachineLearningServiceError', *args)
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VirtualMachine(Compute):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
:param properties:
Expand All @@ -58,7 +58,7 @@ class VirtualMachine(Compute):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'VirtualMachineProperties'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VirtualMachine(Compute):
:type resource_id: str
:ivar provisioning_errors: Errors during provisioning
:vartype provisioning_errors:
list[~azure.mgmt.machinelearningservices.models.ErrorResponseWrapper]
list[~azure.mgmt.machinelearningservices.models.MachineLearningServiceError]
:param compute_type: Required. Constant filled by server.
:type compute_type: str
:param properties:
Expand All @@ -58,7 +58,7 @@ class VirtualMachine(Compute):
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[ErrorResponseWrapper]'},
'provisioning_errors': {'key': 'provisioningErrors', 'type': '[MachineLearningServiceError]'},
'compute_type': {'key': 'computeType', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'VirtualMachineProperties'},
}
Expand Down
Loading