How to use azure-mgmt-reservations - 10 common examples

To help you get started, we’ve selected a few azure-mgmt-reservations examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / operations / operation_operations.py View on Github external
# Construct and send request
            request = self._client.get(url, query_parameters, header_parameters)
            response = self._client.send(request, stream=False, **operation_config)

            if response.status_code not in [200]:
                raise models.ErrorException(self._deserialize, response)

            return response

        # Deserialize response
        deserialized = models.OperationResponsePaged(internal_paging, self._deserialize.dependencies)

        if raw:
            header_dict = {}
            client_raw_response = models.OperationResponsePaged(internal_paging, self._deserialize.dependencies, header_dict)
            return client_raw_response

        return deserialized
    list.metadata = {'url': '/providers/Microsoft.Capacity/operations'}
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / operations / operation_operations.py View on Github external
if custom_headers:
                header_parameters.update(custom_headers)
            if self.config.accept_language is not None:
                header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

            # Construct and send request
            request = self._client.get(url, query_parameters, header_parameters)
            response = self._client.send(request, stream=False, **operation_config)

            if response.status_code not in [200]:
                raise models.ErrorException(self._deserialize, response)

            return response

        # Deserialize response
        deserialized = models.OperationResponsePaged(internal_paging, self._deserialize.dependencies)

        if raw:
            header_dict = {}
            client_raw_response = models.OperationResponsePaged(internal_paging, self._deserialize.dependencies, header_dict)
            return client_raw_response

        return deserialized
    list.metadata = {'url': '/providers/Microsoft.Capacity/operations'}
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / operations / operation_operations.py View on Github external
# Construct headers
            header_parameters = {}
            header_parameters['Accept'] = 'application/json'
            if self.config.generate_client_request_id:
                header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
            if custom_headers:
                header_parameters.update(custom_headers)
            if self.config.accept_language is not None:
                header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

            # Construct and send request
            request = self._client.get(url, query_parameters, header_parameters)
            response = self._client.send(request, stream=False, **operation_config)

            if response.status_code not in [200]:
                raise models.ErrorException(self._deserialize, response)

            return response
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / models / applied_reservations.py View on Github external
def __init__(self, **kwargs):
        super(AppliedReservations, self).__init__(**kwargs)
        self.id = None
        self.name = None
        self.type = None
        self.reservation_order_ids = kwargs.get('reservation_order_ids', None)
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / models / catalog_py3.py View on Github external
def __init__(self, **kwargs) -> None:
        super(Catalog, self).__init__(**kwargs)
        self.resource_type = None
        self.name = None
        self.terms = None
        self.locations = None
        self.sku_properties = None
        self.restrictions = None
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / models / error.py View on Github external
def __init__(self, **kwargs):
        super(Error, self).__init__(**kwargs)
        self.error = kwargs.get('error', None)
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / models / error.py View on Github external
def __init__(self, deserialize, response, *args):

        super(ErrorException, self).__init__(deserialize, response, 'Error', *args)
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / models / extended_error_info_py3.py View on Github external
def __init__(self, *, code=None, message: str=None, **kwargs) -> None:
        super(ExtendedErrorInfo, self).__init__(**kwargs)
        self.code = code
        self.message = message
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / models / extended_status_info_py3.py View on Github external
def __init__(self, *, status_code=None, message: str=None, **kwargs) -> None:
        super(ExtendedStatusInfo, self).__init__(**kwargs)
        self.status_code = status_code
        self.message = message
github Azure / azure-sdk-for-python / azure-mgmt-reservations / azure / mgmt / reservations / models / merge_request.py View on Github external
def __init__(self, **kwargs):
        super(MergeRequest, self).__init__(**kwargs)
        self.sources = kwargs.get('sources', None)

azure-mgmt-reservations

Microsoft Azure Reservations Client Library for Python

MIT
Latest version published 2 years ago

Package Health Score

79 / 100
Full package analysis

Popular azure-mgmt-reservations functions

Similar packages