Skip to content

Commit e6e9dac

Browse files
author
SDK Automation
committed
Generated from b267289aa22920e99a52cf707523902efd9a9f4f
1 parent a219074 commit e6e9dac

File tree

20 files changed

+2513
-0
lines changed

20 files changed

+2513
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 0.1.0 (1970-01-01)
4+
5+
* Initial Release
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include tests *.py *.yaml
2+
include *.md
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure MyService Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6+
7+
8+
# Usage
9+
10+
For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/)
11+
on docs.microsoft.com.
12+
13+
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
18+
section of the project.
19+
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-baremetalinfrastructure%2FREADME.png)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import BareMetalInfrastructureClientConfiguration
13+
from ._bare_metal_infrastructure_client import BareMetalInfrastructureClient
14+
__all__ = ['BareMetalInfrastructureClient', 'BareMetalInfrastructureClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import BareMetalInfrastructureClientConfiguration
16+
from .operations import AzureBareMetalInstancesOperations
17+
from .operations import Operations
18+
from . import models
19+
20+
21+
class BareMetalInfrastructureClient(SDKClient):
22+
"""The BareMetalInfrastructure Management client
23+
24+
:ivar config: Configuration for client.
25+
:vartype config: BareMetalInfrastructureClientConfiguration
26+
27+
:ivar azure_bare_metal_instances: AzureBareMetalInstances operations
28+
:vartype azure_bare_metal_instances: azure.mgmt.baremetalinfrastructure.operations.AzureBareMetalInstancesOperations
29+
:ivar operations: Operations operations
30+
:vartype operations: azure.mgmt.baremetalinfrastructure.operations.Operations
31+
32+
:param credentials: Credentials needed for the client to connect to Azure.
33+
:type credentials: :mod:`A msrestazure Credentials
34+
object<msrestazure.azure_active_directory>`
35+
:param subscription_id: The ID of the target subscription.
36+
:type subscription_id: str
37+
:param str base_url: Service URL
38+
"""
39+
40+
def __init__(
41+
self, credentials, subscription_id, base_url=None):
42+
43+
self.config = BareMetalInfrastructureClientConfiguration(credentials, subscription_id, base_url)
44+
super(BareMetalInfrastructureClient, self).__init__(self.config.credentials, self.config)
45+
46+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
47+
self.api_version = '2020-08-06-preview'
48+
self._serialize = Serializer(client_models)
49+
self._deserialize = Deserializer(client_models)
50+
51+
self.azure_bare_metal_instances = AzureBareMetalInstancesOperations(
52+
self._client, self.config, self._serialize, self._deserialize)
53+
self.operations = Operations(
54+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class BareMetalInfrastructureClientConfiguration(AzureConfiguration):
17+
"""Configuration for BareMetalInfrastructureClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The ID of the target subscription.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(BareMetalInfrastructureClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-baremetalinfrastructure/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from ._models_py3 import AzureBareMetalInstance
14+
from ._models_py3 import AzureEntityResource
15+
from ._models_py3 import Disk
16+
from ._models_py3 import Display
17+
from ._models_py3 import ErrorDefinition
18+
from ._models_py3 import ErrorResponse, ErrorResponseException
19+
from ._models_py3 import HardwareProfile
20+
from ._models_py3 import IpAddress
21+
from ._models_py3 import NetworkProfile
22+
from ._models_py3 import Operation
23+
from ._models_py3 import OSProfile
24+
from ._models_py3 import ProxyResource
25+
from ._models_py3 import Resource
26+
from ._models_py3 import Result
27+
from ._models_py3 import StorageProfile
28+
from ._models_py3 import Tags
29+
from ._models_py3 import TrackedResource
30+
except (SyntaxError, ImportError):
31+
from ._models import AzureBareMetalInstance
32+
from ._models import AzureEntityResource
33+
from ._models import Disk
34+
from ._models import Display
35+
from ._models import ErrorDefinition
36+
from ._models import ErrorResponse, ErrorResponseException
37+
from ._models import HardwareProfile
38+
from ._models import IpAddress
39+
from ._models import NetworkProfile
40+
from ._models import Operation
41+
from ._models import OSProfile
42+
from ._models import ProxyResource
43+
from ._models import Resource
44+
from ._models import Result
45+
from ._models import StorageProfile
46+
from ._models import Tags
47+
from ._models import TrackedResource
48+
from ._paged_models import AzureBareMetalInstancePaged
49+
from ._paged_models import OperationPaged
50+
from ._bare_metal_infrastructure_client_enums import (
51+
AzureBareMetalHardwareTypeNamesEnum,
52+
AzureBareMetalInstanceSizeNamesEnum,
53+
AzureBareMetalInstancePowerStateEnum,
54+
AzureBareMetalProvisioningStatesEnum,
55+
)
56+
57+
__all__ = [
58+
'AzureBareMetalInstance',
59+
'AzureEntityResource',
60+
'Disk',
61+
'Display',
62+
'ErrorDefinition',
63+
'ErrorResponse', 'ErrorResponseException',
64+
'HardwareProfile',
65+
'IpAddress',
66+
'NetworkProfile',
67+
'Operation',
68+
'OSProfile',
69+
'ProxyResource',
70+
'Resource',
71+
'Result',
72+
'StorageProfile',
73+
'Tags',
74+
'TrackedResource',
75+
'AzureBareMetalInstancePaged',
76+
'OperationPaged',
77+
'AzureBareMetalHardwareTypeNamesEnum',
78+
'AzureBareMetalInstanceSizeNamesEnum',
79+
'AzureBareMetalInstancePowerStateEnum',
80+
'AzureBareMetalProvisioningStatesEnum',
81+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from enum import Enum
13+
14+
15+
class AzureBareMetalHardwareTypeNamesEnum(str, Enum):
16+
17+
cisco_ucs = "Cisco_UCS"
18+
hpe = "HPE"
19+
20+
21+
class AzureBareMetalInstanceSizeNamesEnum(str, Enum):
22+
23+
s72m = "S72m"
24+
s144m = "S144m"
25+
s72 = "S72"
26+
s144 = "S144"
27+
s192 = "S192"
28+
s192m = "S192m"
29+
s192xm = "S192xm"
30+
s96 = "S96"
31+
s112 = "S112"
32+
s224 = "S224"
33+
s224m = "S224m"
34+
s224om = "S224om"
35+
s224oo = "S224oo"
36+
s224oom = "S224oom"
37+
s224ooo = "S224ooo"
38+
s384 = "S384"
39+
s384m = "S384m"
40+
s384xm = "S384xm"
41+
s384xxm = "S384xxm"
42+
s448 = "S448"
43+
s448m = "S448m"
44+
s448om = "S448om"
45+
s448oo = "S448oo"
46+
s448oom = "S448oom"
47+
s448ooo = "S448ooo"
48+
s576m = "S576m"
49+
s576xm = "S576xm"
50+
s672 = "S672"
51+
s672m = "S672m"
52+
s672om = "S672om"
53+
s672oo = "S672oo"
54+
s672oom = "S672oom"
55+
s672ooo = "S672ooo"
56+
s768 = "S768"
57+
s768m = "S768m"
58+
s768xm = "S768xm"
59+
s896 = "S896"
60+
s896m = "S896m"
61+
s896om = "S896om"
62+
s896oo = "S896oo"
63+
s896oom = "S896oom"
64+
s896ooo = "S896ooo"
65+
s960m = "S960m"
66+
67+
68+
class AzureBareMetalInstancePowerStateEnum(str, Enum):
69+
70+
starting = "starting"
71+
started = "started"
72+
stopping = "stopping"
73+
stopped = "stopped"
74+
restarting = "restarting"
75+
unknown = "unknown"
76+
77+
78+
class AzureBareMetalProvisioningStatesEnum(str, Enum):
79+
80+
accepted = "Accepted"
81+
creating = "Creating"
82+
updating = "Updating"
83+
failed = "Failed"
84+
succeeded = "Succeeded"
85+
deleting = "Deleting"
86+
migrating = "Migrating"

0 commit comments

Comments
 (0)