FileServicesOperations 類別
- 繼承
-
builtins.objectFileServicesOperations
建構函式
FileServicesOperations(*args, **kwargs)
方法
get_service_properties |
取得儲存體帳戶中檔案服務的屬性,包括 CORS (跨原始來源資源分享) 規則。 |
list |
列出儲存體帳戶中的所有檔案服務。 |
set_service_properties |
設定儲存體帳戶中的檔案服務屬性,包括 CORS (跨原始來源資源分享) 規則。 |
get_service_properties
取得儲存體帳戶中檔案服務的屬性,包括 CORS (跨原始來源資源分享) 規則。
get_service_properties(resource_group_name: str, account_name: str, **kwargs: Any) -> FileServiceProperties
參數
- file_services_name
- str
指定儲存體帳戶內的服務檔案名。 檔案名必須是 「default」。 預設值為 「default」。 請注意,覆寫此預設值可能會導致不支援的行為。
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
FileServiceProperties 或 cls 的結果 (回應)
傳回類型
例外狀況
list
列出儲存體帳戶中的所有檔案服務。
list(resource_group_name: str, account_name: str, **kwargs: Any) -> FileServiceItems
參數
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
FileServiceItems 或 cls 的結果 (回應)
傳回類型
例外狀況
set_service_properties
設定儲存體帳戶中的檔案服務屬性,包括 CORS (跨原始來源資源分享) 規則。
set_service_properties(resource_group_name: str, account_name: str, parameters: _models.FileServiceProperties, *, content_type: str = 'application/json', **kwargs: Any) -> _models.FileServiceProperties
參數
- parameters
- FileServiceProperties 或 IO
必要
儲存體帳戶中檔案服務的屬性,包括 CORS (跨原始來源資源分享) 規則。 這是 FileServiceProperties 類型或 IO 類型。 必要。
- file_services_name
- str
指定儲存體帳戶內的服務檔案名。 檔案名必須是 「default」。 預設值為 「default」。 請注意,覆寫此預設值可能會導致不支援的行為。
- content_type
- str
Body 參數內容類型。 已知值為:'application/json'。 預設值為 [無]。
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
FileServiceProperties 或 cls 的結果 (回應)
傳回類型
例外狀況
屬性
models
models = <module 'azure.mgmt.storage.v2022_05_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\storage\\v2022_05_01\\models\\__init__.py'>
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應