Skip to content

Commit

Permalink
CodeGen from PR 12281 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Updated SDK documentation and Updated Reservation API version to previous SDK release version. (Azure#12281)

* 1.Breaking Change - Removing duplicate autoQuotaIncreaseState from supportTicketAction.
2. Removing state=enabledForPreview.
3. Updating Example.

* Updating Provider name in example.

* Capacity RP Quota APIs for GA

* Adding preview version to stable dir as base files.

* Files from preview version, which will be removed.

* Updating to GA Version.

* 1. Updated reservation version tag to - Microsoft.Capacity/preview/2020-10-01-preview/reservations.json, which matches the previous SDK release.
2. Documentation changes.

* Documentation updates for put and patch request, which includes only ONE quota request, so changing quotas to quota.

* Update documenation for put.

* Doc update.

* Adding -preview tag for GO sdk.

* Updating Go settings for output folder to be -preview.

* Adding preview subdir for GO package.

* Adding preview subdir to Go sdk path.

* Removing tag - tag: package-2020-10-25-preview

* introduce a new tag to keep the go sdk package unchanged

* Revert "introduce a new tag to keep the go sdk package unchanged"

This reverts commit 8f58d3451e9ae5a4746d2a5883911f14ca261f1b.

Co-authored-by: Arcturus Zhang <dapzhang@microsoft.com>
  • Loading branch information
SDKAuto and ArcturusZhang committed Jan 13, 2021
1 parent 6f142b0 commit 6dd13b1
Show file tree
Hide file tree
Showing 16 changed files with 1,644 additions and 811 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@

from ._configuration import AzureReservationAPIConfiguration
from .operations import AzureReservationAPIOperationsMixin
from .operations import QuotaOperations
from .operations import QuotaRequestStatusOperations
from .operations import AutoQuotaIncreaseOperations
from .operations import ReservationOperations
from .operations import ReservationOrderOperations
from .operations import OperationOperations
from .operations import CalculateExchangeOperations
from .operations import ExchangeOperations
from .operations import QuotaOperations
from .operations import QuotaRequestStatusOperations
from . import models


Expand All @@ -29,18 +30,20 @@ class AzureReservationAPI(AzureReservationAPIOperationsMixin, SDKClient):
:ivar config: Configuration for client.
:vartype config: AzureReservationAPIConfiguration
:ivar quota: Quota operations
:vartype quota: azure.mgmt.reservations.operations.QuotaOperations
: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
:vartype reservation: azure.mgmt.reservations.operations.ReservationOperations
:ivar reservation_order: ReservationOrder operations
:vartype reservation_order: azure.mgmt.reservations.operations.ReservationOrderOperations
:ivar operation: Operation operations
:vartype operation: azure.mgmt.reservations.operations.OperationOperations
:ivar calculate_exchange: CalculateExchange operations
:vartype calculate_exchange: azure.mgmt.reservations.operations.CalculateExchangeOperations
:ivar exchange: Exchange operations
:vartype exchange: azure.mgmt.reservations.operations.ExchangeOperations
:ivar quota: Quota operations
:vartype quota: azure.mgmt.reservations.operations.QuotaOperations
:ivar quota_request_status: QuotaRequestStatus operations
:vartype quota_request_status: azure.mgmt.reservations.operations.QuotaRequestStatusOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -58,15 +61,17 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.quota = QuotaOperations(
self._client, self.config, self._serialize, self._deserialize)
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)
self.reservation = ReservationOperations(
self._client, self.config, self._serialize, self._deserialize)
self.reservation_order = ReservationOrderOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operation = OperationOperations(
self._client, self.config, self._serialize, self._deserialize)
self.calculate_exchange = CalculateExchangeOperations(
self._client, self.config, self._serialize, self._deserialize)
self.exchange = ExchangeOperations(
self._client, self.config, self._serialize, self._deserialize)
self.quota = QuotaOperations(
self._client, self.config, self._serialize, self._deserialize)
self.quota_request_status = QuotaRequestStatusOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import Actions
from ._models_py3 import AppliedReservationList
from ._models_py3 import AppliedReservations
from ._models_py3 import AqiSettings
from ._models_py3 import AutoQuotaIncreaseDetail
from ._models_py3 import AvailableScopeProperties
from ._models_py3 import AvailableScopeRequest
from ._models_py3 import AvailableScopeRequestProperties
from ._models_py3 import BillingInformation
from ._models_py3 import CalculateExchangeOperationResultResponse
from ._models_py3 import CalculateExchangeRequest
from ._models_py3 import CalculateExchangeRequestProperties
from ._models_py3 import CalculateExchangeResponseProperties
from ._models_py3 import CalculatePriceResponse
from ._models_py3 import CalculatePriceResponseProperties
from ._models_py3 import CalculatePriceResponsePropertiesBillingCurrencyTotal
Expand All @@ -23,21 +28,24 @@
from ._models_py3 import CreateGenericQuotaRequestParameters
from ._models_py3 import CurrentQuotaLimit
from ._models_py3 import CurrentQuotaLimitBase
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 ExchangeOperationResultResponse
from ._models_py3 import ExchangePolicyError
from ._models_py3 import ExchangePolicyErrors
from ._models_py3 import ExchangeRequest
from ._models_py3 import ExchangeRequestProperties
from ._models_py3 import ExchangeResponseProperties
from ._models_py3 import ExtendedErrorInfo
from ._models_py3 import ExtendedStatusInfo
from ._models_py3 import MergeRequest
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationResponse
from ._models_py3 import OperationResultError
from ._models_py3 import Patch
from ._models_py3 import PatchPropertiesRenewProperties
from ._models_py3 import PaymentDetail
from ._models_py3 import PhoneAction
from ._models_py3 import Price
from ._models_py3 import Properties
from ._models_py3 import PurchaseRequest
from ._models_py3 import PurchaseRequestPropertiesReservedResourceProperties
from ._models_py3 import QuotaLimitsResponse
Expand All @@ -56,6 +64,11 @@
from ._models_py3 import ReservationProperties
from ._models_py3 import ReservationResponse
from ._models_py3 import ReservationSplitProperties
from ._models_py3 import ReservationToExchange
from ._models_py3 import ReservationToPurchaseCalculateExchange
from ._models_py3 import ReservationToPurchaseExchange
from ._models_py3 import ReservationToReturn
from ._models_py3 import ReservationToReturnForExchange
from ._models_py3 import ResourceName
from ._models_py3 import ScopeProperties
from ._models_py3 import ServiceError
Expand All @@ -66,13 +79,17 @@
from ._models_py3 import SplitRequest
from ._models_py3 import SubRequest
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
from ._models import AutoQuotaIncreaseDetail
from ._models import AvailableScopeProperties
from ._models import AvailableScopeRequest
from ._models import AvailableScopeRequestProperties
from ._models import BillingInformation
from ._models import CalculateExchangeOperationResultResponse
from ._models import CalculateExchangeRequest
from ._models import CalculateExchangeRequestProperties
from ._models import CalculateExchangeResponseProperties
from ._models import CalculatePriceResponse
from ._models import CalculatePriceResponseProperties
from ._models import CalculatePriceResponsePropertiesBillingCurrencyTotal
Expand All @@ -81,21 +98,24 @@
from ._models import CreateGenericQuotaRequestParameters
from ._models import CurrentQuotaLimit
from ._models import CurrentQuotaLimitBase
from ._models import EmailAction
from ._models import EmailActions
from ._models import Error, ErrorException
from ._models import ExceptionResponse, ExceptionResponseException
from ._models import ExchangeOperationResultResponse
from ._models import ExchangePolicyError
from ._models import ExchangePolicyErrors
from ._models import ExchangeRequest
from ._models import ExchangeRequestProperties
from ._models import ExchangeResponseProperties
from ._models import ExtendedErrorInfo
from ._models import ExtendedStatusInfo
from ._models import MergeRequest
from ._models import OperationDisplay
from ._models import OperationResponse
from ._models import OperationResultError
from ._models import Patch
from ._models import PatchPropertiesRenewProperties
from ._models import PaymentDetail
from ._models import PhoneAction
from ._models import Price
from ._models import Properties
from ._models import PurchaseRequest
from ._models import PurchaseRequestPropertiesReservedResourceProperties
from ._models import QuotaLimitsResponse
Expand All @@ -114,6 +134,11 @@
from ._models import ReservationProperties
from ._models import ReservationResponse
from ._models import ReservationSplitProperties
from ._models import ReservationToExchange
from ._models import ReservationToPurchaseCalculateExchange
from ._models import ReservationToPurchaseExchange
from ._models import ReservationToReturn
from ._models import ReservationToReturnForExchange
from ._models import ResourceName
from ._models import ScopeProperties
from ._models import ServiceError
Expand All @@ -124,29 +149,36 @@
from ._models import SplitRequest
from ._models import SubRequest
from ._models import SubscriptionScopeProperties
from ._models import SupportRequestAction
from ._paged_models import CurrentQuotaLimitBasePaged
from ._paged_models import OperationResponsePaged
from ._paged_models import QuotaRequestDetailsPaged
from ._paged_models import ReservationOrderResponsePaged
from ._paged_models import ReservationResponsePaged
from ._azure_reservation_api_enums import (
ReservedResourceType,
ReservationTerm,
ReservationBillingPlan,
AppliedScopeType,
InstanceFlexibility,
ReservationStatusCode,
ErrorResponseCode,
ReservationBillingPlan,
ReservationTerm,
CalculateExchangeOperationResultStatus,
ExchangeOperationResultStatus,
OperationStatus,
PaymentStatus,
ReservedResourceType,
InstanceFlexibility,
AppliedScopeType,
)

