-
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 (#3736)
* Generated from b28170d473471c298dc43f09299dd655d8e03982 (#3729) Update swagger with DNSConfig and GPU * ACI 1.3.0
- Loading branch information
1 parent
23f8e27
commit 9efcde4
Showing
14 changed files
with
218 additions
and
4 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
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
43 changes: 43 additions & 0 deletions
43
azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/dns_configuration.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,43 @@ | ||
# 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 DnsConfiguration(Model): | ||
"""DNS configuration for the container group. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name_servers: Required. The DNS servers for the container group. | ||
:type name_servers: list[str] | ||
:param search_domains: The DNS search domains for hostname lookup in the | ||
container group. | ||
:type search_domains: str | ||
:param options: The DNS options for the container group. | ||
:type options: str | ||
""" | ||
|
||
_validation = { | ||
'name_servers': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name_servers': {'key': 'nameServers', 'type': '[str]'}, | ||
'search_domains': {'key': 'searchDomains', 'type': 'str'}, | ||
'options': {'key': 'options', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(DnsConfiguration, self).__init__(**kwargs) | ||
self.name_servers = kwargs.get('name_servers', None) | ||
self.search_domains = kwargs.get('search_domains', None) | ||
self.options = kwargs.get('options', None) |
43 changes: 43 additions & 0 deletions
43
azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/dns_configuration_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,43 @@ | ||
# 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 DnsConfiguration(Model): | ||
"""DNS configuration for the container group. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name_servers: Required. The DNS servers for the container group. | ||
:type name_servers: list[str] | ||
:param search_domains: The DNS search domains for hostname lookup in the | ||
container group. | ||
:type search_domains: str | ||
:param options: The DNS options for the container group. | ||
:type options: str | ||
""" | ||
|
||
_validation = { | ||
'name_servers': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name_servers': {'key': 'nameServers', 'type': '[str]'}, | ||
'search_domains': {'key': 'searchDomains', 'type': 'str'}, | ||
'options': {'key': 'options', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, name_servers, search_domains: str=None, options: str=None, **kwargs) -> None: | ||
super(DnsConfiguration, self).__init__(**kwargs) | ||
self.name_servers = name_servers | ||
self.search_domains = search_domains | ||
self.options = options |
40 changes: 40 additions & 0 deletions
40
azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/gpu_resource.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,40 @@ | ||
# 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 GpuResource(Model): | ||
"""The GPU resource. | ||
All required parameters must be populated in order to send to Azure. | ||
:param count: Required. The count of the GPU resource. | ||
:type count: int | ||
:param sku: Required. The SKU of the GPU resource. Possible values | ||
include: 'K80', 'P100', 'V100' | ||
:type sku: str or ~azure.mgmt.containerinstance.models.GpuSku | ||
""" | ||
|
||
_validation = { | ||
'count': {'required': True}, | ||
'sku': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'count': {'key': 'count', 'type': 'int'}, | ||
'sku': {'key': 'sku', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(GpuResource, self).__init__(**kwargs) | ||
self.count = kwargs.get('count', None) | ||
self.sku = kwargs.get('sku', None) |
40 changes: 40 additions & 0 deletions
40
azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/gpu_resource_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,40 @@ | ||
# 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 GpuResource(Model): | ||
"""The GPU resource. | ||
All required parameters must be populated in order to send to Azure. | ||
:param count: Required. The count of the GPU resource. | ||
:type count: int | ||
:param sku: Required. The SKU of the GPU resource. Possible values | ||
include: 'K80', 'P100', 'V100' | ||
:type sku: str or ~azure.mgmt.containerinstance.models.GpuSku | ||
""" | ||
|
||
_validation = { | ||
'count': {'required': True}, | ||
'sku': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'count': {'key': 'count', 'type': 'int'}, | ||
'sku': {'key': 'sku', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, count: int, sku, **kwargs) -> None: | ||
super(GpuResource, self).__init__(**kwargs) | ||
self.count = count | ||
self.sku = sku |
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
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.