共用方式為


BlobServicesOperations 類別

警告

請勿直接具現化此類別。

您應該改為透過 存取下列作業

StorageManagementClient's

<xref:blob_services> 屬性。

繼承
builtins.object
BlobServicesOperations

建構函式

BlobServicesOperations(*args, **kwargs)

方法

get_service_properties

取得儲存體帳戶 Blob 服務的屬性,包括儲存體分析和 CORS (跨原始來源資源分享) 規則的屬性。

set_service_properties

設定儲存體帳戶 Blob 服務的屬性,包括儲存體分析和 CORS (跨原始來源資源分享) 規則的屬性。

get_service_properties

取得儲存體帳戶 Blob 服務的屬性,包括儲存體分析和 CORS (跨原始來源資源分享) 規則的屬性。

get_service_properties(resource_group_name: str, account_name: str, blob_services_name: str | Enum8, **kwargs: Any) -> BlobServiceProperties

參數

resource_group_name
str
必要

使用者訂用帳戶內的資源組名。 名稱不區分大小寫。 必要。

account_name
str
必要

指定資源群組內的儲存體帳戶名稱。 儲存體帳戶名稱必須介於 3 到 24 個字元的長度,而且只能使用數字和小寫字母。 必要。

blob_services_name
strEnum8
必要

指定之儲存體帳戶內的 Blob 服務名稱。 Blob 服務名稱必須是 'default'。 「default」 必要。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

BlobServiceProperties 或 cls 的結果 (回應)

傳回類型

例外狀況

set_service_properties

設定儲存體帳戶 Blob 服務的屬性,包括儲存體分析和 CORS (跨原始來源資源分享) 規則的屬性。

set_service_properties(resource_group_name: str, account_name: str, blob_services_name: str | _models.Enum8, parameters: _models.BlobServiceProperties, *, content_type: str = 'application/json', **kwargs: Any) -> _models.BlobServiceProperties

參數

resource_group_name
str
必要

使用者訂用帳戶內的資源組名。 名稱不區分大小寫。 必要。

account_name
str
必要

指定資源群組內的儲存體帳戶名稱。 儲存體帳戶名稱必須介於 3 到 24 個字元的長度,而且只能使用數字和小寫字母。 必要。

blob_services_name
strEnum8
必要

指定之儲存體帳戶內的 Blob 服務名稱。 Blob 服務名稱必須是 'default'。 「default」 必要。

parameters
BlobServicePropertiesIO
必要

儲存體帳戶 Blob 服務的屬性,包括儲存體分析和 CORS (跨原始來源資源分享) 規則的屬性。 這是 BlobServiceProperties 類型或 IO 類型。 必要。

content_type
str

本文參數內容類型。 已知值為:'application/json'。 預設值為 [無]。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

BlobServiceProperties 或 cls 的結果 (回應)

傳回類型

例外狀況

屬性

models

models = <module 'azure.mgmt.storage.v2018_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\storage\\v2018_07_01\\models\\__init__.py'>