ContentSettings Class

Used to store the content settings of a file.

Inheritance
azure.storage.fileshare._shared.models.DictMixin
ContentSettings

Constructor

ContentSettings(content_type: str | None = None, content_encoding: str | None = None, content_language: str | None = None, content_disposition: str | None = None, cache_control: str | None = None, content_md5: bytearray | None = None, **kwargs: Any)

Parameters

Name Description
content_type

The content type specified for the file. If no content type was specified, the default content type is application/octet-stream.

Default value: None
content_encoding

If the content_encoding has previously been set for the file, that value is stored.

Default value: None
content_language

If the content_language has previously been set for the file, that value is stored.

Default value: None
content_disposition

content_disposition conveys additional information about how to process the response payload, and also can be used to attach additional metadata. If content_disposition has previously been set for the file, that value is stored.

Default value: None
cache_control

If the cache_control has previously been set for the file, that value is stored.

Default value: None
content_md5

If the content_md5 has been set for the file, this response header is stored so that the client can check for message content integrity.

Default value: None

Methods

get
has_key
items
keys
update
values

get

get(key, default=None)

Parameters

Name Description
key
Required
default
Default value: None

has_key

has_key(k)

Parameters

Name Description
k
Required

items

items()

keys

keys()

update

update(*args, **kwargs)

values

values()

Attributes

cache_control

The cache control specified for the file.

cache_control: str | None = None

content_disposition

The content disposition specified for the file.

content_disposition: str | None = None

content_encoding

The content encoding specified for the file.

content_encoding: str | None = None

content_language

The content language specified for the file.

content_language: str | None = None

content_md5

The content md5 specified for the file.

content_md5: bytearray | None = None

content_type

The content type specified for the file.

content_type: str | None = None