@azure-rest/developer-devcenter package
介面
類型別名
函式
函式詳細資料
default(string, TokenCredential, AzureDeveloperDevCenterClientOptions)
初始化 AzureDeveloperDevCenterClient 的新實例
function default(endpointParam: string, credentials: TokenCredential, options?: AzureDeveloperDevCenterClientOptions): AzureDeveloperDevCenterClient
參數
- endpointParam
-
string
要運作的 DevCenter 特定 URI。
- credentials
- TokenCredential
唯一識別客戶端認證
所有選擇性參數的參數
傳回
getLongRunningPoller<TResult>(Client, CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
建置 Poller 物件的 Helper 函式,以協助輪詢長時間執行的作業。
function getLongRunningPoller<TResult>(client: Client, initialResponse: CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
參數
- client
- Client
用來傳送要求以取得其他頁面的用戶端。
- initialResponse
-
CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse
初始回應。
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
設定繼續狀態或自定義輪詢間隔的選項。
傳回
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
- 輪詢作業狀態更新的輪詢器對象,最終會取得最終回應。
getLongRunningPoller<TResult>(Client, DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
參數
- client
- Client
- initialResponse
-
DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
傳回
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, StartDevBox202Response | StartDevBoxDefaultResponse, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: StartDevBox202Response | StartDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
參數
- client
- Client
- initialResponse
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
傳回
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, StopDevBox202Response | StopDevBoxDefaultResponse, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: StopDevBox202Response | StopDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
參數
- client
- Client
- initialResponse
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
傳回
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, RestartDevBox202Response | RestartDevBoxDefaultResponse, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: RestartDevBox202Response | RestartDevBoxDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
參數
- client
- Client
- initialResponse
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
傳回
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, CreateOrReplaceEnvironment201Response | CreateOrReplaceEnvironmentDefaultResponse, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: CreateOrReplaceEnvironment201Response | CreateOrReplaceEnvironmentDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
參數
- client
- Client
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
傳回
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
參數
- client
- Client
- initialResponse
-
DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
傳回
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
isUnexpected(ListProjects200Response | ListProjectsDefaultResponse)
function isUnexpected(response: ListProjects200Response | ListProjectsDefaultResponse): response
參數
傳回
response
isUnexpected(GetProject200Response | GetProjectDefaultResponse)
function isUnexpected(response: GetProject200Response | GetProjectDefaultResponse): response
參數
- response
傳回
response
isUnexpected(Get200Response | GetDefaultResponse)
function isUnexpected(response: Get200Response | GetDefaultResponse): response
參數
- response
傳回
response
isUnexpected(ListPools200Response | ListPoolsDefaultResponse)
function isUnexpected(response: ListPools200Response | ListPoolsDefaultResponse): response
參數
- response
傳回
response
isUnexpected(GetPool200Response | GetPoolDefaultResponse)
function isUnexpected(response: GetPool200Response | GetPoolDefaultResponse): response
參數
- response
傳回
response
isUnexpected(ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse)
function isUnexpected(response: ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse): response
參數
傳回
response
isUnexpected(ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse)
function isUnexpected(response: ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse): response
參數
傳回
response
isUnexpected(ListSchedulesByPool200Response | ListSchedulesByPoolDefaultResponse)
function isUnexpected(response: ListSchedulesByPool200Response | ListSchedulesByPoolDefaultResponse): response
參數
傳回
response
isUnexpected(GetScheduleByPool200Response | GetScheduleByPoolDefaultResponse)
function isUnexpected(response: GetScheduleByPool200Response | GetScheduleByPoolDefaultResponse): response
參數
傳回
response
isUnexpected(ListDevBoxesByUser200Response | ListDevBoxesByUserDefaultResponse)
function isUnexpected(response: ListDevBoxesByUser200Response | ListDevBoxesByUserDefaultResponse): response
參數
傳回
response
isUnexpected(GetDevBoxByUser200Response | GetDevBoxByUserDefaultResponse)
function isUnexpected(response: GetDevBoxByUser200Response | GetDevBoxByUserDefaultResponse): response
參數
傳回
response
isUnexpected(CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse | CreateDevBoxLogicalResponse)
function isUnexpected(response: CreateDevBox200Response | CreateDevBox201Response | CreateDevBoxDefaultResponse | CreateDevBoxLogicalResponse): response
參數
傳回
response
isUnexpected(DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse | DeleteDevBoxLogicalResponse)
function isUnexpected(response: DeleteDevBox202Response | DeleteDevBox204Response | DeleteDevBoxDefaultResponse | DeleteDevBoxLogicalResponse): response
參數
傳回
response
isUnexpected(StartDevBox202Response | StartDevBoxDefaultResponse | StartDevBoxLogicalResponse)
function isUnexpected(response: StartDevBox202Response | StartDevBoxDefaultResponse | StartDevBoxLogicalResponse): response
參數
傳回
response
isUnexpected(StopDevBox202Response | StopDevBoxDefaultResponse | StopDevBoxLogicalResponse)
function isUnexpected(response: StopDevBox202Response | StopDevBoxDefaultResponse | StopDevBoxLogicalResponse): response
參數
傳回
response
isUnexpected(RestartDevBox202Response | RestartDevBoxDefaultResponse | RestartDevBoxLogicalResponse)
function isUnexpected(response: RestartDevBox202Response | RestartDevBoxDefaultResponse | RestartDevBoxLogicalResponse): response
參數
傳回
response
isUnexpected(GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse)
function isUnexpected(response: GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse): response
參數
傳回
response
isUnexpected(ListActions200Response | ListActionsDefaultResponse)
function isUnexpected(response: ListActions200Response | ListActionsDefaultResponse): response
參數
- response
傳回
response
isUnexpected(GetAction200Response | GetActionDefaultResponse)
function isUnexpected(response: GetAction200Response | GetActionDefaultResponse): response
參數
- response
傳回
response
isUnexpected(SkipAction204Response | SkipActionDefaultResponse)
function isUnexpected(response: SkipAction204Response | SkipActionDefaultResponse): response
參數
- response
傳回
response
isUnexpected(DelayAction200Response | DelayActionDefaultResponse)
function isUnexpected(response: DelayAction200Response | DelayActionDefaultResponse): response
參數
- response
傳回
response
isUnexpected(DelayActions200Response | DelayActionsDefaultResponse)
function isUnexpected(response: DelayActions200Response | DelayActionsDefaultResponse): response
參數
傳回
response
isUnexpected(ListEnvironments200Response | ListEnvironmentsDefaultResponse)
function isUnexpected(response: ListEnvironments200Response | ListEnvironmentsDefaultResponse): response
參數
傳回
response
isUnexpected(ListEnvironmentsByUser200Response | ListEnvironmentsByUserDefaultResponse)
function isUnexpected(response: ListEnvironmentsByUser200Response | ListEnvironmentsByUserDefaultResponse): response
參數
傳回
response
isUnexpected(GetEnvironmentByUser200Response | GetEnvironmentByUserDefaultResponse)
function isUnexpected(response: GetEnvironmentByUser200Response | GetEnvironmentByUserDefaultResponse): response
參數
傳回
response
isUnexpected(CreateOrReplaceEnvironment201Response | CreateOrReplaceEnvironmentDefaultResponse | CreateOrReplaceEnvironmentLogicalResponse)
function isUnexpected(response: CreateOrReplaceEnvironment201Response | CreateOrReplaceEnvironmentDefaultResponse | CreateOrReplaceEnvironmentLogicalResponse): response
參數
傳回
response
isUnexpected(DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse | DeleteEnvironmentLogicalResponse)
function isUnexpected(response: DeleteEnvironment202Response | DeleteEnvironment204Response | DeleteEnvironmentDefaultResponse | DeleteEnvironmentLogicalResponse): response
參數
傳回
response
isUnexpected(ListCatalogsByProject200Response | ListCatalogsByProjectDefaultResponse)
function isUnexpected(response: ListCatalogsByProject200Response | ListCatalogsByProjectDefaultResponse): response
參數
傳回
response
isUnexpected(GetCatalog200Response | GetCatalogDefaultResponse)
function isUnexpected(response: GetCatalog200Response | GetCatalogDefaultResponse): response
參數
- response
傳回
response
isUnexpected(ListEnvironmentDefinitionsByProject200Response | ListEnvironmentDefinitionsByProjectDefaultResponse)
function isUnexpected(response: ListEnvironmentDefinitionsByProject200Response | ListEnvironmentDefinitionsByProjectDefaultResponse): response
參數
傳回
response
isUnexpected(ListEnvironmentDefinitionsByCatalog200Response | ListEnvironmentDefinitionsByCatalogDefaultResponse)
function isUnexpected(response: ListEnvironmentDefinitionsByCatalog200Response | ListEnvironmentDefinitionsByCatalogDefaultResponse): response
參數
傳回
response
isUnexpected(GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse)
function isUnexpected(response: GetEnvironmentDefinition200Response | GetEnvironmentDefinitionDefaultResponse): response
參數
傳回
response
isUnexpected(ListEnvironmentTypes200Response | ListEnvironmentTypesDefaultResponse)
function isUnexpected(response: ListEnvironmentTypes200Response | ListEnvironmentTypesDefaultResponse): response
參數
傳回
response
paginate<TResponse>(Client, TResponse, PagingOptions<TResponse>)
協助程式,從遵循 Autorest x-ms-pageable 擴充功能規格的初始回應分頁結果
function paginate<TResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>
參數
- client
- Client
用來傳送下一個頁面要求的用戶端
- initialResponse
-
TResponse
包含專案下一頁和目前頁面的初始回應
- options
-
PagingOptions<TResponse>
傳回
PagedAsyncIterableIterator<PaginateReturn<TResponse>>
- PagedAsyncIterableIterator 來反覆運算元素