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 storage/resource-manager] Rename errorResponse to align with other RPs #7058

Merged
merged 2 commits into from
Sep 11, 2019
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
Expand Up @@ -15,6 +15,7 @@
from ._models_py3 import AzureFilesIdentityBasedAuthentication
from ._models_py3 import BlobContainer
from ._models_py3 import BlobServiceProperties
from ._models_py3 import ChangeFeed
from ._models_py3 import CheckNameAvailabilityResult
from ._models_py3 import CorsRule
from ._models_py3 import CorsRules
Expand Down Expand Up @@ -82,6 +83,7 @@
from ._models import AzureFilesIdentityBasedAuthentication
from ._models import BlobContainer
from ._models import BlobServiceProperties
from ._models import ChangeFeed
from ._models import CheckNameAvailabilityResult
from ._models import CorsRule
from ._models import CorsRules
Expand Down Expand Up @@ -188,6 +190,7 @@
'AzureFilesIdentityBasedAuthentication',
'BlobContainer',
'BlobServiceProperties',
'ChangeFeed',
'CheckNameAvailabilityResult',
'CorsRule',
'CorsRules',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ class BlobServiceProperties(Resource):
:param automatic_snapshot_policy_enabled: Automatic Snapshot is enabled if
set to true.
:type automatic_snapshot_policy_enabled: bool
:param change_feed: The blob service properties for change feed events.
:type change_feed: ~azure.mgmt.storage.v2019_04_01.models.ChangeFeed
"""

_validation = {
Expand All @@ -332,6 +334,7 @@ class BlobServiceProperties(Resource):
'default_service_version': {'key': 'properties.defaultServiceVersion', 'type': 'str'},
'delete_retention_policy': {'key': 'properties.deleteRetentionPolicy', 'type': 'DeleteRetentionPolicy'},
'automatic_snapshot_policy_enabled': {'key': 'properties.automaticSnapshotPolicyEnabled', 'type': 'bool'},
'change_feed': {'key': 'properties.changeFeed', 'type': 'ChangeFeed'},
}

def __init__(self, **kwargs):
Expand All @@ -340,6 +343,24 @@ def __init__(self, **kwargs):
self.default_service_version = kwargs.get('default_service_version', None)
self.delete_retention_policy = kwargs.get('delete_retention_policy', None)
self.automatic_snapshot_policy_enabled = kwargs.get('automatic_snapshot_policy_enabled', None)
self.change_feed = kwargs.get('change_feed', None)


class ChangeFeed(Model):
"""The blob service properties for change feed events.

:param enabled: Indicates whether change feed event logging is enabled for
the Blob service.
:type enabled: bool
"""

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(ChangeFeed, self).__init__(**kwargs)
self.enabled = kwargs.get('enabled', None)


class CheckNameAvailabilityResult(Model):
Expand Down Expand Up @@ -381,12 +402,63 @@ def __init__(self, **kwargs):


class CloudError(Model):
"""CloudError.
"""An error response from the Storage service.

:param error:
:type error: ~azure.mgmt.storage.v2019_04_01.models.CloudErrorBody
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'CloudErrorBody'},
}

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


class CloudErrorException(HttpOperationError):
"""Server responsed with exception of type: 'CloudError'.

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

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

super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args)


class CloudErrorBody(Model):
"""An error response from the Storage service.

:param code: An identifier for the error. Codes are invariant and are
intended to be consumed programmatically.
:type code: str
:param message: A message describing the error, intended to be suitable
for display in a user interface.
:type message: str
:param target: The target of the particular error. For example, the name
of the property in error.
:type target: str
:param details: A list of additional details about the error.
:type details: list[~azure.mgmt.storage.v2019_04_01.models.CloudErrorBody]
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[CloudErrorBody]'},
}

def __init__(self, **kwargs):
super(CloudErrorBody, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.target = kwargs.get('target', None)
self.details = kwargs.get('details', None)


class CorsRule(Model):
"""Specifies a CORS rule for the Blob service.
Expand Down Expand Up @@ -727,66 +799,6 @@ def __init__(self, **kwargs):
self.dfs = None


class ErrorResponse(Model):
"""An error response from the Storage service.

:param error:
:type error: ~azure.mgmt.storage.v2019_04_01.models.ErrorResponseBody
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorResponseBody'},
}

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


class ErrorResponseException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorResponse'.

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

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

super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)


class ErrorResponseBody(Model):
"""An error response from the Storage service.

:param code: An identifier for the error. Codes are invariant and are
intended to be consumed programmatically.
:type code: str
:param message: A message describing the error, intended to be suitable
for display in a user interface.
:type message: str
:param target: The target of the particular error. For example, the name
of the property in error.
:type target: str
:param details: A list of additional details about the error.
:type details:
list[~azure.mgmt.storage.v2019_04_01.models.ErrorResponseBody]
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[ErrorResponseBody]'},
}

