-
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 April Swagger For …
…GA (#2309) * Generated from 3f1cb3ecea72fb963c8c89dcce5a4a3fe378e878 Adding GA Swagger * Generated from ab364c6f9db63bf093fc85506577245a35f1fbb4 Moving read only to property level
- Loading branch information
1 parent
8fc953a
commit d8610be
Showing
66 changed files
with
1,743 additions
and
289 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
52 changes: 52 additions & 0 deletions
52
azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/azure_file_volume_py3.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,52 @@ | ||
# 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 AzureFileVolume(Model): | ||
"""The properties of the Azure File volume. Azure File shares are mounted as | ||
volumes. | ||
All required parameters must be populated in order to send to Azure. | ||
:param share_name: Required. The name of the Azure File share to be | ||
mounted as a volume. | ||
:type share_name: str | ||
:param read_only: The flag indicating whether the Azure File shared | ||
mounted as a volume is read-only. | ||
:type read_only: bool | ||
:param storage_account_name: Required. The name of the storage account | ||
that contains the Azure File share. | ||
:type storage_account_name: str | ||
:param storage_account_key: The storage account access key used to access | ||
the Azure File share. | ||
:type storage_account_key: str | ||
""" | ||
|
||
_validation = { | ||
'share_name': {'required': True}, | ||
'storage_account_name': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'share_name': {'key': 'shareName', 'type': 'str'}, | ||
'read_only': {'key': 'readOnly', 'type': 'bool'}, | ||
'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, | ||
'storage_account_key': {'key': 'storageAccountKey', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, share_name: str, storage_account_name: str, read_only: bool=None, storage_account_key: str=None, **kwargs) -> None: | ||
super(AzureFileVolume, self).__init__(**kwargs) | ||
self.share_name = share_name | ||
self.read_only = read_only | ||
self.storage_account_name = storage_account_name | ||
self.storage_account_key = storage_account_key |
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
...-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_exec_request_py3.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: str=None, terminal_size=None, **kwargs) -> None: | ||
super(ContainerExecRequest, self).__init__(**kwargs) | ||
self.command = command | ||
self.terminal_size = terminal_size |
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
32 changes: 32 additions & 0 deletions
32
...rinstance/azure/mgmt/containerinstance/models/container_exec_request_terminal_size_py3.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: int=None, column: int=None, **kwargs) -> None: | ||
super(ContainerExecRequestTerminalSize, self).__init__(**kwargs) | ||
self.row = row | ||
self.column = column |
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.