Secure Source Manager API v1 - Package cloud.google.com/go/securesourcemanager/apiv1 (v1.4.1) Stay organized with collections Save and categorize content based on your preferences.
Package securesourcemanager is an auto-generated package for theSecure Source Manager API.
Regionally deployed, single-tenant managed source code repository hostedon Google Cloud.
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/securesourcemanager/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:=securesourcemanager.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:=&securesourcemanagerpb.BatchCreatePullRequestCommentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#BatchCreatePullRequestCommentsRequest.}op,err:=c.BatchCreatePullRequestComments(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp
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.
BatchCreatePullRequestCommentsOperation
typeBatchCreatePullRequestCommentsOperationstruct{// contains filtered or unexported fields}BatchCreatePullRequestCommentsOperation manages a long-running operation from BatchCreatePullRequestComments.
func (*BatchCreatePullRequestCommentsOperation) Done
func(op*BatchCreatePullRequestCommentsOperation)Done()boolDone reports whether the long-running operation has completed.
func (*BatchCreatePullRequestCommentsOperation) Metadata
func(op*BatchCreatePullRequestCommentsOperation)Metadata()(*securesourcemanagerpb.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 (*BatchCreatePullRequestCommentsOperation) Name
func(op*BatchCreatePullRequestCommentsOperation)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 (*BatchCreatePullRequestCommentsOperation) Poll
func(op*BatchCreatePullRequestCommentsOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.BatchCreatePullRequestCommentsResponse,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 (*BatchCreatePullRequestCommentsOperation) Wait
func(op*BatchCreatePullRequestCommentsOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.BatchCreatePullRequestCommentsResponse,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.
BranchRuleIterator
typeBranchRuleIteratorstruct{// 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[]*securesourcemanagerpb.BranchRule,nextPageTokenstring,errerror)// contains filtered or unexported fields}BranchRuleIterator manages a stream of *securesourcemanagerpb.BranchRule.
func (*BranchRuleIterator) All
func(it*BranchRuleIterator)All()iter.Seq2[*securesourcemanagerpb.BranchRule,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*BranchRuleIterator) Next
func(it*BranchRuleIterator)Next()(*securesourcemanagerpb.BranchRule,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 (*BranchRuleIterator) PageInfo
func(it*BranchRuleIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CallOptions
typeCallOptionsstruct{ListInstances[]gax.CallOptionGetInstance[]gax.CallOptionCreateInstance[]gax.CallOptionDeleteInstance[]gax.CallOptionListRepositories[]gax.CallOptionGetRepository[]gax.CallOptionCreateRepository[]gax.CallOptionUpdateRepository[]gax.CallOptionDeleteRepository[]gax.CallOptionListHooks[]gax.CallOptionGetHook[]gax.CallOptionCreateHook[]gax.CallOptionUpdateHook[]gax.CallOptionDeleteHook[]gax.CallOptionGetIamPolicyRepo[]gax.CallOptionSetIamPolicyRepo[]gax.CallOptionTestIamPermissionsRepo[]gax.CallOptionCreateBranchRule[]gax.CallOptionListBranchRules[]gax.CallOptionGetBranchRule[]gax.CallOptionUpdateBranchRule[]gax.CallOptionDeleteBranchRule[]gax.CallOptionCreatePullRequest[]gax.CallOptionGetPullRequest[]gax.CallOptionListPullRequests[]gax.CallOptionUpdatePullRequest[]gax.CallOptionMergePullRequest[]gax.CallOptionOpenPullRequest[]gax.CallOptionClosePullRequest[]gax.CallOptionListPullRequestFileDiffs[]gax.CallOptionFetchTree[]gax.CallOptionFetchBlob[]gax.CallOptionCreateIssue[]gax.CallOptionGetIssue[]gax.CallOptionListIssues[]gax.CallOptionUpdateIssue[]gax.CallOptionDeleteIssue[]gax.CallOptionOpenIssue[]gax.CallOptionCloseIssue[]gax.CallOptionGetPullRequestComment[]gax.CallOptionListPullRequestComments[]gax.CallOptionCreatePullRequestComment[]gax.CallOptionUpdatePullRequestComment[]gax.CallOptionDeletePullRequestComment[]gax.CallOptionBatchCreatePullRequestComments[]gax.CallOptionResolvePullRequestComments[]gax.CallOptionUnresolvePullRequestComments[]gax.CallOptionCreateIssueComment[]gax.CallOptionGetIssueComment[]gax.CallOptionListIssueComments[]gax.CallOptionUpdateIssueComment[]gax.CallOptionDeleteIssueComment[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionGetIamPolicy[]gax.CallOptionSetIamPolicy[]gax.CallOptionTestIamPermissions[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]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 Secure Source Manager API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Secure Source Manager API
Access Secure Source Manager instances, resources, and repositories.
func NewClient
NewClient creates a new secure source manager client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
Secure Source Manager API
Access Secure Source Manager instances, resources, and repositories.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewRESTClient
NewRESTClient creates a new secure source manager rest client.
Secure Source Manager API
Access Secure Source Manager instances, resources, and repositories.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.NewRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*Client) BatchCreatePullRequestComments
func(c*Client)BatchCreatePullRequestComments(ctxcontext.Context,req*securesourcemanagerpb.BatchCreatePullRequestCommentsRequest,opts...gax.CallOption)(*BatchCreatePullRequestCommentsOperation,error)BatchCreatePullRequestComments batch creates pull request comments. This function is used to createmultiple PullRequestComments for code review. There needs to be exactly onePullRequestComment of type Review, and at most 100 PullRequestComments oftype Code per request. The Postition of the code comments must be uniquewithin the request.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.BatchCreatePullRequestCommentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#BatchCreatePullRequestCommentsRequest.}op,err:=c.BatchCreatePullRequestComments(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) BatchCreatePullRequestCommentsOperation
func(c*Client)BatchCreatePullRequestCommentsOperation(namestring)*BatchCreatePullRequestCommentsOperationBatchCreatePullRequestCommentsOperation returns a new BatchCreatePullRequestCommentsOperation from a given name.The name must be that of a previously created BatchCreatePullRequestCommentsOperation, possibly from a different process.
func (*Client) CancelOperation
func(c*Client)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) Close
Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*Client) CloseIssue
func(c*Client)CloseIssue(ctxcontext.Context,req*securesourcemanagerpb.CloseIssueRequest,opts...gax.CallOption)(*CloseIssueOperation,error)CloseIssue closes an issue.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CloseIssueRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#CloseIssueRequest.}op,err:=c.CloseIssue(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CloseIssueOperation
func(c*Client)CloseIssueOperation(namestring)*CloseIssueOperationCloseIssueOperation returns a new CloseIssueOperation from a given name.The name must be that of a previously created CloseIssueOperation, possibly from a different process.
func (*Client) ClosePullRequest
func(c*Client)ClosePullRequest(ctxcontext.Context,req*securesourcemanagerpb.ClosePullRequestRequest,opts...gax.CallOption)(*ClosePullRequestOperation,error)ClosePullRequest closes a pull request without merging.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ClosePullRequestRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ClosePullRequestRequest.}op,err:=c.ClosePullRequest(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ClosePullRequestOperation
func(c*Client)ClosePullRequestOperation(namestring)*ClosePullRequestOperationClosePullRequestOperation returns a new ClosePullRequestOperation from a given name.The name must be that of a previously created ClosePullRequestOperation, possibly from a different process.
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) CreateBranchRule
func(c*Client)CreateBranchRule(ctxcontext.Context,req*securesourcemanagerpb.CreateBranchRuleRequest,opts...gax.CallOption)(*CreateBranchRuleOperation,error)CreateBranchRule createBranchRule creates a branch rule in a given repository.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CreateBranchRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#CreateBranchRuleRequest.}op,err:=c.CreateBranchRule(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateBranchRuleOperation
func(c*Client)CreateBranchRuleOperation(namestring)*CreateBranchRuleOperationCreateBranchRuleOperation returns a new CreateBranchRuleOperation from a given name.The name must be that of a previously created CreateBranchRuleOperation, possibly from a different process.
func (*Client) CreateHook
func(c*Client)CreateHook(ctxcontext.Context,req*securesourcemanagerpb.CreateHookRequest,opts...gax.CallOption)(*CreateHookOperation,error)CreateHook creates a new hook in a given repository.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CreateHookRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#CreateHookRequest.}op,err:=c.CreateHook(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateHookOperation
func(c*Client)CreateHookOperation(namestring)*CreateHookOperationCreateHookOperation returns a new CreateHookOperation from a given name.The name must be that of a previously created CreateHookOperation, possibly from a different process.
func (*Client) CreateInstance
func(c*Client)CreateInstance(ctxcontext.Context,req*securesourcemanagerpb.CreateInstanceRequest,opts...gax.CallOption)(*CreateInstanceOperation,error)CreateInstance creates a new instance in a given project and location.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CreateInstanceRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#CreateInstanceRequest.}op,err:=c.CreateInstance(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateInstanceOperation
func(c*Client)CreateInstanceOperation(namestring)*CreateInstanceOperationCreateInstanceOperation returns a new CreateInstanceOperation from a given name.The name must be that of a previously created CreateInstanceOperation, possibly from a different process.
func (*Client) CreateIssue
func(c*Client)CreateIssue(ctxcontext.Context,req*securesourcemanagerpb.CreateIssueRequest,opts...gax.CallOption)(*CreateIssueOperation,error)CreateIssue creates an issue.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CreateIssueRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#CreateIssueRequest.}op,err:=c.CreateIssue(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateIssueComment
func(c*Client)CreateIssueComment(ctxcontext.Context,req*securesourcemanagerpb.CreateIssueCommentRequest,opts...gax.CallOption)(*CreateIssueCommentOperation,error)CreateIssueComment creates an issue comment.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CreateIssueCommentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#CreateIssueCommentRequest.}op,err:=c.CreateIssueComment(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateIssueCommentOperation
func(c*Client)CreateIssueCommentOperation(namestring)*CreateIssueCommentOperationCreateIssueCommentOperation returns a new CreateIssueCommentOperation from a given name.The name must be that of a previously created CreateIssueCommentOperation, possibly from a different process.
func (*Client) CreateIssueOperation
func(c*Client)CreateIssueOperation(namestring)*CreateIssueOperationCreateIssueOperation returns a new CreateIssueOperation from a given name.The name must be that of a previously created CreateIssueOperation, possibly from a different process.
func (*Client) CreatePullRequest
func(c*Client)CreatePullRequest(ctxcontext.Context,req*securesourcemanagerpb.CreatePullRequestRequest,opts...gax.CallOption)(*CreatePullRequestOperation,error)CreatePullRequest creates a pull request.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CreatePullRequestRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#CreatePullRequestRequest.}op,err:=c.CreatePullRequest(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreatePullRequestComment
func(c*Client)CreatePullRequestComment(ctxcontext.Context,req*securesourcemanagerpb.CreatePullRequestCommentRequest,opts...gax.CallOption)(*CreatePullRequestCommentOperation,error)CreatePullRequestComment creates a pull request comment. This function is used to create a singlePullRequestComment of type Comment, or a single PullRequestComment of typeCode that’s replying to another PullRequestComment of type Code. UseBatchCreatePullRequestComments to create multiple PullRequestComments forcode reviews.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CreatePullRequestCommentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#CreatePullRequestCommentRequest.}op,err:=c.CreatePullRequestComment(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreatePullRequestCommentOperation
func(c*Client)CreatePullRequestCommentOperation(namestring)*CreatePullRequestCommentOperationCreatePullRequestCommentOperation returns a new CreatePullRequestCommentOperation from a given name.The name must be that of a previously created CreatePullRequestCommentOperation, possibly from a different process.
func (*Client) CreatePullRequestOperation
func(c*Client)CreatePullRequestOperation(namestring)*CreatePullRequestOperationCreatePullRequestOperation returns a new CreatePullRequestOperation from a given name.The name must be that of a previously created CreatePullRequestOperation, possibly from a different process.
func (*Client) CreateRepository
func(c*Client)CreateRepository(ctxcontext.Context,req*securesourcemanagerpb.CreateRepositoryRequest,opts...gax.CallOption)(*CreateRepositoryOperation,error)CreateRepository creates a new repository in a given project and location.
The Repository.Instance field is required in the request body for requestsusing the securesourcemanager.googleapis.com (athttp://securesourcemanager.googleapis.com) endpoint.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.CreateRepositoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#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) DeleteBranchRule
func(c*Client)DeleteBranchRule(ctxcontext.Context,req*securesourcemanagerpb.DeleteBranchRuleRequest,opts...gax.CallOption)(*DeleteBranchRuleOperation,error)DeleteBranchRule deleteBranchRule deletes a branch rule.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.DeleteBranchRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#DeleteBranchRuleRequest.}op,err:=c.DeleteBranchRule(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteBranchRuleOperation
func(c*Client)DeleteBranchRuleOperation(namestring)*DeleteBranchRuleOperationDeleteBranchRuleOperation returns a new DeleteBranchRuleOperation from a given name.The name must be that of a previously created DeleteBranchRuleOperation, possibly from a different process.
func (*Client) DeleteHook
func(c*Client)DeleteHook(ctxcontext.Context,req*securesourcemanagerpb.DeleteHookRequest,opts...gax.CallOption)(*DeleteHookOperation,error)DeleteHook deletes a Hook.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.DeleteHookRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#DeleteHookRequest.}op,err:=c.DeleteHook(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteHookOperation
func(c*Client)DeleteHookOperation(namestring)*DeleteHookOperationDeleteHookOperation returns a new DeleteHookOperation from a given name.The name must be that of a previously created DeleteHookOperation, possibly from a different process.
func (*Client) DeleteInstance
func(c*Client)DeleteInstance(ctxcontext.Context,req*securesourcemanagerpb.DeleteInstanceRequest,opts...gax.CallOption)(*DeleteInstanceOperation,error)DeleteInstance deletes a single instance.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.DeleteInstanceRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#DeleteInstanceRequest.}op,err:=c.DeleteInstance(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteInstanceOperation
func(c*Client)DeleteInstanceOperation(namestring)*DeleteInstanceOperationDeleteInstanceOperation returns a new DeleteInstanceOperation from a given name.The name must be that of a previously created DeleteInstanceOperation, possibly from a different process.
func (*Client) DeleteIssue
func(c*Client)DeleteIssue(ctxcontext.Context,req*securesourcemanagerpb.DeleteIssueRequest,opts...gax.CallOption)(*DeleteIssueOperation,error)DeleteIssue deletes an issue.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.DeleteIssueRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#DeleteIssueRequest.}op,err:=c.DeleteIssue(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteIssueComment
func(c*Client)DeleteIssueComment(ctxcontext.Context,req*securesourcemanagerpb.DeleteIssueCommentRequest,opts...gax.CallOption)(*DeleteIssueCommentOperation,error)DeleteIssueComment deletes an issue comment.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.DeleteIssueCommentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#DeleteIssueCommentRequest.}op,err:=c.DeleteIssueComment(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteIssueCommentOperation
func(c*Client)DeleteIssueCommentOperation(namestring)*DeleteIssueCommentOperationDeleteIssueCommentOperation returns a new DeleteIssueCommentOperation from a given name.The name must be that of a previously created DeleteIssueCommentOperation, possibly from a different process.
func (*Client) DeleteIssueOperation
func(c*Client)DeleteIssueOperation(namestring)*DeleteIssueOperationDeleteIssueOperation returns a new DeleteIssueOperation from a given name.The name must be that of a previously created DeleteIssueOperation, possibly from a different process.
func (*Client) DeleteOperation
func(c*Client)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) DeletePullRequestComment
func(c*Client)DeletePullRequestComment(ctxcontext.Context,req*securesourcemanagerpb.DeletePullRequestCommentRequest,opts...gax.CallOption)(*DeletePullRequestCommentOperation,error)DeletePullRequestComment deletes a pull request comment.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.DeletePullRequestCommentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#DeletePullRequestCommentRequest.}op,err:=c.DeletePullRequestComment(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeletePullRequestCommentOperation
func(c*Client)DeletePullRequestCommentOperation(namestring)*DeletePullRequestCommentOperationDeletePullRequestCommentOperation returns a new DeletePullRequestCommentOperation from a given name.The name must be that of a previously created DeletePullRequestCommentOperation, possibly from a different process.
func (*Client) DeleteRepository
func(c*Client)DeleteRepository(ctxcontext.Context,req*securesourcemanagerpb.DeleteRepositoryRequest,opts...gax.CallOption)(*DeleteRepositoryOperation,error)DeleteRepository deletes a Repository.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.DeleteRepositoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#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) FetchBlob
func(c*Client)FetchBlob(ctxcontext.Context,req*securesourcemanagerpb.FetchBlobRequest,opts...gax.CallOption)(*securesourcemanagerpb.FetchBlobResponse,error)FetchBlob fetches a blob from a repository.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.FetchBlobRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#FetchBlobRequest.}resp,err:=c.FetchBlob(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) FetchTree
func(c*Client)FetchTree(ctxcontext.Context,req*securesourcemanagerpb.FetchTreeRequest,opts...gax.CallOption)*TreeEntryIteratorFetchTree fetches a tree from a repository.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.FetchTreeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#FetchTreeRequest.}it:=c.FetchTree(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.(*securesourcemanagerpb.FetchTreeResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.FetchTreeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#FetchTreeRequest.}forresp,err:=rangec.FetchTree(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) GetBranchRule
func(c*Client)GetBranchRule(ctxcontext.Context,req*securesourcemanagerpb.GetBranchRuleRequest,opts...gax.CallOption)(*securesourcemanagerpb.BranchRule,error)GetBranchRule getBranchRule gets a branch rule.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.GetBranchRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#GetBranchRuleRequest.}resp,err:=c.GetBranchRule(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetHook
func(c*Client)GetHook(ctxcontext.Context,req*securesourcemanagerpb.GetHookRequest,opts...gax.CallOption)(*securesourcemanagerpb.Hook,error)GetHook gets metadata of a hook.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.GetHookRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#GetHookRequest.}resp,err:=c.GetHook(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 access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.
Example
packagemainimport("context"iampb"cloud.google.com/go/iam/apiv1/iampb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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) GetIamPolicyRepo
func(c*Client)GetIamPolicyRepo(ctxcontext.Context,req*iampb.GetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)GetIamPolicyRepo get IAM policy for a repository.
Example
packagemainimport("context"iampb"cloud.google.com/go/iam/apiv1/iampb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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.GetIamPolicyRepo(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetInstance
func(c*Client)GetInstance(ctxcontext.Context,req*securesourcemanagerpb.GetInstanceRequest,opts...gax.CallOption)(*securesourcemanagerpb.Instance,error)GetInstance gets details of a single instance.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.GetInstanceRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#GetInstanceRequest.}resp,err:=c.GetInstance(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetIssue
func(c*Client)GetIssue(ctxcontext.Context,req*securesourcemanagerpb.GetIssueRequest,opts...gax.CallOption)(*securesourcemanagerpb.Issue,error)GetIssue gets an issue.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.GetIssueRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#GetIssueRequest.}resp,err:=c.GetIssue(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetIssueComment
func(c*Client)GetIssueComment(ctxcontext.Context,req*securesourcemanagerpb.GetIssueCommentRequest,opts...gax.CallOption)(*securesourcemanagerpb.IssueComment,error)GetIssueComment gets an issue comment.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.GetIssueCommentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#GetIssueCommentRequest.}resp,err:=c.GetIssueComment(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"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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) 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"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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) GetPullRequest
func(c*Client)GetPullRequest(ctxcontext.Context,req*securesourcemanagerpb.GetPullRequestRequest,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,error)GetPullRequest gets a pull request.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.GetPullRequestRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#GetPullRequestRequest.}resp,err:=c.GetPullRequest(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetPullRequestComment
func(c*Client)GetPullRequestComment(ctxcontext.Context,req*securesourcemanagerpb.GetPullRequestCommentRequest,opts...gax.CallOption)(*securesourcemanagerpb.PullRequestComment,error)GetPullRequestComment gets a pull request comment.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.GetPullRequestCommentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#GetPullRequestCommentRequest.}resp,err:=c.GetPullRequestComment(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetRepository
func(c*Client)GetRepository(ctxcontext.Context,req*securesourcemanagerpb.GetRepositoryRequest,opts...gax.CallOption)(*securesourcemanagerpb.Repository,error)GetRepository gets metadata of a repository.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.GetRepositoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#GetRepositoryRequest.}resp,err:=c.GetRepository(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ListBranchRules
func(c*Client)ListBranchRules(ctxcontext.Context,req*securesourcemanagerpb.ListBranchRulesRequest,opts...gax.CallOption)*BranchRuleIteratorListBranchRules listBranchRules lists branch rules in a given repository.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListBranchRulesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListBranchRulesRequest.}it:=c.ListBranchRules(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.(*securesourcemanagerpb.ListBranchRulesResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListBranchRulesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListBranchRulesRequest.}forresp,err:=rangec.ListBranchRules(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListHooks
func(c*Client)ListHooks(ctxcontext.Context,req*securesourcemanagerpb.ListHooksRequest,opts...gax.CallOption)*HookIteratorListHooks lists hooks in a given repository.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListHooksRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListHooksRequest.}it:=c.ListHooks(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.(*securesourcemanagerpb.ListHooksResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListHooksRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListHooksRequest.}forresp,err:=rangec.ListHooks(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListInstances
func(c*Client)ListInstances(ctxcontext.Context,req*securesourcemanagerpb.ListInstancesRequest,opts...gax.CallOption)*InstanceIteratorListInstances lists Instances in a given project and location.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListInstancesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListInstancesRequest.}it:=c.ListInstances(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.(*securesourcemanagerpb.ListInstancesResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListInstancesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListInstancesRequest.}forresp,err:=rangec.ListInstances(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListIssueComments
func(c*Client)ListIssueComments(ctxcontext.Context,req*securesourcemanagerpb.ListIssueCommentsRequest,opts...gax.CallOption)*IssueCommentIteratorListIssueComments lists comments in an issue.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListIssueCommentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListIssueCommentsRequest.}it:=c.ListIssueComments(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.(*securesourcemanagerpb.ListIssueCommentsResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListIssueCommentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListIssueCommentsRequest.}forresp,err:=rangec.ListIssueComments(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListIssues
func(c*Client)ListIssues(ctxcontext.Context,req*securesourcemanagerpb.ListIssuesRequest,opts...gax.CallOption)*IssueIteratorListIssues lists issues in a repository.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListIssuesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListIssuesRequest.}it:=c.ListIssues(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.(*securesourcemanagerpb.ListIssuesResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListIssuesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListIssuesRequest.}forresp,err:=rangec.ListIssues(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"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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) ListOperations
func(c*Client)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(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.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListPullRequestComments
func(c*Client)ListPullRequestComments(ctxcontext.Context,req*securesourcemanagerpb.ListPullRequestCommentsRequest,opts...gax.CallOption)*PullRequestCommentIteratorListPullRequestComments lists pull request comments.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListPullRequestCommentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListPullRequestCommentsRequest.}it:=c.ListPullRequestComments(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.(*securesourcemanagerpb.ListPullRequestCommentsResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListPullRequestCommentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListPullRequestCommentsRequest.}forresp,err:=rangec.ListPullRequestComments(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListPullRequestFileDiffs
func(c*Client)ListPullRequestFileDiffs(ctxcontext.Context,req*securesourcemanagerpb.ListPullRequestFileDiffsRequest,opts...gax.CallOption)*FileDiffIteratorListPullRequestFileDiffs lists a pull request’s file diffs.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListPullRequestFileDiffsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListPullRequestFileDiffsRequest.}it:=c.ListPullRequestFileDiffs(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.(*securesourcemanagerpb.ListPullRequestFileDiffsResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListPullRequestFileDiffsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListPullRequestFileDiffsRequest.}forresp,err:=rangec.ListPullRequestFileDiffs(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListPullRequests
func(c*Client)ListPullRequests(ctxcontext.Context,req*securesourcemanagerpb.ListPullRequestsRequest,opts...gax.CallOption)*PullRequestIteratorListPullRequests lists pull requests in a repository.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListPullRequestsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListPullRequestsRequest.}it:=c.ListPullRequests(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.(*securesourcemanagerpb.ListPullRequestsResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListPullRequestsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ListPullRequestsRequest.}forresp,err:=rangec.ListPullRequests(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*securesourcemanagerpb.ListRepositoriesRequest,opts...gax.CallOption)*RepositoryIteratorListRepositories lists Repositories in a given project and location.
The instance field is required in the query parameter for requests usingthe securesourcemanager.googleapis.com (athttp://securesourcemanager.googleapis.com) endpoint.
Examples
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb""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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListRepositoriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#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.(*securesourcemanagerpb.ListRepositoriesResponse)}}all
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ListRepositoriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#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) MergePullRequest
func(c*Client)MergePullRequest(ctxcontext.Context,req*securesourcemanagerpb.MergePullRequestRequest,opts...gax.CallOption)(*MergePullRequestOperation,error)MergePullRequest merges a pull request.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.MergePullRequestRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#MergePullRequestRequest.}op,err:=c.MergePullRequest(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) MergePullRequestOperation
func(c*Client)MergePullRequestOperation(namestring)*MergePullRequestOperationMergePullRequestOperation returns a new MergePullRequestOperation from a given name.The name must be that of a previously created MergePullRequestOperation, possibly from a different process.
func (*Client) OpenIssue
func(c*Client)OpenIssue(ctxcontext.Context,req*securesourcemanagerpb.OpenIssueRequest,opts...gax.CallOption)(*OpenIssueOperation,error)OpenIssue opens an issue.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.OpenIssueRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#OpenIssueRequest.}op,err:=c.OpenIssue(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) OpenIssueOperation
func(c*Client)OpenIssueOperation(namestring)*OpenIssueOperationOpenIssueOperation returns a new OpenIssueOperation from a given name.The name must be that of a previously created OpenIssueOperation, possibly from a different process.
func (*Client) OpenPullRequest
func(c*Client)OpenPullRequest(ctxcontext.Context,req*securesourcemanagerpb.OpenPullRequestRequest,opts...gax.CallOption)(*OpenPullRequestOperation,error)OpenPullRequest opens a pull request.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.OpenPullRequestRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#OpenPullRequestRequest.}op,err:=c.OpenPullRequest(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) OpenPullRequestOperation
func(c*Client)OpenPullRequestOperation(namestring)*OpenPullRequestOperationOpenPullRequestOperation returns a new OpenPullRequestOperation from a given name.The name must be that of a previously created OpenPullRequestOperation, possibly from a different process.
func (*Client) ResolvePullRequestComments
func(c*Client)ResolvePullRequestComments(ctxcontext.Context,req*securesourcemanagerpb.ResolvePullRequestCommentsRequest,opts...gax.CallOption)(*ResolvePullRequestCommentsOperation,error)ResolvePullRequestComments resolves pull request comments. A list of PullRequestComment names must beprovided. The PullRequestComment names must be in the same conversationthread. If auto_fill is set, all comments in the conversation thread willbe resolved.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.ResolvePullRequestCommentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#ResolvePullRequestCommentsRequest.}op,err:=c.ResolvePullRequestComments(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ResolvePullRequestCommentsOperation
func(c*Client)ResolvePullRequestCommentsOperation(namestring)*ResolvePullRequestCommentsOperationResolvePullRequestCommentsOperation returns a new ResolvePullRequestCommentsOperation from a given name.The name must be that of a previously created ResolvePullRequestCommentsOperation, possibly from a different process.
func (*Client) SetIamPolicy
func(c*Client)SetIamPolicy(ctxcontext.Context,req*iampb.SetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)SetIamPolicy sets the access control policy on the specified resource. Replacesany existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIEDerrors.
Example
packagemainimport("context"iampb"cloud.google.com/go/iam/apiv1/iampb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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) SetIamPolicyRepo
func(c*Client)SetIamPolicyRepo(ctxcontext.Context,req*iampb.SetIamPolicyRequest,opts...gax.CallOption)(*iampb.Policy,error)SetIamPolicyRepo set IAM policy on a repository.
Example
packagemainimport("context"iampb"cloud.google.com/go/iam/apiv1/iampb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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.SetIamPolicyRepo(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 returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a NOT_FOUND error.
Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may “fail open” without warning.
Example
packagemainimport("context"iampb"cloud.google.com/go/iam/apiv1/iampb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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) TestIamPermissionsRepo
func(c*Client)TestIamPermissionsRepo(ctxcontext.Context,req*iampb.TestIamPermissionsRequest,opts...gax.CallOption)(*iampb.TestIamPermissionsResponse,error)TestIamPermissionsRepo test IAM permissions on a repository.IAM permission checks are not required on this method.
Example
packagemainimport("context"iampb"cloud.google.com/go/iam/apiv1/iampb"securesourcemanager"cloud.google.com/go/securesourcemanager/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:=securesourcemanager.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.TestIamPermissionsRepo(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UnresolvePullRequestComments
func(c*Client)UnresolvePullRequestComments(ctxcontext.Context,req*securesourcemanagerpb.UnresolvePullRequestCommentsRequest,opts...gax.CallOption)(*UnresolvePullRequestCommentsOperation,error)UnresolvePullRequestComments unresolves pull request comments. A list of PullRequestComment names mustbe provided. The PullRequestComment names must be in the same conversationthread. If auto_fill is set, all comments in the conversation thread willbe unresolved.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.UnresolvePullRequestCommentsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#UnresolvePullRequestCommentsRequest.}op,err:=c.UnresolvePullRequestComments(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UnresolvePullRequestCommentsOperation
func(c*Client)UnresolvePullRequestCommentsOperation(namestring)*UnresolvePullRequestCommentsOperationUnresolvePullRequestCommentsOperation returns a new UnresolvePullRequestCommentsOperation from a given name.The name must be that of a previously created UnresolvePullRequestCommentsOperation, possibly from a different process.
func (*Client) UpdateBranchRule
func(c*Client)UpdateBranchRule(ctxcontext.Context,req*securesourcemanagerpb.UpdateBranchRuleRequest,opts...gax.CallOption)(*UpdateBranchRuleOperation,error)UpdateBranchRule updateBranchRule updates a branch rule.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.UpdateBranchRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#UpdateBranchRuleRequest.}op,err:=c.UpdateBranchRule(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateBranchRuleOperation
func(c*Client)UpdateBranchRuleOperation(namestring)*UpdateBranchRuleOperationUpdateBranchRuleOperation returns a new UpdateBranchRuleOperation from a given name.The name must be that of a previously created UpdateBranchRuleOperation, possibly from a different process.
func (*Client) UpdateHook
func(c*Client)UpdateHook(ctxcontext.Context,req*securesourcemanagerpb.UpdateHookRequest,opts...gax.CallOption)(*UpdateHookOperation,error)UpdateHook updates the metadata of a hook.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.UpdateHookRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#UpdateHookRequest.}op,err:=c.UpdateHook(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateHookOperation
func(c*Client)UpdateHookOperation(namestring)*UpdateHookOperationUpdateHookOperation returns a new UpdateHookOperation from a given name.The name must be that of a previously created UpdateHookOperation, possibly from a different process.
func (*Client) UpdateIssue
func(c*Client)UpdateIssue(ctxcontext.Context,req*securesourcemanagerpb.UpdateIssueRequest,opts...gax.CallOption)(*UpdateIssueOperation,error)UpdateIssue updates a issue.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.UpdateIssueRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#UpdateIssueRequest.}op,err:=c.UpdateIssue(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateIssueComment
func(c*Client)UpdateIssueComment(ctxcontext.Context,req*securesourcemanagerpb.UpdateIssueCommentRequest,opts...gax.CallOption)(*UpdateIssueCommentOperation,error)UpdateIssueComment updates an issue comment.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.UpdateIssueCommentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#UpdateIssueCommentRequest.}op,err:=c.UpdateIssueComment(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateIssueCommentOperation
func(c*Client)UpdateIssueCommentOperation(namestring)*UpdateIssueCommentOperationUpdateIssueCommentOperation returns a new UpdateIssueCommentOperation from a given name.The name must be that of a previously created UpdateIssueCommentOperation, possibly from a different process.
func (*Client) UpdateIssueOperation
func(c*Client)UpdateIssueOperation(namestring)*UpdateIssueOperationUpdateIssueOperation returns a new UpdateIssueOperation from a given name.The name must be that of a previously created UpdateIssueOperation, possibly from a different process.
func (*Client) UpdatePullRequest
func(c*Client)UpdatePullRequest(ctxcontext.Context,req*securesourcemanagerpb.UpdatePullRequestRequest,opts...gax.CallOption)(*UpdatePullRequestOperation,error)UpdatePullRequest updates a pull request.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.UpdatePullRequestRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#UpdatePullRequestRequest.}op,err:=c.UpdatePullRequest(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdatePullRequestComment
func(c*Client)UpdatePullRequestComment(ctxcontext.Context,req*securesourcemanagerpb.UpdatePullRequestCommentRequest,opts...gax.CallOption)(*UpdatePullRequestCommentOperation,error)UpdatePullRequestComment updates a pull request comment.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.UpdatePullRequestCommentRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#UpdatePullRequestCommentRequest.}op,err:=c.UpdatePullRequestComment(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdatePullRequestCommentOperation
func(c*Client)UpdatePullRequestCommentOperation(namestring)*UpdatePullRequestCommentOperationUpdatePullRequestCommentOperation returns a new UpdatePullRequestCommentOperation from a given name.The name must be that of a previously created UpdatePullRequestCommentOperation, possibly from a different process.
func (*Client) UpdatePullRequestOperation
func(c*Client)UpdatePullRequestOperation(namestring)*UpdatePullRequestOperationUpdatePullRequestOperation returns a new UpdatePullRequestOperation from a given name.The name must be that of a previously created UpdatePullRequestOperation, possibly from a different process.
func (*Client) UpdateRepository
func(c*Client)UpdateRepository(ctxcontext.Context,req*securesourcemanagerpb.UpdateRepositoryRequest,opts...gax.CallOption)(*UpdateRepositoryOperation,error)UpdateRepository updates the metadata of a repository.
Example
packagemainimport("context"securesourcemanager"cloud.google.com/go/securesourcemanager/apiv1"securesourcemanagerpb"cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb")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:=securesourcemanager.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&securesourcemanagerpb.UpdateRepositoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/securesourcemanager/apiv1/securesourcemanagerpb#UpdateRepositoryRequest.}op,err:=c.UpdateRepository(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateRepositoryOperation
func(c*Client)UpdateRepositoryOperation(namestring)*UpdateRepositoryOperationUpdateRepositoryOperation returns a new UpdateRepositoryOperation from a given name.The name must be that of a previously created UpdateRepositoryOperation, possibly from a different process.
CloseIssueOperation
typeCloseIssueOperationstruct{// contains filtered or unexported fields}CloseIssueOperation manages a long-running operation from CloseIssue.
func (*CloseIssueOperation) Done
func(op*CloseIssueOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CloseIssueOperation) Metadata
func(op*CloseIssueOperation)Metadata()(*securesourcemanagerpb.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 (*CloseIssueOperation) Name
func(op*CloseIssueOperation)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 (*CloseIssueOperation) Poll
func(op*CloseIssueOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Issue,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 (*CloseIssueOperation) Wait
func(op*CloseIssueOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Issue,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.
ClosePullRequestOperation
typeClosePullRequestOperationstruct{// contains filtered or unexported fields}ClosePullRequestOperation manages a long-running operation from ClosePullRequest.
func (*ClosePullRequestOperation) Done
func(op*ClosePullRequestOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ClosePullRequestOperation) Metadata
func(op*ClosePullRequestOperation)Metadata()(*securesourcemanagerpb.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 (*ClosePullRequestOperation) Name
func(op*ClosePullRequestOperation)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 (*ClosePullRequestOperation) Poll
func(op*ClosePullRequestOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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 (*ClosePullRequestOperation) Wait
func(op*ClosePullRequestOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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.
CreateBranchRuleOperation
typeCreateBranchRuleOperationstruct{// contains filtered or unexported fields}CreateBranchRuleOperation manages a long-running operation from CreateBranchRule.
func (*CreateBranchRuleOperation) Done
func(op*CreateBranchRuleOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateBranchRuleOperation) Metadata
func(op*CreateBranchRuleOperation)Metadata()(*securesourcemanagerpb.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 (*CreateBranchRuleOperation) Name
func(op*CreateBranchRuleOperation)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 (*CreateBranchRuleOperation) Poll
func(op*CreateBranchRuleOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.BranchRule,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 (*CreateBranchRuleOperation) Wait
func(op*CreateBranchRuleOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.BranchRule,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.
CreateHookOperation
typeCreateHookOperationstruct{// contains filtered or unexported fields}CreateHookOperation manages a long-running operation from CreateHook.
func (*CreateHookOperation) Done
func(op*CreateHookOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateHookOperation) Metadata
func(op*CreateHookOperation)Metadata()(*securesourcemanagerpb.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 (*CreateHookOperation) Name
func(op*CreateHookOperation)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 (*CreateHookOperation) Poll
func(op*CreateHookOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Hook,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 (*CreateHookOperation) Wait
func(op*CreateHookOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Hook,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.
CreateInstanceOperation
typeCreateInstanceOperationstruct{// contains filtered or unexported fields}CreateInstanceOperation manages a long-running operation from CreateInstance.
func (*CreateInstanceOperation) Done
func(op*CreateInstanceOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateInstanceOperation) Metadata
func(op*CreateInstanceOperation)Metadata()(*securesourcemanagerpb.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 (*CreateInstanceOperation) Name
func(op*CreateInstanceOperation)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 (*CreateInstanceOperation) Poll
func(op*CreateInstanceOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Instance,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 (*CreateInstanceOperation) Wait
func(op*CreateInstanceOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Instance,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.
CreateIssueCommentOperation
typeCreateIssueCommentOperationstruct{// contains filtered or unexported fields}CreateIssueCommentOperation manages a long-running operation from CreateIssueComment.
func (*CreateIssueCommentOperation) Done
func(op*CreateIssueCommentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateIssueCommentOperation) Metadata
func(op*CreateIssueCommentOperation)Metadata()(*securesourcemanagerpb.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 (*CreateIssueCommentOperation) Name
func(op*CreateIssueCommentOperation)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 (*CreateIssueCommentOperation) Poll
func(op*CreateIssueCommentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.IssueComment,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 (*CreateIssueCommentOperation) Wait
func(op*CreateIssueCommentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.IssueComment,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.
CreateIssueOperation
typeCreateIssueOperationstruct{// contains filtered or unexported fields}CreateIssueOperation manages a long-running operation from CreateIssue.
func (*CreateIssueOperation) Done
func(op*CreateIssueOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateIssueOperation) Metadata
func(op*CreateIssueOperation)Metadata()(*securesourcemanagerpb.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 (*CreateIssueOperation) Name
func(op*CreateIssueOperation)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 (*CreateIssueOperation) Poll
func(op*CreateIssueOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Issue,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 (*CreateIssueOperation) Wait
func(op*CreateIssueOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Issue,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.
CreatePullRequestCommentOperation
typeCreatePullRequestCommentOperationstruct{// contains filtered or unexported fields}CreatePullRequestCommentOperation manages a long-running operation from CreatePullRequestComment.
func (*CreatePullRequestCommentOperation) Done
func(op*CreatePullRequestCommentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreatePullRequestCommentOperation) Metadata
func(op*CreatePullRequestCommentOperation)Metadata()(*securesourcemanagerpb.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 (*CreatePullRequestCommentOperation) Name
func(op*CreatePullRequestCommentOperation)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 (*CreatePullRequestCommentOperation) Poll
func(op*CreatePullRequestCommentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequestComment,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 (*CreatePullRequestCommentOperation) Wait
func(op*CreatePullRequestCommentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequestComment,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.
CreatePullRequestOperation
typeCreatePullRequestOperationstruct{// contains filtered or unexported fields}CreatePullRequestOperation manages a long-running operation from CreatePullRequest.
func (*CreatePullRequestOperation) Done
func(op*CreatePullRequestOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreatePullRequestOperation) Metadata
func(op*CreatePullRequestOperation)Metadata()(*securesourcemanagerpb.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 (*CreatePullRequestOperation) Name
func(op*CreatePullRequestOperation)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 (*CreatePullRequestOperation) Poll
func(op*CreatePullRequestOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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 (*CreatePullRequestOperation) Wait
func(op*CreatePullRequestOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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()(*securesourcemanagerpb.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)(*securesourcemanagerpb.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)(*securesourcemanagerpb.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.
DeleteBranchRuleOperation
typeDeleteBranchRuleOperationstruct{// contains filtered or unexported fields}DeleteBranchRuleOperation manages a long-running operation from DeleteBranchRule.
func (*DeleteBranchRuleOperation) Done
func(op*DeleteBranchRuleOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteBranchRuleOperation) Metadata
func(op*DeleteBranchRuleOperation)Metadata()(*securesourcemanagerpb.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 (*DeleteBranchRuleOperation) Name
func(op*DeleteBranchRuleOperation)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 (*DeleteBranchRuleOperation) Poll
func(op*DeleteBranchRuleOperation)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 (*DeleteBranchRuleOperation) Wait
func(op*DeleteBranchRuleOperation)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.
DeleteHookOperation
typeDeleteHookOperationstruct{// contains filtered or unexported fields}DeleteHookOperation manages a long-running operation from DeleteHook.
func (*DeleteHookOperation) Done
func(op*DeleteHookOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteHookOperation) Metadata
func(op*DeleteHookOperation)Metadata()(*securesourcemanagerpb.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 (*DeleteHookOperation) Name
func(op*DeleteHookOperation)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 (*DeleteHookOperation) Poll
func(op*DeleteHookOperation)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 (*DeleteHookOperation) Wait
func(op*DeleteHookOperation)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.
DeleteInstanceOperation
typeDeleteInstanceOperationstruct{// contains filtered or unexported fields}DeleteInstanceOperation manages a long-running operation from DeleteInstance.
func (*DeleteInstanceOperation) Done
func(op*DeleteInstanceOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteInstanceOperation) Metadata
func(op*DeleteInstanceOperation)Metadata()(*securesourcemanagerpb.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 (*DeleteInstanceOperation) Name
func(op*DeleteInstanceOperation)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 (*DeleteInstanceOperation) Poll
func(op*DeleteInstanceOperation)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 (*DeleteInstanceOperation) Wait
func(op*DeleteInstanceOperation)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.
DeleteIssueCommentOperation
typeDeleteIssueCommentOperationstruct{// contains filtered or unexported fields}DeleteIssueCommentOperation manages a long-running operation from DeleteIssueComment.
func (*DeleteIssueCommentOperation) Done
func(op*DeleteIssueCommentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteIssueCommentOperation) Metadata
func(op*DeleteIssueCommentOperation)Metadata()(*securesourcemanagerpb.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 (*DeleteIssueCommentOperation) Name
func(op*DeleteIssueCommentOperation)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 (*DeleteIssueCommentOperation) Poll
func(op*DeleteIssueCommentOperation)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 (*DeleteIssueCommentOperation) Wait
func(op*DeleteIssueCommentOperation)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.
DeleteIssueOperation
typeDeleteIssueOperationstruct{// contains filtered or unexported fields}DeleteIssueOperation manages a long-running operation from DeleteIssue.
func (*DeleteIssueOperation) Done
func(op*DeleteIssueOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteIssueOperation) Metadata
func(op*DeleteIssueOperation)Metadata()(*securesourcemanagerpb.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 (*DeleteIssueOperation) Name
func(op*DeleteIssueOperation)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 (*DeleteIssueOperation) Poll
func(op*DeleteIssueOperation)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 (*DeleteIssueOperation) Wait
func(op*DeleteIssueOperation)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.
DeletePullRequestCommentOperation
typeDeletePullRequestCommentOperationstruct{// contains filtered or unexported fields}DeletePullRequestCommentOperation manages a long-running operation from DeletePullRequestComment.
func (*DeletePullRequestCommentOperation) Done
func(op*DeletePullRequestCommentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeletePullRequestCommentOperation) Metadata
func(op*DeletePullRequestCommentOperation)Metadata()(*securesourcemanagerpb.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 (*DeletePullRequestCommentOperation) Name
func(op*DeletePullRequestCommentOperation)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 (*DeletePullRequestCommentOperation) Poll
func(op*DeletePullRequestCommentOperation)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 (*DeletePullRequestCommentOperation) Wait
func(op*DeletePullRequestCommentOperation)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()(*securesourcemanagerpb.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.
FileDiffIterator
typeFileDiffIteratorstruct{// 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[]*securesourcemanagerpb.FileDiff,nextPageTokenstring,errerror)// contains filtered or unexported fields}FileDiffIterator manages a stream of *securesourcemanagerpb.FileDiff.
func (*FileDiffIterator) All
func(it*FileDiffIterator)All()iter.Seq2[*securesourcemanagerpb.FileDiff,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*FileDiffIterator) Next
func(it*FileDiffIterator)Next()(*securesourcemanagerpb.FileDiff,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 (*FileDiffIterator) PageInfo
func(it*FileDiffIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
HookIterator
typeHookIteratorstruct{// 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[]*securesourcemanagerpb.Hook,nextPageTokenstring,errerror)// contains filtered or unexported fields}HookIterator manages a stream of *securesourcemanagerpb.Hook.
func (*HookIterator) All
func(it*HookIterator)All()iter.Seq2[*securesourcemanagerpb.Hook,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*HookIterator) Next
func(it*HookIterator)Next()(*securesourcemanagerpb.Hook,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 (*HookIterator) PageInfo
func(it*HookIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
InstanceIterator
typeInstanceIteratorstruct{// 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[]*securesourcemanagerpb.Instance,nextPageTokenstring,errerror)// contains filtered or unexported fields}InstanceIterator manages a stream of *securesourcemanagerpb.Instance.
func (*InstanceIterator) All
func(it*InstanceIterator)All()iter.Seq2[*securesourcemanagerpb.Instance,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*InstanceIterator) Next
func(it*InstanceIterator)Next()(*securesourcemanagerpb.Instance,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 (*InstanceIterator) PageInfo
func(it*InstanceIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
IssueCommentIterator
typeIssueCommentIteratorstruct{// 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[]*securesourcemanagerpb.IssueComment,nextPageTokenstring,errerror)// contains filtered or unexported fields}IssueCommentIterator manages a stream of *securesourcemanagerpb.IssueComment.
func (*IssueCommentIterator) All
func(it*IssueCommentIterator)All()iter.Seq2[*securesourcemanagerpb.IssueComment,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*IssueCommentIterator) Next
func(it*IssueCommentIterator)Next()(*securesourcemanagerpb.IssueComment,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 (*IssueCommentIterator) PageInfo
func(it*IssueCommentIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
IssueIterator
typeIssueIteratorstruct{// 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[]*securesourcemanagerpb.Issue,nextPageTokenstring,errerror)// contains filtered or unexported fields}IssueIterator manages a stream of *securesourcemanagerpb.Issue.
func (*IssueIterator) All
func(it*IssueIterator)All()iter.Seq2[*securesourcemanagerpb.Issue,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*IssueIterator) Next
func(it*IssueIterator)Next()(*securesourcemanagerpb.Issue,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 (*IssueIterator) PageInfo
func(it*IssueIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
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.
MergePullRequestOperation
typeMergePullRequestOperationstruct{// contains filtered or unexported fields}MergePullRequestOperation manages a long-running operation from MergePullRequest.
func (*MergePullRequestOperation) Done
func(op*MergePullRequestOperation)Done()boolDone reports whether the long-running operation has completed.
func (*MergePullRequestOperation) Metadata
func(op*MergePullRequestOperation)Metadata()(*securesourcemanagerpb.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 (*MergePullRequestOperation) Name
func(op*MergePullRequestOperation)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 (*MergePullRequestOperation) Poll
func(op*MergePullRequestOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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 (*MergePullRequestOperation) Wait
func(op*MergePullRequestOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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.
OpenIssueOperation
typeOpenIssueOperationstruct{// contains filtered or unexported fields}OpenIssueOperation manages a long-running operation from OpenIssue.
func (*OpenIssueOperation) Done
func(op*OpenIssueOperation)Done()boolDone reports whether the long-running operation has completed.
func (*OpenIssueOperation) Metadata
func(op*OpenIssueOperation)Metadata()(*securesourcemanagerpb.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 (*OpenIssueOperation) Name
func(op*OpenIssueOperation)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 (*OpenIssueOperation) Poll
func(op*OpenIssueOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Issue,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 (*OpenIssueOperation) Wait
func(op*OpenIssueOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Issue,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.
OpenPullRequestOperation
typeOpenPullRequestOperationstruct{// contains filtered or unexported fields}OpenPullRequestOperation manages a long-running operation from OpenPullRequest.
func (*OpenPullRequestOperation) Done
func(op*OpenPullRequestOperation)Done()boolDone reports whether the long-running operation has completed.
func (*OpenPullRequestOperation) Metadata
func(op*OpenPullRequestOperation)Metadata()(*securesourcemanagerpb.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 (*OpenPullRequestOperation) Name
func(op*OpenPullRequestOperation)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 (*OpenPullRequestOperation) Poll
func(op*OpenPullRequestOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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 (*OpenPullRequestOperation) Wait
func(op*OpenPullRequestOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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.
OperationIterator
typeOperationIteratorstruct{// 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[]*longrunningpb.Operation,nextPageTokenstring,errerror)// contains filtered or unexported fields}OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All
func(it*OperationIterator)All()iter.Seq2[*longrunningpb.Operation,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*OperationIterator) Next
func(it*OperationIterator)Next()(*longrunningpb.Operation,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 (*OperationIterator) PageInfo
func(it*OperationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
PullRequestCommentIterator
typePullRequestCommentIteratorstruct{// 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[]*securesourcemanagerpb.PullRequestComment,nextPageTokenstring,errerror)// contains filtered or unexported fields}PullRequestCommentIterator manages a stream of *securesourcemanagerpb.PullRequestComment.
func (*PullRequestCommentIterator) All
func(it*PullRequestCommentIterator)All()iter.Seq2[*securesourcemanagerpb.PullRequestComment,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*PullRequestCommentIterator) Next
func(it*PullRequestCommentIterator)Next()(*securesourcemanagerpb.PullRequestComment,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 (*PullRequestCommentIterator) PageInfo
func(it*PullRequestCommentIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
PullRequestIterator
typePullRequestIteratorstruct{// 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[]*securesourcemanagerpb.PullRequest,nextPageTokenstring,errerror)// contains filtered or unexported fields}PullRequestIterator manages a stream of *securesourcemanagerpb.PullRequest.
func (*PullRequestIterator) All
func(it*PullRequestIterator)All()iter.Seq2[*securesourcemanagerpb.PullRequest,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*PullRequestIterator) Next
func(it*PullRequestIterator)Next()(*securesourcemanagerpb.PullRequest,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 (*PullRequestIterator) PageInfo
func(it*PullRequestIterator)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[]*securesourcemanagerpb.Repository,nextPageTokenstring,errerror)// contains filtered or unexported fields}RepositoryIterator manages a stream of *securesourcemanagerpb.Repository.
func (*RepositoryIterator) All
func(it*RepositoryIterator)All()iter.Seq2[*securesourcemanagerpb.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()(*securesourcemanagerpb.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.
ResolvePullRequestCommentsOperation
typeResolvePullRequestCommentsOperationstruct{// contains filtered or unexported fields}ResolvePullRequestCommentsOperation manages a long-running operation from ResolvePullRequestComments.
func (*ResolvePullRequestCommentsOperation) Done
func(op*ResolvePullRequestCommentsOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ResolvePullRequestCommentsOperation) Metadata
func(op*ResolvePullRequestCommentsOperation)Metadata()(*securesourcemanagerpb.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 (*ResolvePullRequestCommentsOperation) Name
func(op*ResolvePullRequestCommentsOperation)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 (*ResolvePullRequestCommentsOperation) Poll
func(op*ResolvePullRequestCommentsOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.ResolvePullRequestCommentsResponse,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 (*ResolvePullRequestCommentsOperation) Wait
func(op*ResolvePullRequestCommentsOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.ResolvePullRequestCommentsResponse,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.
TreeEntryIterator
typeTreeEntryIteratorstruct{// 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[]*securesourcemanagerpb.TreeEntry,nextPageTokenstring,errerror)// contains filtered or unexported fields}TreeEntryIterator manages a stream of *securesourcemanagerpb.TreeEntry.
func (*TreeEntryIterator) All
func(it*TreeEntryIterator)All()iter.Seq2[*securesourcemanagerpb.TreeEntry,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*TreeEntryIterator) Next
func(it*TreeEntryIterator)Next()(*securesourcemanagerpb.TreeEntry,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 (*TreeEntryIterator) PageInfo
func(it*TreeEntryIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
UnresolvePullRequestCommentsOperation
typeUnresolvePullRequestCommentsOperationstruct{// contains filtered or unexported fields}UnresolvePullRequestCommentsOperation manages a long-running operation from UnresolvePullRequestComments.
func (*UnresolvePullRequestCommentsOperation) Done
func(op*UnresolvePullRequestCommentsOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UnresolvePullRequestCommentsOperation) Metadata
func(op*UnresolvePullRequestCommentsOperation)Metadata()(*securesourcemanagerpb.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 (*UnresolvePullRequestCommentsOperation) Name
func(op*UnresolvePullRequestCommentsOperation)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 (*UnresolvePullRequestCommentsOperation) Poll
func(op*UnresolvePullRequestCommentsOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.UnresolvePullRequestCommentsResponse,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 (*UnresolvePullRequestCommentsOperation) Wait
func(op*UnresolvePullRequestCommentsOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.UnresolvePullRequestCommentsResponse,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.
UpdateBranchRuleOperation
typeUpdateBranchRuleOperationstruct{// contains filtered or unexported fields}UpdateBranchRuleOperation manages a long-running operation from UpdateBranchRule.
func (*UpdateBranchRuleOperation) Done
func(op*UpdateBranchRuleOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateBranchRuleOperation) Metadata
func(op*UpdateBranchRuleOperation)Metadata()(*securesourcemanagerpb.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 (*UpdateBranchRuleOperation) Name
func(op*UpdateBranchRuleOperation)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 (*UpdateBranchRuleOperation) Poll
func(op*UpdateBranchRuleOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.BranchRule,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 (*UpdateBranchRuleOperation) Wait
func(op*UpdateBranchRuleOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.BranchRule,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.
UpdateHookOperation
typeUpdateHookOperationstruct{// contains filtered or unexported fields}UpdateHookOperation manages a long-running operation from UpdateHook.
func (*UpdateHookOperation) Done
func(op*UpdateHookOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateHookOperation) Metadata
func(op*UpdateHookOperation)Metadata()(*securesourcemanagerpb.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 (*UpdateHookOperation) Name
func(op*UpdateHookOperation)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 (*UpdateHookOperation) Poll
func(op*UpdateHookOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Hook,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 (*UpdateHookOperation) Wait
func(op*UpdateHookOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Hook,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.
UpdateIssueCommentOperation
typeUpdateIssueCommentOperationstruct{// contains filtered or unexported fields}UpdateIssueCommentOperation manages a long-running operation from UpdateIssueComment.
func (*UpdateIssueCommentOperation) Done
func(op*UpdateIssueCommentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateIssueCommentOperation) Metadata
func(op*UpdateIssueCommentOperation)Metadata()(*securesourcemanagerpb.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 (*UpdateIssueCommentOperation) Name
func(op*UpdateIssueCommentOperation)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 (*UpdateIssueCommentOperation) Poll
func(op*UpdateIssueCommentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.IssueComment,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 (*UpdateIssueCommentOperation) Wait
func(op*UpdateIssueCommentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.IssueComment,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.
UpdateIssueOperation
typeUpdateIssueOperationstruct{// contains filtered or unexported fields}UpdateIssueOperation manages a long-running operation from UpdateIssue.
func (*UpdateIssueOperation) Done
func(op*UpdateIssueOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateIssueOperation) Metadata
func(op*UpdateIssueOperation)Metadata()(*securesourcemanagerpb.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 (*UpdateIssueOperation) Name
func(op*UpdateIssueOperation)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 (*UpdateIssueOperation) Poll
func(op*UpdateIssueOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Issue,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 (*UpdateIssueOperation) Wait
func(op*UpdateIssueOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.Issue,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.
UpdatePullRequestCommentOperation
typeUpdatePullRequestCommentOperationstruct{// contains filtered or unexported fields}UpdatePullRequestCommentOperation manages a long-running operation from UpdatePullRequestComment.
func (*UpdatePullRequestCommentOperation) Done
func(op*UpdatePullRequestCommentOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdatePullRequestCommentOperation) Metadata
func(op*UpdatePullRequestCommentOperation)Metadata()(*securesourcemanagerpb.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 (*UpdatePullRequestCommentOperation) Name
func(op*UpdatePullRequestCommentOperation)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 (*UpdatePullRequestCommentOperation) Poll
func(op*UpdatePullRequestCommentOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequestComment,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 (*UpdatePullRequestCommentOperation) Wait
func(op*UpdatePullRequestCommentOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequestComment,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.
UpdatePullRequestOperation
typeUpdatePullRequestOperationstruct{// contains filtered or unexported fields}UpdatePullRequestOperation manages a long-running operation from UpdatePullRequest.
func (*UpdatePullRequestOperation) Done
func(op*UpdatePullRequestOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdatePullRequestOperation) Metadata
func(op*UpdatePullRequestOperation)Metadata()(*securesourcemanagerpb.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 (*UpdatePullRequestOperation) Name
func(op*UpdatePullRequestOperation)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 (*UpdatePullRequestOperation) Poll
func(op*UpdatePullRequestOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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 (*UpdatePullRequestOperation) Wait
func(op*UpdatePullRequestOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.PullRequest,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.
UpdateRepositoryOperation
typeUpdateRepositoryOperationstruct{// contains filtered or unexported fields}UpdateRepositoryOperation manages a long-running operation from UpdateRepository.
func (*UpdateRepositoryOperation) Done
func(op*UpdateRepositoryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateRepositoryOperation) Metadata
func(op*UpdateRepositoryOperation)Metadata()(*securesourcemanagerpb.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 (*UpdateRepositoryOperation) Name
func(op*UpdateRepositoryOperation)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 (*UpdateRepositoryOperation) Poll
func(op*UpdateRepositoryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.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 (*UpdateRepositoryOperation) Wait
func(op*UpdateRepositoryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*securesourcemanagerpb.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.
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.