Skip to content
Merged
Prev Previous commit
Next Next commit
Generated from c26feda2acff5be97893b6e5db4270e09dbf1c25
Fixed comments according to CR.
  • Loading branch information
AutorestCI committed May 21, 2018
commit cd89ae029683607498cbe9250452e86b201a2c0c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
from .gallery_artifact_source_py3 import GalleryArtifactSource
from .gallery_artifact_publishing_profile_base_py3 import GalleryArtifactPublishingProfileBase
from .gallery_disk_image_py3 import GalleryDiskImage
from .gallery_list_py3 import GalleryList
from .gallery_image_list_py3 import GalleryImageList
from .gallery_image_version_list_py3 import GalleryImageVersionList
from .api_error_base_py3 import ApiErrorBase
from .inner_error_py3 import InnerError
from .api_error_py3 import ApiError
from .operation_status_response_py3 import OperationStatusResponse
from .resource_py3 import Resource
except (SyntaxError, ImportError):
from .gallery_identifier import GalleryIdentifier
Expand All @@ -53,16 +54,21 @@
from .gallery_artifact_source import GalleryArtifactSource
from .gallery_artifact_publishing_profile_base import GalleryArtifactPublishingProfileBase
from .gallery_disk_image import GalleryDiskImage
from .gallery_list import GalleryList
from .gallery_image_list import GalleryImageList
from .gallery_image_version_list import GalleryImageVersionList
from .api_error_base import ApiErrorBase
from .inner_error import InnerError
from .api_error import ApiError
from .operation_status_response import OperationStatusResponse
from .resource import Resource
from .gallery_paged import GalleryPaged
from .gallery_image_paged import GalleryImagePaged
from .gallery_image_version_paged import GalleryImageVersionPaged
from .compute_management_client_enums import (
OperatingSystemTypes,
OperatingSystemStateTypes,
AggregatedReplicationState,
ReplicationState,
HostCaching,
ReplicationStatusTypes,
)

__all__ = [
Expand All @@ -85,13 +91,18 @@
'GalleryArtifactSource',
'GalleryArtifactPublishingProfileBase',
'GalleryDiskImage',
'GalleryList',
'GalleryImageList',
'GalleryImageVersionList',
'ApiErrorBase',
'InnerError',
'ApiError',
'OperationStatusResponse',
'Resource',
'GalleryPaged',
'GalleryImagePaged',
'GalleryImageVersionPaged',
'OperatingSystemTypes',
'OperatingSystemStateTypes',
'AggregatedReplicationState',
'ReplicationState',
'HostCaching',
'ReplicationStatusTypes',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 ApiError(Model):
"""Api error.

:param details: The Api error details
:type details: list[~azure.mgmt.compute.v2018_06_01.models.ApiErrorBase]
:param innererror: The Api inner error
:type innererror: ~azure.mgmt.compute.v2018_06_01.models.InnerError
:param code: The error code.
:type code: str
:param target: The target of the particular error.
:type target: str
:param message: The error message.
:type message: str
"""

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

def __init__(self, **kwargs):
super(ApiError, self).__init__(**kwargs)
self.details = kwargs.get('details', None)
self.innererror = kwargs.get('innererror', None)
self.code = kwargs.get('code', None)
self.target = kwargs.get('target', None)
self.message = kwargs.get('message', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 ApiErrorBase(Model):
"""Api error base.

:param code: The error code.
:type code: str
:param target: The target of the particular error.
:type target: str
:param message: The error message.
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ApiErrorBase, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.target = kwargs.get('target', None)
self.message = kwargs.get('message', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 ApiErrorBase(Model):
"""Api error base.

:param code: The error code.
:type code: str
:param target: The target of the particular error.
:type target: str
:param message: The error message.
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, code: str=None, target: str=None, message: str=None, **kwargs) -> None:
super(ApiErrorBase, self).__init__(**kwargs)
self.code = code
self.target = target
self.message = message
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 ApiError(Model):
"""Api error.

:param details: The Api error details
:type details: list[~azure.mgmt.compute.v2018_06_01.models.ApiErrorBase]
:param innererror: The Api inner error
:type innererror: ~azure.mgmt.compute.v2018_06_01.models.InnerError
:param code: The error code.
:type code: str
:param target: The target of the particular error.
:type target: str
:param message: The error message.
:type message: str
"""

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

def __init__(self, *, details=None, innererror=None, code: str=None, target: str=None, message: str=None, **kwargs) -> None:
super(ApiError, self).__init__(**kwargs)
self.details = details
self.innererror = innererror
self.code = code
self.target = target
self.message = message
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ class HostCaching(str, Enum):
none = "None"
read_only = "ReadOnly"
read_write = "ReadWrite"


class ReplicationStatusTypes(str, Enum):

replication_status = "ReplicationStatus"

This file was deleted.

This file was deleted.

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


class GalleryImagePaged(Paged):
"""
A paging container for iterating over a list of :class:`GalleryImage <azure.mgmt.compute.v2018_06_01.models.GalleryImage>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[GalleryImage]'}
}

def __init__(self, *args, **kwargs):

super(GalleryImagePaged, self).__init__(*args, **kwargs)

This file was deleted.

Loading