Skip to content

Commit

Permalink
Release sdk 687 (#13213)
Browse files Browse the repository at this point in the history
* Generated from ef607b3c3b7a58c63b3345b6c2c112f523a5fa98

Refactor

* Generated from bd738dadf870fc866655108bcfce5a68698d0abd

remove version

* update version to 1.0.0

* fix text

Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
Co-authored-by: xichen <xichen@microsoft.com>
  • Loading branch information
3 people authored Aug 21, 2020
1 parent 12aa2b4 commit b23c203
Show file tree
Hide file tree
Showing 20 changed files with 2,608 additions and 1,005 deletions.
26 changes: 26 additions & 0 deletions sdk/hybridcompute/azure-mgmt-hybridcompute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Release History

## 1.0.0 (2020-08-19)

**Features**

- Model Machine has a new parameter identity
- Model Machine has a new parameter location_data
- Model MachineUpdate has a new parameter location_data
- Added operation group MachineExtensionsOperations

**Breaking changes**

- Model MachineExtension no longer has parameter tenant_id
- Model MachineExtension no longer has parameter principal_id
- Model MachineExtension no longer has parameter type1
- Model Machine no longer has parameter tenant_id
- Model Machine no longer has parameter physical_location
- Model Machine no longer has parameter principal_id
- Model Machine no longer has parameter type1
- Model MachineUpdate no longer has parameter physical_location
- Model Resource no longer has parameter tenant_id
- Model Resource no longer has parameter principal_id
- Model Resource no longer has parameter location
- Model Resource no longer has parameter type1
- Model Resource no longer has parameter tags
- Model ErrorResponse has a new signature

## 0.1.1 (2019-10-30)

- Update project description and title
Expand Down
32 changes: 12 additions & 20 deletions sdk/hybridcompute/azure-mgmt-hybridcompute/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Hybrid Compute Management Client Library.
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).

Azure Resource Manager (ARM) is the next generation of management APIs
that replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
# Usage

For the older Azure Service Management (ASM) libraries, see
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
library.
For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/)
on docs.microsoft.com.

