-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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] Adding Container Exec Spec (
#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
- Loading branch information
1 parent
afe33d1
commit 10ace4d
Showing
12 changed files
with
327 additions
and
44 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
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 row: The row size of the terminal | ||
:type row: int | ||
:param column: The column size of the terminal | ||
:type column: int | ||
""" | ||
|
||
_attribute_map = { | ||
'row': {'key': 'row', 'type': 'int'}, | ||
'column': {'key': 'column', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, row=None, column=None): | ||
super(ContainerExecRequestTerminalSize, self).__init__() | ||
self.row = row | ||
self.column = column |
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.