ServiceOperations Class

ServiceOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
ServiceOperations

Constructor

ServiceOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

list_available_skus

This method provides the list of available skus for the given subscription and location.

validate_address

This method validates the customer shipping address and provide alternate addresses if any.

list_available_skus

This method provides the list of available skus for the given subscription and location.

list_available_skus(location: str, available_sku_request: azure.mgmt.databox.v2018_01_01.models._models_py3.AvailableSkuRequest, **kwargs) -> AsyncIterable[azure.mgmt.databox.v2018_01_01.models._models_py3.AvailableSkusResult]

Parameters

location
str
Required

The location of the resource.

available_sku_request
<xref:azure.mgmt.databox.models.AvailableSkuRequest>
Required

Filters for showing the available skus.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AvailableSkusResult or the result of cls(response)

Return type

AsyncItemPaged[<xref:azure.mgmt.databox.models.AvailableSkusResult>]

Exceptions

validate_address

This method validates the customer shipping address and provide alternate addresses if any.

async validate_address(location: str, validate_address: azure.mgmt.databox.v2018_01_01.models._models_py3.ValidateAddress, **kwargs) -> azure.mgmt.databox.v2018_01_01.models._models_py3.AddressValidationOutput

Parameters

location
str
Required

The location of the resource.

validate_address
<xref:azure.mgmt.databox.models.ValidateAddress>
Required

Shipping address of the customer.

cls
callable

A custom type or function that will be passed the direct response

Returns

AddressValidationOutput, or the result of cls(response)

Return type

<xref:azure.mgmt.databox.models.AddressValidationOutput>

Exceptions

Attributes

models

models = <module 'azure.mgmt.databox.v2018_01_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\databox\\v2018_01_01\\models\\__init__.py'>