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 ab364c6f9db63bf093fc85506577245a35f1fbb4
Moving read only to property level
  • Loading branch information
AutorestCI committed Mar 30, 2018
commit adb8e70070e7163a39c719648bfdeadd5bd0e48d
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-02-01-preview'
self.api_version = '2018-04-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
class ContainerExecRequestTerminalSize(Model):
"""The size of the terminal.

:param rows: The row size of the terminal
:type rows: int
:param cols: The column size of the terminal
:type cols: int
:param row: The row size of the terminal
:type row: int
:param column: The column size of the terminal
:type column: int
"""

_attribute_map = {
'rows': {'key': 'rows', 'type': 'int'},
'cols': {'key': 'cols', 'type': 'int'},
'row': {'key': 'row', 'type': 'int'},
'column': {'key': 'column', 'type': 'int'},
}

def __init__(self, **kwargs):
super(ContainerExecRequestTerminalSize, self).__init__(**kwargs)
self.rows = kwargs.get('rows', None)
self.cols = kwargs.get('cols', None)
self.row = kwargs.get('row', None)
self.column = kwargs.get('column', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
class ContainerExecRequestTerminalSize(Model):
"""The size of the terminal.

:param rows: The row size of the terminal
:type rows: int
:param cols: The column size of the terminal
:type cols: int
:param row: The row size of the terminal
:type row: int
:param column: The column size of the terminal
:type column: int
"""

_attribute_map = {
'rows': {'key': 'rows', 'type': 'int'},
'cols': {'key': 'cols', 'type': 'int'},
'row': {'key': 'row', 'type': 'int'},
'column': {'key': 'column', 'type': 'int'},
}

def __init__(self, *, rows: int=None, cols: int=None, **kwargs) -> None:
def __init__(self, *, row: int=None, column: int=None, **kwargs) -> None:
super(ContainerExecRequestTerminalSize, self).__init__(**kwargs)
self.rows = rows
self.cols = cols
self.row = row
self.column = column
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,26 @@
class ContainerExecResponse(Model):
"""The information for the container exec command.

:param web_socket_uri: The uri for the exec websocket.
:type web_socket_uri: str
:param password: The password to start the exec command.
:type password: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar web_socket_uri: The uri for the exec websocket.
:vartype web_socket_uri: str
:ivar password: The password to start the exec command.
:vartype password: str
"""

_validation = {
'web_socket_uri': {'readonly': True},
'password': {'readonly': True},
}

_attribute_map = {
'web_socket_uri': {'key': 'webSocketUri', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ContainerExecResponse, self).__init__(**kwargs)
self.web_socket_uri = kwargs.get('web_socket_uri', None)
self.password = kwargs.get('password', None)
self.web_socket_uri = None
self.password = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,26 @@
class ContainerExecResponse(Model):
"""The information for the container exec command.

:param web_socket_uri: The uri for the exec websocket.
:type web_socket_uri: str
:param password: The password to start the exec command.
:type password: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar web_socket_uri: The uri for the exec websocket.
:vartype web_socket_uri: str
:ivar password: The password to start the exec command.
:vartype password: str
"""

_validation = {
'web_socket_uri': {'readonly': True},
'password': {'readonly': True},
}

_attribute_map = {
'web_socket_uri': {'key': 'webSocketUri', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
}

def __init__(self, *, web_socket_uri: str=None, password: str=None, **kwargs) -> None:
def __init__(self, **kwargs) -> None:
super(ContainerExecResponse, self).__init__(**kwargs)
self.web_socket_uri = web_socket_uri
self.password = password
self.web_socket_uri = None
self.password = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,32 @@
class ContainerState(Model):
"""The container instance state.

:param state: The state of the container instance.
:type state: str
:param start_time: The date-time when the container instance state
started.
:type start_time: datetime
:param exit_code: The container instance exit codes correspond to those
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar state: The state of the container instance.
:vartype state: str
:ivar start_time: The date-time when the container instance state started.
:vartype start_time: datetime
:ivar exit_code: The container instance exit codes correspond to those
from the `docker run` command.
:type exit_code: int
:param finish_time: The date-time when the container instance state
:vartype exit_code: int
:ivar finish_time: The date-time when the container instance state
finished.
:type finish_time: datetime
:param detail_status: The human-readable status of the container instance
:vartype finish_time: datetime
:ivar detail_status: The human-readable status of the container instance
state.
:type detail_status: str
:vartype detail_status: str
"""

_validation = {
'state': {'readonly': True},
'start_time': {'readonly': True},
'exit_code': {'readonly': True},
'finish_time': {'readonly': True},
'detail_status': {'readonly': True},
}

_attribute_map = {
'state': {'key': 'state', 'type': 'str'},
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
Expand All @@ -41,8 +51,8 @@ class ContainerState(Model):

def __init__(self, **kwargs):
super(ContainerState, self).__init__(**kwargs)
self.state = kwargs.get('state', None)
self.start_time = kwargs.get('start_time', None)
self.exit_code = kwargs.get('exit_code', None)
self.finish_time = kwargs.get('finish_time', None)
self.detail_status = kwargs.get('detail_status', None)
self.state = None
self.start_time = None
self.exit_code = None
self.finish_time = None
self.detail_status = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,32 @@
class ContainerState(Model):
"""The container instance state.

:param state: The state of the container instance.
:type state: str
:param start_time: The date-time when the container instance state
started.
:type start_time: datetime
:param exit_code: The container instance exit codes correspond to those
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar state: The state of the container instance.
:vartype state: str
:ivar start_time: The date-time when the container instance state started.
:vartype start_time: datetime
:ivar exit_code: The container instance exit codes correspond to those
from the `docker run` command.
:type exit_code: int
:param finish_time: The date-time when the container instance state
:vartype exit_code: int
:ivar finish_time: The date-time when the container instance state
finished.
:type finish_time: datetime
:param detail_status: The human-readable status of the container instance
:vartype finish_time: datetime
:ivar detail_status: The human-readable status of the container instance
state.
:type detail_status: str
:vartype detail_status: str
"""

_validation = {
'state': {'readonly': True},
'start_time': {'readonly': True},
'exit_code': {'readonly': True},
'finish_time': {'readonly': True},
'detail_status': {'readonly': True},
}

_attribute_map = {
'state': {'key': 'state', 'type': 'str'},
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
Expand All @@ -39,10 +49,10 @@ class ContainerState(Model):
'detail_status': {'key': 'detailStatus', 'type': 'str'},
}

def __init__(self, *, state: str=None, start_time=None, exit_code: int=None, finish_time=None, detail_status: str=None, **kwargs) -> None:
def __init__(self, **kwargs) -> None:
super(ContainerState, self).__init__(**kwargs)
self.state = state
self.start_time = start_time
self.exit_code = exit_code
self.finish_time = finish_time
self.detail_status = detail_status
self.state = None
self.start_time = None
self.exit_code = None
self.finish_time = None
self.detail_status = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,32 @@
class Event(Model):
"""A container group or container instance event.

:param count: The count of the event.
:type count: int
:param first_timestamp: The date-time of the earliest logged event.
:type first_timestamp: datetime
:param last_timestamp: The date-time of the latest logged event.
:type last_timestamp: datetime
:param name: The event name.
:type name: str
:param message: The event message.
:type message: str
:param type: The event type.
:type type: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar count: The count of the event.
:vartype count: int
:ivar first_timestamp: The date-time of the earliest logged event.
:vartype first_timestamp: datetime
:ivar last_timestamp: The date-time of the latest logged event.
:vartype last_timestamp: datetime
:ivar name: The event name.
:vartype name: str
:ivar message: The event message.
:vartype message: str
:ivar type: The event type.
:vartype type: str
"""

_validation = {
'count': {'readonly': True},
'first_timestamp': {'readonly': True},
'last_timestamp': {'readonly': True},
'name': {'readonly': True},
'message': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'count': {'key': 'count', 'type': 'int'},
'first_timestamp': {'key': 'firstTimestamp', 'type': 'iso-8601'},
Expand All @@ -40,9 +52,9 @@ class Event(Model):

def __init__(self, **kwargs):
super(Event, self).__init__(**kwargs)
self.count = kwargs.get('count', None)
self.first_timestamp = kwargs.get('first_timestamp', None)
self.last_timestamp = kwargs.get('last_timestamp', None)
self.name = kwargs.get('name', None)
self.message = kwargs.get('message', None)
self.type = kwargs.get('type', None)
self.count = None
self.first_timestamp = None
self.last_timestamp = None
self.name = None
self.message = None
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,32 @@
class Event(Model):
"""A container group or container instance event.

:param count: The count of the event.
:type count: int
:param first_timestamp: The date-time of the earliest logged event.
:type first_timestamp: datetime
:param last_timestamp: The date-time of the latest logged event.
:type last_timestamp: datetime
:param name: The event name.
:type name: str
:param message: The event message.
:type message: str
:param type: The event type.
:type type: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar count: The count of the event.
:vartype count: int
:ivar first_timestamp: The date-time of the earliest logged event.
:vartype first_timestamp: datetime
:ivar last_timestamp: The date-time of the latest logged event.
:vartype last_timestamp: datetime
:ivar name: The event name.
:vartype name: str
:ivar message: The event message.
:vartype message: str
:ivar type: The event type.
:vartype type: str
"""

_validation = {
'count': {'readonly': True},
'first_timestamp': {'readonly': True},
'last_timestamp': {'readonly': True},
'name': {'readonly': True},
'message': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'count': {'key': 'count', 'type': 'int'},
'first_timestamp': {'key': 'firstTimestamp', 'type': 'iso-8601'},
Expand All @@ -38,11 +50,11 @@ class Event(Model):
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, count: int=None, first_timestamp=None, last_timestamp=None, name: str=None, message: str=None, type: str=None, **kwargs) -> None:
def __init__(self, **kwargs) -> None:
super(Event, self).__init__(**kwargs)
self.count = count
self.first_timestamp = first_timestamp
self.last_timestamp = last_timestamp
self.name = name
self.message = message
self.type = type
self.count = None
self.first_timestamp = None
self.last_timestamp = None
self.name = None
self.message = None
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,21 @@
class Logs(Model):
"""The logs.

:param content: The content of the log.
:type content: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar content: The content of the log.
:vartype content: str
"""

_validation = {
'content': {'readonly': True},
}

_attribute_map = {
'content': {'key': 'content', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Logs, self).__init__(**kwargs)
self.content = kwargs.get('content', None)
self.content = None
Loading