For a more complete set of Azure libraries, see the
[azure sdk python release](https://aka.ms/azsdk/python/all).

## Usage
# Provide Feedback

For code examples, see [Hybrid Compute
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)
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.

![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-hybridcompute%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-hybridcompute%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ class HybridComputeManagementClientConfiguration(AzureConfiguration):
: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: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from ._configuration import HybridComputeManagementClientConfiguration
from .operations import MachinesOperations
from .operations import MachineExtensionsOperations
from .operations import Operations
from . import models

Expand All @@ -26,15 +27,15 @@ class HybridComputeManagementClient(SDKClient):
:ivar machines: Machines operations
:vartype machines: azure.mgmt.hybridcompute.operations.MachinesOperations
:ivar machine_extensions: MachineExtensions operations
:vartype machine_extensions: azure.mgmt.hybridcompute.operations.MachineExtensionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.hybridcompute.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: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""
Expand All @@ -46,11 +47,13 @@ def __init__(
super(HybridComputeManagementClient, 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 = '2019-08-02-preview'
self.api_version = '2019-12-12'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.machines = MachinesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.machine_extensions = MachineExtensionsOperations(
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
Expand Up @@ -10,61 +10,127 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import AzureEntityResource
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import Identity
from ._models_py3 import LocationData
from ._models_py3 import Machine
from ._models_py3 import MachineExtension
from ._models_py3 import MachineExtensionInstanceView
from ._models_py3 import MachineExtensionInstanceViewStatus
from ._models_py3 import MachineExtensionsListResult
from ._models_py3 import MachineExtensionPropertiesInstanceView
from ._models_py3 import MachineExtensionPropertiesModel
from ._models_py3 import MachineExtensionUpdate
from ._models_py3 import MachineExtensionUpdatePropertiesModel
from ._models_py3 import MachineIdentity
from ._models_py3 import MachineProperties
from ._models_py3 import MachinePropertiesOsProfile
from ._models_py3 import MachineReconnect
from ._models_py3 import MachineReconnectProperties
from ._models_py3 import MachineUpdate
from ._models_py3 import MachineUpdateProperties
from ._models_py3 import OperationValue
from ._models_py3 import OperationValueDisplayModel
from ._models_py3 import OSProfile
from ._models_py3 import Plan
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import ResourceModelWithAllowedPropertySet
from ._models_py3 import ResourceModelWithAllowedPropertySetIdentity
from ._models_py3 import ResourceModelWithAllowedPropertySetPlan
from ._models_py3 import ResourceModelWithAllowedPropertySetSku
from ._models_py3 import Sku
from ._models_py3 import TrackedResource
from ._models_py3 import UpdateResource
except (SyntaxError, ImportError):
from ._models import AzureEntityResource
from ._models import ErrorAdditionalInfo
from ._models import ErrorDetail
from ._models import ErrorResponse, ErrorResponseException
from ._models import Identity
from ._models import LocationData
from ._models import Machine
from ._models import MachineExtension
from ._models import MachineExtensionInstanceView
from ._models import MachineExtensionInstanceViewStatus
from ._models import MachineExtensionsListResult
from ._models import MachineExtensionPropertiesInstanceView
from ._models import MachineExtensionPropertiesModel
from ._models import MachineExtensionUpdate
from ._models import MachineExtensionUpdatePropertiesModel
from ._models import MachineIdentity
from ._models import MachineProperties
from ._models import MachinePropertiesOsProfile
from ._models import MachineReconnect
from ._models import MachineReconnectProperties
from ._models import MachineUpdate
from ._models import MachineUpdateProperties
from ._models import OperationValue
from ._models import OperationValueDisplayModel
from ._models import OSProfile
from ._models import Plan
from ._models import ProxyResource
from ._models import Resource
from ._models import ResourceModelWithAllowedPropertySet
from ._models import ResourceModelWithAllowedPropertySetIdentity
from ._models import ResourceModelWithAllowedPropertySetPlan
from ._models import ResourceModelWithAllowedPropertySetSku
from ._models import Sku
from ._models import TrackedResource
from ._models import UpdateResource
from ._paged_models import MachineExtensionPaged
from ._paged_models import MachinePaged
from ._paged_models import OperationValuePaged
from ._hybrid_compute_management_client_enums import (
StatusTypes,
StatusLevelTypes,
SkuTier,
ResourceIdentityType,
InstanceViewTypes,
)

__all__ = [
'AzureEntityResource',
'ErrorAdditionalInfo',
'ErrorDetail',
'ErrorResponse', 'ErrorResponseException',
'Identity',
'LocationData',
'Machine',
'MachineExtension',
'MachineExtensionInstanceView',
'MachineExtensionInstanceViewStatus',
'MachineExtensionsListResult',
'MachineExtensionPropertiesInstanceView',
'MachineExtensionPropertiesModel',
'MachineExtensionUpdate',
'MachineExtensionUpdatePropertiesModel',
'MachineIdentity',
'MachineProperties',
'MachinePropertiesOsProfile',
'MachineReconnect',
'MachineReconnectProperties',
'MachineUpdate',
'MachineUpdateProperties',
'OperationValue',
'OperationValueDisplayModel',
'OSProfile',
'Plan',
'ProxyResource',
'Resource',
'ResourceModelWithAllowedPropertySet',
'ResourceModelWithAllowedPropertySetIdentity',
'ResourceModelWithAllowedPropertySetPlan',
'ResourceModelWithAllowedPropertySetSku',
'Sku',
'TrackedResource',
'UpdateResource',
'MachinePaged',
'MachineExtensionPaged',
'OperationValuePaged',
'StatusTypes',
'StatusLevelTypes',
'SkuTier',
'ResourceIdentityType',
'InstanceViewTypes',
]
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ class StatusLevelTypes(str, Enum):
error = "Error"


class SkuTier(str, Enum):

free = "Free"
basic = "Basic"
standard = "Standard"
premium = "Premium"


class ResourceIdentityType(str, Enum):

system_assigned = "SystemAssigned"


class InstanceViewTypes(str, Enum):

instance_view = "instanceView"
Loading

0 comments on commit b23c203

Please sign in to comment.