def __init__(self, **kwargs):
super(ErrorResponseBody, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.target = kwargs.get('target', None)
self.details = kwargs.get('details', None)


class FileServiceItems(Model):
"""FileServiceItems.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ class BlobServiceProperties(Resource):
:param automatic_snapshot_policy_enabled: Automatic Snapshot is enabled if
set to true.
:type automatic_snapshot_policy_enabled: bool
:param change_feed: The blob service properties for change feed events.
:type change_feed: ~azure.mgmt.storage.v2019_04_01.models.ChangeFeed
"""

_validation = {
Expand All @@ -332,14 +334,33 @@ class BlobServiceProperties(Resource):
'default_service_version': {'key': 'properties.defaultServiceVersion', 'type': 'str'},
'delete_retention_policy': {'key': 'properties.deleteRetentionPolicy', 'type': 'DeleteRetentionPolicy'},
'automatic_snapshot_policy_enabled': {'key': 'properties.automaticSnapshotPolicyEnabled', 'type': 'bool'},
'change_feed': {'key': 'properties.changeFeed', 'type': 'ChangeFeed'},
}

def __init__(self, *, cors=None, default_service_version: str=None, delete_retention_policy=None, automatic_snapshot_policy_enabled: bool=None, **kwargs) -> None:
def __init__(self, *, cors=None, default_service_version: str=None, delete_retention_policy=None, automatic_snapshot_policy_enabled: bool=None, change_feed=None, **kwargs) -> None:
super(BlobServiceProperties, self).__init__(**kwargs)
self.cors = cors
self.default_service_version = default_service_version
self.delete_retention_policy = delete_retention_policy
self.automatic_snapshot_policy_enabled = automatic_snapshot_policy_enabled
self.change_feed = change_feed


class ChangeFeed(Model):
"""The blob service properties for change feed events.

:param enabled: Indicates whether change feed event logging is enabled for
the Blob service.
:type enabled: bool
"""

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
}

def __init__(self, *, enabled: bool=None, **kwargs) -> None:
super(ChangeFeed, self).__init__(**kwargs)
self.enabled = enabled


class CheckNameAvailabilityResult(Model):
Expand Down Expand Up @@ -381,12 +402,63 @@ def __init__(self, **kwargs) -> None:


class CloudError(Model):
"""CloudError.
"""An error response from the Storage service.

:param error:
:type error: ~azure.mgmt.storage.v2019_04_01.models.CloudErrorBody
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'CloudErrorBody'},
}

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


class CloudErrorException(HttpOperationError):
"""Server responsed with exception of type: 'CloudError'.

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

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

super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args)


class CloudErrorBody(Model):
"""An error response from the Storage service.

:param code: An identifier for the error. Codes are invariant and are
intended to be consumed programmatically.
:type code: str
:param message: A message describing the error, intended to be suitable
for display in a user interface.
:type message: str
:param target: The target of the particular error. For example, the name
of the property in error.
:type target: str
:param details: A list of additional details about the error.
:type details: list[~azure.mgmt.storage.v2019_04_01.models.CloudErrorBody]
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[CloudErrorBody]'},
}

def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, **kwargs) -> None:
super(CloudErrorBody, self).__init__(**kwargs)
self.code = code
self.message = message
self.target = target
self.details = details


class CorsRule(Model):
"""Specifies a CORS rule for the Blob service.
Expand Down Expand Up @@ -727,66 +799,6 @@ def __init__(self, **kwargs) -> None:
self.dfs = None


class ErrorResponse(Model):
"""An error response from the Storage service.

:param error:
:type error: ~azure.mgmt.storage.v2019_04_01.models.ErrorResponseBody
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorResponseBody'},
}

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


class ErrorResponseException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorResponse'.

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

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

super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)


class ErrorResponseBody(Model):
"""An error response from the Storage service.

:param code: An identifier for the error. Codes are invariant and are
intended to be consumed programmatically.
:type code: str
:param message: A message describing the error, intended to be suitable
for display in a user interface.
:type message: str
:param target: The target of the particular error. For example, the name
of the property in error.
:type target: str
:param details: A list of additional details about the error.
:type details:
list[~azure.mgmt.storage.v2019_04_01.models.ErrorResponseBody]
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[ErrorResponseBody]'},
}

def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, **kwargs) -> None:
super(ErrorResponseBody, self).__init__(**kwargs)
self.code = code
self.message = message
self.target = target
self.details = details


class FileServiceItems(Model):
"""FileServiceItems.

Expand Down
Loading