@azure-rest/developer-devcenter package
接口
类型别名
函数
函数详细信息
default(string, TokenCredential, ClientOptions)
初始化 AzureDeveloperDevCenterClient 的新实例
function default(endpoint: string, credentials: TokenCredential, options?: ClientOptions): AzureDeveloperDevCenterClient
参数
- endpoint
-
string
要运行的特定于 DevCenter 的 URI。
- credentials
- TokenCredential
唯一标识客户端凭据
- options
- ClientOptions
所有可选参数的参数
返回
getLongRunningPoller<TResult>(Client, CreateDevBoxDefaultResponse | CreateDevBox200Response | CreateDevBox201Response, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
生成 Poller 对象的帮助程序函数,以帮助轮询长时间运行的作。
function getLongRunningPoller<TResult>(client: Client, initialResponse: CreateDevBoxDefaultResponse | CreateDevBox200Response | CreateDevBox201Response, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
参数
- client
- Client
用于发送请求以获取其他页面的客户端。
- initialResponse
-
CreateDevBoxDefaultResponse | CreateDevBox200Response | CreateDevBox201Response
初始响应。
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
设置恢复状态或自定义轮询间隔的选项。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<TResult>, TResult>>
- 用于轮询作状态更新的轮询程序对象,并最终获取最终响应。
getLongRunningPoller<TResult>(Client, DeleteDevBoxDefaultResponse | DeleteDevBox202Response | DeleteDevBox204Response, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: DeleteDevBoxDefaultResponse | DeleteDevBox202Response | DeleteDevBox204Response, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
参数
- client
- Client
- initialResponse
-
DeleteDevBoxDefaultResponse | DeleteDevBox202Response | DeleteDevBox204Response
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, StartDevBoxDefaultResponse | StartDevBox202Response, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: StartDevBoxDefaultResponse | StartDevBox202Response, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
参数
- client
- Client
- initialResponse
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, StopDevBoxDefaultResponse | StopDevBox202Response, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: StopDevBoxDefaultResponse | StopDevBox202Response, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
参数
- client
- Client
- initialResponse
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, RestartDevBoxDefaultResponse | RestartDevBox202Response, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: RestartDevBoxDefaultResponse | RestartDevBox202Response, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
参数
- client
- Client
- initialResponse
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, CreateOrUpdateEnvironmentDefaultResponse | CreateOrUpdateEnvironment201Response, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: CreateOrUpdateEnvironmentDefaultResponse | CreateOrUpdateEnvironment201Response, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
参数
- client
- Client
- initialResponse
-
CreateOrUpdateEnvironmentDefaultResponse | CreateOrUpdateEnvironment201Response
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<TResult>, TResult>>
getLongRunningPoller<TResult>(Client, DeleteEnvironmentDefaultResponse | DeleteEnvironment202Response | DeleteEnvironment204Response, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
function getLongRunningPoller<TResult>(client: Client, initialResponse: DeleteEnvironmentDefaultResponse | DeleteEnvironment202Response | DeleteEnvironment204Response, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
参数
- client
- Client
- initialResponse
-
DeleteEnvironmentDefaultResponse | DeleteEnvironment202Response | DeleteEnvironment204Response
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
返回
Promise<@azure/core-lro.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(GetProjectOperationStatus200Response | GetProjectOperationStatusDefaultResponse)
function isUnexpected(response: GetProjectOperationStatus200Response | GetProjectOperationStatusDefaultResponse): 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(ListSchedules200Response | ListSchedulesDefaultResponse)
function isUnexpected(response: ListSchedules200Response | ListSchedulesDefaultResponse): response
参数
返回
response
isUnexpected(GetSchedule200Response | GetScheduleDefaultResponse)
function isUnexpected(response: GetSchedule200Response | GetScheduleDefaultResponse): response
参数
- response
返回
response
isUnexpected(ListDevBoxes200Response | ListDevBoxesDefaultResponse)
function isUnexpected(response: ListDevBoxes200Response | ListDevBoxesDefaultResponse): response
参数
返回
response
isUnexpected(GetDevBox200Response | GetDevBoxDefaultResponse)
function isUnexpected(response: GetDevBox200Response | GetDevBoxDefaultResponse): response
参数
- response
返回
response
isUnexpected(CreateDevBoxLogicalResponse | CreateDevBoxDefaultResponse | CreateDevBox200Response | CreateDevBox201Response)
function isUnexpected(response: CreateDevBoxLogicalResponse | CreateDevBoxDefaultResponse | CreateDevBox200Response | CreateDevBox201Response): response
参数
返回
response
isUnexpected(DeleteDevBoxLogicalResponse | DeleteDevBoxDefaultResponse | DeleteDevBox202Response | DeleteDevBox204Response)
function isUnexpected(response: DeleteDevBoxLogicalResponse | DeleteDevBoxDefaultResponse | DeleteDevBox202Response | DeleteDevBox204Response): response
参数
返回
response
isUnexpected(StartDevBoxLogicalResponse | StartDevBoxDefaultResponse | StartDevBox202Response)
function isUnexpected(response: StartDevBoxLogicalResponse | StartDevBoxDefaultResponse | StartDevBox202Response): response
参数
返回
response
isUnexpected(StopDevBoxLogicalResponse | StopDevBoxDefaultResponse | StopDevBox202Response)
function isUnexpected(response: StopDevBoxLogicalResponse | StopDevBoxDefaultResponse | StopDevBox202Response): response
参数
返回
response
isUnexpected(RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse | RestartDevBox202Response)
function isUnexpected(response: RestartDevBoxLogicalResponse | RestartDevBoxDefaultResponse | RestartDevBox202Response): response
参数
返回
response
isUnexpected(GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse)
function isUnexpected(response: GetRemoteConnection200Response | GetRemoteConnectionDefaultResponse): response
参数
返回
response
isUnexpected(ListDevBoxActions200Response | ListDevBoxActionsDefaultResponse)
function isUnexpected(response: ListDevBoxActions200Response | ListDevBoxActionsDefaultResponse): response
参数
返回
response
isUnexpected(GetDevBoxAction200Response | GetDevBoxActionDefaultResponse)
function isUnexpected(response: GetDevBoxAction200Response | GetDevBoxActionDefaultResponse): 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(DelayAllActions200Response | DelayAllActionsDefaultResponse)
function isUnexpected(response: DelayAllActions200Response | DelayAllActionsDefaultResponse): response
参数
返回
response
isUnexpected(ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse)
function isUnexpected(response: ListAllDevBoxes200Response | ListAllDevBoxesDefaultResponse): response
参数
返回
response
isUnexpected(ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse)
function isUnexpected(response: ListAllDevBoxesByUser200Response | ListAllDevBoxesByUserDefaultResponse): response
参数
返回
response
isUnexpected(ListAllEnvironments200Response | ListAllEnvironmentsDefaultResponse)
function isUnexpected(response: ListAllEnvironments200Response | ListAllEnvironmentsDefaultResponse): response
参数
返回
response
isUnexpected(ListEnvironments200Response | ListEnvironmentsDefaultResponse)
function isUnexpected(response: ListEnvironments200Response | ListEnvironmentsDefaultResponse): response
参数
返回
response
isUnexpected(GetEnvironment200Response | GetEnvironmentDefaultResponse)
function isUnexpected(response: GetEnvironment200Response | GetEnvironmentDefaultResponse): response
参数
返回
response
isUnexpected(CreateOrUpdateEnvironmentLogicalResponse | CreateOrUpdateEnvironmentDefaultResponse | CreateOrUpdateEnvironment201Response)
function isUnexpected(response: CreateOrUpdateEnvironmentLogicalResponse | CreateOrUpdateEnvironmentDefaultResponse | CreateOrUpdateEnvironment201Response): response
参数
返回
response
isUnexpected(DeleteEnvironmentLogicalResponse | DeleteEnvironmentDefaultResponse | DeleteEnvironment202Response | DeleteEnvironment204Response)
function isUnexpected(response: DeleteEnvironmentLogicalResponse | DeleteEnvironmentDefaultResponse | DeleteEnvironment202Response | DeleteEnvironment204Response): response
参数
返回
response
isUnexpected(ListCatalogs200Response | ListCatalogsDefaultResponse)
function isUnexpected(response: ListCatalogs200Response | ListCatalogsDefaultResponse): response
参数
返回
response
isUnexpected(GetCatalog200Response | GetCatalogDefaultResponse)
function isUnexpected(response: GetCatalog200Response | GetCatalogDefaultResponse): response
参数
- response
返回
response
isUnexpected(ListEnvironmentDefinitions200Response | ListEnvironmentDefinitionsDefaultResponse)
function isUnexpected(response: ListEnvironmentDefinitions200Response | ListEnvironmentDefinitionsDefaultResponse): 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
包含 nextLink 和元素当前页的初始响应
- options
-
PagingOptions<TResponse>
返回
PagedAsyncIterableIterator<PaginateReturn<TResponse>>
- PagedAsyncIterableIterator 循环访问元素