forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] containerinstance/resource-manager 0.4.0 (Azure#2155)
* [AutoPR containerinstance/resource-manager] Adding Container Exec Spec (Azure#2114) * Generated from a60b503fd362577f4fab95a5e2518b553ec284e9 fixing small syntax error * Generated from 1ec1e3fd40e63a08d3262affca1203988f7407ef Updating correct examples for async operation * Generated from 24d60116617096cd26598e974ac7e1fa00ec8169 fixing ARM header field * Generated from 9fecbb9feb0b8ea3cbba6a02e84973b2bdf11378 remvoing extra async operations * Generated from 338812373b418f43cc56c9cf152a99475fbe12e1 Update Python version * Update tests and ChangeLog * Generated from 2f0dc17f7d69b23e41058c6aa7eef3946337ffd6 (Azure#2169) Fixing error in naming convention for rows and cols * Adding sanity tests for start container exec * updating the recording file * Final release date
- Loading branch information
1 parent
9a18861
commit 01b6297
Showing
15 changed files
with
456 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_exec_request.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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 ContainerExecRequest(Model): | ||
"""The start container exec request. | ||
:param command: The command to be executed. | ||
:type command: str | ||
:param terminal_size: The size of the terminal. | ||
:type terminal_size: | ||
~azure.mgmt.containerinstance.models.ContainerExecRequestTerminalSize | ||
""" | ||
|
||
_attribute_map = { | ||
'command': {'key': 'command', 'type': 'str'}, | ||
'terminal_size': {'key': 'terminalSize', 'type': 'ContainerExecRequestTerminalSize'}, | ||
} | ||
|
||
def __init__(self, command=None, terminal_size=None): | ||
super(ContainerExecRequest, self).__init__() | ||
self.command = command | ||
self.terminal_size = terminal_size |
32 changes: 32 additions & 0 deletions
32
...ainerinstance/azure/mgmt/containerinstance/models/container_exec_request_terminal_size.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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 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 | ||
""" | ||
|
||
_attribute_map = { | ||
'rows': {'key': 'rows', 'type': 'int'}, | ||
'cols': {'key': 'cols', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, rows=None, cols=None): | ||
super(ContainerExecRequestTerminalSize, self).__init__() | ||
self.rows = rows | ||
self.cols = cols |
32 changes: 32 additions & 0 deletions
32
azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_exec_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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 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 | ||
""" | ||
|
||
_attribute_map = { | ||
'web_socket_uri': {'key': 'webSocketUri', 'type': 'str'}, | ||
'password': {'key': 'password', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, web_socket_uri=None, password=None): | ||
super(ContainerExecResponse, self).__init__() | ||
self.web_socket_uri = web_socket_uri | ||
self.password = password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.