Skip to content

Commit

Permalink
Release azure mgmt reservations (#12554)
Browse files Browse the repository at this point in the history
* Update from release/v3

* bump version and update changelog

* Packaging update of azure-mgmt-reservations

* re-recording tests

* Release azure mgmt reservations (#13132)

* added new quota tests and recordings

* updated recordings to referene prod ARM endpoint instead of dogfood

Co-authored-by: Samuel Mallon <samallon@microsoft.com>

* Packaging update of azure-mgmt-reservations

* bugfix: no timezone in python2

Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
Co-authored-by: Azure SDK Bot <aspysdk2@microsoft.com>
Co-authored-by: samiam2642 <samiam2642ml@hotmail.com>
Co-authored-by: Samuel Mallon <samallon@microsoft.com>
Co-authored-by: Azure SDK Bot <adxpysdk@microsoft.com>
  • Loading branch information
6 people authored Aug 18, 2020
1 parent 5d277ae commit 486db4c
Show file tree
Hide file tree
Showing 28 changed files with 3,345 additions and 1,524 deletions.
27 changes: 27 additions & 0 deletions sdk/reservations/azure-mgmt-reservations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Release History

## 0.8.0 (2020-07-15)

**Features**

- Added operation QuotaOperations.get
- Added operation QuotaOperations.create_or_update
- Added operation QuotaOperations.list
- Added operation QuotaOperations.update
- Added operation group QuotaRequestStatusOperations

**Breaking changes**

- Model SupportRequestAction no longer has parameter auto_quota_increase_state
- Model QuotaRequestOneResourceSubmitResponse no longer has parameter resource_type
- Model QuotaRequestOneResourceSubmitResponse no longer has parameter limit
- Model QuotaRequestOneResourceSubmitResponse no longer has parameter unit
- Model QuotaRequestOneResourceSubmitResponse no longer has parameter name1
- Model QuotaRequestOneResourceSubmitResponse no longer has parameter current_value
- Model QuotaRequestOneResourceSubmitResponse no longer has parameter quota_period
- Model EmailActions has a new signature
- Model CurrentQuotaLimit has a new signature
- Model CurrentQuotaLimitBase has a new signature
- Removed operation QuotaOperations.list_status
- Removed operation group QuotasOperations
- Removed operation group QuotaRequestOperations
- Removed operation group QuotaRequestsOperations

## 0.7.0 (2020-01-29)

**Features**
Expand Down
28 changes: 10 additions & 18 deletions sdk/reservations/azure-mgmt-reservations/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 Reservations Client Library.

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, 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).

For the older Azure Service Management (ASM) libraries, see
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
library.

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

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

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

## Provide Feedback
# 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-reservations%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-reservations%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
from ._configuration import AzureReservationAPIConfiguration
from .operations import AzureReservationAPIOperationsMixin
from .operations import QuotaOperations
from .operations import QuotaRequestOperations
from .operations import QuotasOperations
from .operations import QuotaRequestsOperations
from .operations import QuotaRequestStatusOperations
from .operations import AutoQuotaIncreaseOperations
from .operations import ReservationOperations
from .operations import ReservationOrderOperations
Expand All @@ -33,12 +31,8 @@ class AzureReservationAPI(AzureReservationAPIOperationsMixin, SDKClient):
:ivar quota: Quota operations
:vartype quota: azure.mgmt.reservations.operations.QuotaOperations
:ivar quota_request: QuotaRequest operations
:vartype quota_request: azure.mgmt.reservations.operations.QuotaRequestOperations
:ivar quotas: Quotas operations
:vartype quotas: azure.mgmt.reservations.operations.QuotasOperations
:ivar quota_requests: QuotaRequests operations
:vartype quota_requests: azure.mgmt.reservations.operations.QuotaRequestsOperations
:ivar quota_request_status: QuotaRequestStatus operations
:vartype quota_request_status: azure.mgmt.reservations.operations.QuotaRequestStatusOperations
:ivar auto_quota_increase: AutoQuotaIncrease operations
:vartype auto_quota_increase: azure.mgmt.reservations.operations.AutoQuotaIncreaseOperations
:ivar reservation: Reservation operations
Expand Down Expand Up @@ -66,11 +60,7 @@ def __init__(

self.quota = QuotaOperations(
self._client, self.config, self._serialize, self._deserialize)
self.quota_request = QuotaRequestOperations(
self._client, self.config, self._serialize, self._deserialize)
self.quotas = QuotasOperations(
self._client, self.config, self._serialize, self._deserialize)
self.quota_requests = QuotaRequestsOperations(
self.quota_request_status = QuotaRequestStatusOperations(
self._client, self.config, self._serialize, self._deserialize)
self.auto_quota_increase = AutoQuotaIncreaseOperations(
self._client, self.config, self._serialize, self._deserialize)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import Actions
from ._models_py3 import AppliedReservationList
from ._models_py3 import AppliedReservations
from ._models_py3 import AqiSettings
Expand All @@ -22,17 +23,13 @@
from ._models_py3 import CreateGenericQuotaRequestParameters
from ._models_py3 import CurrentQuotaLimit
from ._models_py3 import CurrentQuotaLimitBase
from ._models_py3 import CurrentQuotaLimitBaseName
from ._models_py3 import EmailAction
from ._models_py3 import EmailActions
from ._models_py3 import Error, ErrorException
from ._models_py3 import ExceptionResponse, ExceptionResponseException
from ._models_py3 import ExtendedErrorInfo
from ._models_py3 import ExtendedStatusInfo
from ._models_py3 import MergeRequest
from ._models_py3 import OnFailure
from ._models_py3 import OnFailureEmailActions
from ._models_py3 import OnFailurePhoneActions
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationResponse
from ._models_py3 import Patch
Expand All @@ -44,6 +41,7 @@
from ._models_py3 import PurchaseRequest
from ._models_py3 import PurchaseRequestPropertiesReservedResourceProperties
from ._models_py3 import QuotaLimitsResponse
from ._models_py3 import QuotaProperties
from ._models_py3 import QuotaRequestDetails
from ._models_py3 import QuotaRequestOneResourceSubmitResponse
from ._models_py3 import QuotaRequestProperties
Expand All @@ -58,6 +56,7 @@
from ._models_py3 import ReservationProperties
from ._models_py3 import ReservationResponse
from ._models_py3 import ReservationSplitProperties
from ._models_py3 import ResourceName
from ._models_py3 import ScopeProperties
from ._models_py3 import ServiceError
from ._models_py3 import ServiceErrorDetail
Expand All @@ -66,10 +65,10 @@
from ._models_py3 import SkuRestriction
from ._models_py3 import SplitRequest
from ._models_py3 import SubRequest
from ._models_py3 import SubRequestName
from ._models_py3 import SubscriptionScopeProperties
from ._models_py3 import SupportRequestAction
except (SyntaxError, ImportError):
from ._models import Actions
from ._models import AppliedReservationList
from ._models import AppliedReservations
from ._models import AqiSettings
Expand All @@ -82,17 +81,13 @@
from ._models import CreateGenericQuotaRequestParameters
from ._models import CurrentQuotaLimit
from ._models import CurrentQuotaLimitBase
from ._models import CurrentQuotaLimitBaseName
from ._models import EmailAction
from ._models import EmailActions
from ._models import Error, ErrorException
from ._models import ExceptionResponse, ExceptionResponseException
from ._models import ExtendedErrorInfo
from ._models import ExtendedStatusInfo
from ._models import MergeRequest
from ._models import OnFailure
from ._models import OnFailureEmailActions
from ._models import OnFailurePhoneActions
from ._models import OperationDisplay
from ._models import OperationResponse
from ._models import Patch
Expand All @@ -104,6 +99,7 @@
from ._models import PurchaseRequest
from ._models import PurchaseRequestPropertiesReservedResourceProperties
from ._models import QuotaLimitsResponse
from ._models import QuotaProperties
from ._models import QuotaRequestDetails
from ._models import QuotaRequestOneResourceSubmitResponse
from ._models import QuotaRequestProperties
Expand All @@ -118,6 +114,7 @@
from ._models import ReservationProperties
from ._models import ReservationResponse
from ._models import ReservationSplitProperties
from ._models import ResourceName
from ._models import ScopeProperties
from ._models import ServiceError
from ._models import ServiceErrorDetail
Expand All @@ -126,7 +123,6 @@
from ._models import SkuRestriction
from ._models import SplitRequest
from ._models import SubRequest
from ._models import SubRequestName
from ._models import SubscriptionScopeProperties
from ._models import SupportRequestAction
from ._paged_models import CurrentQuotaLimitBasePaged
Expand All @@ -146,6 +142,7 @@
)

__all__ = [
'Actions',
'AppliedReservationList',
'AppliedReservations',
'AqiSettings',
Expand All @@ -158,17 +155,13 @@
'CreateGenericQuotaRequestParameters',
'CurrentQuotaLimit',
'CurrentQuotaLimitBase',
'CurrentQuotaLimitBaseName',
'EmailAction',
'EmailActions',
'Error', 'ErrorException',
'ExceptionResponse', 'ExceptionResponseException',
'ExtendedErrorInfo',
'ExtendedStatusInfo',
'MergeRequest',
'OnFailure',
'OnFailureEmailActions',
'OnFailurePhoneActions',
'OperationDisplay',
'OperationResponse',
'Patch',
Expand All @@ -180,6 +173,7 @@
'PurchaseRequest',
'PurchaseRequestPropertiesReservedResourceProperties',
'QuotaLimitsResponse',
'QuotaProperties',
'QuotaRequestDetails',
'QuotaRequestOneResourceSubmitResponse',
'QuotaRequestProperties',
Expand All @@ -194,6 +188,7 @@
'ReservationProperties',
'ReservationResponse',
'ReservationSplitProperties',
'ResourceName',
'ScopeProperties',
'ServiceError',
'ServiceErrorDetail',
Expand All @@ -202,7 +197,6 @@
'SkuRestriction',
'SplitRequest',
'SubRequest',
'SubRequestName',
'SubscriptionScopeProperties',
'SupportRequestAction',
'CurrentQuotaLimitBasePaged',
Expand Down
Loading

0 comments on commit 486db4c

Please sign in to comment.