共用方式為


DeveloperHubServiceClient class

Extends

建構函式

DeveloperHubServiceClient(TokenCredential, string, DeveloperHubServiceClientOptionalParams)

初始化 DeveloperHubServiceClient 類別的新實例。

屬性

$host
apiVersion
operations
subscriptionId
workflowOperations

繼承的屬性

pipeline

此客戶端用來提出要求的管線

方法

generatePreviewArtifacts(string, ArtifactGenerationProperties, GeneratePreviewArtifactsOptionalParams)

產生預覽 dockerfile 和指令清單。

gitHubOAuth(string, GitHubOAuthOptionalParams)

取得用來向開發人員中樞 GitHub 應用程式驗證使用者的 GitHubOAuth 資訊。

gitHubOAuthCallback(string, string, string, GitHubOAuthCallbackOptionalParams)

使用 GitHub App 進行驗證之後要叫用的回呼 URL,讓服務存放 OAuth 令牌。

listGitHubOAuth(string, ListGitHubOAuthOptionalParams)

使用 GitHub App 進行驗證之後要叫用的回呼 URL,讓服務存放 OAuth 令牌。

繼承的方法

sendOperationRequest<T>(OperationArguments, OperationSpec)

傳送使用提供的 OperationSpec 填入的 HTTP 要求。

sendRequest(PipelineRequest)

傳送提供的 HTTPRequest。

建構函式詳細資料

DeveloperHubServiceClient(TokenCredential, string, DeveloperHubServiceClientOptionalParams)

初始化 DeveloperHubServiceClient 類別的新實例。

new DeveloperHubServiceClient(credentials: TokenCredential, subscriptionId: string, options?: DeveloperHubServiceClientOptionalParams)

參數

credentials
TokenCredential

可唯一識別用戶端訂用帳戶的訂用帳戶認證。

subscriptionId

string

目標訂用帳戶的標識碼。

屬性詳細資料

$host

$host: string

屬性值

string

apiVersion

apiVersion: string

屬性值

string

operations

operations: Operations

屬性值

subscriptionId

subscriptionId: string

屬性值

string

workflowOperations

workflowOperations: WorkflowOperations

屬性值

繼承的屬性詳細資料

pipeline

此客戶端用來提出要求的管線

pipeline: Pipeline

屬性值

繼承自 coreClient.ServiceClient.pipeline

方法詳細資料

generatePreviewArtifacts(string, ArtifactGenerationProperties, GeneratePreviewArtifactsOptionalParams)

產生預覽 dockerfile 和指令清單。

function generatePreviewArtifacts(location: string, parameters: ArtifactGenerationProperties, options?: GeneratePreviewArtifactsOptionalParams): Promise<GeneratePreviewArtifactsResponse>

參數

location

string

Azure 區域的名稱。

parameters
ArtifactGenerationProperties

用來產生成品的屬性,例如 Dockerfiles 和指令清單。

options
GeneratePreviewArtifactsOptionalParams

選項參數。

傳回

gitHubOAuth(string, GitHubOAuthOptionalParams)

取得用來向開發人員中樞 GitHub 應用程式驗證使用者的 GitHubOAuth 資訊。

function gitHubOAuth(location: string, options?: GitHubOAuthOptionalParams): Promise<GitHubOAuthInfoResponse>

參數

location

string

Azure 區域的名稱。

options
GitHubOAuthOptionalParams

選項參數。

傳回

gitHubOAuthCallback(string, string, string, GitHubOAuthCallbackOptionalParams)

使用 GitHub App 進行驗證之後要叫用的回呼 URL,讓服務存放 OAuth 令牌。

function gitHubOAuthCallback(location: string, code: string, state: string, options?: GitHubOAuthCallbackOptionalParams): Promise<GitHubOAuthResponse>

參數

location

string

Azure 區域的名稱。

code

string

驗證 GitHub 應用程式的程式代碼回應。

state

string

驗證 GitHub 應用程式的狀態回應。

options
GitHubOAuthCallbackOptionalParams

選項參數。

傳回

listGitHubOAuth(string, ListGitHubOAuthOptionalParams)

使用 GitHub App 進行驗證之後要叫用的回呼 URL,讓服務存放 OAuth 令牌。

function listGitHubOAuth(location: string, options?: ListGitHubOAuthOptionalParams): Promise<GitHubOAuthListResponse>

參數

location

string

Azure 區域的名稱。

options
ListGitHubOAuthOptionalParams

選項參數。

傳回

繼承的方法的詳細資料

sendOperationRequest<T>(OperationArguments, OperationSpec)

傳送使用提供的 OperationSpec 填入的 HTTP 要求。

function sendOperationRequest<T>(operationArguments: OperationArguments, operationSpec: OperationSpec): Promise<T>

參數

operationArguments
OperationArguments

HTTP 要求樣板化值的自變數將會從 中填入。

operationSpec
OperationSpec

要用來填入 HTTPRequest 的 OperationSpec。

傳回

Promise<T>

繼承自 coreClient.ServiceClient.sendOperationRequest

sendRequest(PipelineRequest)

傳送提供的 HTTPRequest。

function sendRequest(request: PipelineRequest): Promise<PipelineResponse>

參數

request
PipelineRequest

傳回

Promise<PipelineResponse>

繼承自 coreClient.ServiceClient.sendRequest