Class ProjectsResource.LocationsResource.RepositoriesResource.RulesResource
The "rules" collection of methods.
Inherited Members
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:
|
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:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.RepositoriesResource.RulesResource.PatchRequest |