Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Release History

## 0.1.0 (1970-01-01)

* Initial Release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure MyService Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


# Usage

For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/)
on docs.microsoft.com.


# Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-baremetalinfrastructure%2FREADME.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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 ._configuration import BareMetalInfrastructureClientConfiguration
from ._bare_metal_infrastructure_client import BareMetalInfrastructureClient
__all__ = ['BareMetalInfrastructureClient', 'BareMetalInfrastructureClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import BareMetalInfrastructureClientConfiguration
from .operations import AzureBareMetalInstancesOperations
from .operations import Operations
from . import models


class BareMetalInfrastructureClient(SDKClient):
"""The BareMetalInfrastructure Management client

:ivar config: Configuration for client.
:vartype config: BareMetalInfrastructureClientConfiguration

:ivar azure_bare_metal_instances: AzureBareMetalInstances operations
:vartype azure_bare_metal_instances: azure.mgmt.baremetalinfrastructure.operations.AzureBareMetalInstancesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.baremetalinfrastructure.operations.Operations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = BareMetalInfrastructureClientConfiguration(credentials, subscription_id, base_url)
super(BareMetalInfrastructureClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-08-06-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.azure_bare_metal_instances = AzureBareMetalInstancesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 msrestazure import AzureConfiguration

from .version import VERSION


class BareMetalInfrastructureClientConfiguration(AzureConfiguration):
"""Configuration for BareMetalInfrastructureClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(BareMetalInfrastructureClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-baremetalinfrastructure/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# 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.
# --------------------------------------------------------------------------

try:
from ._models_py3 import AzureBareMetalInstance
from ._models_py3 import AzureEntityResource
from ._models_py3 import Disk
from ._models_py3 import Display
from ._models_py3 import ErrorDefinition
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import HardwareProfile
from ._models_py3 import IpAddress
from ._models_py3 import NetworkProfile
from ._models_py3 import Operation
from ._models_py3 import OSProfile
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import Result
from ._models_py3 import StorageProfile
from ._models_py3 import Tags
from ._models_py3 import TrackedResource
except (SyntaxError, ImportError):
from ._models import AzureBareMetalInstance
from ._models import AzureEntityResource
from ._models import Disk
from ._models import Display
from ._models import ErrorDefinition
from ._models import ErrorResponse, ErrorResponseException
from ._models import HardwareProfile
from ._models import IpAddress
from ._models import NetworkProfile
from ._models import Operation
from ._models import OSProfile
from ._models import ProxyResource
from ._models import Resource
from ._models import Result
from ._models import StorageProfile
from ._models import Tags
from ._models import TrackedResource
from ._paged_models import AzureBareMetalInstancePaged
from ._paged_models import OperationPaged
from ._bare_metal_infrastructure_client_enums import (
AzureBareMetalHardwareTypeNamesEnum,
AzureBareMetalInstanceSizeNamesEnum,
AzureBareMetalInstancePowerStateEnum,
AzureBareMetalProvisioningStatesEnum,
)

__all__ = [
'AzureBareMetalInstance',
'AzureEntityResource',
'Disk',
'Display',
'ErrorDefinition',
'ErrorResponse', 'ErrorResponseException',
'HardwareProfile',
'IpAddress',
'NetworkProfile',
'Operation',
'OSProfile',
'ProxyResource',
'Resource',
'Result',
'StorageProfile',
'Tags',
'TrackedResource',
'AzureBareMetalInstancePaged',
'OperationPaged',
'AzureBareMetalHardwareTypeNamesEnum',
'AzureBareMetalInstanceSizeNamesEnum',
'AzureBareMetalInstancePowerStateEnum',
'AzureBareMetalProvisioningStatesEnum',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# 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 enum import Enum


class AzureBareMetalHardwareTypeNamesEnum(str, Enum):

cisco_ucs = "Cisco_UCS"
hpe = "HPE"


class AzureBareMetalInstanceSizeNamesEnum(str, Enum):

s72m = "S72m"
s144m = "S144m"
s72 = "S72"
s144 = "S144"
s192 = "S192"
s192m = "S192m"
s192xm = "S192xm"
s96 = "S96"
s112 = "S112"
s224 = "S224"
s224m = "S224m"
s224om = "S224om"
s224oo = "S224oo"
s224oom = "S224oom"
s224ooo = "S224ooo"
s384 = "S384"
s384m = "S384m"
s384xm = "S384xm"
s384xxm = "S384xxm"
s448 = "S448"
s448m = "S448m"
s448om = "S448om"
s448oo = "S448oo"
s448oom = "S448oom"
s448ooo = "S448ooo"
s576m = "S576m"
s576xm = "S576xm"
s672 = "S672"
s672m = "S672m"
s672om = "S672om"
s672oo = "S672oo"
s672oom = "S672oom"
s672ooo = "S672ooo"
s768 = "S768"
s768m = "S768m"
s768xm = "S768xm"
s896 = "S896"
s896m = "S896m"
s896om = "S896om"
s896oo = "S896oo"
s896oom = "S896oom"
s896ooo = "S896ooo"
s960m = "S960m"


class AzureBareMetalInstancePowerStateEnum(str, Enum):

starting = "starting"
started = "started"
stopping = "stopping"
stopped = "stopped"
restarting = "restarting"
unknown = "unknown"


class AzureBareMetalProvisioningStatesEnum(str, Enum):

accepted = "Accepted"
creating = "Creating"
updating = "Updating"
failed = "Failed"
succeeded = "Succeeded"
deleting = "Deleting"
migrating = "Migrating"
Loading