GitHubWorkflowProfileOidcCredentials Class

  • java.lang.Object
    • com.azure.resourcemanager.devhub.models.GitHubWorkflowProfileOidcCredentials

Implements

public final class GitHubWorkflowProfileOidcCredentials
implements JsonSerializable<GitHubWorkflowProfileOidcCredentials>

The fields needed for OIDC with GitHub.

Constructor Summary

Constructor Description
GitHubWorkflowProfileOidcCredentials()

Creates an instance of GitHubWorkflowProfileOidcCredentials class.

Method Summary

Modifier and Type Method and Description
String azureClientId()

Get the azureClientId property: Azure Application Client ID.

String azureTenantId()

Get the azureTenantId property: Azure Directory (tenant) ID.

static GitHubWorkflowProfileOidcCredentials fromJson(JsonReader jsonReader)

Reads an instance of GitHubWorkflowProfileOidcCredentials from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHubWorkflowProfileOidcCredentials withAzureClientId(String azureClientId)

Set the azureClientId property: Azure Application Client ID.

GitHubWorkflowProfileOidcCredentials withAzureTenantId(String azureTenantId)

Set the azureTenantId property: Azure Directory (tenant) ID.

Methods inherited from java.lang.Object

Constructor Details

GitHubWorkflowProfileOidcCredentials

public GitHubWorkflowProfileOidcCredentials()

Creates an instance of GitHubWorkflowProfileOidcCredentials class.

Method Details

azureClientId

public String azureClientId()

Get the azureClientId property: Azure Application Client ID.

Returns:

the azureClientId value.

azureTenantId

public String azureTenantId()

Get the azureTenantId property: Azure Directory (tenant) ID.

Returns:

the azureTenantId value.

fromJson

public static GitHubWorkflowProfileOidcCredentials fromJson(JsonReader jsonReader)

Reads an instance of GitHubWorkflowProfileOidcCredentials from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GitHubWorkflowProfileOidcCredentials if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GitHubWorkflowProfileOidcCredentials.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureClientId

public GitHubWorkflowProfileOidcCredentials withAzureClientId(String azureClientId)

Set the azureClientId property: Azure Application Client ID.

Parameters:

azureClientId - the azureClientId value to set.

Returns:

the GitHubWorkflowProfileOidcCredentials object itself.

withAzureTenantId

public GitHubWorkflowProfileOidcCredentials withAzureTenantId(String azureTenantId)

Set the azureTenantId property: Azure Directory (tenant) ID.

Parameters:

azureTenantId - the azureTenantId value to set.

Returns:

the GitHubWorkflowProfileOidcCredentials object itself.

Applies to