Class ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource
The "attachments" collection of methods.
Inherited Members
Namespace: Google.Apis.ArtifactRegistry.v1
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource
Constructors
AttachmentsResource(IClientService)
Constructs a new resource.
Declaration
public AttachmentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Attachment, string)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource.CreateRequest Create(Attachment body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Attachment | body | The body of the request. |
string | parent | Required. The name of the parent resource where the attachment will be created. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource.CreateRequest |
Delete(string)
Deletes an attachment. The returned Operation will finish once the attachments has been deleted.
It will not have any Operation metadata and will return a google.protobuf.Empty
response.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the attachment to delete. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource.DeleteRequest |
Get(string)
Gets an attachment.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the attachment to retrieve. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource.GetRequest |
List(string)
Lists attachments.
Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the parent resource whose attachments will be listed. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.RepositoriesResource.AttachmentsResource.ListRequest |