Labels interface
表示標籤的介面。
方法
方法詳細資料
beginCreateAndUpdate(string, string, string, LabelsCreateAndUpdateOptionalParams)
建立或更新標籤。
function beginCreateAndUpdate(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsCreateAndUpdateOptionalParams): Promise<SimplePollerLike<OperationState<LabelResource>, LabelResource>>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
- labelName
-
string
標籤名稱。
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<LabelResource>, LabelResource>>
beginCreateAndUpdateAndWait(string, string, string, LabelsCreateAndUpdateOptionalParams)
建立或更新標籤。
function beginCreateAndUpdateAndWait(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsCreateAndUpdateOptionalParams): Promise<LabelResource>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
- labelName
-
string
標籤名稱。
選項參數。
傳回
Promise<LabelResource>
beginDelete(string, string, string, LabelsDeleteOptionalParams)
刪除標籤。
function beginDelete(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
- labelName
-
string
標籤名稱。
- options
- LabelsDeleteOptionalParams
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, LabelsDeleteOptionalParams)
刪除標籤。
function beginDeleteAndWait(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsDeleteOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
- labelName
-
string
標籤名稱。
- options
- LabelsDeleteOptionalParams
選項參數。
傳回
Promise<void>
getByWorkspace(string, string, string, LabelsGetByWorkspaceOptionalParams)
傳回指定工作區中的標籤。
function getByWorkspace(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsGetByWorkspaceOptionalParams): Promise<LabelResource>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
- labelName
-
string
標籤名稱。
選項參數。
傳回
Promise<LabelResource>
listByWorkspace(string, string, LabelsListByWorkspaceOptionalParams)
傳回指定工作區中的標籤清單。
function listByWorkspace(resourceGroupName: string, workspaceName: string, options?: LabelsListByWorkspaceOptionalParams): PagedAsyncIterableIterator<LabelResource, LabelResource[], PageSettings>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
選項參數。
傳回
update(string, string, string, LabelsUpdateOptionalParams)
更新標籤。
function update(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsUpdateOptionalParams): Promise<LabelResource>
參數
- resourceGroupName
-
string
資源群組的名稱。 名稱不區分大小寫。
- workspaceName
-
string
工作區的名稱。
- labelName
-
string
標籤名稱。
- options
- LabelsUpdateOptionalParams
選項參數。
傳回
Promise<LabelResource>