class ProjectsGithubEnterpriseConfigs extends Resource (View source)

The "githubEnterpriseConfigs" collection of methods.

Typical usage is:

 $cloudbuildService = new Google\Service\CloudBuild(...);
 $githubEnterpriseConfigs = $cloudbuildService->projects_githubEnterpriseConfigs;

Methods

create(string $parent, GitHubEnterpriseConfig $postBody, array $optParams = [])

Create an association between a GCP project and a GitHub Enterprise server.

delete(string $name, array $optParams = [])

Delete an association between a GCP project and a GitHub Enterprise server.

get(string $name, array $optParams = [])

Retrieve a GitHubEnterpriseConfig. (githubEnterpriseConfigs.get)

listProjectsGithubEnterpriseConfigs(string $parent, array $optParams = [])

List all GitHubEnterpriseConfigs for a given project.

patch(string $name, GitHubEnterpriseConfig $postBody, array $optParams = [])

Update an association between a GCP project and a GitHub Enterprise server.

Details

Operation create(string $parent, GitHubEnterpriseConfig $postBody, array $optParams = [])

Create an association between a GCP project and a GitHub Enterprise server.

(githubEnterpriseConfigs.create)

Parameters

string $parent

Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}

GitHubEnterpriseConfig $postBody
array $optParams

Optional parameters.

Return Value

Operation

Operation delete(string $name, array $optParams = [])

Delete an association between a GCP project and a GitHub Enterprise server.

(githubEnterpriseConfigs.delete)

Parameters

string $name

This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/locations/{$location_id }/githubEnterpriseConfigs/{$config_id}"

array $optParams

Optional parameters.

Return Value

Operation

GitHubEnterpriseConfig get(string $name, array $optParams = [])

Retrieve a GitHubEnterpriseConfig. (githubEnterpriseConfigs.get)

Parameters

string $name

This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/locations/{$location_id }/githubEnterpriseConfigs/{$config_id}"

array $optParams

Optional parameters.

Return Value

GitHubEnterpriseConfig

ListGithubEnterpriseConfigsResponse listProjectsGithubEnterpriseConfigs(string $parent, array $optParams = [])

List all GitHubEnterpriseConfigs for a given project.

(githubEnterpriseConfigs.listProjectsGithubEnterpriseConfigs)

Parameters

string $parent

Name of the parent project. For example: projects/{$project_number} or projects/{$project_id}

array $optParams

Optional parameters.

Return Value

ListGithubEnterpriseConfigsResponse

Operation patch(string $name, GitHubEnterpriseConfig $postBody, array $optParams = [])

Update an association between a GCP project and a GitHub Enterprise server.

(githubEnterpriseConfigs.patch)

Parameters

string $name

Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$locat ion_id}/githubEnterpriseConfigs/{$config_id}"

GitHubEnterpriseConfig $postBody
array $optParams

Optional parameters.

Return Value

Operation