-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR compute/resource-manager] RunCommands 2018-06-01 (#2935)
* Generated from 8d08b9c279f07fa5a919205934fd785e329dad64 RunCommands 2018-06-01 * Generated from 9c64257f21823a1d72ec25cd640375f0100638e2 Take examples from 2018-04-01
- Loading branch information
1 parent
8175b81
commit 2a6625e
Showing
20 changed files
with
985 additions
and
0 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
61 changes: 61 additions & 0 deletions
61
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/run_command_document.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,61 @@ | ||
# 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 .run_command_document_base import RunCommandDocumentBase | ||
|
||
|
||
class RunCommandDocument(RunCommandDocumentBase): | ||
"""Describes the properties of a Run Command. | ||
All required parameters must be populated in order to send to Azure. | ||
:param schema: Required. The VM run command schema. | ||
:type schema: str | ||
:param id: Required. The VM run command id. | ||
:type id: str | ||
:param os_type: Required. The Operating System type. Possible values | ||
include: 'Windows', 'Linux' | ||
:type os_type: str or | ||
~azure.mgmt.compute.v2018_06_01.models.OperatingSystemTypes | ||
:param label: Required. The VM run command label. | ||
:type label: str | ||
:param description: Required. The VM run command description. | ||
:type description: str | ||
:param script: Required. The script to be executed. | ||
:type script: list[str] | ||
:param parameters: The parameters used by the script. | ||
:type parameters: | ||
list[~azure.mgmt.compute.v2018_06_01.models.RunCommandParameterDefinition] | ||
""" | ||
|
||
_validation = { | ||
'schema': {'required': True}, | ||
'id': {'required': True}, | ||
'os_type': {'required': True}, | ||
'label': {'required': True}, | ||
'description': {'required': True}, | ||
'script': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'schema': {'key': '$schema', 'type': 'str'}, | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'}, | ||
'label': {'key': 'label', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'script': {'key': 'script', 'type': '[str]'}, | ||
'parameters': {'key': 'parameters', 'type': '[RunCommandParameterDefinition]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(RunCommandDocument, self).__init__(**kwargs) | ||
self.script = kwargs.get('script', None) | ||
self.parameters = kwargs.get('parameters', None) |
56 changes: 56 additions & 0 deletions
56
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/run_command_document_base.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,56 @@ | ||
# 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 RunCommandDocumentBase(Model): | ||
"""Describes the properties of a Run Command metadata. | ||
All required parameters must be populated in order to send to Azure. | ||
:param schema: Required. The VM run command schema. | ||
:type schema: str | ||
:param id: Required. The VM run command id. | ||
:type id: str | ||
:param os_type: Required. The Operating System type. Possible values | ||
include: 'Windows', 'Linux' | ||
:type os_type: str or | ||
~azure.mgmt.compute.v2018_06_01.models.OperatingSystemTypes | ||
:param label: Required. The VM run command label. | ||
:type label: str | ||
:param description: Required. The VM run command description. | ||
:type description: str | ||
""" | ||
|
||
_validation = { | ||
'schema': {'required': True}, | ||
'id': {'required': True}, | ||
'os_type': {'required': True}, | ||
'label': {'required': True}, | ||
'description': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'schema': {'key': '$schema', 'type': 'str'}, | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'}, | ||
'label': {'key': 'label', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(RunCommandDocumentBase, self).__init__(**kwargs) | ||
self.schema = kwargs.get('schema', None) | ||
self.id = kwargs.get('id', None) | ||
self.os_type = kwargs.get('os_type', None) | ||
self.label = kwargs.get('label', None) | ||
self.description = kwargs.get('description', None) |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/run_command_document_base_paged.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,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 RunCommandDocumentBasePaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`RunCommandDocumentBase <azure.mgmt.compute.v2018_06_01.models.RunCommandDocumentBase>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[RunCommandDocumentBase]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(RunCommandDocumentBasePaged, self).__init__(*args, **kwargs) |
56 changes: 56 additions & 0 deletions
56
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/run_command_document_base_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,56 @@ | ||
# 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 RunCommandDocumentBase(Model): | ||
"""Describes the properties of a Run Command metadata. | ||
All required parameters must be populated in order to send to Azure. | ||
:param schema: Required. The VM run command schema. | ||
:type schema: str | ||
:param id: Required. The VM run command id. | ||
:type id: str | ||
:param os_type: Required. The Operating System type. Possible values | ||
include: 'Windows', 'Linux' | ||
:type os_type: str or | ||
~azure.mgmt.compute.v2018_06_01.models.OperatingSystemTypes | ||
:param label: Required. The VM run command label. | ||
:type label: str | ||
:param description: Required. The VM run command description. | ||
:type description: str | ||
""" | ||
|
||
_validation = { | ||
'schema': {'required': True}, | ||
'id': {'required': True}, | ||
'os_type': {'required': True}, | ||
'label': {'required': True}, | ||
'description': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'schema': {'key': '$schema', 'type': 'str'}, | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'}, | ||
'label': {'key': 'label', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, schema: str, id: str, os_type, label: str, description: str, **kwargs) -> None: | ||
super(RunCommandDocumentBase, self).__init__(**kwargs) | ||
self.schema = schema | ||
self.id = id | ||
self.os_type = os_type | ||
self.label = label | ||
self.description = description |
61 changes: 61 additions & 0 deletions
61
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/run_command_document_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,61 @@ | ||
# 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 .run_command_document_base_py3 import RunCommandDocumentBase | ||
|
||
|
||
class RunCommandDocument(RunCommandDocumentBase): | ||
"""Describes the properties of a Run Command. | ||
All required parameters must be populated in order to send to Azure. | ||
:param schema: Required. The VM run command schema. | ||
:type schema: str | ||
:param id: Required. The VM run command id. | ||
:type id: str | ||
:param os_type: Required. The Operating System type. Possible values | ||
include: 'Windows', 'Linux' | ||
:type os_type: str or | ||
~azure.mgmt.compute.v2018_06_01.models.OperatingSystemTypes | ||
:param label: Required. The VM run command label. | ||
:type label: str | ||
:param description: Required. The VM run command description. | ||
:type description: str | ||
:param script: Required. The script to be executed. | ||
:type script: list[str] | ||
:param parameters: The parameters used by the script. | ||
:type parameters: | ||
list[~azure.mgmt.compute.v2018_06_01.models.RunCommandParameterDefinition] | ||
""" | ||
|
||
_validation = { | ||
'schema': {'required': True}, | ||
'id': {'required': True}, | ||
'os_type': {'required': True}, | ||
'label': {'required': True}, | ||
'description': {'required': True}, | ||
'script': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'schema': {'key': '$schema', 'type': 'str'}, | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'}, | ||
'label': {'key': 'label', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'script': {'key': 'script', 'type': '[str]'}, | ||
'parameters': {'key': 'parameters', 'type': '[RunCommandParameterDefinition]'}, | ||
} | ||
|
||
def __init__(self, *, schema: str, id: str, os_type, label: str, description: str, script, parameters=None, **kwargs) -> None: | ||
super(RunCommandDocument, self).__init__(schema=schema, id=id, os_type=os_type, label=label, description=description, **kwargs) | ||
self.script = script | ||
self.parameters = parameters |
Oops, something went wrong.