__all__ = [
'Actions',
'AppliedReservationList',
'AppliedReservations',
'AqiSettings',
'AutoQuotaIncreaseDetail',
'AvailableScopeProperties',
'AvailableScopeRequest',
'AvailableScopeRequestProperties',
'BillingInformation',
'CalculateExchangeOperationResultResponse',
'CalculateExchangeRequest',
'CalculateExchangeRequestProperties',
'CalculateExchangeResponseProperties',
'CalculatePriceResponse',
'CalculatePriceResponseProperties',
'CalculatePriceResponsePropertiesBillingCurrencyTotal',
Expand All @@ -155,21 +187,24 @@
'CreateGenericQuotaRequestParameters',
'CurrentQuotaLimit',
'CurrentQuotaLimitBase',
'EmailAction',
'EmailActions',
'Error', 'ErrorException',
'ExceptionResponse', 'ExceptionResponseException',
'ExchangeOperationResultResponse',
'ExchangePolicyError',
'ExchangePolicyErrors',
'ExchangeRequest',
'ExchangeRequestProperties',
'ExchangeResponseProperties',
'ExtendedErrorInfo',
'ExtendedStatusInfo',
'MergeRequest',
'OperationDisplay',
'OperationResponse',
'OperationResultError',
'Patch',
'PatchPropertiesRenewProperties',
'PaymentDetail',
'PhoneAction',
'Price',
'Properties',
'PurchaseRequest',
'PurchaseRequestPropertiesReservedResourceProperties',
'QuotaLimitsResponse',
Expand All @@ -188,6 +223,11 @@
'ReservationProperties',
'ReservationResponse',
'ReservationSplitProperties',
'ReservationToExchange',
'ReservationToPurchaseCalculateExchange',
'ReservationToPurchaseExchange',
'ReservationToReturn',
'ReservationToReturnForExchange',
'ResourceName',
'ScopeProperties',
'ServiceError',
Expand All @@ -198,18 +238,20 @@
'SplitRequest',
'SubRequest',
'SubscriptionScopeProperties',
'SupportRequestAction',
'CurrentQuotaLimitBasePaged',
'QuotaRequestDetailsPaged',
'ReservationResponsePaged',
'ReservationOrderResponsePaged',
'OperationResponsePaged',
'CurrentQuotaLimitBasePaged',
'QuotaRequestDetailsPaged',
'ReservedResourceType',
'ReservationTerm',
'ReservationBillingPlan',
'AppliedScopeType',
'InstanceFlexibility',
'ReservationStatusCode',
'ErrorResponseCode',
'ReservationBillingPlan',
'ReservationTerm',
'CalculateExchangeOperationResultStatus',
'ExchangeOperationResultStatus',
'OperationStatus',
'PaymentStatus',
'ReservedResourceType',
'InstanceFlexibility',
'AppliedScopeType',
]
Loading

0 comments on commit 6dd13b1

Please sign in to comment.