GitHubWorkflowProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.devhub.fluent.models.GitHubWorkflowProfile

Implements

public final class GitHubWorkflowProfile
implements JsonSerializable<GitHubWorkflowProfile>

GitHub Workflow Profile.

Constructor Summary

Constructor Description
GitHubWorkflowProfile()

Creates an instance of GitHubWorkflowProfile class.

Method Summary

Modifier and Type Method and Description
Acr acr()

Get the acr property: Information on the azure container registry.

String aksResourceId()

Get the aksResourceId property: The Azure Kubernetes Cluster Resource the application will be deployed to.

AuthorizationStatus authStatus()

Get the authStatus property: Determines the authorization status of requests.

String branchName()

Get the branchName property: Repository Branch Name.

DeploymentProperties deploymentProperties()

Get the deploymentProperties property: The deploymentProperties property.

String dockerBuildContext()

Get the dockerBuildContext property: Path to Dockerfile Build Context within the repository.

String dockerfile()

Get the dockerfile property: Path to the Dockerfile within the repository.

static GitHubWorkflowProfile fromJson(JsonReader jsonReader)

Reads an instance of GitHubWorkflowProfile from the JsonReader.

WorkflowRun lastWorkflowRun()

Get the lastWorkflowRun property: The lastWorkflowRun property.

String namespace()

Get the namespace property: Kubernetes namespace the application is deployed to.

GitHubWorkflowProfileOidcCredentials oidcCredentials()

Get the oidcCredentials property: The fields needed for OIDC with GitHub.

PullRequestStatus prStatus()

Get the prStatus property: The status of the Pull Request submitted against the users repository.

String prUrl()

Get the prUrl property: The URL to the Pull Request submitted against the users repository.

Integer pullNumber()

Get the pullNumber property: The number associated with the submitted pull request.

String repositoryName()

Get the repositoryName property: Repository Name.

String repositoryOwner()

Get the repositoryOwner property: Repository Owner.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHubWorkflowProfile withAcr(Acr acr)

Set the acr property: Information on the azure container registry.

GitHubWorkflowProfile withAksResourceId(String aksResourceId)

Set the aksResourceId property: The Azure Kubernetes Cluster Resource the application will be deployed to.

GitHubWorkflowProfile withBranchName(String branchName)

Set the branchName property: Repository Branch Name.

GitHubWorkflowProfile withDeploymentProperties(DeploymentProperties deploymentProperties)

Set the deploymentProperties property: The deploymentProperties property.

GitHubWorkflowProfile withDockerBuildContext(String dockerBuildContext)

Set the dockerBuildContext property: Path to Dockerfile Build Context within the repository.

GitHubWorkflowProfile withDockerfile(String dockerfile)

Set the dockerfile property: Path to the Dockerfile within the repository.

GitHubWorkflowProfile withLastWorkflowRun(WorkflowRun lastWorkflowRun)

Set the lastWorkflowRun property: The lastWorkflowRun property.

GitHubWorkflowProfile withNamespace(String namespace)

Set the namespace property: Kubernetes namespace the application is deployed to.

GitHubWorkflowProfile withOidcCredentials(GitHubWorkflowProfileOidcCredentials oidcCredentials)

Set the oidcCredentials property: The fields needed for OIDC with GitHub.

GitHubWorkflowProfile withRepositoryName(String repositoryName)

Set the repositoryName property: Repository Name.

GitHubWorkflowProfile withRepositoryOwner(String repositoryOwner)

Set the repositoryOwner property: Repository Owner.

Methods inherited from java.lang.Object

Constructor Details

GitHubWorkflowProfile

public GitHubWorkflowProfile()

Creates an instance of GitHubWorkflowProfile class.

Method Details

acr

public Acr acr()

Get the acr property: Information on the azure container registry.

Returns:

the acr value.

aksResourceId

public String aksResourceId()

Get the aksResourceId property: The Azure Kubernetes Cluster Resource the application will be deployed to.

Returns:

the aksResourceId value.

authStatus

public AuthorizationStatus authStatus()

Get the authStatus property: Determines the authorization status of requests.

Returns:

the authStatus value.

branchName

public String branchName()

Get the branchName property: Repository Branch Name.

Returns:

the branchName value.

deploymentProperties

public DeploymentProperties deploymentProperties()

Get the deploymentProperties property: The deploymentProperties property.

Returns:

the deploymentProperties value.

dockerBuildContext

public String dockerBuildContext()

Get the dockerBuildContext property: Path to Dockerfile Build Context within the repository.

Returns:

the dockerBuildContext value.

dockerfile

public String dockerfile()

