Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.RepositoriesResource.HooksResource

The "hooks" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.RepositoriesResource.HooksResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.SecureSourceManager.v1
Assembly: Google.Apis.SecureSourceManager.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.HooksResource

Constructors

HooksResource(IClientService)

Constructs a new resource.

Declaration
public HooksResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(Hook, string)

Creates a new hook in a given repository.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.CreateRequest Create(Hook body, string parent)
Parameters
Type Name Description
Hook body

The body of the request.

string parent

Required. The repository in which to create the hook. Values are of the form projects/{project_number}/locations/{location_id}/repositories/{repository_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.CreateRequest

Delete(string)

Deletes a Hook.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. Name of the hook to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.DeleteRequest

Get(string)

Gets metadata of a hook.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. Name of the hook to retrieve. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.GetRequest

List(string)

Lists hooks in a given repository.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. Parent value for ListHooksRequest.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.ListRequest

Patch(Hook, string)

Updates the metadata of a hook.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.PatchRequest Patch(Hook body, string name)
Parameters
Type Name Description
Hook body

The body of the request.

string name

Identifier. A unique identifier for a Hook. The name should be of the format: projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.PatchRequest
In this article
Back to top Generated by DocFX