Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.RepositoriesResource.BranchRulesResource

The "branchRules" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.RepositoriesResource.BranchRulesResource
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.BranchRulesResource

Constructors

BranchRulesResource(IClientService)

Constructs a new resource.

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

Methods

Create(BranchRule, string)

CreateBranchRule creates a branch rule in a given repository.

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

The body of the request.

string parent

null

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

Delete(string)

DeleteBranchRule deletes a branch rule.

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

null

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

Get(string)

GetBranchRule gets a branch rule.

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

Required. Name of the repository to retrieve. The format is projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}.

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

List(string)

ListBranchRules lists branch rules in a given repository.

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

null

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

Patch(BranchRule, string)

UpdateBranchRule updates a branch rule.

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

The body of the request.

string name

Optional. A unique identifier for a BranchRule. The name should be of the format: projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}

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