ProductsOperations Class

ProductsOperations 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
ProductsOperations

Constructor

ProductsOperations(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

get

Returns the specified product.

get_product

Returns the specified product.

get_products

Returns a list of products.

list

Returns a list of products.

list_details

Returns the extended properties of a product.

upload_log

Returns the specified product.

get

Returns the specified product.

get(resource_group: str, registration_name: str, product_name: str, **kwargs: Any) -> _models.Product

Parameters

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

product_name
str
Required

Name of the product.

cls
callable

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

Returns

Product, or the result of cls(response)

Return type

Exceptions

get_product

Returns the specified product.

get_product(resource_group: str, registration_name: str, product_name: str, device_configuration: Optional[_models.DeviceConfiguration] = None, **kwargs: Any) -> _models.Product

Parameters

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

product_name
str
Required

Name of the product.

device_configuration
DeviceConfiguration
default value: None

Device configuration.

cls
callable

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

Returns

Product, or the result of cls(response)

Return type

Exceptions

get_products

Returns a list of products.

get_products(resource_group: str, registration_name: str, product_name: str, device_configuration: Optional[_models.DeviceConfiguration] = None, **kwargs: Any) -> _models.ProductList

Parameters

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

product_name
str
Required

Name of the product.

device_configuration
DeviceConfiguration
default value: None

Device configuration.

cls
callable

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

Returns

ProductList, or the result of cls(response)

Return type

Exceptions

list

Returns a list of products.

list(resource_group: str, registration_name: str, **kwargs: Any) -> Iterable[_models.ProductList]

Parameters

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

cls
callable

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

Returns

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

Return type

Exceptions

list_details

Returns the extended properties of a product.

list_details(resource_group: str, registration_name: str, product_name: str, **kwargs: Any) -> _models.ExtendedProduct

Parameters

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

product_name
str
Required

Name of the product.

cls
callable

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

Returns

ExtendedProduct, or the result of cls(response)

Return type

Exceptions

upload_log

Returns the specified product.

upload_log(resource_group: str, registration_name: str, product_name: str, marketplace_product_log_update: Optional[_models.MarketplaceProductLogUpdate] = None, **kwargs: Any) -> _models.ProductLog

Parameters

resource_group
str
Required

Name of the resource group.

registration_name
str
Required

Name of the Azure Stack registration.

product_name
str
Required

Name of the product.

marketplace_product_log_update
MarketplaceProductLogUpdate
default value: None

Update details for product log.

cls
callable

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

Returns

ProductLog, or the result of cls(response)

Return type

Exceptions

Attributes

models

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