Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.RepositoriesResource.RulesResource

The "rules" collection of methods.

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

Constructors

RulesResource(IClientService)

Constructs a new resource.

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

Methods

Create(GoogleDevtoolsArtifactregistryV1Rule, string)

Creates a rule.

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

The body of the request.

string parent

Required. The name of the parent resource where the rule will be created.

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

Delete(string)

Deletes a rule.

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

Required. The name of the rule to delete.

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

Get(string)

Gets a rule.

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

Required. The name of the rule to retrieve.

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

List(string)

Lists rules.

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

Required. The name of the parent repository whose rules will be listed. For example: projects/p1/locations/us-central1/repositories/repo1.

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

Patch(GoogleDevtoolsArtifactregistryV1Rule, string)

Updates a rule.

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

The body of the request.

string name

The name of the rule, for example: projects/p1/locations/us-central1/repositories/repo1/rules/rule1.

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