UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

51 lines (50 loc) 2.1 kB
import * as pulumi from "@pulumi/pulumi"; /** * URL used to authorize the Developer Hub GitHub App * * Uses Azure REST API version 2023-08-01. * * Other available API versions: 2022-10-11-preview, 2024-05-01-preview, 2024-08-01-preview, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native devhub [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getGitHubOAuth(args: GetGitHubOAuthArgs, opts?: pulumi.InvokeOptions): Promise<GetGitHubOAuthResult>; export interface GetGitHubOAuthArgs { /** * The name of Azure region. */ location: string; /** * The URL the client will redirect to on successful authentication. If empty, no redirect will occur. */ redirectUrl?: string; } /** * URL used to authorize the Developer Hub GitHub App */ export interface GetGitHubOAuthResult { /** * URL for authorizing the Developer Hub GitHub App */ readonly authURL?: string; /** * OAuth token used to make calls to GitHub */ readonly token?: string; } /** * URL used to authorize the Developer Hub GitHub App * * Uses Azure REST API version 2023-08-01. * * Other available API versions: 2022-10-11-preview, 2024-05-01-preview, 2024-08-01-preview, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native devhub [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getGitHubOAuthOutput(args: GetGitHubOAuthOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGitHubOAuthResult>; export interface GetGitHubOAuthOutputArgs { /** * The name of Azure region. */ location: pulumi.Input<string>; /** * The URL the client will redirect to on successful authentication. If empty, no redirect will occur. */ redirectUrl?: pulumi.Input<string>; }