Artifact Registry API v1 - Package cloud.google.com/go/artifactregistry/apiv1 (v1.17.2) Stay organized with collections Save and categorize content based on your preferences.
Package artifactregistry is an auto-generated package for theArtifact Registry API.
Store and manage build artifacts in a scalable and integrated servicebuilt on Google infrastructure.
General documentation
For information that is relevant for all client libraries please referencehttps://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on thispage includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage
To get started with this package, create a client.
// go get cloud.google.com/go/artifactregistry/apiv1@latestctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed.The methods of Client are safe for concurrent use by multiple goroutines.The returned client must be Closed when it is done being used.
Using the Client
The following is an example of making an API call with the newly created client, mentioned above.
req:=&artifactregistrypb.BatchDeleteVersionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#BatchDeleteVersionsRequest.}op,err:=c.BatchDeleteVersions(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}
Use of Context
The ctx passed to NewClient is used for authentication requests andfor creating the underlying connection, but is not used for subsequent calls.Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Functions
func DefaultAuthScopes
funcDefaultAuthScopes()[]stringDefaultAuthScopes reports the default set of authentication scopes to use with this package.
AttachmentIterator
typeAttachmentIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.Attachment,nextPageTokenstring,errerror)// contains filtered or unexported fields}AttachmentIterator manages a stream of *artifactregistrypb.Attachment.
func (*AttachmentIterator) All
func(it*AttachmentIterator)All()iter.Seq2[*artifactregistrypb.Attachment,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*AttachmentIterator) Next
func(it*AttachmentIterator)Next()(*artifactregistrypb.Attachment,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*AttachmentIterator) PageInfo
func(it*AttachmentIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
BatchDeleteVersionsOperation
typeBatchDeleteVersionsOperationstruct{// contains filtered or unexported fields}BatchDeleteVersionsOperation manages a long-running operation from BatchDeleteVersions.
func (*BatchDeleteVersionsOperation) Done
func(op*BatchDeleteVersionsOperation)Done()boolDone reports whether the long-running operation has completed.
func (*BatchDeleteVersionsOperation) Metadata
func(op*BatchDeleteVersionsOperation)Metadata()(*artifactregistrypb.BatchDeleteVersionsMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*BatchDeleteVersionsOperation) Name
func(op*BatchDeleteVersionsOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*BatchDeleteVersionsOperation) Poll
func(op*BatchDeleteVersionsOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*BatchDeleteVersionsOperation) Wait
func(op*BatchDeleteVersionsOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CallOptions
typeCallOptionsstruct{ListDockerImages[]gax.CallOptionGetDockerImage[]gax.CallOptionListMavenArtifacts[]gax.CallOptionGetMavenArtifact[]gax.CallOptionListNpmPackages[]gax.CallOptionGetNpmPackage[]gax.CallOptionListPythonPackages[]gax.CallOptionGetPythonPackage[]gax.CallOptionImportAptArtifacts[]gax.CallOptionImportYumArtifacts[]gax.CallOptionListRepositories[]gax.CallOptionGetRepository[]gax.CallOptionCreateRepository[]gax.CallOptionUpdateRepository[]gax.CallOptionDeleteRepository[]gax.CallOptionListPackages[]gax.CallOptionGetPackage[]gax.CallOptionDeletePackage[]gax.CallOptionListVersions[]gax.CallOptionGetVersion[]gax.CallOptionDeleteVersion[]gax.CallOptionBatchDeleteVersions[]gax.CallOptionUpdateVersion[]gax.CallOptionListFiles[]gax.CallOptionGetFile[]gax.CallOptionDeleteFile[]gax.CallOptionUpdateFile[]gax.CallOptionListTags[]gax.CallOptionGetTag[]gax.CallOptionCreateTag[]gax.CallOptionUpdateTag[]gax.CallOptionDeleteTag[]gax.CallOptionCreateRule[]gax.CallOptionListRules[]gax.CallOptionGetRule[]gax.CallOptionUpdateRule[]gax.CallOptionDeleteRule[]gax.CallOptionSetIamPolicy[]gax.CallOptionGetIamPolicy[]gax.CallOptionTestIamPermissions[]gax.CallOptionGetProjectSettings[]gax.CallOptionUpdateProjectSettings[]gax.CallOptionGetVPCSCConfig[]gax.CallOptionUpdateVPCSCConfig[]gax.CallOptionUpdatePackage[]gax.CallOptionListAttachments[]gax.CallOptionGetAttachment[]gax.CallOptionCreateAttachment[]gax.CallOptionDeleteAttachment[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionGetOperation[]gax.CallOption}CallOptions contains the retry settings for each method of Client.
Client
typeClientstruct{// The call options for this service.CallOptions*CallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}Client is a client for interacting with Artifact Registry API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
The Artifact Registry API service.
Artifact Registry is an artifact management system for storing artifactsfrom different package management systems.
The resources managed by this API are:
Repositories, which group packages and their data.Packages, which group versions and their tags.Versions, which are specific forms of a package.Tags, which represent alternative names for versions.Files, which contain content and are optionally associated with a Packageor Version.func NewClient
NewClient creates a new artifact registry client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
The Artifact Registry API service.
Artifact Registry is an artifact management system for storing artifactsfrom different package management systems.
The resources managed by this API are:
Repositories, which group packages and their data.Packages, which group versions and their tags.Versions, which are specific forms of a package.Tags, which represent alternative names for versions.Files, which contain content and are optionally associated with a Packageor Version.Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewRESTClient
NewRESTClient creates a new artifact registry rest client.
The Artifact Registry API service.
Artifact Registry is an artifact management system for storing artifactsfrom different package management systems.
The resources managed by this API are:
Repositories, which group packages and their data.Packages, which group versions and their tags.Versions, which are specific forms of a package.Tags, which represent alternative names for versions.Files, which contain content and are optionally associated with a Packageor Version.Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*Client) BatchDeleteVersions
func(c*Client)BatchDeleteVersions(ctxcontext.Context,req*artifactregistrypb.BatchDeleteVersionsRequest,opts...gax.CallOption)(*BatchDeleteVersionsOperation,error)BatchDeleteVersions deletes multiple versions across a repository. The returned operation willcomplete once the versions have been deleted.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.BatchDeleteVersionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#BatchDeleteVersionsRequest.}op,err:=c.BatchDeleteVersions(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) BatchDeleteVersionsOperation
func(c*Client)BatchDeleteVersionsOperation(namestring)*BatchDeleteVersionsOperationBatchDeleteVersionsOperation returns a new BatchDeleteVersionsOperation from a given name.The name must be that of a previously created BatchDeleteVersionsOperation, possibly from a different process.
func (*Client) Close
Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*Client) Connection (deprecated)
func(c*Client)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*Client) CreateAttachment
func(c*Client)CreateAttachment(ctxcontext.Context,req*artifactregistrypb.CreateAttachmentRequest,opts...gax.CallOption)(*CreateAttachmentOperation,error)CreateAttachment creates an attachment. The returned Operation will finish once theattachment has been created. Its response will be the created attachment.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.CreateAttachmentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#CreateAttachmentRequest.}op,err:=c.CreateAttachment(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateAttachmentOperation
func(c*Client)CreateAttachmentOperation(namestring)*CreateAttachmentOperationCreateAttachmentOperation returns a new CreateAttachmentOperation from a given name.The name must be that of a previously created CreateAttachmentOperation, possibly from a different process.
func (*Client) CreateRepository
func(c*Client)CreateRepository(ctxcontext.Context,req*artifactregistrypb.CreateRepositoryRequest,opts...gax.CallOption)(*CreateRepositoryOperation,error)CreateRepository creates a repository. The returned Operation will finish once therepository has been created. Its response will be the created Repository.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.CreateRepositoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#CreateRepositoryRequest.}op,err:=c.CreateRepository(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateRepositoryOperation
func(c*Client)CreateRepositoryOperation(namestring)*CreateRepositoryOperationCreateRepositoryOperation returns a new CreateRepositoryOperation from a given name.The name must be that of a previously created CreateRepositoryOperation, possibly from a different process.
func (*Client) CreateRule
func(c*Client)CreateRule(ctxcontext.Context,req*artifactregistrypb.CreateRuleRequest,opts...gax.CallOption)(*artifactregistrypb.Rule,error)CreateRule creates a rule.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.CreateRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#CreateRuleRequest.}resp,err:=c.CreateRule(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateTag
func(c*Client)CreateTag(ctxcontext.Context,req*artifactregistrypb.CreateTagRequest,opts...gax.CallOption)(*artifactregistrypb.Tag,error)CreateTag creates a tag.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.CreateTagRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#CreateTagRequest.}resp,err:=c.CreateTag(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) DeleteAttachment
func(c*Client)DeleteAttachment(ctxcontext.Context,req*artifactregistrypb.DeleteAttachmentRequest,opts...gax.CallOption)(*DeleteAttachmentOperation,error)DeleteAttachment deletes an attachment. The returned Operation willfinish once the attachments has been deleted. It will not have anyOperation metadata and will return a google.protobuf.Empty response.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.DeleteAttachmentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#DeleteAttachmentRequest.}op,err:=c.DeleteAttachment(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteAttachmentOperation
func(c*Client)DeleteAttachmentOperation(namestring)*DeleteAttachmentOperationDeleteAttachmentOperation returns a new DeleteAttachmentOperation from a given name.The name must be that of a previously created DeleteAttachmentOperation, possibly from a different process.
func (*Client) DeleteFile
func(c*Client)DeleteFile(ctxcontext.Context,req*artifactregistrypb.DeleteFileRequest,opts...gax.CallOption)(*DeleteFileOperation,error)DeleteFile deletes a file and all of its content. It is only allowed on genericrepositories. The returned operation will complete once the file has beendeleted.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.DeleteFileRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#DeleteFileRequest.}op,err:=c.DeleteFile(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteFileOperation
func(c*Client)DeleteFileOperation(namestring)*DeleteFileOperationDeleteFileOperation returns a new DeleteFileOperation from a given name.The name must be that of a previously created DeleteFileOperation, possibly from a different process.
func (*Client) DeletePackage
func(c*Client)DeletePackage(ctxcontext.Context,req*artifactregistrypb.DeletePackageRequest,opts...gax.CallOption)(*DeletePackageOperation,error)DeletePackage deletes a package and all of its versions and tags. The returned operationwill complete once the package has been deleted.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.DeletePackageRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#DeletePackageRequest.}op,err:=c.DeletePackage(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeletePackageOperation
func(c*Client)DeletePackageOperation(namestring)*DeletePackageOperationDeletePackageOperation returns a new DeletePackageOperation from a given name.The name must be that of a previously created DeletePackageOperation, possibly from a different process.
func (*Client) DeleteRepository
func(c*Client)DeleteRepository(ctxcontext.Context,req*artifactregistrypb.DeleteRepositoryRequest,opts...gax.CallOption)(*DeleteRepositoryOperation,error)DeleteRepository deletes a repository and all of its contents. The returned Operation willfinish once the repository has been deleted. It will not have any Operationmetadata and will return a google.protobuf.Empty response.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.DeleteRepositoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#DeleteRepositoryRequest.}op,err:=c.DeleteRepository(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteRepositoryOperation
func(c*Client)DeleteRepositoryOperation(namestring)*DeleteRepositoryOperationDeleteRepositoryOperation returns a new DeleteRepositoryOperation from a given name.The name must be that of a previously created DeleteRepositoryOperation, possibly from a different process.
func (*Client) DeleteRule
func(c*Client)DeleteRule(ctxcontext.Context,req*artifactregistrypb.DeleteRuleRequest,opts...gax.CallOption)errorDeleteRule deletes a rule.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.DeleteRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#DeleteRuleRequest.}err=c.DeleteRule(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteTag
func(c*Client)DeleteTag(ctxcontext.Context,req*artifactregistrypb.DeleteTagRequest,opts...gax.CallOption)errorDeleteTag deletes a tag.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.DeleteTagRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#DeleteTagRequest.}err=c.DeleteTag(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteVersion
func(c*Client)DeleteVersion(ctxcontext.Context,req*artifactregistrypb.DeleteVersionRequest,opts...gax.CallOption)(*DeleteVersionOperation,error)DeleteVersion deletes a version and all of its content. The returned operation willcomplete once the version has been deleted.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.DeleteVersionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#DeleteVersionRequest.}op,err:=c.DeleteVersion(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteVersionOperation
func(c*Client)DeleteVersionOperation(namestring)*DeleteVersionOperationDeleteVersionOperation returns a new DeleteVersionOperation from a given name.The name must be that of a previously created DeleteVersionOperation, possibly from a different process.
func (*Client) GetAttachment
func(c*Client)GetAttachment(ctxcontext.Context,req*artifactregistrypb.GetAttachmentRequest,opts...gax.CallOption)(*artifactregistrypb.Attachment,error)GetAttachment gets an attachment.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetAttachmentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetAttachmentRequest.}resp,err:=c.GetAttachment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetDockerImage
func(c*Client)GetDockerImage(ctxcontext.Context,req*artifactregistrypb.GetDockerImageRequest,opts...gax.CallOption)(*artifactregistrypb.DockerImage,error)GetDockerImage gets a docker image.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetDockerImageRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetDockerImageRequest.}resp,err:=c.GetDockerImage(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetFile
func(c*Client)GetFile(ctxcontext.Context,req*artifactregistrypb.GetFileRequest,opts...gax.CallOption)(*artifactregistrypb.File,error)GetFile gets a file.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetFileRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetFileRequest.}resp,err:=c.GetFile(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetIamPolicy
func(c*Client)GetIamPolicy(ctxcontext.Context,req*iampb.GetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)GetIamPolicy gets the IAM policy for a given resource.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.GetIamPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.}resp,err:=c.GetIamPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetLocation
func(c*Client)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.GetLocationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.}resp,err:=c.GetLocation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetMavenArtifact
func(c*Client)GetMavenArtifact(ctxcontext.Context,req*artifactregistrypb.GetMavenArtifactRequest,opts...gax.CallOption)(*artifactregistrypb.MavenArtifact,error)GetMavenArtifact gets a maven artifact.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetMavenArtifactRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetMavenArtifactRequest.}resp,err:=c.GetMavenArtifact(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetNpmPackage
func(c*Client)GetNpmPackage(ctxcontext.Context,req*artifactregistrypb.GetNpmPackageRequest,opts...gax.CallOption)(*artifactregistrypb.NpmPackage,error)GetNpmPackage gets a npm package.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetNpmPackageRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetNpmPackageRequest.}resp,err:=c.GetNpmPackage(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetOperation
func(c*Client)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetPackage
func(c*Client)GetPackage(ctxcontext.Context,req*artifactregistrypb.GetPackageRequest,opts...gax.CallOption)(*artifactregistrypb.Package,error)GetPackage gets a package.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetPackageRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetPackageRequest.}resp,err:=c.GetPackage(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetProjectSettings
func(c*Client)GetProjectSettings(ctxcontext.Context,req*artifactregistrypb.GetProjectSettingsRequest,opts...gax.CallOption)(*artifactregistrypb.ProjectSettings,error)GetProjectSettings retrieves the Settings for the Project.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetProjectSettingsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetProjectSettingsRequest.}resp,err:=c.GetProjectSettings(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetPythonPackage
func(c*Client)GetPythonPackage(ctxcontext.Context,req*artifactregistrypb.GetPythonPackageRequest,opts...gax.CallOption)(*artifactregistrypb.PythonPackage,error)GetPythonPackage gets a python package.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetPythonPackageRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetPythonPackageRequest.}resp,err:=c.GetPythonPackage(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetRepository
func(c*Client)GetRepository(ctxcontext.Context,req*artifactregistrypb.GetRepositoryRequest,opts...gax.CallOption)(*artifactregistrypb.Repository,error)GetRepository gets a repository.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetRepositoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetRepositoryRequest.}resp,err:=c.GetRepository(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetRule
func(c*Client)GetRule(ctxcontext.Context,req*artifactregistrypb.GetRuleRequest,opts...gax.CallOption)(*artifactregistrypb.Rule,error)GetRule gets a rule.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetRuleRequest.}resp,err:=c.GetRule(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetTag
func(c*Client)GetTag(ctxcontext.Context,req*artifactregistrypb.GetTagRequest,opts...gax.CallOption)(*artifactregistrypb.Tag,error)GetTag gets a tag.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetTagRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetTagRequest.}resp,err:=c.GetTag(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetVPCSCConfig
func(c*Client)GetVPCSCConfig(ctxcontext.Context,req*artifactregistrypb.GetVPCSCConfigRequest,opts...gax.CallOption)(*artifactregistrypb.VPCSCConfig,error)GetVPCSCConfig retrieves the VPCSC Config for the Project.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetVPCSCConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetVPCSCConfigRequest.}resp,err:=c.GetVPCSCConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetVersion
func(c*Client)GetVersion(ctxcontext.Context,req*artifactregistrypb.GetVersionRequest,opts...gax.CallOption)(*artifactregistrypb.Version,error)GetVersion gets a version
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.GetVersionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#GetVersionRequest.}resp,err:=c.GetVersion(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ImportAptArtifacts
func(c*Client)ImportAptArtifacts(ctxcontext.Context,req*artifactregistrypb.ImportAptArtifactsRequest,opts...gax.CallOption)(*ImportAptArtifactsOperation,error)ImportAptArtifacts imports Apt artifacts. The returned Operation will complete once theresources are imported. Package, Version, and File resources are createdbased on the imported artifacts. Imported artifacts that conflict withexisting resources are ignored.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ImportAptArtifactsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ImportAptArtifactsRequest.}op,err:=c.ImportAptArtifacts(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ImportAptArtifactsOperation
func(c*Client)ImportAptArtifactsOperation(namestring)*ImportAptArtifactsOperationImportAptArtifactsOperation returns a new ImportAptArtifactsOperation from a given name.The name must be that of a previously created ImportAptArtifactsOperation, possibly from a different process.
func (*Client) ImportYumArtifacts
func(c*Client)ImportYumArtifacts(ctxcontext.Context,req*artifactregistrypb.ImportYumArtifactsRequest,opts...gax.CallOption)(*ImportYumArtifactsOperation,error)ImportYumArtifacts imports Yum (RPM) artifacts. The returned Operation will complete once theresources are imported. Package, Version, and File resources are createdbased on the imported artifacts. Imported artifacts that conflict withexisting resources are ignored.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ImportYumArtifactsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ImportYumArtifactsRequest.}op,err:=c.ImportYumArtifacts(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ImportYumArtifactsOperation
func(c*Client)ImportYumArtifactsOperation(namestring)*ImportYumArtifactsOperationImportYumArtifactsOperation returns a new ImportYumArtifactsOperation from a given name.The name must be that of a previously created ImportYumArtifactsOperation, possibly from a different process.
func (*Client) ListAttachments
func(c*Client)ListAttachments(ctxcontext.Context,req*artifactregistrypb.ListAttachmentsRequest,opts...gax.CallOption)*AttachmentIteratorListAttachments lists attachments.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListAttachmentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListAttachmentsRequest.}it:=c.ListAttachments(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListAttachmentsResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListAttachmentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListAttachmentsRequest.}forresp,err:=rangec.ListAttachments(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListDockerImages
func(c*Client)ListDockerImages(ctxcontext.Context,req*artifactregistrypb.ListDockerImagesRequest,opts...gax.CallOption)*DockerImageIteratorListDockerImages lists docker images.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListDockerImagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListDockerImagesRequest.}it:=c.ListDockerImages(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListDockerImagesResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListDockerImagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListDockerImagesRequest.}forresp,err:=rangec.ListDockerImages(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListFiles
func(c*Client)ListFiles(ctxcontext.Context,req*artifactregistrypb.ListFilesRequest,opts...gax.CallOption)*FileIteratorListFiles lists files.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListFilesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListFilesRequest.}it:=c.ListFiles(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListFilesResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListFilesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListFilesRequest.}forresp,err:=rangec.ListFiles(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListLocations
func(c*Client)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}it:=c.ListLocations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListMavenArtifacts
func(c*Client)ListMavenArtifacts(ctxcontext.Context,req*artifactregistrypb.ListMavenArtifactsRequest,opts...gax.CallOption)*MavenArtifactIteratorListMavenArtifacts lists maven artifacts.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListMavenArtifactsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListMavenArtifactsRequest.}it:=c.ListMavenArtifacts(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListMavenArtifactsResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListMavenArtifactsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListMavenArtifactsRequest.}forresp,err:=rangec.ListMavenArtifacts(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListNpmPackages
func(c*Client)ListNpmPackages(ctxcontext.Context,req*artifactregistrypb.ListNpmPackagesRequest,opts...gax.CallOption)*NpmPackageIteratorListNpmPackages lists npm packages.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListNpmPackagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListNpmPackagesRequest.}it:=c.ListNpmPackages(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListNpmPackagesResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListNpmPackagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListNpmPackagesRequest.}forresp,err:=rangec.ListNpmPackages(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListPackages
func(c*Client)ListPackages(ctxcontext.Context,req*artifactregistrypb.ListPackagesRequest,opts...gax.CallOption)*PackageIteratorListPackages lists packages.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListPackagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListPackagesRequest.}it:=c.ListPackages(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListPackagesResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListPackagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListPackagesRequest.}forresp,err:=rangec.ListPackages(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListPythonPackages
func(c*Client)ListPythonPackages(ctxcontext.Context,req*artifactregistrypb.ListPythonPackagesRequest,opts...gax.CallOption)*PythonPackageIteratorListPythonPackages lists python packages.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListPythonPackagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListPythonPackagesRequest.}it:=c.ListPythonPackages(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListPythonPackagesResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListPythonPackagesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListPythonPackagesRequest.}forresp,err:=rangec.ListPythonPackages(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListRepositories
func(c*Client)ListRepositories(ctxcontext.Context,req*artifactregistrypb.ListRepositoriesRequest,opts...gax.CallOption)*RepositoryIteratorListRepositories lists repositories.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListRepositoriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListRepositoriesRequest.}it:=c.ListRepositories(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListRepositoriesResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListRepositoriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListRepositoriesRequest.}forresp,err:=rangec.ListRepositories(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListRules
func(c*Client)ListRules(ctxcontext.Context,req*artifactregistrypb.ListRulesRequest,opts...gax.CallOption)*RuleIteratorListRules lists rules.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListRulesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListRulesRequest.}it:=c.ListRules(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListRulesResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListRulesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListRulesRequest.}forresp,err:=rangec.ListRules(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListTags
func(c*Client)ListTags(ctxcontext.Context,req*artifactregistrypb.ListTagsRequest,opts...gax.CallOption)*TagIteratorListTags lists tags.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListTagsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListTagsRequest.}it:=c.ListTags(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListTagsResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListTagsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListTagsRequest.}forresp,err:=rangec.ListTags(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListVersions
func(c*Client)ListVersions(ctxcontext.Context,req*artifactregistrypb.ListVersionsRequest,opts...gax.CallOption)*VersionIteratorListVersions lists versions.
Examples
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListVersionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListVersionsRequest.}it:=c.ListVersions(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*artifactregistrypb.ListVersionsResponse)}}all
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.ListVersionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#ListVersionsRequest.}forresp,err:=rangec.ListVersions(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) SetIamPolicy
func(c*Client)SetIamPolicy(ctxcontext.Context,req*iampb.SetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)SetIamPolicy updates the IAM policy for a given resource.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.SetIamPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.}resp,err:=c.SetIamPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) TestIamPermissions
func(c*Client)TestIamPermissions(ctxcontext.Context,req*iampb.TestIamPermissionsRequest,opts...gax.CallOption)(*iampb.TestIamPermissionsResponse,error)TestIamPermissions tests if the caller has a list of permissions on a resource.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"iampb"cloud.google.com/go/iam/apiv1/iampb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&iampb.TestIamPermissionsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.}resp,err:=c.TestIamPermissions(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateFile
func(c*Client)UpdateFile(ctxcontext.Context,req*artifactregistrypb.UpdateFileRequest,opts...gax.CallOption)(*artifactregistrypb.File,error)UpdateFile updates a file.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.UpdateFileRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#UpdateFileRequest.}resp,err:=c.UpdateFile(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdatePackage
func(c*Client)UpdatePackage(ctxcontext.Context,req*artifactregistrypb.UpdatePackageRequest,opts...gax.CallOption)(*artifactregistrypb.Package,error)UpdatePackage updates a package.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.UpdatePackageRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#UpdatePackageRequest.}resp,err:=c.UpdatePackage(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateProjectSettings
func(c*Client)UpdateProjectSettings(ctxcontext.Context,req*artifactregistrypb.UpdateProjectSettingsRequest,opts...gax.CallOption)(*artifactregistrypb.ProjectSettings,error)UpdateProjectSettings updates the Settings for the Project.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.UpdateProjectSettingsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#UpdateProjectSettingsRequest.}resp,err:=c.UpdateProjectSettings(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateRepository
func(c*Client)UpdateRepository(ctxcontext.Context,req*artifactregistrypb.UpdateRepositoryRequest,opts...gax.CallOption)(*artifactregistrypb.Repository,error)UpdateRepository updates a repository.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.UpdateRepositoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#UpdateRepositoryRequest.}resp,err:=c.UpdateRepository(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateRule
func(c*Client)UpdateRule(ctxcontext.Context,req*artifactregistrypb.UpdateRuleRequest,opts...gax.CallOption)(*artifactregistrypb.Rule,error)UpdateRule updates a rule.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.UpdateRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#UpdateRuleRequest.}resp,err:=c.UpdateRule(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateTag
func(c*Client)UpdateTag(ctxcontext.Context,req*artifactregistrypb.UpdateTagRequest,opts...gax.CallOption)(*artifactregistrypb.Tag,error)UpdateTag updates a tag.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.UpdateTagRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#UpdateTagRequest.}resp,err:=c.UpdateTag(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateVPCSCConfig
func(c*Client)UpdateVPCSCConfig(ctxcontext.Context,req*artifactregistrypb.UpdateVPCSCConfigRequest,opts...gax.CallOption)(*artifactregistrypb.VPCSCConfig,error)UpdateVPCSCConfig updates the VPCSC Config for the Project.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.UpdateVPCSCConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#UpdateVPCSCConfigRequest.}resp,err:=c.UpdateVPCSCConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateVersion
func(c*Client)UpdateVersion(ctxcontext.Context,req*artifactregistrypb.UpdateVersionRequest,opts...gax.CallOption)(*artifactregistrypb.Version,error)UpdateVersion updates a version.
Example
packagemainimport("context"artifactregistry"cloud.google.com/go/artifactregistry/apiv1"artifactregistrypb"cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=artifactregistry.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&artifactregistrypb.UpdateVersionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb#UpdateVersionRequest.}resp,err:=c.UpdateVersion(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}CreateAttachmentOperation
typeCreateAttachmentOperationstruct{// contains filtered or unexported fields}CreateAttachmentOperation manages a long-running operation from CreateAttachment.
func (*CreateAttachmentOperation) Done
func(op*CreateAttachmentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateAttachmentOperation) Metadata
func(op*CreateAttachmentOperation)Metadata()(*artifactregistrypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateAttachmentOperation) Name
func(op*CreateAttachmentOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateAttachmentOperation) Poll
func(op*CreateAttachmentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*artifactregistrypb.Attachment,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateAttachmentOperation) Wait
func(op*CreateAttachmentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*artifactregistrypb.Attachment,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateRepositoryOperation
typeCreateRepositoryOperationstruct{// contains filtered or unexported fields}CreateRepositoryOperation manages a long-running operation from CreateRepository.
func (*CreateRepositoryOperation) Done
func(op*CreateRepositoryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateRepositoryOperation) Metadata
func(op*CreateRepositoryOperation)Metadata()(*artifactregistrypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateRepositoryOperation) Name
func(op*CreateRepositoryOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateRepositoryOperation) Poll
func(op*CreateRepositoryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*artifactregistrypb.Repository,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateRepositoryOperation) Wait
func(op*CreateRepositoryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*artifactregistrypb.Repository,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteAttachmentOperation
typeDeleteAttachmentOperationstruct{// contains filtered or unexported fields}DeleteAttachmentOperation manages a long-running operation from DeleteAttachment.
func (*DeleteAttachmentOperation) Done
func(op*DeleteAttachmentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteAttachmentOperation) Metadata
func(op*DeleteAttachmentOperation)Metadata()(*artifactregistrypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteAttachmentOperation) Name
func(op*DeleteAttachmentOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteAttachmentOperation) Poll
func(op*DeleteAttachmentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteAttachmentOperation) Wait
func(op*DeleteAttachmentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteFileOperation
typeDeleteFileOperationstruct{// contains filtered or unexported fields}DeleteFileOperation manages a long-running operation from DeleteFile.
func (*DeleteFileOperation) Done
func(op*DeleteFileOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteFileOperation) Metadata
func(op*DeleteFileOperation)Metadata()(*artifactregistrypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteFileOperation) Name
func(op*DeleteFileOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteFileOperation) Poll
func(op*DeleteFileOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteFileOperation) Wait
func(op*DeleteFileOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeletePackageOperation
typeDeletePackageOperationstruct{// contains filtered or unexported fields}DeletePackageOperation manages a long-running operation from DeletePackage.
func (*DeletePackageOperation) Done
func(op*DeletePackageOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeletePackageOperation) Metadata
func(op*DeletePackageOperation)Metadata()(*artifactregistrypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeletePackageOperation) Name
func(op*DeletePackageOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeletePackageOperation) Poll
func(op*DeletePackageOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeletePackageOperation) Wait
func(op*DeletePackageOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteRepositoryOperation
typeDeleteRepositoryOperationstruct{// contains filtered or unexported fields}DeleteRepositoryOperation manages a long-running operation from DeleteRepository.
func (*DeleteRepositoryOperation) Done
func(op*DeleteRepositoryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteRepositoryOperation) Metadata
func(op*DeleteRepositoryOperation)Metadata()(*artifactregistrypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteRepositoryOperation) Name
func(op*DeleteRepositoryOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteRepositoryOperation) Poll
func(op*DeleteRepositoryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteRepositoryOperation) Wait
func(op*DeleteRepositoryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteVersionOperation
typeDeleteVersionOperationstruct{// contains filtered or unexported fields}DeleteVersionOperation manages a long-running operation from DeleteVersion.
func (*DeleteVersionOperation) Done
func(op*DeleteVersionOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteVersionOperation) Metadata
func(op*DeleteVersionOperation)Metadata()(*artifactregistrypb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteVersionOperation) Name
func(op*DeleteVersionOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteVersionOperation) Poll
func(op*DeleteVersionOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteVersionOperation) Wait
func(op*DeleteVersionOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DockerImageIterator
typeDockerImageIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.DockerImage,nextPageTokenstring,errerror)// contains filtered or unexported fields}DockerImageIterator manages a stream of *artifactregistrypb.DockerImage.
func (*DockerImageIterator) All
func(it*DockerImageIterator)All()iter.Seq2[*artifactregistrypb.DockerImage,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*DockerImageIterator) Next
func(it*DockerImageIterator)Next()(*artifactregistrypb.DockerImage,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*DockerImageIterator) PageInfo
func(it*DockerImageIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
FileIterator
typeFileIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.File,nextPageTokenstring,errerror)// contains filtered or unexported fields}FileIterator manages a stream of *artifactregistrypb.File.
func (*FileIterator) All
func(it*FileIterator)All()iter.Seq2[*artifactregistrypb.File,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*FileIterator) Next
func(it*FileIterator)Next()(*artifactregistrypb.File,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*FileIterator) PageInfo
func(it*FileIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
ImportAptArtifactsOperation
typeImportAptArtifactsOperationstruct{// contains filtered or unexported fields}ImportAptArtifactsOperation manages a long-running operation from ImportAptArtifacts.
func (*ImportAptArtifactsOperation) Done
func(op*ImportAptArtifactsOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ImportAptArtifactsOperation) Metadata
func(op*ImportAptArtifactsOperation)Metadata()(*artifactregistrypb.ImportAptArtifactsMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*ImportAptArtifactsOperation) Name
func(op*ImportAptArtifactsOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*ImportAptArtifactsOperation) Poll
func(op*ImportAptArtifactsOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*artifactregistrypb.ImportAptArtifactsResponse,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ImportAptArtifactsOperation) Wait
func(op*ImportAptArtifactsOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*artifactregistrypb.ImportAptArtifactsResponse,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
ImportYumArtifactsOperation
typeImportYumArtifactsOperationstruct{// contains filtered or unexported fields}ImportYumArtifactsOperation manages a long-running operation from ImportYumArtifacts.
func (*ImportYumArtifactsOperation) Done
func(op*ImportYumArtifactsOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ImportYumArtifactsOperation) Metadata
func(op*ImportYumArtifactsOperation)Metadata()(*artifactregistrypb.ImportYumArtifactsMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*ImportYumArtifactsOperation) Name
func(op*ImportYumArtifactsOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*ImportYumArtifactsOperation) Poll
func(op*ImportYumArtifactsOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*artifactregistrypb.ImportYumArtifactsResponse,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ImportYumArtifactsOperation) Wait
func(op*ImportYumArtifactsOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*artifactregistrypb.ImportYumArtifactsResponse,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
LocationIterator
typeLocationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*locationpb.Location,nextPageTokenstring,errerror)// contains filtered or unexported fields}LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All
func(it*LocationIterator)All()iter.Seq2[*locationpb.Location,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*LocationIterator) Next
func(it*LocationIterator)Next()(*locationpb.Location,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo
func(it*LocationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
MavenArtifactIterator
typeMavenArtifactIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.MavenArtifact,nextPageTokenstring,errerror)// contains filtered or unexported fields}MavenArtifactIterator manages a stream of *artifactregistrypb.MavenArtifact.
func (*MavenArtifactIterator) All
func(it*MavenArtifactIterator)All()iter.Seq2[*artifactregistrypb.MavenArtifact,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*MavenArtifactIterator) Next
func(it*MavenArtifactIterator)Next()(*artifactregistrypb.MavenArtifact,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*MavenArtifactIterator) PageInfo
func(it*MavenArtifactIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
NpmPackageIterator
typeNpmPackageIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.NpmPackage,nextPageTokenstring,errerror)// contains filtered or unexported fields}NpmPackageIterator manages a stream of *artifactregistrypb.NpmPackage.
func (*NpmPackageIterator) All
func(it*NpmPackageIterator)All()iter.Seq2[*artifactregistrypb.NpmPackage,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*NpmPackageIterator) Next
func(it*NpmPackageIterator)Next()(*artifactregistrypb.NpmPackage,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*NpmPackageIterator) PageInfo
func(it*NpmPackageIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
PackageIterator
typePackageIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.Package,nextPageTokenstring,errerror)// contains filtered or unexported fields}PackageIterator manages a stream of *artifactregistrypb.Package.
func (*PackageIterator) All
func(it*PackageIterator)All()iter.Seq2[*artifactregistrypb.Package,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*PackageIterator) Next
func(it*PackageIterator)Next()(*artifactregistrypb.Package,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*PackageIterator) PageInfo
func(it*PackageIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
PythonPackageIterator
typePythonPackageIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.PythonPackage,nextPageTokenstring,errerror)// contains filtered or unexported fields}PythonPackageIterator manages a stream of *artifactregistrypb.PythonPackage.
func (*PythonPackageIterator) All
func(it*PythonPackageIterator)All()iter.Seq2[*artifactregistrypb.PythonPackage,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*PythonPackageIterator) Next
func(it*PythonPackageIterator)Next()(*artifactregistrypb.PythonPackage,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*PythonPackageIterator) PageInfo
func(it*PythonPackageIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
RepositoryIterator
typeRepositoryIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.Repository,nextPageTokenstring,errerror)// contains filtered or unexported fields}RepositoryIterator manages a stream of *artifactregistrypb.Repository.
func (*RepositoryIterator) All
func(it*RepositoryIterator)All()iter.Seq2[*artifactregistrypb.Repository,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*RepositoryIterator) Next
func(it*RepositoryIterator)Next()(*artifactregistrypb.Repository,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*RepositoryIterator) PageInfo
func(it*RepositoryIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
RuleIterator
typeRuleIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.Rule,nextPageTokenstring,errerror)// contains filtered or unexported fields}RuleIterator manages a stream of *artifactregistrypb.Rule.
func (*RuleIterator) All
func(it*RuleIterator)All()iter.Seq2[*artifactregistrypb.Rule,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*RuleIterator) Next
func(it*RuleIterator)Next()(*artifactregistrypb.Rule,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*RuleIterator) PageInfo
func(it*RuleIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
TagIterator
typeTagIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.Tag,nextPageTokenstring,errerror)// contains filtered or unexported fields}TagIterator manages a stream of *artifactregistrypb.Tag.
func (*TagIterator) All
func(it*TagIterator)All()iter.Seq2[*artifactregistrypb.Tag,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*TagIterator) Next
func(it*TagIterator)Next()(*artifactregistrypb.Tag,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*TagIterator) PageInfo
func(it*TagIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
VersionIterator
typeVersionIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*artifactregistrypb.Version,nextPageTokenstring,errerror)// contains filtered or unexported fields}VersionIterator manages a stream of *artifactregistrypb.Version.
func (*VersionIterator) All
func(it*VersionIterator)All()iter.Seq2[*artifactregistrypb.Version,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*VersionIterator) Next
func(it*VersionIterator)Next()(*artifactregistrypb.Version,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*VersionIterator) PageInfo
func(it*VersionIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.