BlobServicesOperations Class

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

Constructor

BlobServicesOperations(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_service_properties

Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.

list

List blob services of storage account. It returns a collection of one object named default.

set_service_properties

Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.

get_service_properties

Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.

get_service_properties(resource_group_name, account_name, **kwargs)

Parameters

resource_group_name
str
Required

The name of the resource group within the user's subscription. The name is case insensitive.

account_name
str
Required

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

cls
callable

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

Returns

BlobServiceProperties, or the result of cls(response)

Return type

list

List blob services of storage account. It returns a collection of one object named default.

list(resource_group_name, account_name, **kwargs)

Parameters

resource_group_name
str
Required

The name of the resource group within the user's subscription. The name is case insensitive.

account_name
str
Required

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

cls
callable

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

Returns

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

Return type

set_service_properties

Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.

set_service_properties(resource_group_name, account_name, parameters, **kwargs)

Parameters

resource_group_name
str
Required

The name of the resource group within the user's subscription. The name is case insensitive.

account_name
str
Required

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

parameters
BlobServiceProperties
Required

The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.

cls
callable

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

Returns

BlobServiceProperties, or the result of cls(response)

Return type

Attributes

models

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