DeveloperHubServiceClient class
- Extends
Constructors
Developer |
Initializes a new instance of the DeveloperHubServiceClient class. |
Properties
$host | |
api |
|
operations | |
subscription |
|
workflow |
Inherited Properties
pipeline | The pipeline used by this client to make requests |
Methods
generate |
Generate preview dockerfile and manifests. |
git |
Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App. |
git |
Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token. |
list |
Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token. |
Inherited Methods
send |
Send an HTTP request that is populated using the provided OperationSpec. |
send |
Send the provided httpRequest. |
Constructor Details
DeveloperHubServiceClient(TokenCredential, string, DeveloperHubServiceClientOptionalParams)
Initializes a new instance of the DeveloperHubServiceClient class.
new DeveloperHubServiceClient(credentials: TokenCredential, subscriptionId: string, options?: DeveloperHubServiceClientOptionalParams)
Parameters
- credentials
- TokenCredential
Subscription credentials which uniquely identify client subscription.
- subscriptionId
-
string
The ID of the target subscription.
The parameter options
Property Details
$host
$host: string
Property Value
string
apiVersion
apiVersion: string
Property Value
string
operations
subscriptionId
subscriptionId: string
Property Value
string
workflowOperations
Inherited Property Details
pipeline
The pipeline used by this client to make requests
pipeline: Pipeline
Property Value
Inherited From coreClient.ServiceClient.pipeline
Method Details
generatePreviewArtifacts(string, ArtifactGenerationProperties, GeneratePreviewArtifactsOptionalParams)
Generate preview dockerfile and manifests.
function generatePreviewArtifacts(location: string, parameters: ArtifactGenerationProperties, options?: GeneratePreviewArtifactsOptionalParams): Promise<GeneratePreviewArtifactsResponse>
Parameters
- location
-
string
The name of Azure region.
- parameters
- ArtifactGenerationProperties
Properties used for generating artifacts such as Dockerfiles and manifests.
The options parameters.
Returns
Promise<GeneratePreviewArtifactsResponse>
gitHubOAuth(string, GitHubOAuthOptionalParams)
Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.
function gitHubOAuth(location: string, options?: GitHubOAuthOptionalParams): Promise<GitHubOAuthInfoResponse>
Parameters
- location
-
string
The name of Azure region.
- options
- GitHubOAuthOptionalParams
The options parameters.
Returns
Promise<GitHubOAuthInfoResponse>
gitHubOAuthCallback(string, string, string, GitHubOAuthCallbackOptionalParams)
Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
function gitHubOAuthCallback(location: string, code: string, state: string, options?: GitHubOAuthCallbackOptionalParams): Promise<GitHubOAuthResponse>
Parameters
- location
-
string
The name of Azure region.
- code
-
string
The code response from authenticating the GitHub App.
- state
-
string
The state response from authenticating the GitHub App.
The options parameters.
Returns
Promise<GitHubOAuthResponse>
listGitHubOAuth(string, ListGitHubOAuthOptionalParams)
Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
function listGitHubOAuth(location: string, options?: ListGitHubOAuthOptionalParams): Promise<GitHubOAuthListResponse>
Parameters
- location
-
string
The name of Azure region.
- options
- ListGitHubOAuthOptionalParams
The options parameters.
Returns
Promise<GitHubOAuthListResponse>
Inherited Method Details
sendOperationRequest<T>(OperationArguments, OperationSpec)
Send an HTTP request that is populated using the provided OperationSpec.
function sendOperationRequest<T>(operationArguments: OperationArguments, operationSpec: OperationSpec): Promise<T>
Parameters
- operationArguments
- OperationArguments
The arguments that the HTTP request's templated values will be populated from.
- operationSpec
- OperationSpec
The OperationSpec to use to populate the httpRequest.
Returns
Promise<T>
Inherited From coreClient.ServiceClient.sendOperationRequest
sendRequest(PipelineRequest)
Send the provided httpRequest.
function sendRequest(request: PipelineRequest): Promise<PipelineResponse>
Parameters
- request
- PipelineRequest
Returns
Promise<PipelineResponse>
Inherited From coreClient.ServiceClient.sendRequest
Azure SDK for JavaScript