Get the dockerfile property: Path to the Dockerfile within the repository.

Returns:

the dockerfile value.

fromJson

public static GitHubWorkflowProfile fromJson(JsonReader jsonReader)

Reads an instance of GitHubWorkflowProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GitHubWorkflowProfile 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 GitHubWorkflowProfile.

lastWorkflowRun

public WorkflowRun lastWorkflowRun()

Get the lastWorkflowRun property: The lastWorkflowRun property.

Returns:

the lastWorkflowRun value.

namespace

public String namespace()

Get the namespace property: Kubernetes namespace the application is deployed to.

Returns:

the namespace value.

oidcCredentials

public GitHubWorkflowProfileOidcCredentials oidcCredentials()

Get the oidcCredentials property: The fields needed for OIDC with GitHub.

Returns:

the oidcCredentials value.

prStatus

public PullRequestStatus prStatus()

Get the prStatus property: The status of the Pull Request submitted against the users repository.

Returns:

the prStatus value.

prUrl

public String prUrl()

Get the prUrl property: The URL to the Pull Request submitted against the users repository.

Returns:

the prUrl value.

pullNumber

public Integer pullNumber()

Get the pullNumber property: The number associated with the submitted pull request.

Returns:

the pullNumber value.

repositoryName

public String repositoryName()

Get the repositoryName property: Repository Name.

Returns:

the repositoryName value.

repositoryOwner

public String repositoryOwner()

Get the repositoryOwner property: Repository Owner.

Returns:

the repositoryOwner value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAcr

public GitHubWorkflowProfile withAcr(Acr acr)

Set the acr property: Information on the azure container registry.

Parameters:

acr - the acr value to set.

Returns:

the GitHubWorkflowProfile object itself.

withAksResourceId

public GitHubWorkflowProfile withAksResourceId(String aksResourceId)

Set the aksResourceId property: The Azure Kubernetes Cluster Resource the application will be deployed to.

Parameters:

aksResourceId - the aksResourceId value to set.

Returns:

the GitHubWorkflowProfile object itself.

withBranchName

public GitHubWorkflowProfile withBranchName(String branchName)

Set the branchName property: Repository Branch Name.

Parameters:

branchName - the branchName value to set.

Returns:

the GitHubWorkflowProfile object itself.

withDeploymentProperties

public GitHubWorkflowProfile withDeploymentProperties(DeploymentProperties deploymentProperties)

Set the deploymentProperties property: The deploymentProperties property.

Parameters:

deploymentProperties - the deploymentProperties value to set.

Returns:

the GitHubWorkflowProfile object itself.

withDockerBuildContext

public GitHubWorkflowProfile withDockerBuildContext(String dockerBuildContext)

Set the dockerBuildContext property: Path to Dockerfile Build Context within the repository.

Parameters:

dockerBuildContext - the dockerBuildContext value to set.

Returns:

the GitHubWorkflowProfile object itself.

withDockerfile

public GitHubWorkflowProfile withDockerfile(String dockerfile)

Set the dockerfile property: Path to the Dockerfile within the repository.

Parameters:

dockerfile - the dockerfile value to set.

Returns:

the GitHubWorkflowProfile object itself.

withLastWorkflowRun

public GitHubWorkflowProfile withLastWorkflowRun(WorkflowRun lastWorkflowRun)

Set the lastWorkflowRun property: The lastWorkflowRun property.

Parameters:

lastWorkflowRun - the lastWorkflowRun value to set.

Returns:

the GitHubWorkflowProfile object itself.

withNamespace

public GitHubWorkflowProfile withNamespace(String namespace)

Set the namespace property: Kubernetes namespace the application is deployed to.

Parameters:

namespace - the namespace value to set.

Returns:

the GitHubWorkflowProfile object itself.

withOidcCredentials

public GitHubWorkflowProfile withOidcCredentials(GitHubWorkflowProfileOidcCredentials oidcCredentials)

Set the oidcCredentials property: The fields needed for OIDC with GitHub.

Parameters:

oidcCredentials - the oidcCredentials value to set.

Returns:

the GitHubWorkflowProfile object itself.

withRepositoryName

public GitHubWorkflowProfile withRepositoryName(String repositoryName)

Set the repositoryName property: Repository Name.

Parameters:

repositoryName - the repositoryName value to set.

Returns:

the GitHubWorkflowProfile object itself.

withRepositoryOwner

public GitHubWorkflowProfile withRepositoryOwner(String repositoryOwner)

Set the repositoryOwner property: Repository Owner.

Parameters:

repositoryOwner - the repositoryOwner value to set.

Returns:

the GitHubWorkflowProfile object itself.

Applies to